diff --git a/sdk/sql/arm-sql/LICENSE.txt b/sdk/sql/arm-sql/LICENSE.txt index b73b4a1293c3..2d3163745319 100644 --- a/sdk/sql/arm-sql/LICENSE.txt +++ b/sdk/sql/arm-sql/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/sql/arm-sql/README.md b/sdk/sql/arm-sql/README.md index 0cb82aed7cd6..f071b897c7a9 100644 --- a/sdk/sql/arm-sql/README.md +++ b/sdk/sql/arm-sql/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-sql ### How to use -#### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript. +#### nodejs - client creation and get backupShortTermRetentionPolicies as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { SqlManagementClient } = require("@azure/arm-sql"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { @@ -38,7 +37,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { const resourceGroupName = "testresourceGroupName"; const serverName = "testserverName"; const databaseName = "testdatabaseName"; - client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { + client.backupShortTermRetentionPolicies.get(resourceGroupName, serverName, databaseName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -47,7 +46,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get recoverableDatabases as an example written in JavaScript. +#### browser - Authentication, client creation and get backupShortTermRetentionPolicies as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -84,7 +83,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const resourceGroupName = "testresourceGroupName"; const serverName = "testserverName"; const databaseName = "testdatabaseName"; - client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => { + client.backupShortTermRetentionPolicies.get(resourceGroupName, serverName, databaseName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/sql/arm-sql/rollup.config.js b/sdk/sql/arm-sql/rollup.config.js index 6615d95d1208..a044e7d33ee9 100644 --- a/sdk/sql/arm-sql/rollup.config.js +++ b/sdk/sql/arm-sql/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts index bf0add5c875c..c36cf11ed29f 100644 --- a/sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/backupShortTermRetentionPoliciesMappers.ts @@ -1,15 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BackupShortTermRetentionPolicyListResult, BaseResource, @@ -17,17 +17,20 @@ export { Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/capabilitiesMappers.ts b/sdk/sql/arm-sql/src/models/capabilitiesMappers.ts index 95ade0ba7550..7e34dc5863e2 100644 --- a/sdk/sql/arm-sql/src/models/capabilitiesMappers.ts +++ b/sdk/sql/arm-sql/src/models/capabilitiesMappers.ts @@ -1,29 +1,38 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + AutoPauseDelayTimeRange, CloudError, EditionCapability, ElasticPoolEditionCapability, ElasticPoolPerDatabaseMaxPerformanceLevelCapability, ElasticPoolPerDatabaseMinPerformanceLevelCapability, ElasticPoolPerformanceLevelCapability, + InstancePoolEditionCapability, + InstancePoolFamilyCapability, + InstancePoolVcoresCapability, LicenseTypeCapability, LocationCapabilities, LogSizeCapability, + MaintenanceConfigurationCapability, ManagedInstanceEditionCapability, ManagedInstanceFamilyCapability, + ManagedInstanceMaintenanceConfigurationCapability, ManagedInstanceVcoresCapability, ManagedInstanceVersionCapability, MaxSizeCapability, MaxSizeRangeCapability, + MinCapacityCapability, PerformanceLevelCapability, + ReadScaleCapability, ServerVersionCapability, ServiceObjectiveCapability, - Sku + Sku, + StorageCapability } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/dataWarehouseUserActivitiesOperationsMappers.ts b/sdk/sql/arm-sql/src/models/dataWarehouseUserActivitiesOperationsMappers.ts new file mode 100644 index 000000000000..bfe0af815ccd --- /dev/null +++ b/sdk/sql/arm-sql/src/models/dataWarehouseUserActivitiesOperationsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DataWarehouseUserActivitiesListResult, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/backupLongTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/databaseAdvisorsMappers.ts similarity index 53% rename from sdk/sql/arm-sql/src/models/backupLongTermRetentionPoliciesMappers.ts rename to sdk/sql/arm-sql/src/models/databaseAdvisorsMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/backupLongTermRetentionPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseAdvisorsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts b/sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseAutomaticTuningOperationsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts index 208528b42b1d..6b8ed9ee1d44 100644 --- a/sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseBlobAuditingPoliciesMappers.ts @@ -1,15 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, @@ -17,17 +17,20 @@ export { DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, DatabaseBlobAuditingPolicyListResult, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseColumnsMappers.ts b/sdk/sql/arm-sql/src/models/databaseColumnsMappers.ts new file mode 100644 index 000000000000..8240c8616046 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/databaseColumnsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseColumnListResult, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseExtensionsOperationsMappers.ts b/sdk/sql/arm-sql/src/models/databaseExtensionsOperationsMappers.ts new file mode 100644 index 000000000000..eec22ba5e116 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/databaseExtensionsOperationsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationListResult, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts b/sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts index be1316bb2af4..b1213b2812a4 100644 --- a/sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseOperationsMappers.ts @@ -1,33 +1,36 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, DatabaseOperationListResult, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/databaseRecommendedActionsMappers.ts similarity index 53% rename from sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts rename to sdk/sql/arm-sql/src/models/databaseRecommendedActionsMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseRecommendedActionsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseSchemasMappers.ts b/sdk/sql/arm-sql/src/models/databaseSchemasMappers.ts new file mode 100644 index 000000000000..f15e43af8cbb --- /dev/null +++ b/sdk/sql/arm-sql/src/models/databaseSchemasMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSchemaListResult, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/databaseSecurityAlertPoliciesMappers.ts new file mode 100644 index 000000000000..f98e656b6a1d --- /dev/null +++ b/sdk/sql/arm-sql/src/models/databaseSecurityAlertPoliciesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertListResult, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseTablesMappers.ts b/sdk/sql/arm-sql/src/models/databaseTablesMappers.ts new file mode 100644 index 000000000000..7ec60c87a68e --- /dev/null +++ b/sdk/sql/arm-sql/src/models/databaseTablesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseTableListResult, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts b/sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts index e44bd416354e..f53e46f70390 100644 --- a/sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseUsagesMappers.ts @@ -1,13 +1,171 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, DatabaseUsage, - DatabaseUsageListResult + DatabaseUsageListResult, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts index 8db2e4f353ef..4469ce84e0e4 100644 --- a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentScansMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,14 +152,20 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, VulnerabilityAssessmentScanRecord, - VulnerabilityAssessmentScanRecordListResult + VulnerabilityAssessmentScanRecordListResult, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts index ddd16788a720..d049b4eb7108 100644 --- a/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/databaseVulnerabilityAssessmentsMappers.ts @@ -1,33 +1,36 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentListResult, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databasesMappers.ts b/sdk/sql/arm-sql/src/models/databasesMappers.ts index d42e76c423cd..75c484a4af3d 100644 --- a/sdk/sql/arm-sql/src/models/databasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/databasesMappers.ts @@ -1,48 +1,50 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseListResult, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, DatabaseUpdate, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, - ExportRequest, + ExportDatabaseDefinition, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, FailoverGroup, FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - ImportExtensionRequest, - ImportRequest, + ImportExistingDatabaseDefinition, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -60,61 +62,94 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - Metric, - MetricAvailability, - MetricDefinition, - MetricDefinitionListResult, - MetricListResult, - MetricName, - MetricValue, - OperationImpact, + ManagedTransparentDataEncryption, + NetworkIsolationSettings, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, ResourceMoveDefinition, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -123,13 +158,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/deletedServersMappers.ts b/sdk/sql/arm-sql/src/models/deletedServersMappers.ts new file mode 100644 index 000000000000..9ff478f27b2f --- /dev/null +++ b/sdk/sql/arm-sql/src/models/deletedServersMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + DeletedServerListResult, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolActivitiesMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolActivitiesMappers.ts deleted file mode 100644 index e208d357ba22..000000000000 --- a/sdk/sql/arm-sql/src/models/elasticPoolActivitiesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolActivityListResult, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolDatabaseActivitiesMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolDatabaseActivitiesMappers.ts deleted file mode 100644 index 9ec09441bb5b..000000000000 --- a/sdk/sql/arm-sql/src/models/elasticPoolDatabaseActivitiesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolDatabaseActivityListResult, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts index 42b902e5b44b..62d9cb7f8c5d 100644 --- a/sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts +++ b/sdk/sql/arm-sql/src/models/elasticPoolOperationsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolOperationListResult, ElasticPoolPerDatabaseSettings, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts b/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts index 0207ecc07c86..a33fec7824db 100644 --- a/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts +++ b/sdk/sql/arm-sql/src/models/elasticPoolsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolListResult, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, @@ -38,8 +41,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -57,60 +60,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - Metric, - MetricAvailability, - MetricDefinition, - MetricDefinitionListResult, - MetricListResult, - MetricName, - MetricValue, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -119,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts b/sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts index dd2c39144b9d..e10b46b13cc1 100644 --- a/sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts +++ b/sdk/sql/arm-sql/src/models/encryptionProtectorsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts index 7979989c60d3..c469ff59343c 100644 --- a/sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/extendedDatabaseBlobAuditingPoliciesMappers.ts @@ -1,43 +1,47 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, ExtendedDatabaseBlobAuditingPolicy, + ExtendedDatabaseBlobAuditingPolicyListResult, ExtendedServerBlobAuditingPolicy, FailoverGroup, FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts index 7979989c60d3..2f462db41ba6 100644 --- a/sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/extendedServerBlobAuditingPoliciesMappers.ts @@ -1,43 +1,47 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, ExtendedDatabaseBlobAuditingPolicy, ExtendedServerBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicyListResult, FailoverGroup, FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts b/sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts index 5b702951c0c0..b78d56903670 100644 --- a/sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts +++ b/sdk/sql/arm-sql/src/models/failoverGroupsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -38,8 +41,8 @@ export { FailoverGroupReadWriteEndpoint, FailoverGroupUpdate, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -57,53 +60,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -112,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/firewallRulesMappers.ts b/sdk/sql/arm-sql/src/models/firewallRulesMappers.ts index c7b1cddbce7e..3ca4b4ac426d 100644 --- a/sdk/sql/arm-sql/src/models/firewallRulesMappers.ts +++ b/sdk/sql/arm-sql/src/models/firewallRulesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,9 +39,10 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, + FirewallRuleList, FirewallRuleListResult, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +60,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/geoBackupPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/geoBackupPoliciesMappers.ts deleted file mode 100644 index 23569a186da1..000000000000 --- a/sdk/sql/arm-sql/src/models/geoBackupPoliciesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - GeoBackupPolicyListResult, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index 60b18ceff4a8..b170555135d3 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -39,80 +39,14 @@ export interface ProxyResource extends Resource { } /** - * A recoverable database - */ -export interface RecoverableDatabase extends ProxyResource { - /** - * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly edition?: string; - /** - * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serviceLevelObjective?: string; - /** - * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly elasticPoolName?: string; - /** - * The last available backup date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastAvailableBackupDate?: Date; -} - -/** - * A restorable dropped database + * A short term retention policy. */ -export interface RestorableDroppedDatabase extends ProxyResource { - /** - * The geo-location where the resource lives - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * The name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly databaseName?: string; - /** - * The edition of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly edition?: string; - /** - * The max size in bytes of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly maxSizeBytes?: string; - /** - * The service level objective name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serviceLevelObjective?: string; - /** - * The elastic pool name of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly elasticPoolName?: string; - /** - * The 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; +export interface BackupShortTermRetentionPolicy extends ProxyResource { /** - * The earliest restore date of the database (ISO8601 format) - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The backup retention period in days. This is how many days Point-in-Time Restore will be + * supported. */ - readonly earliestRestoreDate?: Date; + retentionDays?: number; } /** @@ -130,1712 +64,1911 @@ export interface TrackedResource extends Resource { } /** - * A request to check whether the specified name for a resource is available. - */ -export interface CheckNameAvailabilityRequest { - /** - * The name whose availability is to be checked. - */ - name: string; -} - -/** - * A response indicating whether the specified name for a resource is available. - */ -export interface CheckNameAvailabilityResponse { - /** - * True if the name is available, otherwise false. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly available?: boolean; - /** - * A message explaining why the name is unavailable. Will be null if the name is available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly message?: string; - /** - * The name whose availability was checked. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * The reason code explaining why the name is unavailable. Will be null if the name is available. - * Possible values include: 'Invalid', 'AlreadyExists' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly reason?: CheckNameAvailabilityReason; -} - -/** - * A server secure connection policy. + * An extended database blob auditing policy. */ -export interface ServerConnectionPolicy extends ProxyResource { - /** - * Metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; +export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { /** - * The server connection type. Possible values include: 'Default', 'Proxy', 'Redirect' + * Specifies condition of where clause when creating an audit. */ - connectionType: ServerConnectionType; -} - -/** - * Contains information about a database Threat Detection policy. - */ -export interface DatabaseSecurityAlertPolicy extends ProxyResource { + predicateExpression?: string; /** - * The geo-location where the resource lives + * Specifies the number of days to keep in the audit logs in the storage account. */ - location?: string; + retentionDays?: number; /** - * Resource kind. - * **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 + * + * 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 kind?: string; + auditActionsAndGroups?: string[]; /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint and - * storageAccountAccessKey are required. Possible values include: 'New', 'Enabled', 'Disabled' + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - state: SecurityAlertPolicyState; + isStorageSecondaryKeyInUse?: boolean; /** - * Specifies the semicolon-separated list of alerts that are disabled, or empty string to disable - * no alerts. Possible values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly; - * Data_Exfiltration; Unsafe_Action. + * 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) */ - disabledAlerts?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * Specifies the semicolon-separated list of e-mail addresses to which the alert is sent. + * 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. */ - emailAddresses?: string; + queueDelayMs?: number; /** - * Specifies that the alert is sent to the account administrators. Possible values include: - * 'Enabled', 'Disabled' + * Specifies the state of the audit. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' */ - emailAccountAdmins?: SecurityAlertPolicyEmailAccountAdmins; + state: BlobAuditingPolicyState; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. If state is Enabled, storageEndpoint is - * required. + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ storageEndpoint?: string; /** - * Specifies the identifier key of the Threat Detection audit storage account. If state is - * Enabled, storageAccountAccessKey is required. + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the + * storageAccountAccessKey will use SQL server system-assigned managed identity to access the + * storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data + * Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) */ storageAccountAccessKey?: string; /** - * Specifies the number of days to keep in the Threat Detection audit logs. - */ - retentionDays?: number; - /** - * Specifies whether to use the default server policy. Possible values include: 'Enabled', - * 'Disabled' - */ - useServerDefault?: SecurityAlertPolicyUseServerDefault; -} - -/** - * Represents a database data masking policy. - */ -export interface DataMaskingPolicy extends ProxyResource { - /** - * The state of the data masking policy. Possible values include: 'Disabled', 'Enabled' - */ - 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; - /** - * 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.** + * Specifies the blob storage subscription Id. */ - readonly kind?: string; + storageAccountSubscriptionId?: string; } /** - * Represents a database data masking rule. + * An extended server blob auditing policy. */ -export interface DataMaskingRule extends ProxyResource { - /** - * The rule Id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly dataMaskingRuleId?: 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. Possible values include: 'Disabled', 'Enabled' - */ - 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; +export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { /** - * The column name on which the data masking rule is applied. + * 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) */ - columnName: string; + isDevopsAuditEnabled?: boolean; /** - * The masking function that is used for the data masking rule. Possible values include: - * 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' + * Specifies condition of where clause when creating an audit. */ - maskingFunction: DataMaskingFunction; + predicateExpression?: string; /** - * The numberFrom property of the masking rule. Required if maskingFunction is set to Number, - * otherwise this parameter will be ignored. + * Specifies the number of days to keep in the audit logs in the storage account. */ - numberFrom?: string; + retentionDays?: number; /** - * 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. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all + * the queries and stored procedures executed against the database, as well as successful and + * failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing + * from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your + * auditing needs. Using unnecessary groups could lead to very large quantities of audit + * records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the + * database, and should not be used in combination with other groups as this will result in + * duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot + * be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms + * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - suffixSize?: string; + auditActionsAndGroups?: 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. + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - replacementString?: string; + isStorageSecondaryKeyInUse?: boolean; /** - * The location of the data masking rule. - * **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 location?: string; + isAzureMonitorTargetEnabled?: boolean; /** - * 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 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 kind?: string; -} - -/** - * Represents a server firewall rule. - */ -export interface FirewallRule extends ProxyResource { + queueDelayMs?: number; /** - * Kind of server that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the state of the audit. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' */ - readonly kind?: string; + state: BlobAuditingPolicyState; /** - * Location of the server that contains this firewall rule. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - readonly location?: string; + storageEndpoint?: string; /** - * The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' to - * represent all Azure-internal IP addresses. + * Specifies the identifier key of the 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) */ - startIpAddress: string; + storageAccountAccessKey?: string; /** - * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to - * startIpAddress. Use value '0.0.0.0' to represent all Azure-internal IP addresses. + * Specifies the blob storage subscription Id. */ - endIpAddress: string; + storageAccountSubscriptionId?: string; } /** - * A database geo backup policy. + * A server blob auditing policy. */ -export interface GeoBackupPolicy extends ProxyResource { - /** - * The state of the geo backup policy. Possible values include: 'Disabled', 'Enabled' - */ - state: GeoBackupPolicyState; - /** - * The storage type of the geo backup policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly storageType?: string; +export interface ServerBlobAuditingPolicy extends ProxyResource { /** - * Kind of geo backup policy. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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; /** - * Backup policy location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the number of days to keep in the audit logs in the storage account. */ - readonly location?: string; -} - -/** - * Import database parameters. - */ -export interface ImportExtensionRequest { + retentionDays?: number; /** - * The name of the extension. + * Specifies the Actions-Groups and Actions to audit. + * + * The recommended set of action groups to use is the following combination - this will audit all + * the queries and stored procedures executed against the database, as well as successful and + * failed logins: + * + * BATCH_COMPLETED_GROUP, + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, + * FAILED_DATABASE_AUTHENTICATION_GROUP. + * + * This above combination is also the set that is configured by default when enabling auditing + * from the Azure portal. + * + * The supported action groups to audit are (note: choose only specific groups that cover your + * auditing needs. Using unnecessary groups could lead to very large quantities of audit + * records): + * + * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP + * BACKUP_RESTORE_GROUP + * DATABASE_LOGOUT_GROUP + * DATABASE_OBJECT_CHANGE_GROUP + * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP + * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP + * DATABASE_OPERATION_GROUP + * DATABASE_PERMISSION_CHANGE_GROUP + * DATABASE_PRINCIPAL_CHANGE_GROUP + * DATABASE_PRINCIPAL_IMPERSONATION_GROUP + * DATABASE_ROLE_MEMBER_CHANGE_GROUP + * FAILED_DATABASE_AUTHENTICATION_GROUP + * SCHEMA_OBJECT_ACCESS_GROUP + * SCHEMA_OBJECT_CHANGE_GROUP + * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP + * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP + * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP + * USER_CHANGE_PASSWORD_GROUP + * BATCH_STARTED_GROUP + * BATCH_COMPLETED_GROUP + * + * These are groups that cover all sql statements and stored procedures executed against the + * database, and should not be used in combination with other groups as this will result in + * duplicate audit logs. + * + * For more information, see [Database-Level Audit Action + * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). + * + * For Database auditing policy, specific Actions can also be specified (note that Actions cannot + * be specified for Server auditing policy). The supported actions to audit are: + * SELECT + * UPDATE + * INSERT + * DELETE + * EXECUTE + * RECEIVE + * REFERENCES + * + * The general form for defining an action to be audited is: + * {action} ON {object} BY {principal} + * + * Note that in the above format can refer to an object like a table, view, or stored + * procedure, or an entire database or schema. For the latter cases, the forms + * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. + * + * For example: + * SELECT on dbo.myTable by public + * SELECT on DATABASE::myDatabase by public + * SELECT on SCHEMA::mySchema by public + * + * For more information, see [Database-Level Audit + * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) */ - name?: string; + auditActionsAndGroups?: string[]; /** - * The type of the extension. + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - type?: string; + isStorageSecondaryKeyInUse?: boolean; /** - * The type of the storage key to use. Possible values include: 'StorageAccessKey', - * 'SharedAccessKey' + * 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) */ - storageKeyType: StorageKeyType; + isAzureMonitorTargetEnabled?: boolean; /** - * The storage key to use. If storage key type is SharedAccessKey, it must be preceded with a - * "?." + * 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. */ - storageKey: string; + queueDelayMs?: number; /** - * The storage uri to use. + * Specifies the state of the audit. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' */ - storageUri: string; + state: BlobAuditingPolicyState; /** - * The name of the SQL administrator. + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - administratorLogin: string; + storageEndpoint?: string; /** - * The password of the SQL administrator. + * 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) */ - administratorLoginPassword: string; + storageAccountAccessKey?: string; /** - * The authentication type. Possible values include: 'SQL', 'ADPassword'. Default value: 'SQL'. + * Specifies the blob storage subscription Id. */ - authenticationType?: AuthenticationType; + storageAccountSubscriptionId?: string; } /** - * Response for Import/Export Get operation. + * A database blob auditing policy. */ -export interface ImportExportResponse extends ProxyResource { - /** - * The request type of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly requestType?: string; - /** - * The request type of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly requestId?: string; +export interface DatabaseBlobAuditingPolicy extends ProxyResource { /** - * The name of the server. + * Resource kind. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serverName?: string; + readonly kind?: string; /** - * The name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the number of days to keep in the audit logs in the storage account. */ - readonly databaseName?: string; + retentionDays?: number; /** - * The status message returned from the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: string; - /** - * The operation status last modified time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastModifiedTime?: string; - /** - * The operation queued time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly queuedTime?: string; - /** - * The blob uri. - * **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 + * + * 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 blobUri?: string; + auditActionsAndGroups?: string[]; /** - * The error message returned from the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies whether storageAccountAccessKey value is the storage's secondary key. */ - readonly errorMessage?: string; -} - -/** - * Export database parameters. - */ -export interface ExportRequest { + isStorageSecondaryKeyInUse?: boolean; /** - * The type of the storage key to use. Possible values include: 'StorageAccessKey', - * 'SharedAccessKey' + * 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) */ - storageKeyType: StorageKeyType; + isAzureMonitorTargetEnabled?: boolean; /** - * The storage key to use. If storage key type is SharedAccessKey, it must be preceded with a - * "?." + * 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. */ - storageKey: string; + queueDelayMs?: number; /** - * The storage uri to use. + * Specifies the state of the audit. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' */ - storageUri: string; + state: BlobAuditingPolicyState; /** - * The name of the SQL administrator. + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. */ - administratorLogin: string; + storageEndpoint?: string; /** - * The password of the SQL administrator. + * 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) */ - administratorLoginPassword: string; + storageAccountAccessKey?: string; /** - * The authentication type. Possible values include: 'SQL', 'ADPassword'. Default value: 'SQL'. + * Specifies the blob storage subscription Id. */ - authenticationType?: AuthenticationType; + storageAccountSubscriptionId?: string; } /** - * Import database parameters. + * User activities of a data warehouse */ -export interface ImportRequest extends ExportRequest { - /** - * The name of the database to import. - */ - databaseName: string; - /** - * The edition for the database being created. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the - * SKU name, tier/edition, family, and capacity) that are available to your subscription in an - * Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: - * - * ```azurecli - * az sql db list-editions -l -o table - * ```` - * - * ```powershell - * Get-AzSqlServerServiceObjective -Location - * ```` - * . Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', - * 'Free', 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', - * 'Hyperscale' - */ - edition: DatabaseEdition; +export interface DataWarehouseUserActivities extends ProxyResource { /** - * The name of the service objective to assign to the database. Possible values include: - * 'System', 'System0', 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', - * 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', - * 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', - * 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500c', - * 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', - * 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', - * 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' - */ - serviceObjectiveName: ServiceObjectiveName; - /** - * The maximum size for the newly imported database. + * Count of running and suspended queries. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxSizeBytes: string; + readonly activeQueriesCount?: number; } /** - * Represents database metrics. + * Contains information of current state for an Azure SQL Database, Server or Elastic Pool + * Recommended Action. */ -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; +export interface RecommendedActionStateInfo { /** - * The min value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Current state the recommended action is in. Some commonly used states are: Active -> + * recommended action is active and no action has been taken yet. Pending -> recommended + * action is approved for and is awaiting execution. Executing -> recommended action is being + * applied on the user database. Verifying -> recommended action was applied and is being + * verified of its usefulness by the system. Success -> recommended action was applied and + * improvement found during verification. Pending Revert -> verification found little or no + * improvement so recommended action is queued for revert or user has manually reverted. + * Reverting -> changes made while applying recommended action are being reverted on the user + * database. Reverted -> successfully reverted the changes made by recommended action on user + * database. Ignored -> user explicitly ignored/discarded the recommended action. Possible + * values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', + * 'RevertCancelled', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Monitoring', 'Resolved', + * 'Success', 'Error' */ - readonly minimum?: number; + currentValue: RecommendedActionCurrentState; /** - * The metric timestamp (ISO-8601 format). + * Gets who initiated the execution of this recommended action. Possible Value are: User -> + * When user explicity notified system to apply the recommended action. System -> When + * auto-execute status of this advisor was set to 'Enabled', in which case the system applied it. + * Possible values include: 'User', 'System' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly timestamp?: Date; + readonly actionInitiatedBy?: RecommendedActionInitiatedBy; /** - * The total value of the metric. + * Gets the time when the state was last modified * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly total?: number; + readonly lastModified?: Date; } /** - * A database metric name. + * Contains information for manual implementation for an Azure SQL Database, Server or Elastic Pool + * Recommended Action. */ -export interface MetricName { +export interface RecommendedActionImplementationInfo { /** - * The name of the database metric. + * Gets the method in which this recommended action can be manually implemented. e.g., TSql, + * AzurePowerShell. Possible values include: 'TSql', 'AzurePowerShell' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly value?: string; + readonly method?: ImplementationMethod; /** - * The friendly name of the database metric. + * Gets the manual implementation script. e.g., T-SQL script that could be executed on the + * database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly localizedValue?: string; + readonly script?: string; } /** - * Database metrics. + * Contains error information for an Azure SQL Database, Server or Elastic Pool Recommended Action. */ -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; +export interface RecommendedActionErrorInfo { /** - * The end time for the metric (ISO-8601 format). + * Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, + * IndexAlreadyExists * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly endTime?: Date; + readonly errorCode?: string; /** - * The time step to be used to summarize the metric values. + * Gets whether the error could be ignored and recommended action could be retried. Possible + * values are: Yes/No. Possible values include: 'Yes', 'No' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly timeGrain?: string; + readonly isRetryable?: IsRetryable; +} + +/** + * Contains information of estimated or observed impact on various metrics for an Azure SQL + * Database, Server or Elastic Pool Recommended Action. + */ +export interface RecommendedActionImpactRecord { /** - * The unit of the metric. Possible values include: 'count', 'bytes', 'seconds', 'percent', - * 'countPerSecond', 'bytesPerSecond' + * Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, + * NumberOfQueriesAffected. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unit?: UnitType; + readonly dimensionName?: string; /** - * The name information for the metric. + * Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, + * NumberOfQueriesAffected. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: MetricName; + readonly unit?: string; /** - * The metric values for the specified time window and timestep. + * Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricValues?: MetricValue[]; -} - -/** - * A metric availability value. - */ -export interface MetricAvailability { + readonly absoluteValue?: number; /** - * The length of retention for the database metric. + * Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in + * Megabytes * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly retention?: string; + readonly changeValueAbsolute?: number; /** - * The granularity of the database metric. + * Gets the relative change in the value of this dimension. e.g., Relative Disk space change in + * Percentage * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly timeGrain?: string; + readonly changeValueRelative?: number; } /** - * A database metric definition. + * Contains time series of various impacted metrics for an Azure SQL Database, Server or Elastic + * Pool Recommended Action. */ -export interface MetricDefinition { +export interface RecommendedActionMetricInfo { /** - * The name information for the metric. + * Gets the name of the metric. e.g., CPU, Number of Queries. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: MetricName; + readonly metricName?: string; /** - * The primary aggregation type defining how metric values are displayed. Possible values - * include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' + * Gets the unit in which metric is measured. e.g., DTU, Frequency * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly primaryAggregationType?: PrimaryAggregationType; + readonly unit?: string; /** - * The resource uri of the database. + * Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour) * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resourceUri?: string; + readonly timeGrain?: string; /** - * The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' + * Gets the start time of time interval given by this MetricInfo. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unit?: UnitDefinitionType; + readonly startTime?: Date; /** - * The list of database metric availabilities for the metric. + * Gets the value of the metric in the time interval given by this MetricInfo. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricAvailabilities?: MetricAvailability[]; + readonly value?: number; } /** - * Represents recommended elastic pool metric. + * Database, Server or Elastic Pool Recommended Action. */ -export interface RecommendedElasticPoolMetric { - /** - * The time of metric (ISO8601 format). - */ - dateTime?: Date; +export interface RecommendedAction extends ProxyResource { /** - * Gets or sets the DTUs (Database Transaction Units). See - * https://azure.microsoft.com/documentation/articles/sql-database-what-is-a-dtu/ - */ - dtu?: number; - /** - * Gets or sets size in gigabytes. + * Resource kind. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sizeGB?: number; -} - -/** - * Represents a recommended elastic pool. - */ -export interface RecommendedElasticPool extends ProxyResource { + readonly kind?: string; /** - * The edition of the recommended elastic pool. The ElasticPoolEdition enumeration contains all - * the valid editions. Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', - * 'BusinessCritical' + * Resource location. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseEdition?: ElasticPoolEdition; + readonly location?: string; /** - * The DTU for the recommended elastic pool. + * Gets the reason for recommending this action. e.g., DuplicateIndex + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dtu?: number; + readonly recommendationReason?: string; /** - * The minimum DTU for the database. + * Gets the time since when this recommended action is valid. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - databaseDtuMin?: number; + readonly validSince?: Date; /** - * The maximum DTU for the database. + * Gets time when this recommended action was last refreshed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - databaseDtuMax?: number; + readonly lastRefresh?: Date; /** - * Gets storage size in megabytes. + * Gets the info of the current state the recommended action is in. */ - storageMB?: number; + state: RecommendedActionStateInfo; /** - * The observation period start (ISO8601 format). + * Gets if this recommended action is actionable by user * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly observationPeriodStart?: Date; + readonly isExecutableAction?: boolean; /** - * The observation period start (ISO8601 format). + * Gets if changes applied by this recommended action can be reverted by user * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly observationPeriodEnd?: Date; + readonly isRevertableAction?: boolean; /** - * Gets maximum observed DTU. + * Gets if this recommended action was suggested some time ago but user chose to ignore this and + * system added a new recommended action again. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maxObservedDtu?: number; + readonly isArchivedAction?: boolean; /** - * Gets maximum observed storage in megabytes. + * Gets the time when system started applying this recommended action on the user resource. e.g., + * index creation start time * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maxObservedStorageMB?: number; + readonly executeActionStartTime?: Date; /** - * The list of databases in this pool. Expanded property + * Gets the time taken for applying this recommended action on user resource. e.g., time taken + * for index creation * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databases?: TrackedResource[]; + readonly executeActionDuration?: string; /** - * The list of databases housed in the server. Expanded property + * Gets the time when system started reverting changes of this recommended action on user + * resource. e.g., time when index drop is executed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metrics?: RecommendedElasticPoolMetric[]; -} - -/** - * Represents a database replication link. - */ -export interface ReplicationLink extends ProxyResource { + readonly revertActionStartTime?: Date; /** - * Location of the server that contains this firewall rule. + * Gets the time taken for reverting changes of this recommended action on user resource. e.g., + * time taken for dropping the created index. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly revertActionDuration?: string; /** - * Legacy value indicating whether termination is allowed. Currently always returns true. + * Gets if approval for applying this recommended action was given by user/system. Possible + * values include: 'User', 'System' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isTerminationAllowed?: boolean; + readonly executeActionInitiatedBy?: RecommendedActionInitiatedBy; /** - * Replication mode of this replication link. + * Gets the time when this recommended action was approved for execution. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationMode?: string; + readonly executeActionInitiatedTime?: Date; /** - * The name of the server hosting the partner database. + * Gets if approval for reverting this recommended action was given by user/system. Possible + * values include: 'User', 'System' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerServer?: string; + readonly revertActionInitiatedBy?: RecommendedActionInitiatedBy; /** - * The name of the partner database. + * Gets the time when this recommended action was approved for revert. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerDatabase?: string; + readonly revertActionInitiatedTime?: Date; /** - * The Azure Region of the partner database. + * Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium + * Impact and 3 - High Impact * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerLocation?: string; + readonly score?: number; /** - * The role of the database in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' + * Gets the implementation details of this recommended action for user to apply it manually. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly role?: ReplicationRole; + readonly implementationDetails?: RecommendedActionImplementationInfo; /** - * The role of the partner database in the replication link. Possible values include: 'Primary', - * 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' + * Gets the error details if and why this recommended action is put to error state. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly partnerRole?: ReplicationRole; + readonly errorDetails?: RecommendedActionErrorInfo; /** - * The start time for the replication link. + * Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated + * Disk Space change * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly startTime?: Date; + readonly estimatedImpact?: RecommendedActionImpactRecord[]; /** - * The percentage of seeding complete for the replication link. + * Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual + * Disk Space change * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly percentComplete?: number; + readonly observedImpact?: RecommendedActionImpactRecord[]; /** - * The replication state for the replication link. Possible values include: 'PENDING', 'SEEDING', - * 'CATCH_UP', 'SUSPENDED' + * Gets the time series info of metrics for this recommended action e.g., CPU consumption time + * series * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationState?: ReplicationState; -} - -/** - * An server Active Directory Administrator. - */ -export interface ServerAzureADAdministrator extends ProxyResource { - /** - * The server administrator login value. - */ - login: string; + readonly timeSeries?: RecommendedActionMetricInfo[]; /** - * The server administrator Sid (Secure ID). + * Gets the linked objects, if any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sid: string; + readonly linkedObjects?: string[]; /** - * The server Active Directory Administrator tenant id. + * Gets additional details specific to this recommended action. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tenantId: string; + readonly details?: { [propertyName: string]: any }; } /** - * Server communication link. + * Database, Server or Elastic Pool Advisor. */ -export interface ServerCommunicationLink extends ProxyResource { +export interface Advisor extends ProxyResource { /** - * The state. + * Resource kind. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; - /** - * The name of the partner server. - */ - partnerServer: string; + readonly kind?: string; /** - * Communication link location. + * Resource location. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly location?: string; /** - * Communication link kind. This property is used for Azure Portal metadata. + * Gets the status of availability of this advisor to customers. Possible values are 'GA', + * 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'. Possible values include: 'GA', + * 'PublicPreview', 'LimitedPublicPreview', 'PrivatePreview' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; -} - -/** - * Represents a database service objective. - */ -export interface ServiceObjective extends ProxyResource { + readonly advisorStatus?: AdvisorStatus; /** - * The name for the service objective. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Gets the auto-execute status (whether to let the system execute the recommendations) of this + * advisor. Possible values are 'Enabled' and 'Disabled'. Possible values include: 'Enabled', + * 'Disabled', 'Default' */ - readonly serviceObjectiveName?: string; + autoExecuteStatus: AutoExecuteStatus; /** - * Gets whether the service level objective is the default service objective. + * Gets the resource from which current value of auto-execute status is inherited. Auto-execute + * status can be set on (and inherited from) different levels in the resource hierarchy. Possible + * values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is + * not explicitly set on any level). Possible values include: 'Default', 'Subscription', + * 'Server', 'ElasticPool', 'Database' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isDefault?: boolean; + readonly autoExecuteStatusInheritedFrom?: AutoExecuteStatusInheritedFrom; /** - * Gets whether the service level objective is a system service objective. + * Gets that status of recommendations for this advisor and reason for not having any + * recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations + * available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing + * well), etc. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isSystem?: boolean; + readonly recommendationsStatus?: string; /** - * The description for the service level objective. + * Gets the time when the current resource was analyzed for recommendations by this advisor. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly lastChecked?: Date; /** - * Gets whether the service level objective is enabled. + * Gets the recommended actions for this advisor. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly enabled?: boolean; + readonly recommendedActions?: RecommendedAction[]; } /** - * Represents the activity on an elastic pool. + * Automatic tuning properties for individual advisors. */ -export interface ElasticPoolActivity extends ProxyResource { +export interface AutomaticTuningOptions { /** - * The geo-location where the resource lives + * Automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default' */ - location?: string; + desiredState?: AutomaticTuningOptionModeDesired; /** - * The time the operation finished (ISO8601 format). + * Automatic tuning option actual state. Possible values include: 'Off', 'On' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly endTime?: Date; + readonly actualState?: AutomaticTuningOptionModeActual; /** - * The error code if available. + * 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 errorCode?: number; + readonly reasonCode?: number; /** - * The error message if available. + * Reason description if desired and actual state are different. Possible values include: + * 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', + * 'QueryStoreReadOnly', 'NotSupported' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorMessage?: string; + readonly reasonDesc?: AutomaticTuningDisabledReason; +} + +/** + * Database-level Automatic Tuning. + */ +export interface DatabaseAutomaticTuning extends ProxyResource { /** - * The error severity if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Automatic tuning desired state. Possible values include: 'Inherit', 'Custom', 'Auto', + * 'Unspecified' */ - readonly errorSeverity?: number; + desiredState?: AutomaticTuningMode; /** - * The operation name. + * Automatic tuning actual state. Possible values include: 'Inherit', 'Custom', 'Auto', + * 'Unspecified' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operation?: string; + readonly actualState?: AutomaticTuningMode; /** - * The unique operation ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Automatic tuning options definition. */ - readonly operationId?: string; + options?: { [propertyName: string]: AutomaticTuningOptions }; +} + +/** + * A database column resource. + */ +export interface DatabaseColumn extends ProxyResource { /** - * The percentage complete if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The column data type. Possible values include: 'image', 'text', 'uniqueidentifier', 'date', + * 'time', 'datetime2', 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', + * 'money', 'datetime', 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', + * 'smallmoney', 'bigint', 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', + * 'binary', 'char', 'timestamp', 'nvarchar', 'nchar', 'xml', 'sysname' */ - readonly percentComplete?: number; + columnType?: ColumnDataType; /** - * The requested max DTU per database if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The table temporal type. Possible values include: 'NonTemporalTable', 'HistoryTable', + * 'SystemVersionedTemporalTable' */ - readonly requestedDatabaseDtuMax?: number; + temporalType?: TableTemporalType; /** - * The requested min DTU per database if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not the column belongs to a memory optimized table. */ - readonly requestedDatabaseDtuMin?: number; + memoryOptimized?: boolean; /** - * The requested DTU for the pool if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not the column is computed. */ - readonly requestedDtu?: number; + isComputed?: boolean; +} + +/** + * An export managed database operation result resource. + */ +export interface DatabaseExtensions extends ProxyResource { /** - * The requested name for the elastic pool if available. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage key type. Possible values include: 'SharedAccessKey', 'StorageAccessKey' */ - readonly requestedElasticPoolName?: string; + storageKeyType: StorageKeyType; /** - * 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.** + * Storage key. */ - readonly requestedStorageLimitInGB?: number; + storageKey: string; /** - * The name of the elastic pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage Uri. */ - readonly elasticPoolName?: string; + storageUri: string; +} + +/** + * An Extension operation result resource. + */ +export interface ImportExportExtensionsOperationResult extends ProxyResource { /** - * The name of the server the elastic pool is in. + * Request Id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serverName?: string; + readonly requestId?: string; /** - * The time the operation started (ISO8601 format). + * Request type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly startTime?: Date; + readonly requestType?: string; /** - * The current state of the operation. + * Last modified time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly lastModifiedTime?: string; /** - * The requested storage limit in MB. + * Server name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedStorageLimitInMB?: number; + readonly serverName?: string; /** - * The requested per database DTU guarantee. + * Database name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedDatabaseDtuGuarantee?: number; + readonly databaseName?: string; /** - * The requested per database DTU cap. + * Operation status. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedDatabaseDtuCap?: number; + readonly status?: string; /** - * The requested DTU guarantee. + * Error message. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedDtuGuarantee?: number; + readonly errorMessage?: string; } /** - * Represents the activity on an elastic pool. + * A database operation. */ -export interface ElasticPoolDatabaseActivity extends ProxyResource { - /** - * The geo-location where the resource lives - */ - location?: string; +export interface DatabaseOperation extends ProxyResource { /** - * The database name. + * The name of the database the operation is being performed on. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly databaseName?: string; /** - * The 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. + * The name of operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorCode?: number; + readonly operation?: string; /** - * The error message if available. + * The friendly name of operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorMessage?: string; + readonly operationFriendlyName?: string; /** - * The error severity if available. + * The percentage of the operation completed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorSeverity?: number; + readonly percentComplete?: number; /** - * The operation name. + * The name of the server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operation?: string; + readonly serverName?: string; /** - * The unique operation ID. + * The operation start time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operationId?: string; + readonly startTime?: Date; /** - * The percentage complete if available. + * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', + * 'CancelInProgress', 'Cancelled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly percentComplete?: number; + readonly state?: ManagementOperationState; /** - * The name for the elastic pool the database is moving into if available. + * The operation error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedElasticPoolName?: string; + readonly errorCode?: number; /** - * The name of the current elastic pool the database is in if available. + * The operation error description. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly currentElasticPoolName?: string; + readonly errorDescription?: string; /** - * The name of the current service objective if available. + * The operation error severity. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly currentServiceObjective?: string; + readonly errorSeverity?: number; /** - * The name of the requested service objective if available. + * 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 requestedServiceObjective?: string; + readonly isUserError?: boolean; /** - * The name of the server the elastic pool is in. + * The estimated completion time of the operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serverName?: string; + readonly estimatedCompletionTime?: Date; /** - * The time the operation started (ISO8601 format). + * The operation description. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly startTime?: Date; + readonly description?: string; /** - * The current state of the operation. + * Whether the operation can be cancelled. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly isCancellable?: boolean; } /** - * The impact of an operation, both in absolute and relative terms. + * A database schema resource. */ -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; +export interface DatabaseSchema extends ProxyResource { } /** - * Represents a database recommended index. + * Metadata pertaining to creation and last modification of the resource. */ -export interface RecommendedIndex extends ProxyResource { +export interface SystemData { /** - * The proposed index action. You can create a missing index, drop an unused index, or rebuild an - * existing index to improve its performance. Possible values include: 'Create', 'Drop', - * 'Rebuild' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The identity that created the resource. */ - readonly action?: RecommendedIndexAction; + createdBy?: string; /** - * The current recommendation state. Possible values include: 'Active', 'Pending', 'Executing', - * 'Verifying', 'Pending Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', - * 'Success' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - readonly state?: RecommendedIndexState; + createdByType?: CreatedByType; /** - * The UTC datetime showing when this resource was created (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The timestamp of resource creation (UTC). */ - readonly created?: Date; + createdAt?: Date; /** - * The UTC datetime of when was this resource last changed (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The identity that last modified the resource. */ - readonly lastModified?: Date; + lastModifiedBy?: string; /** - * The type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, CLUSTERED COLUMNSTORE). Possible - * values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - readonly indexType?: RecommendedIndexType; + lastModifiedByType?: CreatedByType; /** - * The schema where table to build index over resides - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The timestamp of resource last modification (UTC) */ - readonly schema?: string; + lastModifiedAt?: Date; +} + +/** + * A database security alert policy. + */ +export interface DatabaseSecurityAlertPolicy extends ProxyResource { /** - * The table on which to build index. + * SystemData of SecurityAlertPolicyResource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly table?: string; + readonly systemData?: SystemData; /** - * Columns over which to build index - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been + * applied yet on the specific database. Possible values include: 'Enabled', 'Disabled' */ - readonly columns?: string[]; + state: SecurityAlertsPolicyState; /** - * The list of column names to be included in the index - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - readonly includedColumns?: string[]; + disabledAlerts?: string[]; /** - * The full build index script - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies an array of e-mail addresses to which the alert is sent. */ - readonly indexScript?: string; + emailAddresses?: string[]; /** - * The estimated impact of doing recommended index action. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies that the alert is sent to the account administrators. */ - readonly estimatedImpact?: OperationImpact[]; + emailAccountAdmins?: boolean; /** - * The values reported after index action is complete. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob + * storage will hold all Threat Detection audit logs. */ - readonly reportedImpact?: OperationImpact[]; -} - -/** - * Represents a database transparent data encryption configuration. - */ -export interface TransparentDataEncryption extends ProxyResource { + storageEndpoint?: string; /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the identifier key of the Threat Detection audit storage account. */ - readonly location?: string; + storageAccountAccessKey?: string; /** - * The status of the database transparent data encryption. Possible values include: 'Enabled', - * 'Disabled' + * Specifies the number of days to keep in the Threat Detection audit logs. + */ + retentionDays?: number; + /** + * Specifies the UTC creation time of the policy. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status?: TransparentDataEncryptionStatus; + readonly creationTime?: Date; } /** - * A Slo Usage Metric. + * A database table resource. */ -export interface SloUsageMetric { - /** - * The serviceLevelObjective for SLO usage metric. Possible values include: 'System', 'System0', - * 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L', 'System4L', 'Free', - * 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', - * 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', - * 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', - * 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', - * 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', - * 'DS1500', 'DS2000', 'ElasticPool' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serviceLevelObjective?: ServiceObjectiveName; +export interface DatabaseTable extends ProxyResource { /** - * The serviceLevelObjectiveId for SLO usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The table temporal type. Possible values include: 'NonTemporalTable', 'HistoryTable', + * 'SystemVersionedTemporalTable' */ - readonly serviceLevelObjectiveId?: string; + temporalType?: TableTemporalType; /** - * Gets or sets inRangeTimeRatio for SLO usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not the table is memory optimized. */ - readonly inRangeTimeRatio?: number; + memoryOptimized?: boolean; } /** - * Represents a Service Tier Advisor. + * Usage metric of a database. */ -export interface ServiceTierAdvisor extends ProxyResource { - /** - * The observation period start (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly observationPeriodStart?: Date; - /** - * The observation period start (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly observationPeriodEnd?: Date; +export interface DatabaseUsage extends ProxyResource { /** - * The activeTimeRatio for service tier advisor. + * User-readable name of the metric. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly activeTimeRatio?: number; + readonly displayName?: string; /** - * Gets or sets minDtu for service tier advisor. + * Current value of the metric. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly minDtu?: number; + readonly currentValue?: number; /** - * Gets or sets avgDtu for service tier advisor. + * Boundary value of the metric. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly avgDtu?: number; + readonly limit?: number; /** - * Gets or sets maxDtu for service tier advisor. + * Unit of the metric. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maxDtu?: number; + readonly unit?: string; +} + +/** + * Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. + */ +export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { /** - * Gets or sets maxSizeInGB for service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The rule baseline result */ - readonly maxSizeInGB?: number; + result: string[]; +} + +/** + * A database vulnerability assessment rule baseline. + */ +export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { /** - * Gets or sets serviceLevelObjectiveUsageMetrics for the service tier advisor. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The rule baseline result */ - readonly serviceLevelObjectiveUsageMetrics?: SloUsageMetric[]; + baselineResults: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; +} + +/** + * Properties of a vulnerability assessment scan error. + */ +export interface VulnerabilityAssessmentScanError { /** - * Gets or sets currentServiceLevelObjective for service tier advisor. + * The error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly currentServiceLevelObjective?: string; + readonly code?: string; /** - * Gets or sets currentServiceLevelObjectiveId for service tier advisor. + * The error message. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly currentServiceLevelObjectiveId?: string; + readonly message?: string; +} + +/** + * A vulnerability assessment scan record. + */ +export interface VulnerabilityAssessmentScanRecord extends ProxyResource { /** - * Gets or sets usageBasedRecommendationServiceLevelObjective for service tier advisor. + * The scan ID. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly usageBasedRecommendationServiceLevelObjective?: string; + readonly scanId?: string; /** - * Gets or sets usageBasedRecommendationServiceLevelObjectiveId for service tier advisor. + * The scan trigger type. Possible values include: 'OnDemand', 'Recurring' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly usageBasedRecommendationServiceLevelObjectiveId?: string; + readonly triggerType?: VulnerabilityAssessmentScanTriggerType; /** - * Gets or sets databaseSizeBasedRecommendationServiceLevelObjective for service tier advisor. + * The scan status. Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseSizeBasedRecommendationServiceLevelObjective?: string; + readonly state?: VulnerabilityAssessmentScanState; /** - * Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId for service tier advisor. + * The scan start time (UTC). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseSizeBasedRecommendationServiceLevelObjectiveId?: string; + readonly startTime?: Date; /** - * Gets or sets disasterPlanBasedRecommendationServiceLevelObjective for service tier advisor. + * The scan end time (UTC). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly disasterPlanBasedRecommendationServiceLevelObjective?: string; + readonly endTime?: Date; /** - * Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId for service tier advisor. + * The scan errors. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly disasterPlanBasedRecommendationServiceLevelObjectiveId?: string; + readonly errors?: VulnerabilityAssessmentScanError[]; /** - * Gets or sets overallRecommendationServiceLevelObjective for service tier advisor. + * The scan results storage container path. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly overallRecommendationServiceLevelObjective?: string; + readonly storageContainerPath?: string; /** - * Gets or sets overallRecommendationServiceLevelObjectiveId for service tier advisor. + * The number of failed security checks. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly overallRecommendationServiceLevelObjectiveId?: string; + readonly numberOfFailedSecurityChecks?: number; +} + +/** + * A database Vulnerability Assessment scan export resource. + */ +export interface DatabaseVulnerabilityAssessmentScansExport extends ProxyResource { /** - * Gets or sets confidence for service tier advisor. + * 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 confidence?: number; + readonly exportedReportLocation?: string; } /** - * Represents a database transparent data encryption Scan. + * Properties of a Vulnerability Assessment recurring scans. */ -export interface TransparentDataEncryptionActivity extends ProxyResource { +export interface VulnerabilityAssessmentRecurringScansProperties { /** - * Resource location. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Recurring scans state. */ - readonly location?: string; + isEnabled?: boolean; /** - * The status of the database. Possible values include: 'Encrypting', 'Decrypting' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies that the schedule scan notification will be is sent to the subscription + * administrators. Default value: true. */ - readonly status?: TransparentDataEncryptionActivityStatus; + emailSubscriptionAdmins?: boolean; /** - * The percent complete of the transparent data encryption scan for a database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies an array of e-mail addresses to which the scan notification is sent. */ - readonly percentComplete?: number; + emails?: string[]; } /** - * Represents server metrics. + * A database vulnerability assessment. */ -export interface ServerUsage { +export interface DatabaseVulnerabilityAssessment extends ProxyResource { /** - * Name of the server usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level + * vulnerability assessment policy doesn't set */ - readonly name?: string; + storageContainerPath?: string; /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly resourceName?: string; + storageContainerSasKey?: string; /** - * The metric display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the identifier key of the storage account for vulnerability assessment scan results. + * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ - readonly displayName?: string; + storageAccountAccessKey?: string; /** - * The current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The recurring scans settings */ - readonly currentValue?: number; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** + * An ARM Resource SKU. + */ +export interface Sku { /** - * The current limit of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the SKU, typically, a letter + Number code, e.g. P3. */ - readonly limit?: number; + name: string; /** - * The units of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The tier or edition of the particular SKU, e.g. Basic, Premium. */ - readonly unit?: string; + tier?: string; /** - * The next reset time for the metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly nextResetTime?: Date; + capacity?: number; } /** - * The database usages. + * A database resource. */ -export interface DatabaseUsage { +export interface Database extends TrackedResource { /** - * The name of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The database SKU. + * + * The list of SKUs may vary by region and support offer. To determine the SKUs (including the + * SKU name, tier/edition, family, and capacity) that are available to your subscription in an + * Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: + * + * ```azurecli + * az sql db list-editions -l -o table + * ```` + * + * ```powershell + * Get-AzSqlServerServiceObjective -Location + * ```` */ - readonly name?: string; + sku?: Sku; /** - * The name of the resource. + * Kind of database. This is metadata used for the Azure portal experience. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resourceName?: string; + readonly kind?: string; /** - * The usage metric display name. + * Resource that manages the database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly displayName?: string; + readonly managedBy?: string; /** - * The current value of the usage metric. - * **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. Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', + * 'Restore', 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', + * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' */ - readonly currentValue?: number; + createMode?: CreateMode; /** - * The current limit of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The collation of the database. */ - readonly limit?: number; + collation?: string; /** - * The units of the usage metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The max size of the database expressed in bytes. */ - readonly unit?: string; + maxSizeBytes?: number; /** - * The next reset time for the usage metric (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the sample schema to apply when creating this database. Possible values include: + * 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' */ - readonly nextResetTime?: Date; -} - -/** - * Automatic tuning properties for individual advisors. - */ -export interface AutomaticTuningOptions { + sampleName?: SampleName; /** - * Automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default' + * The resource identifier of the elastic pool containing this database. */ - desiredState?: AutomaticTuningOptionModeDesired; + elasticPoolId?: string; /** - * Automatic tuning option actual state. Possible values include: 'Off', 'On' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the source database associated with create operation of this + * database. */ - readonly actualState?: AutomaticTuningOptionModeActual; + sourceDatabaseId?: string; /** - * Reason code if desired and actual state are different. + * The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', + * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', + * 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', + * 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly reasonCode?: number; + readonly status?: DatabaseStatus; /** - * Reason description if desired and actual state are different. Possible values include: - * 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', - * 'QueryStoreReadOnly', 'NotSupported' + * The ID of the database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly reasonDesc?: AutomaticTuningDisabledReason; -} - -/** - * Database-level Automatic Tuning. - */ -export interface DatabaseAutomaticTuning extends ProxyResource { - /** - * Automatic tuning desired state. Possible values include: 'Inherit', 'Custom', 'Auto', - * 'Unspecified' - */ - desiredState?: AutomaticTuningMode; + readonly databaseId?: string; /** - * Automatic tuning actual state. Possible values include: 'Inherit', 'Custom', 'Auto', - * 'Unspecified' + * The creation date of the database (ISO8601 format). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly actualState?: AutomaticTuningMode; + readonly creationDate?: Date; /** - * Automatic tuning options definition. + * The current service level objective name of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - options?: { [propertyName: string]: AutomaticTuningOptions }; -} - -/** - * The server encryption protector. - */ -export interface EncryptionProtector extends ProxyResource { + readonly currentServiceObjectiveName?: string; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * 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 kind?: string; + readonly requestedServiceObjectiveName?: string; /** - * Resource location. + * The default secondary region for this database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly defaultSecondaryLocation?: string; /** - * Subregion of the encryption protector. + * 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 subregion?: string; + readonly failoverGroupId?: string; /** - * The name of the server key. + * Specifies the point in time (ISO8601 format) of the source database that will be restored to + * create the new database. */ - serverKeyName?: string; + restorePointInTime?: Date; /** - * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * Specifies the time that the database was deleted. */ - serverKeyType: ServerKeyType; + sourceDatabaseDeletionDate?: Date; /** - * The URI of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the recovery point associated with create operation of this + * database. */ - readonly uri?: string; + recoveryServicesRecoveryPointId?: string; /** - * Thumbprint of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the long term retention backup associated with create operation of + * this database. */ - readonly thumbprint?: string; -} - -/** - * Read-write endpoint of the failover group instance. - */ -export interface FailoverGroupReadWriteEndpoint { + longTermRetentionBackupResourceId?: string; /** - * Failover policy of the read-write endpoint for the failover group. If failoverPolicy is - * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: - * 'Manual', 'Automatic' + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; + recoverableDatabaseId?: string; /** - * Grace period before failover with data loss is attempted for the read-write endpoint. If - * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. + * The resource identifier of the restorable dropped database associated with create operation of + * this database. */ - failoverWithDataLossGracePeriodMinutes?: number; -} - -/** - * Read-only endpoint of the failover group instance. - */ -export interface FailoverGroupReadOnlyEndpoint { + restorableDroppedDatabaseId?: string; /** - * Failover policy of the read-only endpoint for the failover group. Possible values include: - * 'Disabled', 'Enabled' + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; -} - -/** - * Partner server information for the failover group. - */ -export interface PartnerInfo { + catalogCollation?: CatalogCollationType; /** - * Resource identifier of the partner server. + * Whether or not this database is zone redundant, which means the replicas of this database will + * be spread across multiple availability zones. */ - id: string; + zoneRedundant?: boolean; /** - * Geo location of the partner server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. Possible + * values include: 'LicenseIncluded', 'BasePrice' */ - readonly location?: string; + licenseType?: DatabaseLicenseType; /** - * Replication role of the partner server. Possible values include: 'Primary', 'Secondary' + * The max log size for this database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationRole?: FailoverGroupReplicationRole; -} - -/** - * A failover group. - */ -export interface FailoverGroup extends ProxyResource { + readonly maxLogSizeBytes?: number; /** - * Resource location. + * 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 location?: string; + readonly earliestRestoreDate?: Date; /** - * Resource tags. + * 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. Possible values include: 'Enabled', 'Disabled' */ - tags?: { [propertyName: string]: string }; + readScale?: DatabaseReadScale; /** - * Read-write endpoint of the failover group instance. + * The number of secondary replicas associated with the database that are used to provide high + * availability. */ - readWriteEndpoint: FailoverGroupReadWriteEndpoint; + highAvailabilityReplicaCount?: number; /** - * Read-only endpoint of the failover group instance. + * The secondary type of the database if it is a secondary. Valid values are Geo and Named. + * Possible values include: 'Geo', 'Named' */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + secondaryType?: SecondaryType; /** - * Local replication role of the failover group instance. Possible values include: 'Primary', - * 'Secondary' + * The name and tier of the SKU. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationRole?: FailoverGroupReplicationRole; + readonly currentSku?: Sku; /** - * Replication state of the failover group instance. + * Time in minutes after which database is automatically paused. A value of -1 means that + * automatic pause is disabled + */ + autoPauseDelay?: number; + /** + * The storage account type used to store backups for this database. Possible values include: + * 'Geo', 'Local', 'Zone' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationState?: string; + readonly currentBackupStorageRedundancy?: CurrentBackupStorageRedundancy; /** - * List of partner server information for the failover group. + * The storage account type to be used to store backups for this database. Possible values + * include: 'Geo', 'Local', 'Zone' */ - partnerServers: PartnerInfo[]; + requestedBackupStorageRedundancy?: RequestedBackupStorageRedundancy; /** - * List of databases in the failover group. + * Minimal capacity that database will always have allocated, if not paused */ - databases?: string[]; + minCapacity?: number; + /** + * The date when database was paused by user configuration or action(ISO8601 format). Null if the + * database is ready. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly pausedDate?: Date; + /** + * The date when database was resumed by user action or database login (ISO8601 format). Null if + * the database is paused. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resumedDate?: Date; + /** + * Maintenance configuration id assigned to the database. This configuration defines the period + * when the maintenance updates will occur. + */ + maintenanceConfigurationId?: string; } /** - * A failover group update request. + * A database resource. */ -export interface FailoverGroupUpdate { +export interface DatabaseUpdate { /** - * Read-write endpoint of the failover group instance. + * The name and tier of the SKU. */ - readWriteEndpoint?: FailoverGroupReadWriteEndpoint; + sku?: Sku; /** - * Read-only endpoint of the failover group instance. + * Specifies the mode of database creation. + * + * Default: regular database creation. + * + * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified + * as the resource ID of the source database. + * + * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId + * must be specified as the resource ID of the existing primary database. + * + * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing + * database. sourceDatabaseId must be specified as the resource ID of the existing database, and + * restorePointInTime must be specified. + * + * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be + * specified as the recoverable database resource ID to restore. + * + * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must + * be specified. If sourceDatabaseId is the database's original resource ID, then + * sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the + * restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. + * restorePointInTime may also be specified to restore from an earlier point in time. + * + * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention + * vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point + * resource ID. + * + * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse + * edition. Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', + * 'Restore', 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', + * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' */ - readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + createMode?: CreateMode; /** - * List of databases in the failover group. + * The collation of the database. */ - databases?: string[]; + collation?: string; /** - * Resource tags. + * The max size of the database expressed in bytes. */ - tags?: { [propertyName: string]: string }; -} - -/** - * Display metadata associated with the operation. - */ -export interface OperationDisplay { + maxSizeBytes?: number; /** - * The localized friendly form of the resource provider name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the sample schema to apply when creating this database. Possible values include: + * 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' */ - readonly provider?: string; + sampleName?: SampleName; /** - * 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.** + * The resource identifier of the elastic pool containing this database. */ - readonly resource?: string; + elasticPoolId?: string; /** - * The localized friendly name for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the source database associated with create operation of this + * database. */ - readonly operation?: string; + sourceDatabaseId?: string; /** - * The localized friendly description for the operation. + * The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', + * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', + * 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', + * 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; -} - -/** - * SQL REST API operation definition. - */ -export interface Operation { + readonly status?: DatabaseStatus; /** - * The name of the operation being performed on this particular object. + * The ID of the database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly databaseId?: string; /** - * The localized display information for this particular operation / action. + * The creation date of the database (ISO8601 format). * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly display?: OperationDisplay; + readonly creationDate?: Date; /** - * The intended executor of the operation. Possible values include: 'user', 'system' + * 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 origin?: OperationOrigin; + readonly currentServiceObjectiveName?: string; /** - * Additional descriptions for the operation. + * 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 properties?: { [propertyName: string]: any }; -} - -/** - * A server key. - */ -export interface ServerKey extends ProxyResource { + readonly requestedServiceObjectiveName?: string; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * The default secondary region for this database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - kind?: string; + readonly defaultSecondaryLocation?: string; /** - * Resource location. + * 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 location?: string; + readonly failoverGroupId?: string; /** - * Subregion of the server key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the point in time (ISO8601 format) of the source database that will be restored to + * create the new database. */ - readonly subregion?: string; + restorePointInTime?: Date; /** - * The server key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * Specifies the time that the database was deleted. */ - serverKeyType: ServerKeyType; + sourceDatabaseDeletionDate?: Date; /** - * The URI of the server key. + * The resource identifier of the recovery point associated with create operation of this + * database. */ - uri?: string; + recoveryServicesRecoveryPointId?: string; /** - * Thumbprint of the server key. + * The resource identifier of the long term retention backup associated with create operation of + * this database. */ - thumbprint?: string; + longTermRetentionBackupResourceId?: string; /** - * The server key creation date. + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - creationDate?: Date; -} - -/** - * Azure Active Directory identity configuration for a resource. - */ -export interface ResourceIdentity { + recoverableDatabaseId?: string; /** - * The Azure Active Directory principal id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the restorable dropped database associated with create operation of + * this database. */ - readonly principalId?: string; + restorableDroppedDatabaseId?: string; /** - * The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an - * Azure Active Directory principal for the resource. Possible values include: 'SystemAssigned' + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - type?: IdentityType; + catalogCollation?: CatalogCollationType; /** - * The Azure Active Directory tenant id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not this database is zone redundant, which means the replicas of this database will + * be spread across multiple availability zones. */ - readonly tenantId?: string; -} - -/** - * An Azure SQL Database server. - */ -export interface Server extends TrackedResource { + zoneRedundant?: boolean; /** - * The Azure Active Directory identity of the server. + * 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. Possible + * values include: 'LicenseIncluded', 'BasePrice' */ - identity?: ResourceIdentity; + licenseType?: DatabaseLicenseType; /** - * Kind of sql server. This is metadata used for the Azure portal experience. + * The max log size for this database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly maxLogSizeBytes?: number; /** - * Administrator username for the server. Once created it cannot be changed. + * 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.** */ - administratorLogin?: string; + readonly earliestRestoreDate?: Date; /** - * The administrator login password (required for server creation). + * 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. Possible values include: 'Enabled', 'Disabled' */ - administratorLoginPassword?: string; + readScale?: DatabaseReadScale; /** - * The version of the server. + * The number of secondary replicas associated with the database that are used to provide high + * availability. */ - version?: string; + highAvailabilityReplicaCount?: number; /** - * The state of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The secondary type of the database if it is a secondary. Valid values are Geo and Named. + * Possible values include: 'Geo', 'Named' */ - readonly state?: string; + secondaryType?: SecondaryType; /** - * The fully qualified domain name of the server. + * The name and tier of the SKU. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly fullyQualifiedDomainName?: string; -} - -/** - * An update request for an Azure SQL Database server. - */ -export interface ServerUpdate { + readonly currentSku?: Sku; /** - * Administrator username for the server. Once created it cannot be changed. + * Time in minutes after which database is automatically paused. A value of -1 means that + * automatic pause is disabled */ - administratorLogin?: string; + autoPauseDelay?: number; /** - * The administrator login password (required for server creation). + * The storage account type used to store backups for this database. Possible values include: + * 'Geo', 'Local', 'Zone' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - administratorLoginPassword?: string; + readonly currentBackupStorageRedundancy?: CurrentBackupStorageRedundancy; /** - * The version of the server. + * The storage account type to be used to store backups for this database. Possible values + * include: 'Geo', 'Local', 'Zone' */ - version?: string; + requestedBackupStorageRedundancy?: RequestedBackupStorageRedundancy; /** - * The state of the server. + * Minimal capacity that database will always have allocated, if not paused + */ + minCapacity?: number; + /** + * The date when database was paused by user configuration or action(ISO8601 format). Null if the + * database is ready. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly pausedDate?: Date; /** - * The fully qualified domain name of the server. + * 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 fullyQualifiedDomainName?: string; + readonly resumedDate?: Date; + /** + * Maintenance configuration id assigned to the database. This configuration defines the period + * when the maintenance updates will occur. + */ + maintenanceConfigurationId?: string; /** * Resource tags. */ @@ -1843,430 +1976,534 @@ export interface ServerUpdate { } /** - * An Azure SQL Database sync agent. + * Contains the information necessary to perform a resource move (rename). */ -export interface SyncAgent extends ProxyResource { +export interface ResourceMoveDefinition { /** - * Name of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The target ID for the resource */ - readonly syncAgentName?: string; + id: string; +} + +/** + * Contains the ARM resources for which to create private endpoint connection. + */ +export interface NetworkIsolationSettings { /** - * ARM resource id of the sync database in the sync agent. + * 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. */ - syncDatabaseId?: string; + storageAccountResourceId?: string; /** - * Last alive time of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly lastAliveTime?: Date; + sqlServerResourceId?: string; +} + +/** + * Contains the information necessary to perform import operation for existing database. + */ +export interface ImportExistingDatabaseDefinition { /** - * State of the sync agent. Possible values include: 'Online', 'Offline', 'NeverConnected' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage key type. Possible values include: 'SharedAccessKey', 'StorageAccessKey' */ - readonly state?: SyncAgentState; + storageKeyType: StorageKeyType; /** - * If the sync agent version is up to date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage key. */ - readonly isUpToDate?: boolean; + storageKey: string; /** - * Expiration time of the sync agent version. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage Uri. */ - readonly expiryTime?: Date; + storageUri: string; /** - * Version of the sync agent. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Administrator login name. */ - readonly version?: string; + administratorLogin: string; + /** + * Administrator login password. + */ + administratorLoginPassword: string; + /** + * Authentication type. + */ + authenticationType?: string; + /** + * Optional resource information to enable network isolation for request. + */ + networkIsolation?: NetworkIsolationSettings; } /** - * Properties of an Azure SQL Database sync agent key. + * Contains the private endpoint connection requests status. */ -export interface SyncAgentKeyProperties { +export interface PrivateEndpointConnectionRequestStatus { /** - * Key of sync agent. + * 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 syncAgentKey?: string; + readonly privateLinkServiceId?: string; + /** + * The connection name for the private endpoint. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; } /** - * An Azure SQL Database sync agent linked database. + * An ImportExport operation result resource. */ -export interface SyncAgentLinkedDatabase extends ProxyResource { +export interface ImportExportOperationResult extends ProxyResource { /** - * Type of the sync agent linked database. Possible values include: 'AzureSqlDatabase', - * 'SqlServerDatabase' + * Request Id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseType?: SyncMemberDbType; + readonly requestId?: string; /** - * Id of the sync agent linked database. + * Request type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseId?: string; + readonly requestType?: string; /** - * Description of the sync agent linked database. + * Queued time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly queuedTime?: string; /** - * Server name of the sync agent linked database. + * 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 of the sync agent linked database. + * Database name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly databaseName?: string; /** - * User 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 userName?: string; -} - -/** - * Properties of the sync database id. - */ -export interface SyncDatabaseIdProperties { + readonly status?: string; /** - * ARM resource id of sync database. + * Error message. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly errorMessage?: string; + /** + * Gets the status of private endpoints associated with this request. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnectionRequestStatus[]; } /** - * Properties of the column in the table of database full schema. + * Contains the information necessary to perform export database operation. */ -export interface SyncFullSchemaTableColumn { +export interface ExportDatabaseDefinition { /** - * Data size of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage key type. Possible values include: 'SharedAccessKey', 'StorageAccessKey' */ - readonly dataSize?: string; + storageKeyType: StorageKeyType; /** - * Data type of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage key. */ - readonly dataType?: string; + storageKey: string; /** - * Error id of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Storage Uri. */ - readonly errorId?: string; + storageUri: string; /** - * If there is error in the table. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Administrator login name. */ - readonly hasError?: boolean; + administratorLogin: string; /** - * If it is the primary key of the table. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Administrator login password. */ - readonly isPrimaryKey?: boolean; + administratorLoginPassword: string; /** - * Name of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Authentication type. */ - readonly name?: string; + authenticationType?: string; /** - * Quoted name of the column. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Optional resource information to enable network isolation for request. */ - readonly quotedName?: string; + networkIsolation?: NetworkIsolationSettings; } /** - * Properties of the table in the database full schema. + * A deleted server. */ -export interface SyncFullSchemaTable { +export interface DeletedServer extends ProxyResource { /** - * 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. + * The version of the deleted server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorId?: string; + readonly version?: string; /** - * If there is error in the table. + * The deletion time of the deleted server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly hasError?: boolean; + readonly deletionTime?: Date; /** - * Name of the table. + * The original ID of the server before deletion. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly originalId?: string; /** - * Quoted name of the table. + * The fully qualified domain name of the server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly quotedName?: string; + readonly fullyQualifiedDomainName?: string; } /** - * Properties of the database full schema. + * A elastic pool operation. */ -export interface SyncFullSchemaProperties { +export interface ElasticPoolOperation extends ProxyResource { /** - * List of tables in the database full schema. + * 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 tables?: SyncFullSchemaTable[]; + readonly elasticPoolName?: string; /** - * Last update time of the database schema. + * The name of operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastUpdateTime?: Date; -} - -/** - * Properties of an Azure SQL Database sync group log. - */ -export interface SyncGroupLogProperties { + readonly operation?: string; /** - * Timestamp of the sync group log. + * The friendly name of operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly timestamp?: Date; + readonly operationFriendlyName?: string; /** - * Type of the sync group log. Possible values include: 'All', 'Error', 'Warning', 'Success' + * The percentage of the operation completed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: SyncGroupLogType; + readonly percentComplete?: number; /** - * Source of the sync group log. + * The name of the server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly source?: string; + readonly serverName?: string; /** - * Details of the sync group log. + * The operation start time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly details?: string; + readonly startTime?: Date; /** - * TracingId of the sync group log. + * The operation state. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly tracingId?: string; + readonly state?: string; /** - * OperationStatus of the sync group log. + * The operation error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operationStatus?: string; -} - -/** - * Properties of column in sync group table. - */ -export interface SyncGroupSchemaTableColumn { + readonly errorCode?: number; /** - * Quoted name of sync group table column. + * The operation error description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - quotedName?: string; + readonly errorDescription?: string; /** - * Data size of the column. + * The operation error severity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataSize?: string; + readonly errorSeverity?: number; /** - * Data type of the column. + * Whether or not the error is a user error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataType?: string; -} - -/** - * Properties of table in sync group schema. - */ -export interface SyncGroupSchemaTable { + readonly isUserError?: boolean; /** - * List of columns in sync group schema. + * The estimated completion time of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - columns?: SyncGroupSchemaTableColumn[]; + readonly estimatedCompletionTime?: Date; /** - * Quoted name of sync group schema table. + * The operation description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - quotedName?: string; + 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; } /** - * Properties of sync group schema. + * Per database settings of an elastic pool. */ -export interface SyncGroupSchema { +export interface ElasticPoolPerDatabaseSettings { /** - * List of tables in sync group schema. + * The minimum capacity all databases are guaranteed. */ - tables?: SyncGroupSchemaTable[]; + minCapacity?: number; /** - * Name of master sync member where the schema is from. + * The maximum capacity any one database can consume. */ - masterSyncMemberName?: string; + maxCapacity?: number; } /** - * An Azure SQL Database sync group. + * An elastic pool. */ -export interface SyncGroup extends ProxyResource { +export interface ElasticPool extends TrackedResource { /** - * Sync interval of the sync group. + * The elastic pool SKU. + * + * The list of SKUs may vary by region and support offer. To determine the SKUs (including the + * SKU name, tier/edition, family, and capacity) that are available to your subscription in an + * Azure region, use the `Capabilities_ListByLocation` REST API or the following command: + * + * ```azurecli + * az sql elastic-pool list-editions -l -o table + * ```` */ - interval?: number; + sku?: Sku; /** - * Last sync time of the sync group. + * Kind of elastic pool. This is metadata used for the Azure portal experience. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastSyncTime?: Date; + readonly kind?: string; /** - * Conflict resolution policy of the sync group. Possible values include: 'HubWin', 'MemberWin' + * The state of the elastic pool. Possible values include: 'Creating', 'Ready', 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - conflictResolutionPolicy?: SyncConflictResolutionPolicy; + readonly state?: ElasticPoolState; /** - * ARM resource id of the sync database in the sync group. + * The creation date of the elastic pool (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - syncDatabaseId?: string; + readonly creationDate?: Date; /** - * User name for the sync group hub database credential. + * The storage limit for the database elastic pool in bytes. */ - hubDatabaseUserName?: string; + maxSizeBytes?: number; /** - * Password for the sync group hub database credential. + * The per database settings for the elastic pool. */ - hubDatabasePassword?: string; + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; /** - * Sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', - * 'Progressing', 'Good' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not this elastic pool is zone redundant, which means the replicas of this elastic + * pool will be spread across multiple availability zones. */ - readonly syncState?: SyncGroupState; + zoneRedundant?: boolean; /** - * Sync schema of the sync group. + * The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', + * 'BasePrice' */ - schema?: SyncGroupSchema; + licenseType?: ElasticPoolLicenseType; + /** + * Maintenance configuration id assigned to the elastic pool. This configuration defines the + * period when the maintenance updates will will occur. + */ + maintenanceConfigurationId?: string; } /** - * An Azure SQL Database sync member. + * An elastic pool update. */ -export interface SyncMember extends ProxyResource { +export interface ElasticPoolUpdate { + sku?: Sku; /** - * Database type of the sync member. Possible values include: 'AzureSqlDatabase', - * 'SqlServerDatabase' + * The storage limit for the database elastic pool in bytes. */ - databaseType?: SyncMemberDbType; + maxSizeBytes?: number; /** - * ARM resource id of the sync agent in the sync member. + * The per database settings for the elastic pool. */ - syncAgentId?: string; + perDatabaseSettings?: ElasticPoolPerDatabaseSettings; /** - * SQL Server database id of the sync member. + * Whether or not this elastic pool is zone redundant, which means the replicas of this elastic + * pool will be spread across multiple availability zones. */ - sqlServerDatabaseId?: string; + zoneRedundant?: boolean; /** - * Server name of the member database in the sync member + * The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', + * 'BasePrice' */ - serverName?: string; + licenseType?: ElasticPoolLicenseType; /** - * Database name of the member database in the sync member. + * Maintenance configuration id assigned to the elastic pool. This configuration defines the + * period when the maintenance updates will will occur. */ - databaseName?: string; + maintenanceConfigurationId?: string; /** - * User name of the member database in the sync member. + * Resource tags. */ - userName?: string; + tags?: { [propertyName: string]: string }; +} + +/** + * The server encryption protector. + */ +export interface EncryptionProtector extends ProxyResource { /** - * Password of the member database in the sync member. + * 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.** */ - password?: string; + readonly kind?: string; /** - * Sync direction of the sync member. Possible values include: 'Bidirectional', - * 'OneWayMemberToHub', 'OneWayHubToMember' + * Resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - syncDirection?: SyncDirection; + readonly location?: string; /** - * Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', - * 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', - * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', - * 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', - * 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' + * Subregion of the encryption protector. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly syncState?: SyncMemberState; + readonly subregion?: string; + /** + * The name of the server key. + */ + serverKeyName?: string; + /** + * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' + */ + serverKeyType: ServerKeyType; + /** + * The URI of the server key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly uri?: string; + /** + * Thumbprint of the server key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly thumbprint?: string; + /** + * Key auto rotation opt-in flag. Either true or false. + */ + autoRotationEnabled?: boolean; } /** - * Usage Metric of a Subscription in a Location. + * Read-write endpoint of the failover group instance. */ -export interface SubscriptionUsage extends ProxyResource { +export interface FailoverGroupReadWriteEndpoint { /** - * User-readable name of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Failover policy of the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: + * 'Manual', 'Automatic' */ - readonly displayName?: string; + failoverPolicy: ReadWriteEndpointFailoverPolicy; /** - * Current value of the metric. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Grace period before failover with data loss is attempted for the read-write endpoint. If + * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - readonly currentValue?: number; + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** + * Read-only endpoint of the failover group instance. + */ +export interface FailoverGroupReadOnlyEndpoint { /** - * Boundary value of the metric. + * Failover policy of the read-only endpoint for the failover group. Possible values include: + * 'Disabled', 'Enabled' + */ + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +} + +/** + * Partner server information for the failover group. + */ +export interface PartnerInfo { + /** + * Resource identifier of the partner server. + */ + id: string; + /** + * Geo location of the partner server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly limit?: number; + readonly location?: string; /** - * Unit of the metric. + * Replication role of the partner server. Possible values include: 'Primary', 'Secondary' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unit?: string; + readonly replicationRole?: FailoverGroupReplicationRole; } /** - * An Azure SQL virtual cluster. + * A failover group. */ -export interface VirtualCluster extends TrackedResource { +export interface FailoverGroup extends ProxyResource { /** - * Subnet resource ID for the virtual cluster. + * Resource location. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly subnetId?: string; + readonly location?: string; /** - * If the service has different generations of hardware, for the same SKU, then that can be - * captured here. + * Resource tags. */ - family?: string; + tags?: { [propertyName: string]: string }; /** - * List of resources in this virtual cluster. + * Read-write endpoint of the failover group instance. + */ + readWriteEndpoint: FailoverGroupReadWriteEndpoint; + /** + * Read-only endpoint of the failover group instance. + */ + readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; + /** + * Local replication role of the failover group instance. Possible values include: 'Primary', + * 'Secondary' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly childResources?: string[]; + 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[]; } /** - * An update request for an Azure SQL Database virtual cluster. + * A failover group update request. */ -export interface VirtualClusterUpdate { +export interface FailoverGroupUpdate { /** - * Subnet resource ID for the virtual cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Read-write endpoint of the failover group instance. */ - readonly subnetId?: string; + readWriteEndpoint?: FailoverGroupReadWriteEndpoint; /** - * If the service has different generations of hardware, for the same SKU, then that can be - * captured here. + * Read-only endpoint of the failover group instance. */ - family?: string; + readOnlyEndpoint?: FailoverGroupReadOnlyEndpoint; /** - * List of resources in this virtual cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * List of databases in the failover group. */ - readonly childResources?: string[]; + databases?: string[]; /** * Resource tags. */ @@ -2274,671 +2511,227 @@ export interface VirtualClusterUpdate { } /** - * A virtual network rule. + * ARM resource. */ -export interface VirtualNetworkRule extends ProxyResource { +export interface ResourceWithWritableName extends BaseResource { /** - * The ARM resource id of the virtual network subnet. + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - virtualNetworkSubnetId: string; + readonly id?: string; /** - * Create firewall rule before the virtual network has vnet service endpoint enabled. + * Resource name. */ - ignoreMissingVnetServiceEndpoint?: boolean; + name?: string; /** - * Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', - * 'Deleting', 'Unknown' + * Resource type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: VirtualNetworkRuleState; + readonly type?: string; } /** - * An extended database blob auditing policy. + * ARM proxy resource. */ -export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { +export interface ProxyResourceWithWritableName extends ResourceWithWritableName { +} + +/** + * A server firewall rule. + */ +export interface FirewallRule extends ProxyResourceWithWritableName { /** - * Specifies condition of where clause when creating an audit. + * The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all + * Azure-internal IP addresses. */ - predicateExpression?: string; + startIpAddress?: string; /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + * The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to + * startIpAddress. Use value '0.0.0.0' for all Azure-internal IP addresses. */ - state: BlobAuditingPolicyState; + endIpAddress?: string; +} + +/** + * A list of server firewall rules. + */ +export interface FirewallRuleList { + values?: FirewallRule[]; +} + +/** + * Read-write endpoint of the failover group instance. + */ +export interface InstanceFailoverGroupReadWriteEndpoint { /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. + * Failover policy of the read-write endpoint for the failover group. If failoverPolicy is + * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: + * 'Manual', 'Automatic' */ - storageEndpoint?: string; + failoverPolicy: ReadWriteEndpointFailoverPolicy; /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. + * Grace period before failover with data loss is attempted for the read-write endpoint. If + * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the audit logs in the storage account. - */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; + failoverWithDataLossGracePeriodMinutes?: number; +} + +/** + * Read-only endpoint of the failover group instance. + */ +export interface InstanceFailoverGroupReadOnlyEndpoint { /** - * Specifies the blob storage subscription Id. + * Failover policy of the read-only endpoint for the failover group. Possible values include: + * 'Disabled', 'Enabled' */ - storageAccountSubscriptionId?: string; + failoverPolicy?: ReadOnlyEndpointFailoverPolicy; +} + +/** + * Partner region information for the failover group. + */ +export interface PartnerRegionInfo { /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. + * Geo location of the partner managed instances. */ - isStorageSecondaryKeyInUse?: boolean; + location?: 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) + * Replication role of the partner managed instances. Possible values include: 'Primary', + * 'Secondary' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isAzureMonitorTargetEnabled?: boolean; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; } /** - * An extended server blob auditing policy. + * Pairs of Managed Instances in the failover group. */ -export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { - /** - * Specifies condition of where clause when creating an audit. - */ - predicateExpression?: string; +export interface ManagedInstancePairInfo { /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + * Id of Primary Managed Instance in pair. */ - state: BlobAuditingPolicyState; + primaryManagedInstanceId?: string; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. + * Id of Partner Managed Instance in pair. */ - storageEndpoint?: string; + partnerManagedInstanceId?: string; +} + +/** + * An instance failover group. + */ +export interface InstanceFailoverGroup extends ProxyResource { /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. + * Read-write endpoint of the failover group instance. */ - storageAccountAccessKey?: string; + readWriteEndpoint: InstanceFailoverGroupReadWriteEndpoint; /** - * Specifies the number of days to keep in the audit logs in the storage account. + * Read-only endpoint of the failover group instance. */ - retentionDays?: number; + readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Local replication role of the failover group instance. Possible values include: 'Primary', + * 'Secondary' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - auditActionsAndGroups?: string[]; + readonly replicationRole?: InstanceFailoverGroupReplicationRole; /** - * Specifies the blob storage subscription Id. + * Replication state of the failover group instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountSubscriptionId?: string; + readonly replicationState?: string; /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. + * Partner region information for the failover group. */ - isStorageSecondaryKeyInUse?: boolean; + partnerRegions: PartnerRegionInfo[]; /** - * 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) + * List of managed instance pairs in the failover group. */ - isAzureMonitorTargetEnabled?: boolean; + managedInstancePairs: ManagedInstancePairInfo[]; } /** - * A server blob auditing policy. + * An Azure SQL instance pool. */ -export interface ServerBlobAuditingPolicy extends ProxyResource { +export interface InstancePool extends TrackedResource { /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + * The name and tier of the SKU. */ - state: BlobAuditingPolicyState; + sku?: Sku; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. + * Resource ID of the subnet to place this instance pool in. */ - storageEndpoint?: string; + subnetId: string; /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. + * Count of vCores belonging to this instance pool. */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the audit logs in the storage account. - */ - retentionDays?: number; - /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) - */ - auditActionsAndGroups?: string[]; - /** - * Specifies the blob storage subscription Id. - */ - storageAccountSubscriptionId?: string; - /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. - */ - isStorageSecondaryKeyInUse?: boolean; + vCores: number; /** - * Specifies whether audit events are sent to Azure Monitor. - * In order to send the events to Azure Monitor, specify 'state' as 'Enabled' and - * 'isAzureMonitorTargetEnabled' as true. - * - * When using REST API to configure auditing, Diagnostic Settings with 'SQLSecurityAuditEvents' - * diagnostic logs category on the database should be also created. - * Note that for server level audit you should use the 'master' database as {databaseName}. - * - * Diagnostic Settings URI format: - * PUT - * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview - * - * For more information, see [Diagnostic Settings REST - * API](https://go.microsoft.com/fwlink/?linkid=2033207) - * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + * The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) + * and 'BasePrice' (without SQL license price). Possible values include: 'LicenseIncluded', + * 'BasePrice' */ - isAzureMonitorTargetEnabled?: boolean; + licenseType: InstancePoolLicenseType; } /** - * A database blob auditing policy. + * An update to an Instance pool. */ -export interface DatabaseBlobAuditingPolicy extends ProxyResource { - /** - * Resource kind. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; - /** - * Specifies the state of the policy. If state is Enabled, storageEndpoint or - * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' - */ - state: BlobAuditingPolicyState; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state - * is Enabled, storageEndpoint is required. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the auditing storage account. If state is Enabled and - * storageEndpoint is specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * Specifies the number of days to keep in the audit logs in the storage account. - */ - retentionDays?: number; +export interface InstancePoolUpdate { /** - * Specifies the Actions-Groups and Actions to audit. - * - * The recommended set of action groups to use is the following combination - this will audit all - * the queries and stored procedures executed against the database, as well as successful and - * failed logins: - * - * BATCH_COMPLETED_GROUP, - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, - * FAILED_DATABASE_AUTHENTICATION_GROUP. - * - * This above combination is also the set that is configured by default when enabling auditing - * from the Azure portal. - * - * The supported action groups to audit are (note: choose only specific groups that cover your - * auditing needs. Using unnecessary groups could lead to very large quantities of audit - * records): - * - * APPLICATION_ROLE_CHANGE_PASSWORD_GROUP - * BACKUP_RESTORE_GROUP - * DATABASE_LOGOUT_GROUP - * DATABASE_OBJECT_CHANGE_GROUP - * DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP - * DATABASE_OBJECT_PERMISSION_CHANGE_GROUP - * DATABASE_OPERATION_GROUP - * DATABASE_PERMISSION_CHANGE_GROUP - * DATABASE_PRINCIPAL_CHANGE_GROUP - * DATABASE_PRINCIPAL_IMPERSONATION_GROUP - * DATABASE_ROLE_MEMBER_CHANGE_GROUP - * FAILED_DATABASE_AUTHENTICATION_GROUP - * SCHEMA_OBJECT_ACCESS_GROUP - * SCHEMA_OBJECT_CHANGE_GROUP - * SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP - * SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP - * SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP - * USER_CHANGE_PASSWORD_GROUP - * BATCH_STARTED_GROUP - * BATCH_COMPLETED_GROUP - * - * These are groups that cover all sql statements and stored procedures executed against the - * database, and should not be used in combination with other groups as this will result in - * duplicate audit logs. - * - * For more information, see [Database-Level Audit Action - * Groups](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-action-groups). - * - * For Database auditing policy, specific Actions can also be specified (note that Actions cannot - * be specified for Server auditing policy). The supported actions to audit are: - * SELECT - * UPDATE - * INSERT - * DELETE - * EXECUTE - * RECEIVE - * REFERENCES - * - * The general form for defining an action to be audited is: - * {action} ON {object} BY {principal} - * - * Note that in the above format can refer to an object like a table, view, or stored - * procedure, or an entire database or schema. For the latter cases, the forms - * DATABASE::{db_name} and SCHEMA::{schema_name} are used, respectively. - * - * For example: - * SELECT on dbo.myTable by public - * SELECT on DATABASE::myDatabase by public - * SELECT on SCHEMA::mySchema by public - * - * For more information, see [Database-Level Audit - * Actions](https://docs.microsoft.com/en-us/sql/relational-databases/security/auditing/sql-server-audit-action-groups-and-actions#database-level-audit-actions) + * Resource tags. */ - auditActionsAndGroups?: string[]; + tags?: { [propertyName: string]: string }; +} + +/** + * An Azure SQL job agent. + */ +export interface JobAgent extends TrackedResource { /** - * Specifies the blob storage subscription Id. + * The name and tier of the SKU. */ - storageAccountSubscriptionId?: string; + sku?: Sku; /** - * Specifies whether storageAccountAccessKey value is the storage's secondary key. + * Resource ID of the database to store job metadata in. */ - isStorageSecondaryKeyInUse?: boolean; + databaseId: 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 state of the job agent. Possible values include: 'Creating', 'Ready', 'Updating', + * 'Deleting', 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isAzureMonitorTargetEnabled?: boolean; + readonly state?: JobAgentState; } /** - * Properties for an Azure SQL Database Vulnerability Assessment rule baseline's result. + * An update to an Azure SQL job agent. */ -export interface DatabaseVulnerabilityAssessmentRuleBaselineItem { +export interface JobAgentUpdate { /** - * The rule baseline result + * Resource tags. */ - result: string[]; + tags?: { [propertyName: string]: string }; } /** - * A database vulnerability assessment rule baseline. + * A stored credential that can be used by a job to connect to target databases. */ -export interface DatabaseVulnerabilityAssessmentRuleBaseline extends ProxyResource { +export interface JobCredential extends ProxyResource { /** - * The rule baseline result + * The credential user name. */ - baselineResults: DatabaseVulnerabilityAssessmentRuleBaselineItem[]; + username: string; + /** + * The credential password. + */ + password: string; } /** - * Properties of a Vulnerability Assessment recurring scans. + * The target that a job execution is executed on. */ -export interface VulnerabilityAssessmentRecurringScansProperties { - /** - * Recurring scans state. - */ - isEnabled?: boolean; - /** - * Specifies that the schedule scan notification will be is sent to the subscription - * administrators. Default value: true. - */ - emailSubscriptionAdmins?: boolean; - /** - * Specifies an array of e-mail addresses to which the scan notification is sent. - */ - emails?: string[]; -} - -/** - * A database vulnerability assessment. - */ -export interface DatabaseVulnerabilityAssessment extends ProxyResource { - /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). It is required if server level - * vulnerability assessment policy doesn't set - */ - storageContainerPath?: string; - /** - * A shared access signature (SAS Key) that has read and write access to the blob container - * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. - */ - storageContainerSasKey?: string; - /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. - */ - storageAccountAccessKey?: string; - /** - * The recurring scans settings - */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * An ARM Resource SKU. - */ -export interface Sku { - /** - * The name of the SKU, typically, a letter + Number code, e.g. P3. - */ - name: string; - /** - * The tier or edition of the particular SKU, e.g. Basic, Premium. - */ - tier?: string; - /** - * Size of the particular SKU - */ - size?: string; - /** - * If the service has different generations of hardware, for the same SKU, then that can be - * captured here. - */ - family?: string; - /** - * Capacity of the particular SKU. - */ - capacity?: number; -} - -/** - * An Azure SQL job agent. - */ -export interface JobAgent extends TrackedResource { - /** - * The name and tier of the SKU. - */ - sku?: Sku; - /** - * Resource ID of the database to store job metadata in. - */ - databaseId: string; - /** - * The state of the job agent. Possible values include: 'Creating', 'Ready', 'Updating', - * 'Deleting', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly state?: JobAgentState; -} - -/** - * An update to an Azure SQL job agent. - */ -export interface JobAgentUpdate { - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * A stored credential that can be used by a job to connect to target databases. - */ -export interface JobCredential extends ProxyResource { - /** - * The credential user name. - */ - username: string; - /** - * The credential password. - */ - password: string; -} - -/** - * The target that a job execution is executed on. - */ -export interface JobExecutionTarget { +export interface JobExecutionTarget { /** * The type of the target. Possible values include: 'TargetGroup', 'SqlDatabase', * 'SqlElasticPool', 'SqlShardMap', 'SqlServer' @@ -3030,52 +2823,6 @@ export interface JobExecution extends ProxyResource { readonly target?: JobExecutionTarget; } -/** - * Scheduling properties of a job. - */ -export interface JobSchedule { - /** - * Schedule start time. Default value: new Date('0001-01-01T00:00:00Z'). - */ - startTime?: Date; - /** - * Schedule end time. Default value: new Date('9999-12-31T11:59:59Z'). - */ - endTime?: Date; - /** - * Schedule interval type. Possible values include: 'Once', 'Recurring'. Default value: 'Once'. - */ - type?: JobScheduleType; - /** - * Whether or not the schedule is enabled. - */ - enabled?: boolean; - /** - * Value of the schedule's recurring interval, if the schedule type is recurring. ISO8601 - * duration format. - */ - interval?: string; -} - -/** - * A job. - */ -export interface Job extends ProxyResource { - /** - * User-defined description of the job. Default value: ''. - */ - description?: string; - /** - * The job version number. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly version?: number; - /** - * Schedule properties of the job. - */ - schedule?: JobSchedule; -} - /** * The action to be executed by a job step. */ @@ -3249,591 +2996,543 @@ export interface JobVersion extends ProxyResource { } /** - * A long term retention backup. + * Scheduling properties of a job. */ -export interface LongTermRetentionBackup extends ProxyResource { - /** - * The server name that the backup database belong to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly serverName?: string; +export interface JobSchedule { /** - * The create time of the server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Schedule start time. Default value: new Date('0001-01-01T00:00:00+00:00'). */ - readonly serverCreateTime?: Date; + startTime?: 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.** + * Schedule end time. Default value: new Date('9999-12-31T11:59:59+00:00'). */ - readonly databaseName?: string; + endTime?: Date; /** - * The delete time of the database - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Schedule interval type. Possible values include: 'Once', 'Recurring'. Default value: 'Once'. */ - readonly databaseDeletionTime?: Date; + type?: JobScheduleType; /** - * The time the backup was taken - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether or not the schedule is enabled. */ - readonly backupTime?: Date; + enabled?: boolean; /** - * The time the long term retention backup will expire. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Value of the schedule's recurring interval, if the ScheduleType is recurring. ISO8601 duration + * format. */ - readonly backupExpirationTime?: Date; + interval?: string; } /** - * A long term retention policy. + * A job. */ -export interface BackupLongTermRetentionPolicy extends ProxyResource { - /** - * The weekly retention policy for an LTR backup in an ISO 8601 format. - */ - weeklyRetention?: string; +export interface Job extends ProxyResource { /** - * The monthly retention policy for an LTR backup in an ISO 8601 format. + * User-defined description of the job. Default value: ''. */ - monthlyRetention?: string; + description?: string; /** - * The yearly retention policy for an LTR backup in an ISO 8601 format. + * The job version number. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - yearlyRetention?: string; + readonly version?: number; /** - * The week of year to take the yearly backup in an ISO 8601 format. + * Schedule properties of the job. */ - weekOfYear?: number; + schedule?: JobSchedule; } /** - * A short term retention policy. + * The maximum size capability. */ -export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { +export interface MaxSizeCapability { /** - * The backup retention period in days. This is how many days Point-in-Time Restore will be - * supported. + * The maximum size limit (see 'unit' for the units). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionDays?: number; + readonly limit?: number; + /** + * The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', + * 'Terabytes', 'Petabytes' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: MaxSizeUnit; } /** - * Automatic tuning properties for individual advisors. + * The log size capability. */ -export interface AutomaticTuningServerOptions { - /** - * Automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default' - */ - desiredState?: AutomaticTuningOptionModeDesired; - /** - * Automatic tuning option actual state. Possible values include: 'Off', 'On' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly actualState?: AutomaticTuningOptionModeActual; +export interface LogSizeCapability { /** - * Reason code if desired and actual state are different. + * 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 reasonCode?: number; + readonly limit?: number; /** - * Reason description if desired and actual state are different. Possible values include: - * 'Default', 'Disabled', 'AutoConfigured' + * The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', + * 'Terabytes', 'Petabytes', 'Percent' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly reasonDesc?: AutomaticTuningServerReason; + readonly unit?: LogSizeUnit; } /** - * Server-level Automatic Tuning. + * The maximum size range capability. */ -export interface ServerAutomaticTuning extends ProxyResource { +export interface MaxSizeRangeCapability { /** - * Automatic tuning desired state. Possible values include: 'Custom', 'Auto', 'Unspecified' + * Minimum value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - desiredState?: AutomaticTuningServerMode; + readonly minValue?: MaxSizeCapability; /** - * Automatic tuning actual state. Possible values include: 'Custom', 'Auto', 'Unspecified' + * Maximum value. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly actualState?: AutomaticTuningServerMode; + readonly maxValue?: MaxSizeCapability; /** - * Automatic tuning options definition. + * 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.** */ - options?: { [propertyName: string]: AutomaticTuningServerOptions }; -} - -/** - * A server DNS alias. - */ -export interface ServerDnsAlias extends ProxyResource { + readonly scaleSize?: MaxSizeCapability; /** - * The fully qualified DNS record for alias + * Size of transaction log. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly azureDnsRecord?: string; -} - -/** - * A server DNS alias acquisition request. - */ -export interface ServerDnsAliasAcquisition { + readonly logSize?: LogSizeCapability; /** - * The id of the server alias that will be acquired to point to this server instead. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: CapabilityStatus; + /** + * The reason for the capability not being available. */ - oldServerDnsAliasId?: string; + reason?: string; } /** - * A server security alert policy. + * The performance level capability. */ -export interface ServerSecurityAlertPolicy extends ProxyResource { - /** - * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; - /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action - */ - disabledAlerts?: string[]; - /** - * Specifies an array of e-mail addresses to which the alert is sent. - */ - emailAddresses?: string[]; - /** - * Specifies that the alert is sent to the account administrators. - */ - emailAccountAdmins?: boolean; - /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. - */ - storageEndpoint?: string; - /** - * Specifies the identifier key of the Threat Detection audit storage account. - */ - storageAccountAccessKey?: string; +export interface PerformanceLevelCapability { /** - * Specifies the number of days to keep in the Threat Detection audit logs. + * Performance level value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionDays?: number; + readonly value?: number; /** - * Specifies the UTC creation time of the policy. + * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationTime?: Date; + readonly unit?: PerformanceLevelUnit; } /** - * A restorable dropped managed database resource. + * The license type capability */ -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; +export interface LicenseTypeCapability { /** - * The creation date of the database (ISO8601 format). + * License type identifier. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationDate?: Date; + readonly name?: string; /** - * The deletion date of the database (ISO8601 format). + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly deletionDate?: Date; + readonly status?: CapabilityStatus; /** - * The earliest restore date of the database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly earliestRestoreDate?: Date; + reason?: string; } /** - * Database restore points. + * Supported auto pause delay time range */ -export interface RestorePoint extends ProxyResource { +export interface AutoPauseDelayTimeRange { /** - * Resource location. + * Minimum value * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + readonly minValue?: number; /** - * The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' + * Maximum value * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly restorePointType?: RestorePointType; + readonly maxValue?: number; /** - * The earliest time to which this database can be restored + * 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 earliestRestoreDate?: Date; + readonly stepSize?: number; /** - * The time the backup was taken + * Default value is no value is provided * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly restorePointCreationDate?: Date; + readonly default?: number; /** - * The label of restore point for backup request by user + * Unit of time that delay is expressed in. Possible values include: 'Minutes' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly restorePointLabel?: string; -} - -/** - * Contains the information necessary to perform a create database restore point operation. - */ -export interface CreateDatabaseRestorePointDefinition { + readonly unit?: PauseDelayTimeUnit; /** - * The restore point label to apply + * 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.** */ - restorePointLabel: string; + readonly doNotPauseValue?: number; } /** - * A managed database security alert policy. + * The min capacity capability */ -export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { - /** - * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled' - */ - state: SecurityAlertPolicyState; +export interface MinCapacityCapability { /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action + * Min capacity value + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - disabledAlerts?: string[]; + readonly value?: number; /** - * Specifies an array of e-mail addresses to which the alert is sent. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - emailAddresses?: string[]; + readonly status?: CapabilityStatus; /** - * Specifies that the alert is sent to the account administrators. + * The reason for the capability not being available. */ - emailAccountAdmins?: boolean; + reason?: string; +} + +/** + * The maintenance configuration capability + */ +export interface MaintenanceConfigurationCapability { /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. + * Maintenance configuration name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageEndpoint?: string; + readonly name?: string; /** - * Specifies the identifier key of the Threat Detection audit storage account. + * 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.** */ - storageAccountAccessKey?: string; + readonly zoneRedundant?: boolean; /** - * Specifies the number of days to keep in the Threat Detection audit logs. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionDays?: number; + readonly status?: CapabilityStatus; /** - * Specifies the UTC creation time of the policy. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly creationTime?: Date; + reason?: string; } /** - * A managed server security alert policy. + * The service objectives capability. */ -export interface ManagedServerSecurityAlertPolicy extends ProxyResource { +export interface ServiceObjectiveCapability { /** - * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been - * applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled' + * The unique ID of the service objective. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - state: SecurityAlertPolicyState; + readonly id?: string; /** - * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, - * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action + * The service objective name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - disabledAlerts?: string[]; + readonly name?: string; /** - * Specifies an array of e-mail addresses to which the alert is sent. + * The list of supported maximum database sizes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - emailAddresses?: string[]; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * Specifies that the alert is sent to the account administrators. + * The performance level. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - emailAccountAdmins?: boolean; + readonly performanceLevel?: PerformanceLevelCapability; /** - * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob - * storage will hold all Threat Detection audit logs. + * The sku. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageEndpoint?: string; + readonly sku?: Sku; /** - * Specifies the identifier key of the Threat Detection audit storage account. + * List of supported license types. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageAccountAccessKey?: string; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * Specifies the number of days to keep in the Threat Detection audit logs. + * The included (free) max size. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - retentionDays?: number; + readonly includedMaxSize?: MaxSizeCapability; /** - * Specifies the UTC creation time of the policy. + * 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 creationTime?: Date; -} - -/** - * A sensitivity label. - */ -export interface SensitivityLabel extends ProxyResource { + readonly zoneRedundant?: boolean; /** - * The label name. + * Supported time range for auto pause delay + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labelName?: string; + readonly supportedAutoPauseDelay?: AutoPauseDelayTimeRange; /** - * The label ID. + * List of supported min capacities + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labelId?: string; + readonly supportedMinCapacities?: MinCapacityCapability[]; /** - * The information type. + * The compute model + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - informationType?: string; + readonly computeModel?: string; /** - * The information type ID. + * List of supported maintenance configurations + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - informationTypeId?: string; + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. - * Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or - * not. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isDisabled?: boolean; + readonly status?: CapabilityStatus; + /** + * The reason for the capability not being available. + */ + reason?: string; } /** - * An Azure SQL managed instance administrator. + * The read scale capability. */ -export interface ManagedInstanceAdministrator extends ProxyResource { +export interface ReadScaleCapability { /** - * Login name of the managed instance administrator. + * The maximum number of read scale replicas. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - login: string; + readonly maxNumberOfReplicas?: number; /** - * SID (object ID) of the managed instance administrator. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sid: string; + readonly status?: CapabilityStatus; /** - * Tenant ID of the managed instance administrator. + * The reason for the capability not being available. */ - tenantId?: string; + reason?: string; } /** - * A database operation. + * The storage account type capability. */ -export interface DatabaseOperation extends ProxyResource { +export interface StorageCapability { /** - * The name of the database the operation is being performed on. + * The storage account type for the database's backups. Possible values include: 'GRS', 'LRS', + * 'ZRS' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseName?: string; + readonly storageAccountType?: StorageAccountType1; /** - * The name of operation. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operation?: string; + readonly status?: CapabilityStatus; /** - * The friendly name of operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly operationFriendlyName?: string; + reason?: string; +} + +/** + * The edition capability. + */ +export interface EditionCapability { /** - * The percentage of the operation completed. + * The database edition name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly percentComplete?: number; + readonly name?: string; /** - * The name of the server. + * 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 serverName?: string; + readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; /** - * The operation start time. + * 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 startTime?: Date; + readonly zoneRedundant?: boolean; /** - * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' + * The read scale capability for the edition. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: ManagementOperationState; + readonly readScale?: ReadScaleCapability; /** - * The operation error code. + * 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 errorCode?: number; + readonly supportedStorageCapabilities?: StorageCapability[]; /** - * The operation error description. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorDescription?: string; + readonly status?: CapabilityStatus; /** - * The operation error severity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly errorSeverity?: number; + reason?: string; +} + +/** + * The minimum per-database performance level capability. + */ +export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { /** - * Whether or not the error is a user error. + * The minimum performance level per database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly isUserError?: boolean; + readonly limit?: number; /** - * The estimated completion time of the operation. + * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly estimatedCompletionTime?: Date; + readonly unit?: PerformanceLevelUnit; /** - * The operation description. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly status?: CapabilityStatus; /** - * Whether the operation can be cancelled. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly isCancellable?: boolean; + reason?: string; } /** - * A elastic pool operation. + * The max per-database performance level capability. */ -export interface ElasticPoolOperation extends ProxyResource { - /** - * The name of the elastic pool the operation is being performed on. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly elasticPoolName?: string; +export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { /** - * The name of operation. + * The maximum performance level per database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operation?: string; + readonly limit?: number; /** - * The friendly name of operation. + * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operationFriendlyName?: string; + readonly unit?: PerformanceLevelUnit; /** - * The percentage of the operation completed. + * The list of supported min database performance levels. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly percentComplete?: number; + readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; /** - * The name of the server. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serverName?: string; + readonly status?: CapabilityStatus; /** - * The operation start time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly startTime?: Date; + reason?: string; +} + +/** + * The Elastic Pool performance level capability. + */ +export interface ElasticPoolPerformanceLevelCapability { /** - * The operation state. + * The performance level for the pool. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly performanceLevel?: PerformanceLevelCapability; /** - * The operation error code. + * The sku. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorCode?: number; + readonly sku?: Sku; /** - * The operation error description. + * List of supported license types. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorDescription?: string; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The operation error severity. + * The maximum number of databases supported. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly errorSeverity?: number; + readonly maxDatabaseCount?: number; /** - * Whether or not the error is a user error. + * 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 isUserError?: boolean; + readonly includedMaxSize?: MaxSizeCapability; /** - * The estimated completion time of the operation. + * The list of supported max sizes. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly estimatedCompletionTime?: Date; + readonly supportedMaxSizes?: MaxSizeRangeCapability[]; /** - * The operation description. + * The list of supported per database max sizes. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly description?: string; + readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; /** - * Whether the operation can be cancelled. + * 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 isCancellable?: boolean; -} - -/** - * The maximum size capability. - */ -export interface MaxSizeCapability { + readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; /** - * The maximum size limit (see 'unit' for the units). + * 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 limit?: number; + readonly zoneRedundant?: boolean; /** - * The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', - * 'Terabytes', 'Petabytes' + * List of supported maintenance configurations * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unit?: MaxSizeUnit; -} - -/** - * The log size capability. - */ -export interface LogSizeCapability { + readonly supportedMaintenanceConfigurations?: MaintenanceConfigurationCapability[]; /** - * The log size limit (see 'unit' for the units). + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly limit?: number; + readonly status?: CapabilityStatus; /** - * The units that the limit is expressed in. Possible values include: 'Megabytes', 'Gigabytes', - * 'Terabytes', 'Petabytes', 'Percent' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly unit?: LogSizeUnit; + reason?: string; } /** - * The maximum size range capability. + * The elastic pool edition capability. */ -export interface MaxSizeRangeCapability { - /** - * Minimum value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly minValue?: MaxSizeCapability; +export interface ElasticPoolEditionCapability { /** - * Maximum value. + * The elastic pool edition name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maxValue?: MaxSizeCapability; + readonly name?: string; /** - * Scale/step size for discrete values between the minimum value and the maximum value. + * 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 scaleSize?: MaxSizeCapability; + readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; /** - * Size of transaction log. + * 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 logSize?: LogSizeCapability; + readonly zoneRedundant?: boolean; /** * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', * 'Disabled' @@ -3847,27 +3546,42 @@ export interface MaxSizeRangeCapability { } /** - * The performance level capability. + * The server capability */ -export interface PerformanceLevelCapability { +export interface ServerVersionCapability { /** - * Performance level value. + * The server version name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly value?: number; + readonly name?: string; /** - * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' + * The list of supported database editions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unit?: PerformanceLevelUnit; + readonly supportedEditions?: EditionCapability[]; + /** + * The list of supported elastic pool editions. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; + /** + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: CapabilityStatus; + /** + * The reason for the capability not being available. + */ + reason?: string; } /** - * The license type capability + * The maintenance configuration capability */ -export interface LicenseTypeCapability { +export interface ManagedInstanceMaintenanceConfigurationCapability { /** - * License type identifier. + * Maintenance configuration name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; @@ -3884,44 +3598,44 @@ export interface LicenseTypeCapability { } /** - * The service objectives capability. + * The managed instance virtual cores capability. */ -export interface ServiceObjectiveCapability { +export interface ManagedInstanceVcoresCapability { /** - * The unique ID of the service objective. + * The virtual cores identifier. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly id?: string; + readonly name?: string; /** - * The service objective name. + * The virtual cores value. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly value?: number; /** - * The list of supported maximum database sizes. + * Included size. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + readonly includedMaxSize?: MaxSizeCapability; /** - * The performance level. + * Storage size ranges. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly performanceLevel?: PerformanceLevelCapability; + readonly supportedStorageSizes?: MaxSizeRangeCapability[]; /** - * The sku. + * 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 sku?: Sku; + readonly instancePoolSupported?: boolean; /** - * List of supported license types. + * 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 supportedLicenseTypes?: LicenseTypeCapability[]; + readonly standaloneSupported?: boolean; /** - * The included (free) max size. + * List of supported maintenance configurations * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly includedMaxSize?: MaxSizeCapability; + readonly supportedMaintenanceConfigurations?: ManagedInstanceMaintenanceConfigurationCapability[]; /** * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', * 'Disabled' @@ -3935,27 +3649,32 @@ export interface ServiceObjectiveCapability { } /** - * The edition capability. + * The managed server family capability. */ -export interface EditionCapability { +export interface ManagedInstanceFamilyCapability { /** - * The database edition name. + * Family 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. + * SKU name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedServiceLevelObjectives?: ServiceObjectiveCapability[]; + readonly sku?: string; /** - * Whether or not zone redundancy is supported for the edition. + * List of supported license types. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly zoneRedundant?: boolean; + readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' + * List of supported virtual cores values. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + /** + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly status?: CapabilityStatus; @@ -3966,19 +3685,29 @@ export interface EditionCapability { } /** - * The minimum per-database performance level capability. + * The managed server capability */ -export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { +export interface ManagedInstanceEditionCapability { /** - * The minimum performance level per database. + * The managed server version name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly limit?: number; + readonly name?: string; /** - * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' + * The supported families. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unit?: PerformanceLevelUnit; + readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; + /** + * 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 redundancy is supported for the edition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly zoneRedundant?: boolean; /** * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', * 'Disabled' @@ -3992,24 +3721,24 @@ export interface ElasticPoolPerDatabaseMinPerformanceLevelCapability { } /** - * The max per-database performance level capability. + * The managed instance virtual cores capability. */ -export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { +export interface InstancePoolVcoresCapability { /** - * The maximum performance level per database. + * The virtual cores identifier. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly limit?: number; + readonly name?: string; /** - * Unit type used to measure performance level. Possible values include: 'DTU', 'VCores' + * The virtual cores value. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unit?: PerformanceLevelUnit; + readonly value?: number; /** - * The list of supported min database performance levels. + * Storage limit. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedPerDatabaseMinPerformanceLevels?: ElasticPoolPerDatabaseMinPerformanceLevelCapability[]; + readonly storageLimit?: MaxSizeCapability; /** * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', * 'Disabled' @@ -4023,49 +3752,50 @@ export interface ElasticPoolPerDatabaseMaxPerformanceLevelCapability { } /** - * The Elastic Pool performance level capability. + * The instance pool family capability. */ -export interface ElasticPoolPerformanceLevelCapability { - /** - * The performance level for the pool. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly performanceLevel?: PerformanceLevelCapability; +export interface InstancePoolFamilyCapability { /** - * The sku. + * Family name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly sku?: Sku; + readonly name?: string; /** * List of supported license types. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly supportedLicenseTypes?: LicenseTypeCapability[]; /** - * The maximum number of databases supported. + * List of supported virtual cores values. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly maxDatabaseCount?: number; + readonly supportedVcoresValues?: InstancePoolVcoresCapability[]; /** - * The included (free) max size for this performance level. + * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', + * 'Disabled' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly includedMaxSize?: MaxSizeCapability; + readonly status?: CapabilityStatus; /** - * The list of supported max sizes. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The reason for the capability not being available. */ - readonly supportedMaxSizes?: MaxSizeRangeCapability[]; + reason?: string; +} + +/** + * The instance pool capability + */ +export interface InstancePoolEditionCapability { /** - * The list of supported per database max sizes. + * The instance pool version name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedPerDatabaseMaxSizes?: MaxSizeRangeCapability[]; + readonly name?: string; /** - * The list of supported per database max performance levels. + * The supported families. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedPerDatabaseMaxPerformanceLevels?: ElasticPoolPerDatabaseMaxPerformanceLevelCapability[]; + readonly supportedFamilies?: InstancePoolFamilyCapability[]; /** * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', * 'Disabled' @@ -4079,24 +3809,24 @@ export interface ElasticPoolPerformanceLevelCapability { } /** - * The elastic pool edition capability. + * The managed instance capability */ -export interface ElasticPoolEditionCapability { +export interface ManagedInstanceVersionCapability { /** - * The elastic pool edition name. + * The server version name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * The list of supported elastic pool DTU levels for the edition. + * The list of supported managed instance editions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedElasticPoolPerformanceLevels?: ElasticPoolPerformanceLevelCapability[]; + readonly supportedEditions?: ManagedInstanceEditionCapability[]; /** - * Whether or not zone redundancy is supported for the edition. + * The list of supported instance pool editions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly zoneRedundant?: boolean; + readonly supportedInstancePoolEditions?: InstancePoolEditionCapability[]; /** * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', * 'Disabled' @@ -4110,24 +3840,24 @@ export interface ElasticPoolEditionCapability { } /** - * The server capability + * The location capability. */ -export interface ServerVersionCapability { +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 database editions. + * The list of supported server versions. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedEditions?: EditionCapability[]; + readonly supportedServerVersions?: ServerVersionCapability[]; /** - * The list of supported elastic 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 supportedElasticPoolEditions?: ElasticPoolEditionCapability[]; + readonly supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; /** * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', * 'Disabled' @@ -4141,1025 +3871,934 @@ export interface ServerVersionCapability { } /** - * The managed instance virtual cores capability. + * Contains the information necessary to perform long term retention backup copy operation. */ -export interface ManagedInstanceVcoresCapability { +export interface CopyLongTermRetentionBackupParameters { /** - * The virtual cores identifier. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The subscription that owns the target server */ - readonly name?: string; + targetSubscriptionId?: string; /** - * The virtual cores value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource group that owns the target server */ - readonly value?: number; + targetResourceGroup?: string; /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource Id of the target server that owns the database */ - readonly status?: CapabilityStatus; + targetServerResourceId?: string; /** - * The reason for the capability not being available. + * The fully qualified domain name of the target server */ - reason?: string; + targetServerFullyQualifiedDomainName?: string; + /** + * The name of the database owns the copied backup. + */ + targetDatabaseName?: string; + /** + * The storage redundancy type of the copied backup. Possible values include: 'Geo', 'Local', + * 'Zone' + */ + targetBackupStorageRedundancy?: TargetBackupStorageRedundancy; } /** - * The managed server family capability. + * A LongTermRetentionBackup operation result resource. */ -export interface ManagedInstanceFamilyCapability { +export interface LongTermRetentionBackupOperationResult extends ProxyResource { /** - * Family name. + * Request Id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly requestId?: string; /** - * SKU name. + * Operation type. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly sku?: string; + readonly operationType?: string; /** - * List of supported license types. + * Source backup resource id * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedLicenseTypes?: LicenseTypeCapability[]; + readonly fromBackupResourceId?: string; /** - * List of supported virtual cores values. + * Target backup resource id * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedVcoresValues?: ManagedInstanceVcoresCapability[]; + readonly toBackupResourceId?: string; /** - * Included size. + * The storage redundancy type of the copied backup. Possible values include: 'Geo', 'Local', + * 'Zone' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly includedMaxSize?: MaxSizeCapability; + readonly targetBackupStorageRedundancy?: BackupStorageRedundancy; /** - * Storage size ranges. + * Operation status * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedStorageSizes?: MaxSizeRangeCapability[]; + readonly status?: string; /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' + * Progress message * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: CapabilityStatus; + readonly message?: string; +} + +/** + * Contains the information necessary to perform long term retention backup update operation. + */ +export interface UpdateLongTermRetentionBackupParameters { /** - * The reason for the capability not being available. + * The storage redundancy type of the copied backup. Possible values include: 'Geo', 'Local', + * 'Zone' */ - reason?: string; + requestedBackupStorageRedundancy?: RequestedBackupStorageRedundancy; } /** - * The managed server capability + * A long term retention backup. */ -export interface ManagedInstanceEditionCapability { +export interface LongTermRetentionBackup extends ProxyResource { /** - * The managed server version name. + * 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 name?: string; + readonly serverName?: string; /** - * The supported families. + * The create time of the server. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedFamilies?: ManagedInstanceFamilyCapability[]; + readonly serverCreateTime?: Date; /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' + * 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 status?: CapabilityStatus; + readonly databaseName?: string; /** - * The reason for the capability not being available. + * The delete time of the database + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - reason?: string; -} - -/** - * The managed instance capability - */ -export interface ManagedInstanceVersionCapability { + readonly databaseDeletionTime?: Date; /** - * The server version name. + * The time the backup was taken * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly backupTime?: Date; /** - * The list of supported managed instance editions. + * 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 supportedEditions?: ManagedInstanceEditionCapability[]; + readonly backupExpirationTime?: Date; /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' + * The storage redundancy type of the backup. Possible values include: 'Geo', 'Local', 'Zone' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: CapabilityStatus; + readonly backupStorageRedundancy?: BackupStorageRedundancy; /** - * The reason for the capability not being available. + * The storage redundancy type of the backup. Possible values include: 'Geo', 'Local', 'Zone' */ - reason?: string; + requestedBackupStorageRedundancy?: BackupStorageRedundancy; } /** - * The location capability. + * A long term retention backup for a managed database. */ -export interface LocationCapabilities { +export interface ManagedInstanceLongTermRetentionBackup extends ProxyResource { /** - * The location name. + * 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 name?: string; + readonly managedInstanceName?: string; /** - * The list of supported server versions. + * The create time of the instance. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly supportedServerVersions?: ServerVersionCapability[]; + readonly managedInstanceCreateTime?: Date; /** - * The list of supported managed instance versions. + * 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 supportedManagedInstanceVersions?: ManagedInstanceVersionCapability[]; + readonly databaseName?: string; /** - * The status of the capability. Possible values include: 'Visible', 'Available', 'Default', - * 'Disabled' + * The delete time of the database * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: CapabilityStatus; + readonly databaseDeletionTime?: Date; /** - * The reason for the capability not being available. + * The time the backup was taken + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - reason?: string; + readonly backupTime?: Date; + /** + * The time the long term retention backup will expire. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupExpirationTime?: Date; + /** + * The storage redundancy type of the backup. Possible values include: 'Geo', 'Local', 'Zone' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly backupStorageRedundancy?: BackupStorageRedundancy; } /** - * A database resource. + * A long term retention policy. */ -export interface Database extends TrackedResource { +export interface LongTermRetentionPolicy extends ProxyResource { /** - * The database SKU. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the - * SKU name, tier/edition, family, and capacity) that are available to your subscription in an - * Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands: - * - * ```azurecli - * az sql db list-editions -l -o table - * ```` - * - * ```powershell - * Get-AzSqlServerServiceObjective -Location - * ```` + * The weekly retention policy for an LTR backup in an ISO 8601 format. */ - sku?: Sku; + weeklyRetention?: string; /** - * Kind of database. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The monthly retention policy for an LTR backup in an ISO 8601 format. */ - readonly kind?: string; + monthlyRetention?: string; /** - * Resource that manages the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The yearly retention policy for an LTR backup in an ISO 8601 format. */ - readonly managedBy?: string; + yearlyRetention?: string; /** - * Specifies the mode of database creation. - * - * Default: regular database creation. - * - * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified - * as the resource ID of the source database. - * - * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId - * must be specified as the resource ID of the existing primary database. - * - * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing - * database. sourceDatabaseId must be specified as the resource ID of the existing database, and - * restorePointInTime must be specified. - * - * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be - * specified as the recoverable database resource ID to restore. - * - * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must - * be specified. If sourceDatabaseId is the database's original resource ID, then - * sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the - * restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. - * restorePointInTime may also be specified to restore from an earlier point in time. - * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention - * vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point - * resource ID. - * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse - * edition. Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', - * 'Restore', 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', - * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' + * The week of year to take the yearly backup in an ISO 8601 format. */ - createMode?: CreateMode; + weekOfYear?: number; +} + +/** + * Maintenance window time range. + */ +export interface MaintenanceWindowTimeRange { /** - * The collation of the database. + * Day of maintenance window. Possible values include: 'Sunday', 'Monday', 'Tuesday', + * 'Wednesday', 'Thursday', 'Friday', 'Saturday' */ - collation?: string; + dayOfWeek?: DayOfWeek; /** - * The max size of the database expressed in bytes. + * Start time minutes offset from 12am. */ - maxSizeBytes?: number; + startTime?: string; /** - * The name of the sample schema to apply when creating this database. Possible values include: - * 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' + * Duration of maintenance window in minutes. */ - sampleName?: SampleName; + duration?: string; +} + +/** + * Maintenance window options. + */ +export interface MaintenanceWindowOptions extends ProxyResource { /** - * The resource identifier of the elastic pool containing this database. + * Whether maintenance windows are enabled for the database. */ - elasticPoolId?: string; + isEnabled?: boolean; /** - * The resource identifier of the source database associated with create operation of this - * database. + * Available maintenance cycles e.g. {Saturday, 0, 48*60}, {Wednesday, 0, 24*60}. */ - sourceDatabaseId?: string; + maintenanceWindowCycles?: MaintenanceWindowTimeRange[]; /** - * The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', - * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', - * 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', - * 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Minimum duration of maintenance window. */ - readonly status?: DatabaseStatus; + minDurationInMinutes?: number; /** - * The ID of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Default duration for maintenance window. */ - readonly databaseId?: string; + defaultDurationInMinutes?: number; /** - * The creation date of the database (ISO8601 format). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Minimum number of maintenance windows cycles to be set on the database. */ - readonly creationDate?: Date; + minCycles?: number; /** - * The current service level objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Time granularity in minutes for maintenance windows. */ - readonly currentServiceObjectiveName?: string; + timeGranularityInMinutes?: number; /** - * The requested service level objective name of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether we allow multiple maintenance windows per cycle. */ - readonly requestedServiceObjectiveName?: string; + allowMultipleMaintenanceWindowsPerCycle?: boolean; +} + +/** + * Maintenance windows. + */ +export interface MaintenanceWindows extends ProxyResource { + timeRanges?: MaintenanceWindowTimeRange[]; +} + +/** + * A short term retention policy. + */ +export interface ManagedBackupShortTermRetentionPolicy extends ProxyResource { /** - * The default secondary region for this database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The backup retention period in days. This is how many days Point-in-Time Restore will be + * supported. */ - readonly defaultSecondaryLocation?: string; + retentionDays?: number; +} + +/** + * Database query. + */ +export interface ManagedInstanceQuery extends ProxyResource { /** - * Failover Group resource identifier that this database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Query text. */ - readonly failoverGroupId?: string; + queryText?: string; +} + +/** + * Properties of a topquery metric in one interval. + */ +export interface QueryMetricProperties { /** - * Specifies the point in time (ISO8601 format) of the source database that will be restored to - * create the new database. + * The name information for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - restorePointInTime?: Date; + readonly name?: string; /** - * Specifies the time that the database was deleted. + * The UI appropriate name for the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceDatabaseDeletionDate?: Date; + readonly displayName?: string; /** - * The resource identifier of the recovery point associated with create operation of this - * database. + * The unit of the metric. Possible values include: 'percentage', 'KB', 'microseconds', 'count' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryServicesRecoveryPointId?: string; + readonly unit?: QueryMetricUnitType; /** - * The resource identifier of the long term retention backup associated with create operation of - * this database. + * The value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - longTermRetentionBackupResourceId?: string; + readonly value?: number; /** - * The resource identifier of the recoverable database associated with create operation of this - * database. + * Metric value when min() aggregate function is used over the interval. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoverableDatabaseId?: string; + readonly min?: number; /** - * The resource identifier of the restorable dropped database associated with create operation of - * this database. + * 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.** */ - restorableDroppedDatabaseId?: string; + readonly max?: number; /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' + * 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.** */ - catalogCollation?: CatalogCollationType; + readonly avg?: number; /** - * Whether or not this database is zone redundant, which means the replicas of this database will - * be spread across multiple availability zones. + * 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.** */ - zoneRedundant?: boolean; + readonly sum?: number; /** - * The license type to apply for this database. Possible values include: 'LicenseIncluded', - * 'BasePrice' + * 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.** */ - licenseType?: DatabaseLicenseType; + readonly stdev?: number; +} + +/** + * Properties of a query metrics interval. + */ +export interface QueryMetricInterval { /** - * The max log size for this database. + * 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 maxLogSizeBytes?: number; + readonly intervalStartTime?: string; /** - * This records the earliest start date and time that restore is available for this database - * (ISO8601 format). + * Interval type (length). Possible values include: 'PT1H', 'P1D' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly earliestRestoreDate?: Date; + readonly intervalType?: QueryTimeGrainType; /** - * If enabled, connections that have application intent set to readonly in their connection - * string may be routed to a readonly secondary replica. This property is only settable for - * Premium and Business Critical databases. Possible values include: 'Enabled', 'Disabled' + * Execution count of a query in this interval. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readScale?: DatabaseReadScale; + readonly executionCount?: number; /** - * The number of readonly secondary replicas associated with the database to which readonly - * application intent connections may be routed. This property is only settable for Hyperscale - * edition databases. + * List of metric objects for this interval */ - readReplicaCount?: number; + metrics?: QueryMetricProperties[]; +} + +/** + * Properties of a query execution statistics. + */ +export interface QueryStatisticsProperties { /** - * The name and tier of the SKU. + * 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 currentSku?: Sku; + readonly databaseName?: string; /** - * Time in minutes after which database is automatically paused. A value of -1 means that - * automatic pause is disabled + * Unique query id (unique within one database). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - autoPauseDelay?: number; + readonly queryId?: string; /** - * Minimal capacity that database will always have allocated, if not paused + * The start time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - minCapacity?: number; + readonly startTime?: string; /** - * The date when database was paused by user configuration or action (ISO8601 format). Null if - * the database is ready. + * 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 pausedDate?: Date; + readonly endTime?: string; /** - * 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.** + * List of intervals with appropriate metric data */ - readonly resumedDate?: Date; + intervals?: QueryMetricInterval[]; } /** - * A database resource. + * An interface representing QueryStatistics. */ -export interface DatabaseUpdate { +export interface QueryStatistics extends ProxyResource { /** - * The name and tier of the SKU. + * 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.** */ - sku?: Sku; + readonly databaseName?: string; /** - * Specifies the mode of database creation. - * - * Default: regular database creation. - * - * Copy: creates a database as a copy of an existing database. sourceDatabaseId must be specified - * as the resource ID of the source database. - * - * Secondary: creates a database as a secondary replica of an existing database. sourceDatabaseId - * must be specified as the resource ID of the existing primary database. - * - * PointInTimeRestore: Creates a database by restoring a point in time backup of an existing - * database. sourceDatabaseId must be specified as the resource ID of the existing database, and - * restorePointInTime must be specified. - * - * Recovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be - * specified as the recoverable database resource ID to restore. - * - * Restore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must - * be specified. If sourceDatabaseId is the database's original resource ID, then - * sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the - * restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. - * restorePointInTime may also be specified to restore from an earlier point in time. - * - * RestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention - * vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point - * resource ID. - * - * Copy, Secondary, and RestoreLongTermRetentionBackup are not supported for DataWarehouse - * edition. Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', - * 'Restore', 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', - * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' + * Unique query id (unique within one database). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createMode?: CreateMode; + readonly queryId?: string; /** - * The collation of the database. + * The start time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - collation?: string; + readonly startTime?: string; /** - * The max size of the database expressed in bytes. + * The end time for the metric (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxSizeBytes?: number; + readonly endTime?: string; /** - * The name of the sample schema to apply when creating this database. Possible values include: - * 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' + * List of intervals with appropriate metric data */ - sampleName?: SampleName; + intervals?: QueryMetricInterval[]; +} + +/** + * A managed database restore details. + */ +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { /** - * The resource identifier of the elastic pool containing this database. + * Restore status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - elasticPoolId?: string; + readonly status?: string; /** - * The resource identifier of the source database associated with create operation of this - * database. + * Current restoring file name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceDatabaseId?: string; + readonly currentRestoringFileName?: string; /** - * The status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', - * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', - * 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', - * 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' + * Last restored file name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly status?: DatabaseStatus; + readonly lastRestoredFileName?: string; /** - * The ID of the database. + * Last restored file time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly databaseId?: string; + readonly lastRestoredFileTime?: Date; /** - * The creation date of the database (ISO8601 format). + * Percent completed. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationDate?: Date; + readonly percentCompleted?: number; /** - * The current service level objective name of the database. + * List of unrestorable files. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly currentServiceObjectiveName?: string; + readonly unrestorableFiles?: string[]; /** - * The requested service level objective name of the database. + * Number of files detected. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedServiceObjectiveName?: string; + readonly numberOfFilesDetected?: number; /** - * The default secondary region for this database. + * Last uploaded file name. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly defaultSecondaryLocation?: string; + readonly lastUploadedFileName?: string; /** - * Failover Group resource identifier that this database belongs to. + * Last uploaded file time. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly failoverGroupId?: string; + readonly lastUploadedFileTime?: Date; /** - * 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. + * The reason why restore is in Blocked state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoveryServicesRecoveryPointId?: string; + readonly blockReason?: string; +} + +/** + * A managed database security alert policy. + */ +export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource { /** - * The resource identifier of the long term retention backup associated with create operation of - * this database. + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been + * applied yet on the specific database. Possible values include: 'New', 'Enabled', 'Disabled' */ - longTermRetentionBackupResourceId?: string; + state: SecurityAlertPolicyState; /** - * The resource identifier of the recoverable database associated with create operation of this - * database. + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - recoverableDatabaseId?: string; + disabledAlerts?: string[]; /** - * The resource identifier of the restorable dropped database associated with create operation of - * this database. + * Specifies an array of e-mail addresses to which the alert is sent. */ - restorableDroppedDatabaseId?: string; + emailAddresses?: string[]; /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' + * Specifies that the alert is sent to the account administrators. */ - catalogCollation?: CatalogCollationType; + emailAccountAdmins?: boolean; /** - * Whether or not this database is zone redundant, which means the replicas of this database will - * be spread across multiple availability zones. + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob + * storage will hold all Threat Detection audit logs. */ - zoneRedundant?: boolean; + storageEndpoint?: string; /** - * The license type to apply for this database. Possible values include: 'LicenseIncluded', - * 'BasePrice' + * Specifies the identifier key of the Threat Detection audit storage account. */ - licenseType?: DatabaseLicenseType; + storageAccountAccessKey?: string; /** - * The max log size for this database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the number of days to keep in the Threat Detection audit logs. */ - readonly maxLogSizeBytes?: number; + retentionDays?: number; /** - * This records the earliest start date and time that restore is available for this database - * (ISO8601 format). + * Specifies the UTC creation time of the policy. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly earliestRestoreDate?: Date; + readonly creationTime?: Date; +} + +/** + * The properties that are supported in the $filter operation. + */ +export interface SecurityEventsFilterParameters { /** - * If enabled, connections that have application intent set to readonly in their connection - * string may be routed to a readonly secondary replica. This property is only settable for - * Premium and Business Critical databases. Possible values include: 'Enabled', 'Disabled' + * Filter on the event time. */ - readScale?: DatabaseReadScale; + eventTime?: Date; /** - * The number of readonly secondary replicas associated with the database to which readonly - * application intent connections may be routed. This property is only settable for Hyperscale - * edition databases. + * Whether to show server records or not. */ - readReplicaCount?: number; + showServerRecords?: boolean; +} + +/** + * The properties of a security event sql injection additional properties. + */ +export interface SecurityEventSqlInjectionAdditionalProperties { /** - * The name and tier of the SKU. + * The threat ID. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly currentSku?: Sku; + readonly threatId?: string; /** - * Time in minutes after which database is automatically paused. A value of -1 means that - * automatic pause is disabled + * The statement + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - autoPauseDelay?: number; + readonly statement?: string; /** - * Minimal capacity that database will always have allocated, if not paused + * The statement highlight offset + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - minCapacity?: number; + readonly statementHighlightOffset?: number; /** - * The date when database was paused by user configuration or action (ISO8601 format). Null if - * the database is ready. + * The statement highlight length * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly pausedDate?: Date; + readonly statementHighlightLength?: number; /** - * The date when database was resumed by user action or database login (ISO8601 format). Null if - * the database is paused. + * The sql error code * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resumedDate?: Date; + readonly errorCode?: number; /** - * Resource tags. + * The sql error severity + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; -} - -/** - * Contains the information necessary to perform a resource move (rename). - */ -export interface ResourceMoveDefinition { + readonly errorSeverity?: number; /** - * The target ID for the resource + * The sql error message + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - id: string; + readonly errorMessage?: string; } /** - * Per database settings of an elastic pool. + * A security event. */ -export interface ElasticPoolPerDatabaseSettings { - /** - * The minimum capacity all databases are guaranteed. - */ - minCapacity?: number; +export interface SecurityEvent extends ProxyResource { /** - * The maximum capacity any one database can consume. + * The time when the security event occurred. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxCapacity?: number; -} - -/** - * An elastic pool. - */ -export interface ElasticPool extends TrackedResource { + readonly eventTime?: Date; /** - * The elastic pool SKU. - * - * The list of SKUs may vary by region and support offer. To determine the SKUs (including the - * SKU name, tier/edition, family, and capacity) that are available to your subscription in an - * Azure region, use the `Capabilities_ListByLocation` REST API or the following command: - * - * ```azurecli - * az sql elastic-pool list-editions -l -o table - * ```` + * The type of the security event. Possible values include: 'Undefined', + * 'SqlInjectionVulnerability', 'SqlInjectionExploit' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sku?: Sku; + readonly securityEventType?: SecurityEventType; /** - * Kind of elastic pool. This is metadata used for the Azure portal experience. + * The subscription name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly kind?: string; + readonly subscription?: string; /** - * The state of the elastic pool. Possible values include: 'Creating', 'Ready', 'Disabled' + * The server name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: ElasticPoolState; + readonly server?: string; /** - * The creation date of the elastic pool (ISO8601 format). + * The database name * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly creationDate?: Date; + readonly database?: string; /** - * The storage limit for the database elastic pool in bytes. + * 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.** */ - maxSizeBytes?: number; + readonly clientIp?: string; /** - * The per database settings for the elastic pool. + * The application used to execute the statement. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + readonly applicationName?: string; /** - * Whether or not this elastic pool is zone redundant, which means the replicas of this elastic - * pool will be spread across multiple availability zones. + * The principal user who executed the statement + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - zoneRedundant?: boolean; + readonly principalName?: string; /** - * The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', - * 'BasePrice' + * 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.** */ - licenseType?: ElasticPoolLicenseType; + readonly securityEventSqlInjectionAdditionalProperties?: SecurityEventSqlInjectionAdditionalProperties; } /** - * An elastic pool update. + * A sensitivity label. */ -export interface ElasticPoolUpdate { - sku?: Sku; +export interface SensitivityLabel extends ProxyResource { /** - * The storage limit for the database elastic pool in bytes. + * Resource that manages the sensitivity label. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - maxSizeBytes?: number; + readonly managedBy?: string; /** - * The per database settings for the elastic pool. + * The schema name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - perDatabaseSettings?: ElasticPoolPerDatabaseSettings; + readonly schemaName?: string; /** - * Whether or not this elastic pool is zone redundant, which means the replicas of this elastic - * pool will be spread across multiple availability zones. + * The table name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - zoneRedundant?: boolean; + readonly tableName?: string; /** - * The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', - * 'BasePrice' + * The column name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - licenseType?: ElasticPoolLicenseType; + readonly columnName?: string; /** - * Resource tags. + * The label name. */ - tags?: { [propertyName: string]: string }; -} - -/** - * Properties of a vulnerability assessment scan error. - */ -export interface VulnerabilityAssessmentScanError { + labelName?: string; /** - * The error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The label ID. */ - readonly code?: string; + labelId?: string; /** - * The error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The information type. */ - readonly message?: string; -} - -/** - * A vulnerability assessment scan record. - */ -export interface VulnerabilityAssessmentScanRecord extends ProxyResource { + informationType?: string; /** - * The scan ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The information type ID. */ - readonly scanId?: string; + informationTypeId?: string; /** - * The scan trigger type. Possible values include: 'OnDemand', 'Recurring' + * Is sensitivity recommendation disabled. Applicable for recommended sensitivity label only. + * Specifies whether the sensitivity recommendation on this column is disabled (dismissed) or + * not. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly triggerType?: VulnerabilityAssessmentScanTriggerType; + readonly isDisabled?: boolean; /** - * The scan status. Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' */ - readonly state?: VulnerabilityAssessmentScanState; + rank?: SensitivityLabelRank; +} + +/** + * A sensitivity label update operation. + */ +export interface SensitivityLabelUpdate extends ProxyResource { /** - * The scan start time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Possible values include: 'set', 'remove' */ - readonly startTime?: Date; + op: SensitivityLabelUpdateKind; /** - * The scan end time (UTC). - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Schema name of the column to update. */ - readonly endTime?: Date; + schema: string; /** - * The scan errors. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Table name of the column to update. */ - readonly errors?: VulnerabilityAssessmentScanError[]; + table: string; /** - * The scan results storage container path. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Column name to update. */ - readonly storageContainerPath?: string; + column: string; /** - * The number of failed security checks. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The sensitivity label information to apply on a column. */ - readonly numberOfFailedSecurityChecks?: number; + sensitivityLabel?: SensitivityLabel; } /** - * A database Vulnerability Assessment scan export resource. + * A list of sensitivity label update operations. */ -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; +export interface SensitivityLabelUpdateList { + operations?: SensitivityLabelUpdate[]; } /** - * Read-write endpoint of the failover group instance. + * A recommended sensitivity label update operation. */ -export interface InstanceFailoverGroupReadWriteEndpoint { +export interface RecommendedSensitivityLabelUpdate extends ProxyResource { /** - * Failover policy of the read-write endpoint for the failover group. If failoverPolicy is - * Automatic then failoverWithDataLossGracePeriodMinutes is required. Possible values include: - * 'Manual', 'Automatic' + * Possible values include: 'enable', 'disable' */ - failoverPolicy: ReadWriteEndpointFailoverPolicy; + op: RecommendedSensitivityLabelUpdateKind; /** - * Grace period before failover with data loss is attempted for the read-write endpoint. If - * failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes is required. + * Schema name of the column to update. */ - failoverWithDataLossGracePeriodMinutes?: number; + schema: string; + /** + * Table name of the column to update. + */ + table: string; + /** + * Column name to update. + */ + column: string; } /** - * Read-only endpoint of the failover group instance. + * A list of recommended sensitivity label update operations. */ -export interface InstanceFailoverGroupReadOnlyEndpoint { +export interface RecommendedSensitivityLabelUpdateList { + operations?: RecommendedSensitivityLabelUpdate[]; +} + +/** + * A managed database transparent data encryption state. + */ +export interface ManagedTransparentDataEncryption extends ProxyResource { /** - * Failover policy of the read-only endpoint for the failover group. Possible values include: - * 'Disabled', 'Enabled' + * Specifies the state of the transparent data encryption. Possible values include: 'Enabled', + * 'Disabled' */ - failoverPolicy?: ReadOnlyEndpointFailoverPolicy; + state: TransparentDataEncryptionState; } /** - * Partner region information for the failover group. + * A managed database resource. */ -export interface PartnerRegionInfo { +export interface ManagedDatabase extends TrackedResource { /** - * Geo location of the partner managed instances. + * Collation of the managed database. */ - location?: string; + collation?: string; /** - * Replication role of the partner managed instances. Possible values include: 'Primary', - * 'Secondary' + * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible', 'Restoring', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; -} - -/** - * Pairs of Managed Instances in the failover group. - */ -export interface ManagedInstancePairInfo { - /** - * Id of Primary Managed Instance in pair. - */ - primaryManagedInstanceId?: string; + readonly status?: ManagedDatabaseStatus; /** - * Id of Partner Managed Instance in pair. + * Creation date of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - partnerManagedInstanceId?: string; -} - -/** - * An instance failover group. - */ -export interface InstanceFailoverGroup extends ProxyResource { + readonly creationDate?: Date; /** - * Read-write endpoint of the failover group instance. + * 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.** */ - readWriteEndpoint: InstanceFailoverGroupReadWriteEndpoint; + readonly earliestRestorePoint?: Date; /** - * Read-only endpoint of the failover group instance. + * 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. */ - readOnlyEndpoint?: InstanceFailoverGroupReadOnlyEndpoint; + restorePointInTime?: Date; /** - * Local replication role of the failover group instance. Possible values include: 'Primary', - * 'Secondary' + * Geo paired region. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly replicationRole?: InstanceFailoverGroupReplicationRole; + readonly defaultSecondaryLocation?: string; /** - * Replication state of the failover group instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - readonly replicationState?: string; + catalogCollation?: CatalogCollationType; /** - * Partner region information for the failover group. + * 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). Possible values include: 'Default', + * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' */ - partnerRegions: PartnerRegionInfo[]; + createMode?: ManagedDatabaseCreateMode; /** - * List of managed instance pairs in the failover group. + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri + * of the storage container where backups for this restore are stored. */ - managedInstancePairs: ManagedInstancePairInfo[]; -} - -/** - * A short term retention policy. - */ -export interface BackupShortTermRetentionPolicy extends ProxyResource { + storageContainerUri?: string; /** - * The backup retention period in days. This is how many days Point-in-Time Restore will be - * supported. + * The resource identifier of the source database associated with create operation of this + * database. */ - retentionDays?: number; -} - -/** - * A TDE certificate that can be uploaded into a server. - */ -export interface TdeCertificate extends ProxyResource { + sourceDatabaseId?: string; /** - * The base64 encoded certificate private blob. + * The restorable dropped database resource id to restore when creating this database. */ - privateBlob: string; + restorableDroppedDatabaseId?: string; /** - * The certificate password. + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. */ - certPassword?: string; -} - -/** - * A managed instance key. - */ -export interface ManagedInstanceKey extends ProxyResource { + storageContainerSasToken?: string; /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. + * 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 kind?: string; + readonly failoverGroupId?: string; /** - * The key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - serverKeyType: ServerKeyType; + recoverableDatabaseId?: string; /** - * The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. + * The name of the Long Term Retention backup to be used for restore of this managed database. */ - uri?: string; + longTermRetentionBackupResourceId?: string; /** - * Thumbprint of the key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Whether to auto complete restore of this managed database. */ - readonly thumbprint?: string; + autoCompleteRestore?: boolean; /** - * The key creation date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Last backup file name for restore of this managed database. */ - readonly creationDate?: Date; + lastBackupName?: string; } /** - * The managed instance encryption protector. + * An managed database update. */ -export interface ManagedInstanceEncryptionProtector extends ProxyResource { - /** - * Kind of encryption protector. This is metadata used for the Azure portal experience. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly kind?: string; +export interface ManagedDatabaseUpdate { /** - * The name of the managed instance key. + * Collation of the managed database. */ - serverKeyName?: string; + collation?: string; /** - * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: - * 'ServiceManaged', 'AzureKeyVault' + * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible', 'Restoring', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - serverKeyType: ServerKeyType; + readonly status?: ManagedDatabaseStatus; /** - * The URI of the server key. + * Creation date of the database. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly uri?: string; + readonly creationDate?: Date; /** - * Thumbprint of the server key. + * 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 thumbprint?: string; -} - -/** - * A recoverable managed database resource. - */ -export interface RecoverableManagedDatabase extends ProxyResource { + readonly earliestRestorePoint?: Date; /** - * The last available backup date. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point + * in time (ISO8601 format) of the source database that will be restored to create the new + * database. */ - readonly lastAvailableBackupDate?: string; -} - -/** - * A managed instance vulnerability assessment. - */ -export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { + restorePointInTime?: Date; /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). + * Geo paired region. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageContainerPath: string; + readonly defaultSecondaryLocation?: string; /** - * A shared access signature (SAS Key) that has read and write access to the blob container - * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - storageContainerSasKey?: string; + catalogCollation?: CatalogCollationType; /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. + * 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). Possible values include: 'Default', + * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' */ - storageAccountAccessKey?: string; + createMode?: ManagedDatabaseCreateMode; /** - * The recurring scans settings + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri + * of the storage container where backups for this restore are stored. */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * A server vulnerability assessment. - */ -export interface ServerVulnerabilityAssessment extends ProxyResource { + storageContainerUri?: string; /** - * A blob storage container path to hold the scan results (e.g. - * https://myStorage.blob.core.windows.net/VaScans/). + * The resource identifier of the source database associated with create operation of this + * database. */ - storageContainerPath: string; + sourceDatabaseId?: string; /** - * A shared access signature (SAS Key) that has read and write access to the blob container - * specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, - * StorageContainerSasKey is required. + * The restorable dropped database resource id to restore when creating this database. */ - storageContainerSasKey?: string; + restorableDroppedDatabaseId?: string; /** - * Specifies the identifier key of the storage account for vulnerability assessment scan results. - * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. */ - storageAccountAccessKey?: string; + storageContainerSasToken?: string; /** - * The recurring scans settings + * 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.** */ - recurringScans?: VulnerabilityAssessmentRecurringScansProperties; -} - -/** - * An Azure SQL instance pool. - */ -export interface InstancePool extends TrackedResource { + readonly failoverGroupId?: string; /** - * The name and tier of the SKU. + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - sku?: Sku; + recoverableDatabaseId?: string; /** - * Resource ID of the subnet to place this instance pool in. + * The name of the Long Term Retention backup to be used for restore of this managed database. */ - subnetId: string; + longTermRetentionBackupResourceId?: string; /** - * Count of vCores belonging to this instance pool. + * Whether to auto complete restore of this managed database. */ - vCores: number; + autoCompleteRestore?: boolean; /** - * The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) - * and 'BasePrice' (without SQL license price). Possible values include: 'LicenseIncluded', - * 'BasePrice' + * Last backup file name for restore of this managed database. */ - licenseType: InstancePoolLicenseType; -} - -/** - * An update to an Instance pool. - */ -export interface InstancePoolUpdate { + lastBackupName?: string; /** * Resource tags. */ @@ -5167,2510 +4806,8549 @@ export interface InstancePoolUpdate { } /** - * ARM Usage Name + * Contains the information necessary to perform a complete database restore operation. */ -export interface Name { - /** - * Usage name value - */ - value?: string; +export interface CompleteDatabaseRestoreDefinition { /** - * Usage name localized value. + * The last backup name to apply */ - localizedValue?: string; + lastBackupName: string; } /** - * ARM usage. + * An Azure SQL managed instance administrator. */ -export interface Usage { +export interface ManagedInstanceAdministrator extends ProxyResource { /** - * Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Login name of the managed instance administrator. */ - readonly id?: string; + login: string; /** - * Resource name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * SID (object ID) of the managed instance administrator. */ - readonly name?: Name; + sid: string; /** - * Resource type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Tenant ID of the managed instance administrator. */ - readonly type?: string; + tenantId?: string; +} + +/** + * Azure Active Directory only authentication. + */ +export interface ManagedInstanceAzureADOnlyAuthentication extends ProxyResource { /** - * Usage unit. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure Active Directory only Authentication enabled. */ - readonly unit?: string; + azureADOnlyAuthentication: boolean; +} + +/** + * The managed instance encryption protector. + */ +export interface ManagedInstanceEncryptionProtector extends ProxyResource { /** - * Usage current value. + * 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 currentValue?: number; + readonly kind?: string; + /** + * The name of the managed instance key. + */ + serverKeyName?: string; + /** + * The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' + */ + serverKeyType: ServerKeyType; /** - * Usage limit. + * The URI of the server key. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly limit?: number; + readonly uri?: string; /** - * Usage requested limit. + * Thumbprint of the server key. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly requestedLimit?: number; + readonly thumbprint?: string; + /** + * Key auto rotation opt-in flag. Either true or false. + */ + autoRotationEnabled?: boolean; } /** - * An Azure SQL managed instance. + * A managed instance key. */ -export interface ManagedInstance extends TrackedResource { +export interface ManagedInstanceKey extends ProxyResource { /** - * The Azure Active Directory identity of the managed instance. + * 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.** */ - identity?: ResourceIdentity; + readonly kind?: string; /** - * Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 + * The key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' */ - sku?: Sku; + serverKeyType: ServerKeyType; /** - * Specifies the mode of database creation. - * - * Default: Regular instance creation. - * - * Restore: Creates an instance by restoring a set of backups to specific point in time. - * RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: - * 'Default', 'PointInTimeRestore' + * The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required. */ - managedInstanceCreateMode?: ManagedServerCreateMode; + uri?: string; /** - * The fully qualified domain name of the managed instance. + * Thumbprint of the key. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly fullyQualifiedDomainName?: string; + readonly thumbprint?: string; /** - * Administrator username for the managed instance. Can only be specified when the managed - * instance is being created (and is required for creation). + * The key creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - administratorLogin?: string; + readonly creationDate?: Date; /** - * The administrator login password (required for managed instance creation). + * 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.** */ - administratorLoginPassword?: string; + readonly autoRotationEnabled?: boolean; +} + +/** + * A long term retention policy. + */ +export interface ManagedInstanceLongTermRetentionPolicy extends ProxyResource { /** - * Subnet resource ID for the managed instance. + * The weekly retention policy for an LTR backup in an ISO 8601 format. */ - subnetId?: string; + weeklyRetention?: string; /** - * The state of the managed instance. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The monthly retention policy for an LTR backup in an ISO 8601 format. */ - readonly state?: string; + monthlyRetention?: string; /** - * The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL - * license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible - * values include: 'LicenseIncluded', 'BasePrice' + * The yearly retention policy for an LTR backup in an ISO 8601 format. */ - licenseType?: ManagedInstanceLicenseType; + yearlyRetention?: string; /** - * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. + * The week of year to take the yearly backup in an ISO 8601 format. */ + weekOfYear?: number; +} + +/** + * An interface representing UpsertManagedServerOperationParameters. + */ +export interface UpsertManagedServerOperationParameters { + family?: string; + tier?: string; vCores?: number; - /** - * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. - */ storageSizeInGB?: number; +} + +/** + * The parameters of a managed instance operation. + */ +export interface ManagedInstanceOperationParametersPair { /** - * Collation of the managed instance. - */ - collation?: string; - /** - * The Dns Zone that the managed instance is in. + * The current parameters. * **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; + readonly currentParameters?: UpsertManagedServerOperationParameters; /** - * The resource identifier of the source managed instance associated with create operation of - * this instance. + * The requested parameters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceManagedInstanceId?: string; + readonly requestedParameters?: UpsertManagedServerOperationParameters; +} + +/** + * An interface representing UpsertManagedServerOperationStep. + */ +export interface UpsertManagedServerOperationStep { + order?: number; + name?: string; /** - * Specifies the point in time (ISO8601 format) of the source database that will be restored to - * create the new database. + * Possible values include: 'NotStarted', 'InProgress', 'SlowedDown', 'Completed', 'Failed', + * 'Canceled' */ - restorePointInTime?: Date; + status?: Status; +} + +/** + * The steps of a managed instance operation. + */ +export interface ManagedInstanceOperationSteps { /** - * Connection type used for connecting to the instance. Possible values include: 'Proxy', - * 'Redirect', 'Default' + * The total number of operation steps. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - proxyOverride?: ManagedInstanceProxyOverride; + readonly totalSteps?: string; /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM - * sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in - * PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + * The number of current operation steps. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - timezoneId?: string; + readonly currentStep?: number; /** - * The Id of the instance pool this managed server belongs to. + * The operation steps list. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - instancePoolId?: string; + readonly stepsList?: UpsertManagedServerOperationStep[]; } /** - * An update request for an Azure SQL Database managed instance. + * A managed instance operation. */ -export interface ManagedInstanceUpdate { +export interface ManagedInstanceOperation extends ProxyResource { /** - * Managed instance sku + * 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.** */ - sku?: Sku; + readonly managedInstanceName?: string; /** - * Specifies the mode of database creation. - * - * Default: Regular instance creation. - * - * Restore: Creates an instance by restoring a set of backups to specific point in time. - * RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: - * 'Default', 'PointInTimeRestore' + * The name of operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - managedInstanceCreateMode?: ManagedServerCreateMode; + readonly operation?: string; /** - * The fully qualified domain name of the managed instance. + * The friendly name of operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly fullyQualifiedDomainName?: string; + readonly operationFriendlyName?: string; /** - * Administrator username for the managed instance. Can only be specified when the managed - * instance is being created (and is required for creation). + * The percentage of the operation completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - administratorLogin?: string; + readonly percentComplete?: number; /** - * The administrator login password (required for managed instance creation). + * The operation start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - administratorLoginPassword?: string; + readonly startTime?: Date; /** - * Subnet resource ID for the managed instance. + * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', + * 'CancelInProgress', 'Cancelled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - subnetId?: string; + readonly state?: ManagementOperationState; /** - * The state of the managed instance. + * The operation error code. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly state?: string; + readonly errorCode?: number; /** - * The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL - * license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible - * values include: 'LicenseIncluded', 'BasePrice' + * The operation error description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - licenseType?: ManagedInstanceLicenseType; + readonly errorDescription?: string; /** - * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. + * The operation error severity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - vCores?: number; + readonly errorSeverity?: number; /** - * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. + * Whether or not the error is a user error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageSizeInGB?: number; + readonly isUserError?: boolean; /** - * Collation of the managed instance. + * The estimated completion time of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - collation?: string; + readonly estimatedCompletionTime?: Date; /** - * The Dns Zone that the managed instance is in. + * The operation description. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly dnsZone?: string; + readonly description?: string; /** - * The resource id of another managed instance whose DNS zone this managed instance will share - * after creation. + * Whether the operation can be cancelled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dnsZonePartner?: string; + readonly isCancellable?: boolean; /** - * Whether or not the public data endpoint is enabled. + * The operation parameters. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publicDataEndpointEnabled?: boolean; + readonly operationParameters?: ManagedInstanceOperationParametersPair; /** - * The resource identifier of the source managed instance associated with create operation of - * this instance. + * The operation steps. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceManagedInstanceId?: string; + readonly operationSteps?: ManagedInstanceOperationSteps; +} + +/** + * An interface representing ManagedInstancePrivateEndpointProperty. + */ +export interface ManagedInstancePrivateEndpointProperty { /** - * Specifies the point in time (ISO8601 format) of the source database that will be restored to - * create the new database. + * Resource id of the private endpoint. */ - restorePointInTime?: Date; + id?: string; +} + +/** + * An interface representing ManagedInstancePrivateLinkServiceConnectionStateProperty. + */ +export interface ManagedInstancePrivateLinkServiceConnectionStateProperty { /** - * Connection type used for connecting to the instance. Possible values include: 'Proxy', - * 'Redirect', 'Default' - */ - proxyOverride?: ManagedInstanceProxyOverride; - /** - * Id of the timezone. Allowed values are timezones supported by Windows. - * Windows keeps details on supported timezones, including the id, in registry under - * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. - * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM - * sys.time_zone_info. - * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in - * PowerShell. - * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + * The private link service connection status. */ - timezoneId?: string; + status: string; /** - * The Id of the instance pool this managed server belongs to. + * The private link service connection description. */ - instancePoolId?: string; + description: string; /** - * Resource tags. + * The private link service connection description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly actionsRequired?: string; } /** - * A managed database restore details. + * Properties of a private endpoint connection. */ -export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { - /** - * Restore status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: string; +export interface ManagedInstancePrivateEndpointConnectionProperties { /** - * Current restoring file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Private endpoint which the connection belongs to. */ - readonly currentRestoringFileName?: string; + privateEndpoint?: ManagedInstancePrivateEndpointProperty; /** - * Last restored file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Connection State of the Private Endpoint Connection. */ - readonly lastRestoredFileName?: string; + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** - * Last restored file time. + * State of the Private Endpoint Connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastRestoredFileTime?: Date; + readonly provisioningState?: string; +} + +/** + * A private endpoint connection + */ +export interface ManagedInstancePrivateEndpointConnection extends ProxyResource { /** - * Percent completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Private endpoint which the connection belongs to. */ - readonly percentCompleted?: number; + privateEndpoint?: ManagedInstancePrivateEndpointProperty; /** - * List of unrestorable files. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Connection State of the Private Endpoint Connection. */ - readonly unrestorableFiles?: string[]; + privateLinkServiceConnectionState?: ManagedInstancePrivateLinkServiceConnectionStateProperty; /** - * Number of files detected. + * State of the Private Endpoint Connection. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly numberOfFilesDetected?: number; + readonly provisioningState?: string; +} + +/** + * Properties of a private link resource. + */ +export interface ManagedInstancePrivateLinkProperties { /** - * Last uploaded file name. + * The private link resource group id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastUploadedFileName?: string; + readonly groupId?: string; /** - * Last uploaded file time. + * The private link resource required member names. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastUploadedFileTime?: Date; + readonly requiredMembers?: string[]; +} + +/** + * A private link resource + */ +export interface ManagedInstancePrivateLink extends ProxyResource { /** - * The reason why restore is in Blocked state. + * The private link resource group id. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly blockReason?: string; + readonly properties?: ManagedInstancePrivateLinkProperties; } /** - * A managed database resource. + * A TDE certificate that can be uploaded into a server. */ -export interface ManagedDatabase extends TrackedResource { +export interface TdeCertificate extends ProxyResource { /** - * Collation of the managed database. + * The base64 encoded certificate private blob. */ - collation?: string; + privateBlob: string; /** - * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible', 'Restoring', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The certificate password. */ - readonly status?: ManagedDatabaseStatus; + certPassword?: string; +} + +/** + * A managed instance vulnerability assessment. + */ +export interface ManagedInstanceVulnerabilityAssessment extends ProxyResource { /** - * Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). */ - readonly creationDate?: Date; + storageContainerPath: string; /** - * 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.** + * 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. */ - readonly earliestRestorePoint?: Date; + storageContainerSasKey?: string; /** - * 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. + * Specifies the identifier key of the storage account for vulnerability assessment scan results. + * If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. */ - restorePointInTime?: Date; + storageAccountAccessKey?: string; /** - * Geo paired region. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The recurring scans settings */ - readonly defaultSecondaryLocation?: string; + recurringScans?: VulnerabilityAssessmentRecurringScansProperties; +} + +/** + * Azure Active Directory identity configuration for a resource. + */ +export interface UserIdentity { /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' + * The Azure Active Directory principal id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - catalogCollation?: CatalogCollationType; + readonly principalId?: string; /** - * Managed database create mode. PointInTimeRestore: Create a database by restoring a point in - * time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and - * PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from - * external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be - * specified. Recovery: Creates a database by restoring a geo-replicated backup. - * RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' + * The Azure Active Directory client id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - createMode?: ManagedDatabaseCreateMode; + readonly clientId?: string; +} + +/** + * Azure Active Directory identity configuration for a resource. + */ +export interface ResourceIdentityWithUserAssignedIdentities { /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri - * of the storage container where backups for this restore are stored. + * The resource ids of the user assigned identities to use */ - storageContainerUri?: string; + userAssignedIdentities?: { [propertyName: string]: UserIdentity }; /** - * The resource identifier of the source database associated with create operation of this - * database. + * The Azure Active Directory principal id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceDatabaseId?: string; + readonly principalId?: string; /** - * The restorable dropped database resource id to restore when creating this database. + * The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an + * Azure Active Directory principal for the resource. Possible values include: 'None', + * 'SystemAssigned', 'UserAssigned' */ - restorableDroppedDatabaseId?: string; + type?: IdentityType; /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. + * The Azure Active Directory tenant id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageContainerSasToken?: string; + readonly tenantId?: string; +} + +/** + * A private endpoint connection under a managed instance + */ +export interface ManagedInstancePecProperty { /** - * Instance Failover Group resource identifier that this managed database belongs to. + * Resource ID. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly failoverGroupId?: string; + readonly id?: string; /** - * The resource identifier of the recoverable database associated with create operation of this - * database. + * Private endpoint connection properties + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - recoverableDatabaseId?: string; + readonly properties?: ManagedInstancePrivateEndpointConnectionProperties; } /** - * An managed database update. + * Properties of a active directory administrator. */ -export interface ManagedDatabaseUpdate { +export interface ManagedInstanceExternalAdministrator { /** - * Collation of the managed database. + * Type of the sever administrator. Possible values include: 'ActiveDirectory' */ - collation?: string; + administratorType?: AdministratorType; /** - * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible', 'Restoring', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Principal Type of the sever administrator. Possible values include: 'User', 'Group', + * 'Application' */ - readonly status?: ManagedDatabaseStatus; + principalType?: PrincipalType; /** - * Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Login name of the server administrator. */ - readonly creationDate?: Date; + login?: string; /** - * 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.** + * SID (object ID) of the server administrator. */ - readonly earliestRestorePoint?: Date; + sid?: string; /** - * 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. + * Tenant ID of the administrator. */ - restorePointInTime?: Date; + tenantId?: string; /** - * Geo paired region. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure Active Directory only Authentication enabled. */ - readonly defaultSecondaryLocation?: string; + azureADOnlyAuthentication?: boolean; +} + +/** + * An Azure SQL managed instance. + */ +export interface ManagedInstance extends TrackedResource { /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' + * The Azure Active Directory identity of the managed instance. */ - catalogCollation?: CatalogCollationType; + identity?: ResourceIdentityWithUserAssignedIdentities; /** - * Managed database create mode. PointInTimeRestore: Create a database by restoring a point in - * time backup of an existing database. SourceDatabaseName, SourceManagedInstanceName and - * PointInTime must be specified. RestoreExternalBackup: Create a database by restoring from - * external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be - * specified. Recovery: Creates a database by restoring a geo-replicated backup. - * RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' + * Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5 */ - createMode?: ManagedDatabaseCreateMode; + sku?: Sku; /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri - * of the storage container where backups for this restore are stored. + * Possible values include: 'Creating', 'Deleting', 'Updating', 'Unknown', 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageContainerUri?: string; + readonly provisioningState?: ProvisioningState1; /** - * The resource identifier of the source database associated with create operation of this - * database. + * Specifies the mode of database creation. + * + * Default: Regular instance creation. + * + * Restore: Creates an instance by restoring a set of backups to specific point in time. + * RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: + * 'Default', 'PointInTimeRestore' */ - sourceDatabaseId?: string; + managedInstanceCreateMode?: ManagedServerCreateMode; /** - * The restorable dropped database resource id to restore when creating this database. + * The fully qualified domain name of the managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - restorableDroppedDatabaseId?: string; + readonly fullyQualifiedDomainName?: string; /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. + * Administrator username for the managed instance. Can only be specified when the managed + * instance is being created (and is required for creation). */ - storageContainerSasToken?: string; + administratorLogin?: 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.** + * The administrator login password (required for managed instance creation). */ - readonly failoverGroupId?: string; + administratorLoginPassword?: string; /** - * The resource identifier of the recoverable database associated with create operation of this - * database. + * Subnet resource ID for the managed instance. */ - recoverableDatabaseId?: string; + subnetId?: string; /** - * Resource tags. + * The state of the managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; -} - -/** - * Contains the information necessary to perform a complete database restore operation. - */ -export interface CompleteDatabaseRestoreDefinition { + readonly state?: string; /** - * The last backup name to apply + * The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL + * license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible + * values include: 'LicenseIncluded', 'BasePrice' */ - lastBackupName: string; + licenseType?: ManagedInstanceLicenseType; + /** + * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. + */ + vCores?: number; + /** + * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. + */ + storageSizeInGB?: number; + /** + * Collation of the managed instance. + */ + collation?: string; + /** + * The Dns Zone that the managed instance is in. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dnsZone?: string; + /** + * The resource id of another managed instance whose DNS zone this managed instance will share + * after creation. + */ + dnsZonePartner?: string; + /** + * Whether or not the public data endpoint is enabled. + */ + publicDataEndpointEnabled?: boolean; + /** + * The resource identifier of the source managed instance associated with create operation of + * this instance. + */ + sourceManagedInstanceId?: string; + /** + * Specifies the point in time (ISO8601 format) of the source database that will be restored to + * create the new database. + */ + restorePointInTime?: Date; + /** + * Connection type used for connecting to the instance. Possible values include: 'Proxy', + * 'Redirect', 'Default' + */ + proxyOverride?: ManagedInstanceProxyOverride; + /** + * Id of the timezone. Allowed values are timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM + * sys.time_zone_info. + * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in + * PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + */ + timezoneId?: string; + /** + * The Id of the instance pool this managed server belongs to. + */ + instancePoolId?: string; + /** + * Specifies maintenance configuration id to apply to this managed instance. + */ + maintenanceConfigurationId?: string; + /** + * List of private endpoint connections on a managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** + * Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' + */ + minimalTlsVersion?: string; + /** + * The storage account type used to store backups for this instance. The options are LRS + * (LocallyRedundantStorage), ZRS (ZoneRedundantStorage) and GRS (GeoRedundantStorage). Possible + * values include: 'GRS', 'LRS', 'ZRS' + */ + storageAccountType?: StorageAccountType; + /** + * Whether or not the multi-az is enabled. + */ + zoneRedundant?: boolean; + /** + * The resource id of a user assigned identity to be used by default. + */ + primaryUserAssignedIdentityId?: string; + /** + * A CMK URI of the key to use for encryption. + */ + keyId?: string; + /** + * The Azure Active Directory administrator of the server. + */ + administrators?: ManagedInstanceExternalAdministrator; } /** - * An interface representing PrivateEndpointProperty. + * An update request for an Azure SQL Database managed instance. */ -export interface PrivateEndpointProperty extends BaseResource { +export interface ManagedInstanceUpdate { /** - * Resource id of the private endpoint. + * Managed instance sku */ - id?: string; + sku?: Sku; + /** + * Managed instance identity + */ + identity?: ResourceIdentityWithUserAssignedIdentities; + /** + * Possible values include: 'Creating', 'Deleting', 'Updating', 'Unknown', 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState1; + /** + * Specifies the mode of database creation. + * + * Default: Regular instance creation. + * + * Restore: Creates an instance by restoring a set of backups to specific point in time. + * RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: + * 'Default', 'PointInTimeRestore' + */ + managedInstanceCreateMode?: ManagedServerCreateMode; + /** + * The fully qualified domain name of the managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fullyQualifiedDomainName?: string; + /** + * Administrator username for the managed instance. Can only be specified when the managed + * instance is being created (and is required for creation). + */ + administratorLogin?: string; + /** + * The administrator login password (required for managed instance creation). + */ + administratorLoginPassword?: string; + /** + * Subnet resource ID for the managed instance. + */ + subnetId?: string; + /** + * The state of the managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: string; + /** + * The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL + * license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible + * values include: 'LicenseIncluded', 'BasePrice' + */ + licenseType?: ManagedInstanceLicenseType; + /** + * The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80. + */ + vCores?: number; + /** + * Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only. + */ + storageSizeInGB?: number; + /** + * Collation of the managed instance. + */ + collation?: string; + /** + * The Dns Zone that the managed instance is in. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dnsZone?: string; + /** + * The resource id of another managed instance whose DNS zone this managed instance will share + * after creation. + */ + dnsZonePartner?: string; + /** + * Whether or not the public data endpoint is enabled. + */ + publicDataEndpointEnabled?: boolean; + /** + * The resource identifier of the source managed instance associated with create operation of + * this instance. + */ + sourceManagedInstanceId?: string; + /** + * Specifies the point in time (ISO8601 format) of the source database that will be restored to + * create the new database. + */ + restorePointInTime?: Date; + /** + * Connection type used for connecting to the instance. Possible values include: 'Proxy', + * 'Redirect', 'Default' + */ + proxyOverride?: ManagedInstanceProxyOverride; + /** + * Id of the timezone. Allowed values are timezones supported by Windows. + * Windows keeps details on supported timezones, including the id, in registry under + * KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. + * You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM + * sys.time_zone_info. + * List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in + * PowerShell. + * An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time". + */ + timezoneId?: string; + /** + * The Id of the instance pool this managed server belongs to. + */ + instancePoolId?: string; + /** + * Specifies maintenance configuration id to apply to this managed instance. + */ + maintenanceConfigurationId?: string; + /** + * List of private endpoint connections on a managed instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: ManagedInstancePecProperty[]; + /** + * Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' + */ + minimalTlsVersion?: string; + /** + * The storage account type used to store backups for this instance. The options are LRS + * (LocallyRedundantStorage), ZRS (ZoneRedundantStorage) and GRS (GeoRedundantStorage). Possible + * values include: 'GRS', 'LRS', 'ZRS' + */ + storageAccountType?: StorageAccountType; + /** + * Whether or not the multi-az is enabled. + */ + zoneRedundant?: boolean; + /** + * The resource id of a user assigned identity to be used by default. + */ + primaryUserAssignedIdentityId?: string; + /** + * A CMK URI of the key to use for encryption. + */ + keyId?: string; + /** + * The Azure Active Directory administrator of the server. + */ + administrators?: ManagedInstanceExternalAdministrator; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; } /** - * An interface representing PrivateLinkServiceConnectionStateProperty. + * An interface representing TopQueries. */ -export interface PrivateLinkServiceConnectionStateProperty { +export interface TopQueries { /** - * The private link service connection status. + * Requested number of top queries. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status: string; + readonly numberOfQueries?: number; /** - * The private link service connection description. + * Aggregation function used to calculate query metrics. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - description: string; + readonly aggregationFunction?: string; /** - * The actions required for private link service connection. + * Metric used to rank queries. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly actionsRequired?: string; + readonly observationMetric?: string; + /** + * Interval type (length). Possible values include: 'PT1H', 'P1D' + * **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 private endpoint connection + * A managed server security alert policy. */ -export interface PrivateEndpointConnection extends ProxyResource { +export interface ManagedServerSecurityAlertPolicy extends ProxyResource { /** - * Private endpoint which the connection belongs to. + * SystemData of SecurityAlertPolicyResource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - privateEndpoint?: PrivateEndpointProperty; + readonly systemData?: SystemData; /** - * Connection state of the private endpoint connection. + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been + * applied yet on the specific database. Possible values include: 'Enabled', 'Disabled' */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + state: SecurityAlertsPolicyState; /** - * State of the private endpoint connection. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly, Data_Exfiltration, Unsafe_Action, Brute_Force */ - readonly provisioningState?: string; -} + disabledAlerts?: string[]; + /** + * Specifies an array of e-mail addresses to which the alert is sent. + */ + emailAddresses?: string[]; + /** + * Specifies that the alert is sent to the account administrators. + */ + emailAccountAdmins?: boolean; + /** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob + * storage will hold all Threat Detection audit logs. + */ + storageEndpoint?: string; + /** + * Specifies the identifier key of the Threat Detection audit storage account. + */ + storageAccountAccessKey?: string; + /** + * Specifies the number of days to keep in the Threat Detection audit logs. + */ + retentionDays?: number; + /** + * Specifies the UTC creation time of the policy. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: Date; +} + +/** + * Display metadata associated with the operation. + */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provider?: string; + /** + * The localized friendly form of the resource type related to this action/operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resource?: string; + /** + * The localized friendly name for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; + /** + * The localized friendly description for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; +} + +/** + * 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; + /** + * The intended executor of the operation. Possible values include: 'user', 'system' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly origin?: OperationOrigin; + /** + * Additional descriptions for the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: { [propertyName: string]: any }; +} + +/** + * Operations health status in a location. + */ +export interface OperationsHealth extends ProxyResource { + /** + * Operation name for the service + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationsHealthName?: string; + /** + * Operation health status of the service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly health?: string; + /** + * Health status description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; +} + +/** + * An Azure SQL DB Server Outbound Firewall Rule. + */ +export interface OutboundFirewallRule extends ProxyResource { + /** + * The state of the outbound rule. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; +} + +/** + * An interface representing PrivateEndpointProperty. + */ +export interface PrivateEndpointProperty extends BaseResource { + /** + * Resource id of the private endpoint. + */ + id?: string; +} + +/** + * An interface representing PrivateLinkServiceConnectionStateProperty. + */ +export interface PrivateLinkServiceConnectionStateProperty { + /** + * The private link service connection status. Possible values include: 'Approved', 'Pending', + * 'Rejected', 'Disconnected' + */ + status: PrivateLinkServiceConnectionStateStatus; + /** + * The private link service connection description. + */ + description: string; + /** + * The actions required for private link service connection. Possible values include: 'None' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actionsRequired?: PrivateLinkServiceConnectionStateActionsRequire; +} + +/** + * Properties of a private endpoint connection. + */ +export interface PrivateEndpointConnectionProperties { + /** + * Private endpoint which the connection belongs to. + */ + privateEndpoint?: PrivateEndpointProperty; + /** + * Connection state of the private endpoint connection. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. Possible values include: 'Approving', 'Ready', + * 'Dropping', 'Failed', 'Rejecting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PrivateEndpointProvisioningState; +} + +/** + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends ProxyResource { + /** + * Private endpoint which the connection belongs to. + */ + privateEndpoint?: PrivateEndpointProperty; + /** + * Connection state of the private endpoint connection. + */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. Possible values include: 'Approving', 'Ready', + * 'Dropping', 'Failed', 'Rejecting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PrivateEndpointProvisioningState; +} + +/** + * Properties of a private link resource. + */ +export interface PrivateLinkResourceProperties { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource required zone names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredZoneNames?: string[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends ProxyResource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly properties?: PrivateLinkResourceProperties; +} + +/** + * A recoverable managed database resource. + */ +export interface RecoverableManagedDatabase extends ProxyResource { + /** + * The last available backup date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastAvailableBackupDate?: string; +} + +/** + * A replication link. + */ +export interface ReplicationLink extends ProxyResource { + /** + * Resource partner server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerServer?: string; + /** + * Resource partner database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerDatabase?: string; + /** + * Resource partner location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerLocation?: string; + /** + * Local replication role. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly role?: string; + /** + * Partner replication role. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly partnerRole?: string; + /** + * Replication mode. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly replicationMode?: string; + /** + * Time at which the link was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * Seeding completion percentage for the link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentComplete?: number; + /** + * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly replicationState?: string; + /** + * Whether the user is currently allowed to terminate the link. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isTerminationAllowed?: boolean; + /** + * Link type (GEO, NAMED). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly linkType?: 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; + /** + * The resource name of the elastic pool containing this database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly elasticPoolId?: 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; +} + +/** + * A restorable dropped managed database resource. + */ +export interface RestorableDroppedManagedDatabase extends TrackedResource { + /** + * The name of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly databaseName?: string; + /** + * The creation date of the database (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationDate?: Date; + /** + * The deletion date of the database (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deletionDate?: Date; + /** + * The earliest restore date of the database (ISO8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly earliestRestoreDate?: Date; +} + +/** + * Database restore points. + */ +export interface RestorePoint extends ProxyResource { + /** + * Resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * The type of restore point. Possible values include: 'CONTINUOUS', 'DISCRETE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restorePointType?: RestorePointType; + /** + * The earliest time to which this database can be restored + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly earliestRestoreDate?: Date; + /** + * The time the backup was taken + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restorePointCreationDate?: Date; + /** + * The label of restore point for backup request by user + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restorePointLabel?: string; +} + +/** + * Contains the information necessary to perform a create database restore point operation. + */ +export interface CreateDatabaseRestorePointDefinition { + /** + * The restore point label to apply + */ + restorePointLabel: string; +} + +/** + * Automatic tuning properties for individual advisors. + */ +export interface AutomaticTuningServerOptions { + /** + * Automatic tuning option desired state. Possible values include: 'Off', 'On', 'Default' + */ + desiredState?: AutomaticTuningOptionModeDesired; + /** + * Automatic tuning option actual state. Possible values include: 'Off', 'On' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actualState?: AutomaticTuningOptionModeActual; + /** + * Reason code if desired and actual state are different. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reasonCode?: number; + /** + * Reason description if desired and actual state are different. Possible values include: + * 'Default', 'Disabled', 'AutoConfigured' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly reasonDesc?: AutomaticTuningServerReason; +} + +/** + * Server-level Automatic Tuning. + */ +export interface ServerAutomaticTuning extends ProxyResource { + /** + * Automatic tuning desired state. Possible values include: 'Custom', 'Auto', 'Unspecified' + */ + desiredState?: AutomaticTuningServerMode; + /** + * Automatic tuning actual state. Possible values include: 'Custom', 'Auto', 'Unspecified' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly actualState?: AutomaticTuningServerMode; + /** + * Automatic tuning options definition. + */ + options?: { [propertyName: string]: AutomaticTuningServerOptions }; +} + +/** + * Azure Active Directory administrator. + */ +export interface ServerAzureADAdministrator extends ProxyResource { + /** + * Login name of the server administrator. + */ + login: string; + /** + * SID (object ID) of the server administrator. + */ + sid: string; + /** + * Tenant ID of the administrator. + */ + tenantId?: string; + /** + * Azure Active Directory only Authentication enabled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly azureADOnlyAuthentication?: boolean; +} + +/** + * 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 { + /** + * SystemData of ServerDevOpsAuditSettingsResource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; + /** + * Specifies whether DevOps audit events are sent to Azure Monitor. + * In order to send the events to Azure Monitor, specify 'State' as 'Enabled' and + * 'IsAzureMonitorTargetEnabled' as true. + * + * When using REST API to configure DevOps audit, Diagnostic Settings with + * 'DevOpsOperationsAudit' diagnostic logs category on the master database should be also + * created. + * + * Diagnostic Settings URI format: + * PUT + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview + * + * For more information, see [Diagnostic Settings REST + * API](https://go.microsoft.com/fwlink/?linkid=2033207) + * or [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043) + */ + isAzureMonitorTargetEnabled?: boolean; + /** + * Specifies the state of the audit. If state is Enabled, storageEndpoint or + * isAzureMonitorTargetEnabled are required. Possible values include: 'Enabled', 'Disabled' + */ + state: BlobAuditingPolicyState; + /** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). If state + * is Enabled, storageEndpoint or isAzureMonitorTargetEnabled is required. + */ + storageEndpoint?: string; + /** + * Specifies the identifier key of the auditing storage account. + * If state is Enabled and storageEndpoint is specified, not specifying the + * storageAccountAccessKey will use SQL server system-assigned managed identity to access the + * storage. + * Prerequisites for using managed identity authentication: + * 1. Assign SQL Server a system-assigned managed identity in Azure Active Directory (AAD). + * 2. Grant SQL Server identity access to the storage account by adding 'Storage Blob Data + * Contributor' RBAC role to the server identity. + * For more information, see [Auditing to storage using Managed Identity + * authentication](https://go.microsoft.com/fwlink/?linkid=2114355) + */ + storageAccountAccessKey?: string; + /** + * Specifies the blob storage subscription Id. + */ + storageAccountSubscriptionId?: string; +} + +/** + * A server DNS alias. + */ +export interface ServerDnsAlias extends ProxyResource { + /** + * The fully qualified DNS record for alias + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly azureDnsRecord?: string; +} + +/** + * A server dns alias acquisition request. + */ +export interface ServerDnsAliasAcquisition { + /** + * The id of the server alias that will be acquired to point to this server instead. + */ + oldServerDnsAliasId: string; +} + +/** + * A server key. + */ +export interface ServerKey extends ProxyResource { + /** + * Kind of encryption protector. This is metadata used for the Azure portal experience. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly kind?: string; + /** + * Resource location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Subregion of the server key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subregion?: string; + /** + * The server key type like 'ServiceManaged', 'AzureKeyVault'. Possible values include: + * 'ServiceManaged', 'AzureKeyVault' + */ + serverKeyType: ServerKeyType; + /** + * The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. + */ + uri?: string; + /** + * Thumbprint of the server key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly thumbprint?: string; + /** + * The server key creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationDate?: Date; + /** + * Key auto rotation opt-in flag. Either true or false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly autoRotationEnabled?: boolean; +} + +/** + * A server operation. + */ +export interface ServerOperation extends ProxyResource { + /** + * The name of operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operation?: string; + /** + * The friendly name of operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationFriendlyName?: string; + /** + * The percentage of the operation completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentComplete?: number; + /** + * The name of the server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serverName?: string; + /** + * The operation start time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * The operation state. Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', + * 'CancelInProgress', 'Cancelled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: ManagementOperationState; + /** + * The operation error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorCode?: number; + /** + * The operation error description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorDescription?: string; + /** + * The operation error severity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorSeverity?: number; + /** + * Whether or not the error is a user error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isUserError?: boolean; + /** + * The estimated completion time of the operation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly estimatedCompletionTime?: Date; + /** + * The operation description. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Whether the operation can be cancelled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isCancellable?: boolean; +} + +/** + * A server security alert policy. + */ +export interface ServerSecurityAlertPolicy extends ProxyResource { + /** + * SystemData of SecurityAlertPolicyResource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; + /** + * Specifies the state of the policy, whether it is enabled or disabled or a policy has not been + * applied yet on the specific database. Possible values include: 'Enabled', 'Disabled' + */ + 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 UTC creation time of the policy. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: Date; +} + +/** + * Server info for the server trust group. + */ +export interface ServerInfo { + /** + * Server Id. + */ + serverId: string; +} + +/** + * A server trust group. + */ +export interface ServerTrustGroup extends ProxyResource { + /** + * Group members information for the server trust group. + */ + groupMembers: ServerInfo[]; + /** + * Trust scope of the server trust group. + */ + trustScopes: string[]; +} + +/** + * A server vulnerability assessment. + */ +export interface ServerVulnerabilityAssessment extends ProxyResource { + /** + * A blob storage container path to hold the scan results (e.g. + * https://myStorage.blob.core.windows.net/VaScans/). + */ + storageContainerPath: string; + /** + * A shared access signature (SAS Key) that has write access to the blob container specified in + * 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, + * StorageContainerSasKey is required. + */ + 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 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; +} + +/** + * Properties of a active directory administrator. + */ +export interface ServerExternalAdministrator { + /** + * Type of the sever administrator. Possible values include: 'ActiveDirectory' + */ + administratorType?: AdministratorType; + /** + * Principal Type of the sever administrator. Possible values include: 'User', 'Group', + * 'Application' + */ + 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 Azure SQL Database server. + */ +export interface Server extends TrackedResource { + /** + * The Azure Active Directory identity of the server. + */ + identity?: ResourceIdentityWithUserAssignedIdentities; + /** + * Kind of sql server. This is metadata used for the Azure portal experience. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly kind?: string; + /** + * Administrator username for the server. Once created it cannot be changed. + */ + administratorLogin?: string; + /** + * The administrator login password (required for server creation). + */ + administratorLoginPassword?: string; + /** + * The version of the server. + */ + version?: string; + /** + * The state of the server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: string; + /** + * The fully qualified domain name of the server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fullyQualifiedDomainName?: string; + /** + * List of private endpoint connections on a server + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + /** + * Minimal TLS version. Allowed values: '1.0', '1.1', '1.2' + */ + minimalTlsVersion?: string; + /** + * Whether or not public endpoint access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: ServerNetworkAccessFlag; + /** + * Whether or not existing server has a workspace created and if it allows connection from + * workspace. Possible values include: 'Connected', 'Disconnected' + * **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; + /** + * A CMK URI of the key to use for encryption. + */ + keyId?: string; + /** + * The Azure Active Directory identity of the server. + */ + administrators?: ServerExternalAdministrator; + /** + * Whether or not to restrict outbound network access for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; +} + +/** + * An update request for an Azure SQL Database server. + */ +export interface ServerUpdate { + /** + * Server identity + */ + identity?: ResourceIdentityWithUserAssignedIdentities; + /** + * Administrator username for the server. Once created it cannot be changed. + */ + administratorLogin?: string; + /** + * The administrator login password (required for server creation). + */ + administratorLoginPassword?: string; + /** + * The version of the server. + */ + version?: string; + /** + * The state of the server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: string; + /** + * The fully qualified domain name of the server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fullyQualifiedDomainName?: string; + /** + * List of private endpoint connections on a server + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + /** + * Minimal TLS version. Allowed values: '1.0', '1.1', '1.2' + */ + minimalTlsVersion?: string; + /** + * Whether or not public endpoint access is allowed for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: ServerNetworkAccessFlag; + /** + * Whether or not existing server has a workspace created and if it allows connection from + * workspace. Possible values include: 'Connected', 'Disconnected' + * **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; + /** + * A CMK URI of the key to use for encryption. + */ + keyId?: string; + /** + * The Azure Active Directory identity of the server. + */ + administrators?: ServerExternalAdministrator; + /** + * Whether or not to restrict outbound network access for this server. Value is optional but if + * passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' + */ + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * 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. Possible values include: 'SharedAccessKey', 'StorageAccessKey' + */ + 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; +} + +/** + * A request to check whether the specified name for a resource is available. + */ +export interface CheckNameAvailabilityRequest { + name: string; +} + +/** + * The result of a name availability check. + */ +export interface CheckNameAvailabilityResponse { + /** + * The name whose availability was checked. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * True if the name is available, otherwise false. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly available?: boolean; + /** + * The reason code explaining why the name is unavailable. Will be undefined if the name is + * available. Possible values include: 'Invalid', 'AlreadyExists' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + 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; +} + +/** + * A recoverable managed database resource. + */ +export interface SqlAgentConfiguration extends ProxyResource { + /** + * The state of Sql Agent. Possible values include: 'Enabled', 'Disabled' + */ + state?: State; +} + +/** + * Usage Metric of a Subscription in a Location. + */ +export interface SubscriptionUsage extends ProxyResource { + /** + * User-readable name of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + /** + * Current value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentValue?: number; + /** + * Boundary value of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly limit?: number; + /** + * Unit of the metric. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unit?: string; +} + +/** + * An Azure SQL Database sync agent. + */ +export interface SyncAgent extends ProxyResource { + /** + * Name of the sync agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly syncAgentName?: string; + /** + * ARM resource id of the sync database in the sync agent. + */ + syncDatabaseId?: string; + /** + * Last alive time of the sync agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastAliveTime?: Date; + /** + * State of the sync agent. Possible values include: 'Online', 'Offline', 'NeverConnected' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: SyncAgentState; + /** + * If the sync agent version is up to date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isUpToDate?: boolean; + /** + * Expiration time of the sync agent version. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly expiryTime?: Date; + /** + * Version of the sync agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; +} + +/** + * Properties of an Azure SQL Database sync agent key. + */ +export interface SyncAgentKeyProperties { + /** + * Key of sync agent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly syncAgentKey?: string; +} + +/** + * An Azure SQL Database sync agent linked database. + */ +export interface SyncAgentLinkedDatabase extends ProxyResource { + /** + * Type of the sync agent linked database. Possible values include: 'AzureSqlDatabase', + * 'SqlServerDatabase' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly databaseType?: SyncMemberDbType; + /** + * Id of the sync agent linked database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly databaseId?: string; + /** + * Description of the sync agent linked database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Server name of the sync agent linked database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serverName?: string; + /** + * Database name of the sync agent linked database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly databaseName?: string; + /** + * 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; +} + +/** + * Properties of the sync database id. + */ +export interface SyncDatabaseIdProperties { + /** + * ARM resource id of sync database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * Properties of the column in the table of database full schema. + */ +export interface SyncFullSchemaTableColumn { + /** + * Data size of the column. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSize?: string; + /** + * Data type of the column. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataType?: string; + /** + * Error id of the column. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly errorId?: string; + /** + * If there is error in the table. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hasError?: boolean; + /** + * If it is the primary key of the table. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly isPrimaryKey?: boolean; + /** + * Name of the column. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Quoted name of the column. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly quotedName?: string; +} + +/** + * 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; + /** + * Name of the table. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Quoted name of the table. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly quotedName?: string; +} + +/** + * Properties of the database full schema. + */ +export interface SyncFullSchemaProperties { + /** + * List of tables in the database full schema. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tables?: SyncFullSchemaTable[]; + /** + * Last update time of the database schema. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUpdateTime?: Date; +} + +/** + * Properties of an Azure SQL Database sync group log. + */ +export interface SyncGroupLogProperties { + /** + * Timestamp of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timestamp?: Date; + /** + * Type of the sync group log. Possible values include: 'All', 'Error', 'Warning', 'Success' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: SyncGroupLogType; + /** + * Source of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly source?: string; + /** + * Details of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: string; + /** + * TracingId of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tracingId?: string; + /** + * OperationStatus of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationStatus?: string; +} + +/** + * Properties of column in sync group table. + */ +export interface SyncGroupSchemaTableColumn { + /** + * Quoted name of sync group table column. + */ + quotedName?: string; + /** + * Data size of the column. + */ + dataSize?: string; + /** + * Data type of the column. + */ + dataType?: string; +} + +/** + * Properties of table in sync group schema. + */ +export interface SyncGroupSchemaTable { + /** + * List of columns in sync group schema. + */ + columns?: SyncGroupSchemaTableColumn[]; + /** + * Quoted name of sync group schema table. + */ + quotedName?: string; +} + +/** + * Properties of sync group schema. + */ +export interface SyncGroupSchema { + /** + * List of tables in sync group schema. + */ + tables?: SyncGroupSchemaTable[]; + /** + * Name of master sync member where the schema is from. + */ + masterSyncMemberName?: string; +} + +/** + * An Azure SQL Database sync group. + */ +export interface SyncGroup extends ProxyResource { + /** + * 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. Possible values include: 'HubWin', 'MemberWin' + */ + conflictResolutionPolicy?: SyncConflictResolutionPolicy; + /** + * ARM resource id of the sync database in the sync group. + */ + syncDatabaseId?: string; + /** + * User name for the sync group hub database credential. + */ + hubDatabaseUserName?: string; + /** + * Password for the sync group hub database credential. + */ + hubDatabasePassword?: string; + /** + * Sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', + * 'Progressing', 'Good' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly syncState?: SyncGroupState; + /** + * Sync schema of the sync group. + */ + schema?: SyncGroupSchema; + /** + * 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. Possible values include: 'AzureSqlDatabase', + * 'SqlServerDatabase' + */ + databaseType?: SyncMemberDbType; + /** + * ARM resource id of the sync agent in the sync member. + */ + syncAgentId?: string; + /** + * SQL Server database id of the sync member. + */ + sqlServerDatabaseId?: string; + /** + * 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. Possible values include: 'Bidirectional', + * 'OneWayMemberToHub', 'OneWayHubToMember' + */ + syncDirection?: SyncDirection; + /** + * Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', + * 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', + * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', + * 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', + * 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly syncState?: SyncMemberState; +} + +/** + * Time Zone. + */ +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. Possible values include: 'Enabled', + * 'Disabled' + */ + state: TransparentDataEncryptionState; +} + +/** + * A recoverable managed database resource. + */ +export interface UpdateManagedInstanceDnsServersOperation extends ProxyResource { + /** + * The status of the DNS refresh operation. Possible values include: 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: Status1; +} + +/** + * An Azure SQL virtual cluster. + */ +export interface VirtualCluster extends TrackedResource { + /** + * Subnet resource ID for the virtual cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnetId?: string; + /** + * If the service has different generations of hardware, for the same SKU, then that can be + * captured here. + */ + family?: string; + /** + * List of resources in this virtual cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly childResources?: string[]; + /** + * Specifies maintenance configuration id to apply to this virtual cluster. + */ + maintenanceConfigurationId?: string; +} + +/** + * An update request for an Azure SQL Database virtual cluster. + */ +export interface VirtualClusterUpdate { + /** + * Subnet resource ID for the virtual cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly subnetId?: string; + /** + * If the service has different generations of hardware, for the same SKU, then that can be + * captured here. + */ + family?: string; + /** + * List of resources in this virtual cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly childResources?: string[]; + /** + * Specifies maintenance configuration id to apply to this virtual cluster. + */ + maintenanceConfigurationId?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * A virtual network rule. + */ +export interface VirtualNetworkRule extends ProxyResource { + /** + * The ARM resource id of the virtual network subnet. + */ + virtualNetworkSubnetId: string; + /** + * Create firewall rule before the virtual network has vnet service endpoint enabled. + */ + ignoreMissingVnetServiceEndpoint?: boolean; + /** + * Virtual Network Rule State. Possible values include: 'Initializing', 'InProgress', 'Ready', + * 'Failed', 'Deleting', 'Unknown' + * **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; +} + +/** + * Optional Parameters. + */ +export interface DatabaseAdvisorsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseColumnsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + schema?: string[]; + table?: string[]; + column?: string[]; + orderBy?: string[]; + /** + * An opaque token that identifies a starting point in the collection. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseColumnsListByTableOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseColumnsListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + schema?: string[]; + table?: string[]; + column?: string[]; + orderBy?: string[]; + /** + * An opaque token that identifies a starting point in the collection. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseColumnsListByTableNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseSchemasListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseSchemasListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseTablesListBySchemaOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabaseTablesListBySchemaNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface DatabasesFailoverOptionalParams extends msRest.RequestOptionsBase { + /** + * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' + */ + replicaType?: ReplicaType; +} + +/** + * Optional Parameters. + */ +export interface DatabasesBeginFailoverOptionalParams extends msRest.RequestOptionsBase { + /** + * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' + */ + replicaType?: ReplicaType; +} + +/** + * Optional Parameters. + */ +export interface ElasticPoolsListByServerOptionalParams extends msRest.RequestOptionsBase { + /** + * The number of elements in the collection to skip. + */ + skip?: number; +} + +/** + * Optional Parameters. + */ +export interface ElasticPoolsListByServerNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The number of elements in the collection to skip. + */ + skip?: number; +} + +/** + * Optional Parameters. + */ +export interface JobExecutionsListByAgentOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobExecutionsListByJobOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobExecutionsListByAgentNextOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobExecutionsListByJobNextOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobStepExecutionsListByJobExecutionOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobStepExecutionsListByJobExecutionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobTargetExecutionsListByJobExecutionOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobTargetExecutionsListByStepOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobTargetExecutionsListByJobExecutionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface JobTargetExecutionsListByStepNextOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, only job executions created at or after the specified time are included. + */ + createTimeMin?: Date; + /** + * If specified, only job executions created before the specified time are included. + */ + createTimeMax?: Date; + /** + * If specified, only job executions completed at or after the specified time are included. + */ + endTimeMin?: Date; + /** + * If specified, only job executions completed before the specified time are included. + */ + endTimeMax?: Date; + /** + * If specified, only active or only completed job executions are included. + */ + isActive?: boolean; + /** + * The number of elements in the collection to skip. + */ + skip?: number; + /** + * The number of elements to return from the collection. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface CapabilitiesListByLocationOptionalParams extends msRest.RequestOptionsBase { + /** + * If specified, restricts the response to only include the selected item. Possible values + * include: 'supportedEditions', 'supportedElasticPoolEditions', + * 'supportedManagedInstanceVersions', 'supportedInstancePoolEditions', + * 'supportedManagedInstanceEditions' + */ + include?: CapabilityGroup; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByLocationOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByServerOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByLocationNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByServerNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Whether or not to only get the latest backup for each database. + */ + onlyLatestPerDatabase?: boolean; + /** + * Whether to query against just live databases, just deleted databases, or all databases. + * Possible values include: 'All', 'Live', 'Deleted' + */ + databaseState?: DatabaseState; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseColumnsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + schema?: string[]; + table?: string[]; + column?: string[]; + orderBy?: string[]; + /** + * An opaque token that identifies a starting point in the collection. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseColumnsListByTableOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseColumnsListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + schema?: string[]; + table?: string[]; + column?: string[]; + orderBy?: string[]; + /** + * An opaque token that identifies a starting point in the collection. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseColumnsListByTableNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseQueriesListByQueryOptionalParams extends msRest.RequestOptionsBase { + /** + * 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. Possible values include: 'PT1H', + * 'P1D' + */ + interval?: QueryTimeGrainType; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseQueriesListByQueryNextOptionalParams extends msRest.RequestOptionsBase { + /** + * 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. Possible values include: 'PT1H', + * 'P1D' + */ + interval?: QueryTimeGrainType; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSchemasListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSchemasListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSecurityEventsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; + /** + * An opaque token that identifies a starting point in the collection. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; + /** + * An opaque token that identifies a starting point in the collection. + */ + skiptoken?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + count?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + /** + * Specifies whether to include disabled recommendations or not. + */ + includeDisabledRecommendations?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + count?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + /** + * Specifies whether to include disabled recommendations or not. + */ + includeDisabledRecommendations?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseTablesListBySchemaOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedDatabaseTablesListBySchemaNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstanceKeysListByInstanceOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstanceKeysListByInstanceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListByInstancePoolOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListByManagedInstanceOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; + /** + * 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. Possible + * values include: 'PT1H', 'P1D' + */ + interval?: QueryTimeGrainType; + /** + * Aggregation function to be used, default value is 'sum'. Possible values include: 'avg', + * 'min', 'max', 'stdev', 'sum' + */ + aggregationFunction?: AggregationFunctionType; + /** + * Metric to be used for ranking top queries. Default is 'cpu'. Possible values include: 'cpu', + * 'io', 'logIo', 'duration', 'dtu' + */ + observationMetric?: MetricType; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesFailoverOptionalParams extends msRest.RequestOptionsBase { + /** + * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' + */ + replicaType?: ReplicaType; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesBeginFailoverOptionalParams extends msRest.RequestOptionsBase { + /** + * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' + */ + replicaType?: ReplicaType; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListByInstancePoolNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ManagedInstancesListByManagedInstanceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * 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; + /** + * 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. Possible + * values include: 'PT1H', 'P1D' + */ + interval?: QueryTimeGrainType; + /** + * Aggregation function to be used, default value is 'sum'. Possible values include: 'avg', + * 'min', 'max', 'stdev', 'sum' + */ + aggregationFunction?: AggregationFunctionType; + /** + * Metric to be used for ranking top queries. Default is 'cpu'. Possible values include: 'cpu', + * 'io', 'logIo', 'duration', 'dtu' + */ + observationMetric?: MetricType; +} + +/** + * Optional Parameters. + */ +export interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + count?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + /** + * Specifies whether to include disabled recommendations or not. + */ + includeDisabledRecommendations?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SensitivityLabelsListCurrentByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + count?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface SensitivityLabelsListRecommendedByDatabaseNextOptionalParams extends msRest.RequestOptionsBase { + skipToken?: string; + /** + * Specifies whether to include disabled recommendations or not. + */ + includeDisabledRecommendations?: boolean; + /** + * An OData filter expression that filters elements in the collection. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface ServerAdvisorsListByServerOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ServersListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ServersGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ServersListOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ServersListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface ServersListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The child resources to include in the response. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface SyncGroupsListLogsOptionalParams extends msRest.RequestOptionsBase { + /** + * The continuation token for this operation. + */ + continuationToken?: string; +} + +/** + * Optional Parameters. + */ +export interface SyncGroupsListLogsNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The continuation token for this operation. + */ + continuationToken?: string; +} + +/** + * An interface representing SqlManagementClientOptions. + */ +export interface SqlManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * A list of short term retention policies. + * @extends Array + */ +export interface BackupShortTermRetentionPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of database extended auditing settings. + * @extends Array + */ +export interface ExtendedDatabaseBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server extended auditing settings. + * @extends Array + */ +export interface ExtendedServerBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server auditing settings. + * @extends Array + */ +export interface ServerBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of database auditing settings. + * @extends Array + */ +export interface DatabaseBlobAuditingPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * User activities of a data warehouse + * @extends Array + */ +export interface DataWarehouseUserActivitiesListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of database columns. + * @extends Array + */ +export interface DatabaseColumnListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Import export operation extensions list. + * @extends Array + */ +export interface ImportExportExtensionsOperationListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list database operations request + * @extends Array + */ +export interface DatabaseOperationListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of database schemas. + * @extends Array + */ +export interface DatabaseSchemaListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the database's security alert policies. + * @extends Array + */ +export interface DatabaseSecurityAlertListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of database tables. + * @extends Array + */ +export interface DatabaseTableListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of database usage metrics. + * @extends Array + */ +export interface DatabaseUsageListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of vulnerability assessment scan records. + * @extends Array + */ +export interface VulnerabilityAssessmentScanRecordListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the database's vulnerability assessments. + * @extends Array + */ +export interface DatabaseVulnerabilityAssessmentListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of databases. + * @extends Array + */ +export interface DatabaseListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of deleted servers. + * @extends Array + */ +export interface DeletedServerListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list elastic pool operations request + * @extends Array + */ +export interface ElasticPoolOperationListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The result of an elastic pool list request. + * @extends Array + */ +export interface ElasticPoolListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server encryption protectors. + * @extends Array + */ +export interface EncryptionProtectorListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of failover groups. + * @extends Array + */ +export interface FailoverGroupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list firewall rules request + * @extends Array + */ +export interface FirewallRuleListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of instance failover groups. + * @extends Array + */ +export interface InstanceFailoverGroupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of Azure SQL instance pools. + * @extends Array + */ +export interface InstancePoolListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of Azure SQL job agents. + * @extends Array + */ +export interface JobAgentListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of job credentials. + * @extends Array + */ +export interface JobCredentialListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of job executions. + * @extends Array + */ +export interface JobExecutionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of job steps. + * @extends Array + */ +export interface JobStepListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of target groups. + * @extends Array + */ +export interface JobTargetGroupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of job versions. + * @extends Array + */ +export interface JobVersionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of jobs. + * @extends Array + */ +export interface JobListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of long term retention backups. + * @extends Array + */ +export interface LongTermRetentionBackupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of long term retention backups for managed database(s). + * @extends Array + */ +export interface ManagedInstanceLongTermRetentionBackupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of long term retention policies. + * @extends Array + */ +export interface LongTermRetentionPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of short term retention policies. + * @extends Array + */ +export interface ManagedBackupShortTermRetentionPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Execution statistics for one particular query + * @extends Array + */ +export interface ManagedInstanceQueryStatistics extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the managed database's security alert policies. + * @extends Array + */ +export interface ManagedDatabaseSecurityAlertPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of security events. + * @extends Array + */ +export interface SecurityEventCollection extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sensitivity labels. + * @extends Array + */ +export interface SensitivityLabelListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of managed transparent data encryptions + * @extends Array + */ +export interface ManagedTransparentDataEncryptionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of managed databases. + * @extends Array + */ +export interface ManagedDatabaseListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of managed instance administrators. + * @extends Array + */ +export interface ManagedInstanceAdministratorListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of active directory only authentications. + * @extends Array + */ +export interface ManagedInstanceAzureADOnlyAuthListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of managed instance encryption protectors. + * @extends Array + */ +export interface ManagedInstanceEncryptionProtectorListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of managed instance keys. + * @extends Array + */ +export interface ManagedInstanceKeyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of long term retention policies. + * @extends Array + */ +export interface ManagedInstanceLongTermRetentionPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list managed instance operations request + * @extends Array + */ +export interface ManagedInstanceOperationListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private endpoint connections. + * @extends Array + */ +export interface ManagedInstancePrivateEndpointConnectionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface ManagedInstancePrivateLinkListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the ManagedInstance's vulnerability assessments. + * @extends Array + */ +export interface ManagedInstanceVulnerabilityAssessmentListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of managed instances. + * @extends Array + */ +export interface ManagedInstanceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of top resource consuming queries on managed instance + * @extends Array + */ +export interface TopQueriesListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the managed Server's security alert policies. + * @extends Array + */ +export interface ManagedServerSecurityAlertPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Result of the request to list SQL operations. + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of service health statuses in a location. + * @extends Array + */ +export interface OperationsHealthListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of outbound rules. + * @extends Array + */ +export interface OutboundFirewallRuleListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private endpoint connections. + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of recoverable managed databases. + * @extends Array + */ +export interface RecoverableManagedDatabaseListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of replication links. + * @extends Array + */ +export interface ReplicationLinksListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of restorable dropped databases. + * @extends Array + */ +export interface RestorableDroppedDatabaseListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of restorable dropped managed databases. + * @extends Array + */ +export interface RestorableDroppedManagedDatabaseListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of long term retention backups. + * @extends Array + */ +export interface RestorePointListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of active directory administrators. + * @extends Array + */ +export interface AdministratorListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of active directory only authentications. + * @extends Array + */ +export interface AzureADOnlyAuthListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server DevOps audit settings. + * @extends Array + */ +export interface ServerDevOpsAuditSettingsListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server DNS aliases. + * @extends Array + */ +export interface ServerDnsAliasListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server keys. + * @extends Array + */ +export interface ServerKeyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response to a list server operations request + * @extends Array + */ +export interface ServerOperationListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the server's security alert policies. + * @extends Array + */ +export interface LogicalServerSecurityAlertPolicyListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of server trust groups. + * @extends Array + */ +export interface ServerTrustGroupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of the server's vulnerability assessments. + * @extends Array + */ +export interface ServerVulnerabilityAssessmentListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of servers. + * @extends Array + */ +export interface ServerListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of subscription usage metrics in a location. + * @extends Array + */ +export interface SubscriptionUsageListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sync agents. + * @extends Array + */ +export interface SyncAgentListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sync agent linked databases. + * @extends Array + */ +export interface SyncAgentLinkedDatabaseListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sync database ID properties. + * @extends Array + */ +export interface SyncDatabaseIdListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sync schema properties. + * @extends Array + */ +export interface SyncFullSchemaPropertiesListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sync group log properties. + * @extends Array + */ +export interface SyncGroupLogListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of sync groups. + * @extends Array + */ +export interface SyncGroupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of Azure SQL Database sync members. + * @extends Array + */ +export interface SyncMemberListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of time zones. + * @extends Array + */ +export interface TimeZoneListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of transparent data encryptions + * @extends Array + */ +export interface LogicalDatabaseTransparentDataEncryptionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of virtual clusters. + * @extends Array + */ +export interface VirtualClusterListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of virtual network rules. + * @extends Array + */ +export interface VirtualNetworkRuleListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of workload classifiers for a workload group. + * @extends Array + */ +export interface WorkloadClassifierListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of workload groups. + * @extends Array + */ +export interface WorkloadGroupListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for BlobAuditingPolicyState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; + +/** + * Defines values for AdvisorStatus. + * Possible values include: 'GA', 'PublicPreview', 'LimitedPublicPreview', 'PrivatePreview' + * @readonly + * @enum {string} + */ +export type AdvisorStatus = 'GA' | 'PublicPreview' | 'LimitedPublicPreview' | 'PrivatePreview'; + +/** + * Defines values for AutoExecuteStatus. + * Possible values include: 'Enabled', 'Disabled', 'Default' + * @readonly + * @enum {string} + */ +export type AutoExecuteStatus = 'Enabled' | 'Disabled' | 'Default'; + +/** + * Defines values for AutoExecuteStatusInheritedFrom. + * Possible values include: 'Default', 'Subscription', 'Server', 'ElasticPool', 'Database' + * @readonly + * @enum {string} + */ +export type AutoExecuteStatusInheritedFrom = 'Default' | 'Subscription' | 'Server' | 'ElasticPool' | 'Database'; + +/** + * Defines values for RecommendedActionCurrentState. + * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', + * 'RevertCancelled', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Monitoring', 'Resolved', + * 'Success', 'Error' + * @readonly + * @enum {string} + */ +export type RecommendedActionCurrentState = 'Active' | 'Pending' | 'Executing' | 'Verifying' | 'PendingRevert' | 'RevertCancelled' | 'Reverting' | 'Reverted' | 'Ignored' | 'Expired' | 'Monitoring' | 'Resolved' | 'Success' | 'Error'; + +/** + * Defines values for RecommendedActionInitiatedBy. + * Possible values include: 'User', 'System' + * @readonly + * @enum {string} + */ +export type RecommendedActionInitiatedBy = 'User' | 'System'; + +/** + * Defines values for ImplementationMethod. + * Possible values include: 'TSql', 'AzurePowerShell' + * @readonly + * @enum {string} + */ +export type ImplementationMethod = 'TSql' | 'AzurePowerShell'; + +/** + * Defines values for IsRetryable. + * Possible values include: 'Yes', 'No' + * @readonly + * @enum {string} + */ +export type IsRetryable = 'Yes' | 'No'; + +/** + * Defines values for AutomaticTuningMode. + * Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' + * @readonly + * @enum {string} + */ +export type AutomaticTuningMode = 'Inherit' | 'Custom' | 'Auto' | 'Unspecified'; + +/** + * Defines values for AutomaticTuningOptionModeDesired. + * Possible values include: 'Off', 'On', 'Default' + * @readonly + * @enum {string} + */ +export type AutomaticTuningOptionModeDesired = 'Off' | 'On' | 'Default'; + +/** + * Defines values for AutomaticTuningOptionModeActual. + * Possible values include: 'Off', 'On' + * @readonly + * @enum {string} + */ +export type AutomaticTuningOptionModeActual = 'Off' | 'On'; + +/** + * Defines values for AutomaticTuningDisabledReason. + * Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', + * 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' + * @readonly + * @enum {string} + */ +export type AutomaticTuningDisabledReason = 'Default' | 'Disabled' | 'AutoConfigured' | 'InheritedFromServer' | 'QueryStoreOff' | 'QueryStoreReadOnly' | 'NotSupported'; + +/** + * Defines values for ColumnDataType. + * Possible values include: 'image', 'text', 'uniqueidentifier', 'date', 'time', 'datetime2', + * 'datetimeoffset', 'tinyint', 'smallint', 'int', 'smalldatetime', 'real', 'money', 'datetime', + * 'float', 'sql_variant', 'ntext', 'bit', 'decimal', 'numeric', 'smallmoney', 'bigint', + * 'hierarchyid', 'geometry', 'geography', 'varbinary', 'varchar', 'binary', 'char', 'timestamp', + * 'nvarchar', 'nchar', 'xml', 'sysname' + * @readonly + * @enum {string} + */ +export type ColumnDataType = 'image' | 'text' | 'uniqueidentifier' | 'date' | 'time' | 'datetime2' | 'datetimeoffset' | 'tinyint' | 'smallint' | 'int' | 'smalldatetime' | 'real' | 'money' | 'datetime' | 'float' | 'sql_variant' | 'ntext' | 'bit' | 'decimal' | 'numeric' | 'smallmoney' | 'bigint' | 'hierarchyid' | 'geometry' | 'geography' | 'varbinary' | 'varchar' | 'binary' | 'char' | 'timestamp' | 'nvarchar' | 'nchar' | 'xml' | 'sysname'; + +/** + * Defines values for TableTemporalType. + * Possible values include: 'NonTemporalTable', 'HistoryTable', 'SystemVersionedTemporalTable' + * @readonly + * @enum {string} + */ +export type TableTemporalType = 'NonTemporalTable' | 'HistoryTable' | 'SystemVersionedTemporalTable'; + +/** + * Defines values for StorageKeyType. + * Possible values include: 'SharedAccessKey', 'StorageAccessKey' + * @readonly + * @enum {string} + */ +export type StorageKeyType = 'SharedAccessKey' | 'StorageAccessKey'; + +/** + * Defines values for ManagementOperationState. + * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', + * 'Cancelled' + * @readonly + * @enum {string} + */ +export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; + +/** + * Defines values for SecurityAlertsPolicyState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SecurityAlertsPolicyState = 'Enabled' | 'Disabled'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for VulnerabilityAssessmentScanTriggerType. + * Possible values include: 'OnDemand', 'Recurring' + * @readonly + * @enum {string} + */ +export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; + +/** + * Defines values for VulnerabilityAssessmentScanState. + * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' + * @readonly + * @enum {string} + */ +export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; + +/** + * Defines values for CreateMode. + * Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', 'Restore', + * 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', + * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' + * @readonly + * @enum {string} + */ +export type CreateMode = 'Default' | 'Copy' | 'Secondary' | 'PointInTimeRestore' | 'Restore' | 'Recovery' | 'RestoreExternalBackup' | 'RestoreExternalBackupSecondary' | 'RestoreLongTermRetentionBackup' | 'OnlineSecondary'; + +/** + * Defines values for SampleName. + * Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' + * @readonly + * @enum {string} + */ +export type SampleName = 'AdventureWorksLT' | 'WideWorldImportersStd' | 'WideWorldImportersFull'; + +/** + * Defines values for DatabaseStatus. + * Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', + * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', + * 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', + * 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' + * @readonly + * @enum {string} + */ +export type DatabaseStatus = 'Online' | 'Restoring' | 'RecoveryPending' | 'Recovering' | 'Suspect' | 'Offline' | 'Standby' | 'Shutdown' | 'EmergencyMode' | 'AutoClosed' | 'Copying' | 'Creating' | 'Inaccessible' | 'OfflineSecondary' | 'Pausing' | 'Paused' | 'Resuming' | 'Scaling' | 'OfflineChangingDwPerformanceTiers' | 'OnlineChangingDwPerformanceTiers' | 'Disabled'; + +/** + * Defines values for CatalogCollationType. + * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' + * @readonly + * @enum {string} + */ +export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_CI_AS'; + +/** + * Defines values for DatabaseLicenseType. + * Possible values include: 'LicenseIncluded', 'BasePrice' + * @readonly + * @enum {string} + */ +export type DatabaseLicenseType = 'LicenseIncluded' | 'BasePrice'; + +/** + * Defines values for DatabaseReadScale. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type DatabaseReadScale = 'Enabled' | 'Disabled'; + +/** + * Defines values for SecondaryType. + * Possible values include: 'Geo', 'Named' + * @readonly + * @enum {string} + */ +export type SecondaryType = 'Geo' | 'Named'; + +/** + * Defines values for CurrentBackupStorageRedundancy. + * Possible values include: 'Geo', 'Local', 'Zone' + * @readonly + * @enum {string} + */ +export type CurrentBackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; + +/** + * Defines values for RequestedBackupStorageRedundancy. + * Possible values include: 'Geo', 'Local', 'Zone' + * @readonly + * @enum {string} + */ +export type RequestedBackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; + +/** + * Defines values for ElasticPoolState. + * Possible values include: 'Creating', 'Ready', 'Disabled' + * @readonly + * @enum {string} + */ +export type ElasticPoolState = 'Creating' | 'Ready' | 'Disabled'; + +/** + * Defines values for ElasticPoolLicenseType. + * Possible values include: 'LicenseIncluded', 'BasePrice' + * @readonly + * @enum {string} + */ +export type ElasticPoolLicenseType = 'LicenseIncluded' | 'BasePrice'; + +/** + * Defines values for ServerKeyType. + * Possible values include: 'ServiceManaged', 'AzureKeyVault' + * @readonly + * @enum {string} + */ +export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; + +/** + * Defines values for ReadWriteEndpointFailoverPolicy. + * Possible values include: 'Manual', 'Automatic' + * @readonly + * @enum {string} + */ +export type ReadWriteEndpointFailoverPolicy = 'Manual' | 'Automatic'; + +/** + * Defines values for ReadOnlyEndpointFailoverPolicy. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} + */ +export type ReadOnlyEndpointFailoverPolicy = 'Disabled' | 'Enabled'; + +/** + * Defines values for FailoverGroupReplicationRole. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type FailoverGroupReplicationRole = 'Primary' | 'Secondary'; + +/** + * Defines values for InstanceFailoverGroupReplicationRole. + * Possible values include: 'Primary', 'Secondary' + * @readonly + * @enum {string} + */ +export type InstanceFailoverGroupReplicationRole = 'Primary' | 'Secondary'; + +/** + * Defines values for InstancePoolLicenseType. + * Possible values include: 'LicenseIncluded', 'BasePrice' + * @readonly + * @enum {string} + */ +export type InstancePoolLicenseType = 'LicenseIncluded' | 'BasePrice'; + +/** + * Defines values for JobAgentState. + * Possible values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' + * @readonly + * @enum {string} + */ +export type JobAgentState = 'Creating' | 'Ready' | 'Updating' | 'Deleting' | 'Disabled'; + +/** + * Defines values for JobExecutionLifecycle. + * Possible values include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', + * 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', + * 'Skipped' + * @readonly + * @enum {string} + */ +export type JobExecutionLifecycle = 'Created' | 'InProgress' | 'WaitingForChildJobExecutions' | 'WaitingForRetry' | 'Succeeded' | 'SucceededWithSkipped' | 'Failed' | 'TimedOut' | 'Canceled' | 'Skipped'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', 'Canceled' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Created' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for JobTargetType. + * Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + * 'SqlServer' + * @readonly + * @enum {string} + */ +export type JobTargetType = 'TargetGroup' | 'SqlDatabase' | 'SqlElasticPool' | 'SqlShardMap' | 'SqlServer'; + +/** + * Defines values for JobStepActionType. + * Possible values include: 'TSql' + * @readonly + * @enum {string} + */ +export type JobStepActionType = 'TSql'; + +/** + * Defines values for JobStepActionSource. + * Possible values include: 'Inline' + * @readonly + * @enum {string} + */ +export type JobStepActionSource = 'Inline'; + +/** + * Defines values for JobStepOutputType. + * Possible values include: 'SqlDatabase' + * @readonly + * @enum {string} + */ +export type JobStepOutputType = 'SqlDatabase'; + +/** + * Defines values for JobTargetGroupMembershipType. + * Possible values include: 'Include', 'Exclude' + * @readonly + * @enum {string} + */ +export type JobTargetGroupMembershipType = 'Include' | 'Exclude'; + +/** + * Defines values for JobScheduleType. + * Possible values include: 'Once', 'Recurring' + * @readonly + * @enum {string} + */ +export type JobScheduleType = 'Once' | 'Recurring'; + +/** + * Defines values for MaxSizeUnit. + * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' + * @readonly + * @enum {string} + */ +export type MaxSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes'; + +/** + * Defines values for LogSizeUnit. + * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' + * @readonly + * @enum {string} + */ +export type LogSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes' | 'Percent'; + +/** + * Defines values for CapabilityStatus. + * Possible values include: 'Visible', 'Available', 'Default', 'Disabled' + * @readonly + * @enum {string} + */ +export type CapabilityStatus = 'Visible' | 'Available' | 'Default' | 'Disabled'; + +/** + * Defines values for PerformanceLevelUnit. + * Possible values include: 'DTU', 'VCores' + * @readonly + * @enum {string} + */ +export type PerformanceLevelUnit = 'DTU' | 'VCores'; + +/** + * Defines values for PauseDelayTimeUnit. + * Possible values include: 'Minutes' + * @readonly + * @enum {string} + */ +export type PauseDelayTimeUnit = 'Minutes'; + +/** + * Defines values for TargetBackupStorageRedundancy. + * Possible values include: 'Geo', 'Local', 'Zone' + * @readonly + * @enum {string} + */ +export type TargetBackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; + +/** + * Defines values for BackupStorageRedundancy. + * Possible values include: 'Geo', 'Local', 'Zone' + * @readonly + * @enum {string} + */ +export type BackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; + +/** + * Defines values for DayOfWeek. + * Possible values include: 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + * 'Saturday' + * @readonly + * @enum {string} + */ +export type DayOfWeek = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; + +/** + * Defines values for QueryTimeGrainType. + * Possible values include: 'PT1H', 'P1D' + * @readonly + * @enum {string} + */ +export type QueryTimeGrainType = 'PT1H' | 'P1D'; + +/** + * Defines values for QueryMetricUnitType. + * Possible values include: 'percentage', 'KB', 'microseconds', 'count' + * @readonly + * @enum {string} + */ +export type QueryMetricUnitType = 'percentage' | 'KB' | 'microseconds' | 'count'; + +/** + * Defines values for SecurityAlertPolicyState. + * Possible values include: 'New', 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; + +/** + * Defines values for SecurityEventType. + * Possible values include: 'Undefined', 'SqlInjectionVulnerability', 'SqlInjectionExploit' + * @readonly + * @enum {string} + */ +export type SecurityEventType = 'Undefined' | 'SqlInjectionVulnerability' | 'SqlInjectionExploit'; + +/** + * Defines values for SensitivityLabelRank. + * Possible values include: 'None', 'Low', 'Medium', 'High', 'Critical' + * @readonly + * @enum {string} + */ +export type SensitivityLabelRank = 'None' | 'Low' | 'Medium' | 'High' | 'Critical'; + +/** + * Defines values for SensitivityLabelUpdateKind. + * Possible values include: 'set', 'remove' + * @readonly + * @enum {string} + */ +export type SensitivityLabelUpdateKind = 'set' | 'remove'; + +/** + * Defines values for RecommendedSensitivityLabelUpdateKind. + * Possible values include: 'enable', 'disable' + * @readonly + * @enum {string} + */ +export type RecommendedSensitivityLabelUpdateKind = 'enable' | 'disable'; + +/** + * Defines values for TransparentDataEncryptionState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type TransparentDataEncryptionState = 'Enabled' | 'Disabled'; + +/** + * Defines values for ManagedDatabaseStatus. + * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', + * 'Restoring', 'Updating' + * @readonly + * @enum {string} + */ +export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Restoring' | 'Updating'; + +/** + * Defines values for ManagedDatabaseCreateMode. + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', + * 'RestoreLongTermRetentionBackup' + * @readonly + * @enum {string} + */ +export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery' | 'RestoreLongTermRetentionBackup'; + +/** + * Defines values for IdentityType. + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned' + * @readonly + * @enum {string} + */ +export type IdentityType = 'None' | 'SystemAssigned' | 'UserAssigned'; + +/** + * Defines values for ManagedServerCreateMode. + * Possible values include: 'Default', 'PointInTimeRestore' + * @readonly + * @enum {string} + */ +export type ManagedServerCreateMode = 'Default' | 'PointInTimeRestore'; + +/** + * Defines values for ManagedInstanceLicenseType. + * Possible values include: 'LicenseIncluded', 'BasePrice' + * @readonly + * @enum {string} + */ +export type ManagedInstanceLicenseType = 'LicenseIncluded' | 'BasePrice'; + +/** + * Defines values for ManagedInstanceProxyOverride. + * Possible values include: 'Proxy', 'Redirect', 'Default' + * @readonly + * @enum {string} + */ +export type ManagedInstanceProxyOverride = 'Proxy' | 'Redirect' | 'Default'; + +/** + * Defines values for StorageAccountType. + * Possible values include: 'GRS', 'LRS', 'ZRS' + * @readonly + * @enum {string} + */ +export type StorageAccountType = 'GRS' | 'LRS' | 'ZRS'; + +/** + * Defines values for AdministratorType. + * Possible values include: 'ActiveDirectory' + * @readonly + * @enum {string} + */ +export type AdministratorType = 'ActiveDirectory'; + +/** + * Defines values for PrincipalType. + * Possible values include: 'User', 'Group', 'Application' + * @readonly + * @enum {string} + */ +export type PrincipalType = 'User' | 'Group' | 'Application'; + +/** + * Defines values for OperationOrigin. + * Possible values include: 'user', 'system' + * @readonly + * @enum {string} + */ +export type OperationOrigin = 'user' | 'system'; + +/** + * Defines values for PrivateLinkServiceConnectionStateStatus. + * Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type PrivateLinkServiceConnectionStateStatus = 'Approved' | 'Pending' | 'Rejected' | 'Disconnected'; + +/** + * Defines values for PrivateLinkServiceConnectionStateActionsRequire. + * Possible values include: 'None' + * @readonly + * @enum {string} + */ +export type PrivateLinkServiceConnectionStateActionsRequire = 'None'; + +/** + * Defines values for PrivateEndpointProvisioningState. + * Possible values include: 'Approving', 'Ready', 'Dropping', 'Failed', 'Rejecting' + * @readonly + * @enum {string} + */ +export type PrivateEndpointProvisioningState = 'Approving' | 'Ready' | 'Dropping' | 'Failed' | 'Rejecting'; + +/** + * Defines values for RestorePointType. + * Possible values include: 'CONTINUOUS', 'DISCRETE' + * @readonly + * @enum {string} + */ +export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; + +/** + * Defines values for AutomaticTuningServerMode. + * Possible values include: 'Custom', 'Auto', 'Unspecified' + * @readonly + * @enum {string} + */ +export type AutomaticTuningServerMode = 'Custom' | 'Auto' | 'Unspecified'; + +/** + * Defines values for AutomaticTuningServerReason. + * Possible values include: 'Default', 'Disabled', 'AutoConfigured' + * @readonly + * @enum {string} + */ +export type AutomaticTuningServerReason = 'Default' | 'Disabled' | 'AutoConfigured'; + +/** + * Defines values for ServerNetworkAccessFlag. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type ServerNetworkAccessFlag = 'Enabled' | 'Disabled'; + +/** + * Defines values for ServerWorkspaceFeature. + * Possible values include: 'Connected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type ServerWorkspaceFeature = 'Connected' | 'Disconnected'; + +/** + * Defines values for CheckNameAvailabilityReason. + * Possible values include: 'Invalid', 'AlreadyExists' + * @readonly + * @enum {string} + */ +export type CheckNameAvailabilityReason = 'Invalid' | 'AlreadyExists'; + +/** + * Defines values for SyncAgentState. + * Possible values include: 'Online', 'Offline', 'NeverConnected' + * @readonly + * @enum {string} + */ +export type SyncAgentState = 'Online' | 'Offline' | 'NeverConnected'; + +/** + * Defines values for SyncMemberDbType. + * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' + * @readonly + * @enum {string} + */ +export type SyncMemberDbType = 'AzureSqlDatabase' | 'SqlServerDatabase'; + +/** + * Defines values for SyncGroupLogType. + * Possible values include: 'All', 'Error', 'Warning', 'Success' + * @readonly + * @enum {string} + */ +export type SyncGroupLogType = 'All' | 'Error' | 'Warning' | 'Success'; + +/** + * Defines values for SyncConflictResolutionPolicy. + * Possible values include: 'HubWin', 'MemberWin' + * @readonly + * @enum {string} + */ +export type SyncConflictResolutionPolicy = 'HubWin' | 'MemberWin'; + +/** + * Defines values for SyncGroupState. + * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' + * @readonly + * @enum {string} + */ +export type SyncGroupState = 'NotReady' | 'Error' | 'Warning' | 'Progressing' | 'Good'; + +/** + * Defines values for SyncDirection. + * Possible values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' + * @readonly + * @enum {string} + */ +export type SyncDirection = 'Bidirectional' | 'OneWayMemberToHub' | 'OneWayHubToMember'; + +/** + * Defines values for SyncMemberState. + * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', + * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', + * 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', + * 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', + * 'ReprovisionFailed', 'UnReprovisioned' + * @readonly + * @enum {string} + */ +export type SyncMemberState = 'SyncInProgress' | 'SyncSucceeded' | 'SyncFailed' | 'DisabledTombstoneCleanup' | 'DisabledBackupRestore' | 'SyncSucceededWithWarnings' | 'SyncCancelling' | 'SyncCancelled' | 'UnProvisioned' | 'Provisioning' | 'Provisioned' | 'ProvisionFailed' | 'DeProvisioning' | 'DeProvisioned' | 'DeProvisionFailed' | 'Reprovisioning' | 'ReprovisionFailed' | 'UnReprovisioned'; + +/** + * Defines values for VirtualNetworkRuleState. + * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Failed', 'Deleting', 'Unknown' + * @readonly + * @enum {string} + */ +export type VirtualNetworkRuleState = 'Initializing' | 'InProgress' | 'Ready' | 'Failed' | 'Deleting' | 'Unknown'; + +/** + * Defines values for VulnerabilityAssessmentPolicyBaselineName. + * Possible values include: 'master', 'default' + * @readonly + * @enum {string} + */ +export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; + +/** + * Defines values for ReplicaType. + * Possible values include: 'Primary', 'ReadableSecondary' + * @readonly + * @enum {string} + */ +export type ReplicaType = 'Primary' | 'ReadableSecondary'; + +/** + * Defines values for CapabilityGroup. + * Possible values include: 'supportedEditions', 'supportedElasticPoolEditions', + * 'supportedManagedInstanceVersions', 'supportedInstancePoolEditions', + * 'supportedManagedInstanceEditions' + * @readonly + * @enum {string} + */ +export type CapabilityGroup = 'supportedEditions' | 'supportedElasticPoolEditions' | 'supportedManagedInstanceVersions' | 'supportedInstancePoolEditions' | 'supportedManagedInstanceEditions'; + +/** + * Defines values for DatabaseState. + * Possible values include: 'All', 'Live', 'Deleted' + * @readonly + * @enum {string} + */ +export type DatabaseState = 'All' | 'Live' | 'Deleted'; + +/** + * Defines values for SensitivityLabelSource. + * Possible values include: 'current', 'recommended' + * @readonly + * @enum {string} + */ +export type SensitivityLabelSource = 'current' | 'recommended'; + +/** + * Defines values for AggregationFunctionType. + * Possible values include: 'avg', 'min', 'max', 'stdev', 'sum' + * @readonly + * @enum {string} + */ +export type AggregationFunctionType = 'avg' | 'min' | 'max' | 'stdev' | 'sum'; + +/** + * Defines values for MetricType. + * Possible values include: 'cpu', 'io', 'logIo', 'duration', 'dtu' + * @readonly + * @enum {string} + */ +export type MetricType = 'cpu' | 'io' | 'logIo' | 'duration' | 'dtu'; /** - * Properties of a private link resource. + * Defines values for StorageAccountType1. + * Possible values include: 'GRS', 'LRS', 'ZRS' + * @readonly + * @enum {string} */ -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[]; -} +export type StorageAccountType1 = 'GRS' | 'LRS' | 'ZRS'; /** - * A private link resource + * Defines values for Status. + * Possible values include: 'NotStarted', 'InProgress', 'SlowedDown', 'Completed', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} */ -export interface PrivateLinkResource extends ProxyResource { - /** - * The private link resource group id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly properties?: PrivateLinkResourceProperties; -} +export type Status = 'NotStarted' | 'InProgress' | 'SlowedDown' | 'Completed' | 'Failed' | 'Canceled'; /** - * Optional Parameters. + * Defines values for ProvisioningState1. + * Possible values include: 'Creating', 'Deleting', 'Updating', 'Unknown', 'Succeeded', 'Failed' + * @readonly + * @enum {string} */ -export interface DatabasesFailoverOptionalParams extends msRest.RequestOptionsBase { - /** - * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' - */ - replicaType?: ReplicaType; -} +export type ProvisioningState1 = 'Creating' | 'Deleting' | 'Updating' | 'Unknown' | 'Succeeded' | 'Failed'; /** - * Optional Parameters. + * Defines values for State. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} */ -export interface DatabasesBeginFailoverOptionalParams extends msRest.RequestOptionsBase { - /** - * The type of replica to be failed over. Possible values include: 'Primary', 'ReadableSecondary' - */ - replicaType?: ReplicaType; -} +export type State = 'Enabled' | 'Disabled'; /** - * Optional Parameters. + * Defines values for Status1. + * Possible values include: 'Succeeded', 'Failed' + * @readonly + * @enum {string} */ -export interface ElasticPoolsListByServerOptionalParams extends msRest.RequestOptionsBase { - /** - * The number of elements in the collection to skip. - */ - skip?: number; -} +export type Status1 = 'Succeeded' | 'Failed'; /** - * Optional Parameters. + * Defines values for Type. + * Possible values include: 'All', 'Error', 'Warning', 'Success' + * @readonly + * @enum {string} */ -export interface SyncGroupsListLogsOptionalParams extends msRest.RequestOptionsBase { - /** - * The continuation token for this operation. - */ - continuationToken?: string; -} +export type Type = 'All' | 'Error' | 'Warning' | 'Success'; /** - * Optional Parameters. + * Contains response data for the get operation. */ -export interface JobExecutionsListByAgentOptionalParams extends msRest.RequestOptionsBase { - /** - * If specified, only job executions created at or after the specified time are included. - */ - createTimeMin?: Date; - /** - * If specified, only job executions created before the specified time are included. - */ - createTimeMax?: Date; - /** - * If specified, only job executions completed at or after the specified time are included. - */ - endTimeMin?: Date; - /** - * If specified, only job executions completed before the specified time are included. - */ - endTimeMax?: Date; - /** - * If specified, only active or only completed job executions are included. - */ - isActive?: boolean; - /** - * The number of elements in the collection to skip. - */ - skip?: number; +export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy & { /** - * The number of elements to return from the collection. + * The underlying HTTP response. */ - top?: number; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupShortTermRetentionPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the createOrUpdate operation. */ -export interface JobExecutionsListByJobOptionalParams extends msRest.RequestOptionsBase { - /** - * If specified, only job executions created at or after the specified time are included. - */ - createTimeMin?: Date; - /** - * If specified, only job executions created before the specified time are included. - */ - createTimeMax?: Date; - /** - * If specified, only job executions completed at or after the specified time are included. - */ - endTimeMin?: Date; - /** - * If specified, only job executions completed before the specified time are included. - */ - endTimeMax?: Date; - /** - * If specified, only active or only completed job executions are included. - */ - isActive?: boolean; - /** - * The number of elements in the collection to skip. - */ - skip?: number; +export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy & { /** - * The number of elements to return from the collection. + * The underlying HTTP response. */ - top?: number; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupShortTermRetentionPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the update operation. */ -export interface JobStepExecutionsListByJobExecutionOptionalParams extends msRest.RequestOptionsBase { - /** - * If specified, only job executions created at or after the specified time are included. - */ - createTimeMin?: Date; - /** - * If specified, only job executions created before the specified time are included. - */ - createTimeMax?: Date; - /** - * If specified, only job executions completed at or after the specified time are included. - */ - endTimeMin?: Date; - /** - * If specified, only job executions completed before the specified time are included. - */ - endTimeMax?: Date; - /** - * If specified, only active or only completed job executions are included. - */ - isActive?: boolean; - /** - * The number of elements in the collection to skip. - */ - skip?: number; +export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy & { /** - * The number of elements to return from the collection. + * The underlying HTTP response. */ - top?: number; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupShortTermRetentionPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the listByDatabase operation. */ -export interface JobTargetExecutionsListByJobExecutionOptionalParams extends msRest.RequestOptionsBase { - /** - * If specified, only job executions created at or after the specified time are included. - */ - createTimeMin?: Date; - /** - * If specified, only job executions created before the specified time are included. - */ - createTimeMax?: Date; - /** - * If specified, only job executions completed at or after the specified time are included. - */ - endTimeMin?: Date; - /** - * If specified, only job executions completed before the specified time are included. - */ - endTimeMax?: Date; - /** - * If specified, only active or only completed job executions are included. - */ - isActive?: boolean; +export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult & { /** - * The number of elements in the collection to skip. + * The underlying HTTP response. */ - skip?: number; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupShortTermRetentionPolicyListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type BackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = BackupShortTermRetentionPolicy & { /** - * The number of elements to return from the collection. + * The underlying HTTP response. */ - top?: number; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupShortTermRetentionPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the beginUpdate operation. */ -export interface JobTargetExecutionsListByStepOptionalParams extends msRest.RequestOptionsBase { +export type BackupShortTermRetentionPoliciesBeginUpdateResponse = BackupShortTermRetentionPolicy & { /** - * If specified, only job executions created at or after the specified time are included. + * The underlying HTTP response. */ - createTimeMin?: Date; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupShortTermRetentionPolicy; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult & { /** - * If specified, only job executions created before the specified time are included. + * The underlying HTTP response. */ - createTimeMax?: Date; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackupShortTermRetentionPolicyListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy & { /** - * If specified, only job executions completed at or after the specified time are included. + * The underlying HTTP response. */ - endTimeMin?: Date; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedDatabaseBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy & { /** - * If specified, only job executions completed before the specified time are included. + * The underlying HTTP response. */ - endTimeMax?: Date; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedDatabaseBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the listByDatabase operation. + */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseResponse = ExtendedDatabaseBlobAuditingPolicyListResult & { /** - * If specified, only active or only completed job executions are included. + * The underlying HTTP response. */ - isActive?: boolean; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedDatabaseBlobAuditingPolicyListResult; + }; +}; + +/** + * Contains response data for the listByDatabaseNext operation. + */ +export type ExtendedDatabaseBlobAuditingPoliciesListByDatabaseNextResponse = ExtendedDatabaseBlobAuditingPolicyListResult & { /** - * The number of elements in the collection to skip. + * The underlying HTTP response. */ - skip?: number; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedDatabaseBlobAuditingPolicyListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy & { /** - * The number of elements to return from the collection. + * The underlying HTTP response. */ - top?: number; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedServerBlobAuditingPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the createOrUpdate operation. */ -export interface LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams extends msRest.RequestOptionsBase { +export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { /** - * Whether or not to only get the latest backup for each database. + * The underlying HTTP response. */ - onlyLatestPerDatabase?: boolean; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedServerBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the listByServer operation. + */ +export type ExtendedServerBlobAuditingPoliciesListByServerResponse = ExtendedServerBlobAuditingPolicyListResult & { /** - * Whether to query against just live databases, just deleted databases, or all databases. - * Possible values include: 'All', 'Live', 'Deleted' + * The underlying HTTP response. */ - databaseState?: LongTermRetentionDatabaseState; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedServerBlobAuditingPolicyListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the beginCreateOrUpdate operation. */ -export interface LongTermRetentionBackupsListByResourceGroupLocationOptionalParams extends msRest.RequestOptionsBase { +export type ExtendedServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { /** - * Whether or not to only get the latest backup for each database. + * The underlying HTTP response. */ - onlyLatestPerDatabase?: boolean; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedServerBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the listByServerNext operation. + */ +export type ExtendedServerBlobAuditingPoliciesListByServerNextResponse = ExtendedServerBlobAuditingPolicyListResult & { /** - * Whether to query against just live databases, just deleted databases, or all databases. - * Possible values include: 'All', 'Live', 'Deleted' + * The underlying HTTP response. */ - databaseState?: LongTermRetentionDatabaseState; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExtendedServerBlobAuditingPolicyListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the get operation. */ -export interface LongTermRetentionBackupsListByResourceGroupServerOptionalParams extends msRest.RequestOptionsBase { +export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { /** - * Whether or not to only get the latest backup for each database. + * The underlying HTTP response. */ - onlyLatestPerDatabase?: boolean; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerBlobAuditingPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy & { /** - * Whether to query against just live databases, just deleted databases, or all databases. - * Possible values include: 'All', 'Live', 'Deleted' + * The underlying HTTP response. */ - databaseState?: LongTermRetentionDatabaseState; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerBlobAuditingPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the listByServer operation. */ -export interface LongTermRetentionBackupsListByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether or not to only get the latest backup for each database. - */ - onlyLatestPerDatabase?: boolean; +export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult & { /** - * Whether to query against just live databases, just deleted databases, or all databases. - * Possible values include: 'All', 'Live', 'Deleted' + * The underlying HTTP response. */ - databaseState?: LongTermRetentionDatabaseState; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerBlobAuditingPolicyListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the beginCreateOrUpdate operation. */ -export interface LongTermRetentionBackupsListByLocationOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether or not to only get the latest backup for each database. - */ - onlyLatestPerDatabase?: boolean; +export type ServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAuditingPolicy & { /** - * Whether to query against just live databases, just deleted databases, or all databases. - * Possible values include: 'All', 'Live', 'Deleted' + * The underlying HTTP response. */ - databaseState?: LongTermRetentionDatabaseState; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerBlobAuditingPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the listByServerNext operation. */ -export interface LongTermRetentionBackupsListByServerOptionalParams extends msRest.RequestOptionsBase { - /** - * Whether or not to only get the latest backup for each database. - */ - onlyLatestPerDatabase?: boolean; +export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult & { /** - * Whether to query against just live databases, just deleted databases, or all databases. - * Possible values include: 'All', 'Live', 'Deleted' + * The underlying HTTP response. */ - databaseState?: LongTermRetentionDatabaseState; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerBlobAuditingPolicyListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the get operation. */ -export interface SensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { +export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy & { /** - * An OData filter expression that filters elements in the collection. + * The underlying HTTP response. */ - filter?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseBlobAuditingPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the createOrUpdate operation. */ -export interface SensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * Specifies whether to include disabled recommendations or not. - */ - includeDisabledRecommendations?: boolean; - skipToken?: string; +export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy & { /** - * An OData filter expression that filters elements in the collection. + * The underlying HTTP response. */ - filter?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseBlobAuditingPolicy; + }; +}; /** - * Optional Parameters. + * Contains response data for the listByDatabase operation. */ -export interface CapabilitiesListByLocationOptionalParams extends msRest.RequestOptionsBase { +export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult & { /** - * If specified, restricts the response to only include the selected item. Possible values - * include: 'supportedEditions', 'supportedElasticPoolEditions', - * 'supportedManagedInstanceVersions' + * The underlying HTTP response. */ - include?: CapabilityGroup; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseBlobAuditingPolicyListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the listByDatabaseNext operation. */ -export interface ManagedInstanceKeysListByInstanceOptionalParams extends msRest.RequestOptionsBase { +export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult & { /** - * An OData filter expression that filters elements in the collection. + * The underlying HTTP response. */ - filter?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseBlobAuditingPolicyListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the get operation. */ -export interface ManagedDatabaseSensitivityLabelsListCurrentByDatabaseOptionalParams extends msRest.RequestOptionsBase { +export type DataWarehouseUserActivitiesGetResponse = DataWarehouseUserActivities & { /** - * An OData filter expression that filters elements in the collection. + * The underlying HTTP response. */ - filter?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataWarehouseUserActivities; + }; +}; /** - * Optional Parameters. + * Contains response data for the listByDatabase operation. */ -export interface ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseOptionalParams extends msRest.RequestOptionsBase { - /** - * Specifies whether to include disabled recommendations or not. - */ - includeDisabledRecommendations?: boolean; - skipToken?: string; +export type DataWarehouseUserActivitiesListByDatabaseResponse = DataWarehouseUserActivitiesListResult & { /** - * An OData filter expression that filters elements in the collection. + * The underlying HTTP response. */ - filter?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataWarehouseUserActivitiesListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the listByDatabaseNext operation. */ -export interface UsagesListByInstancePoolOptionalParams extends msRest.RequestOptionsBase { +export type DataWarehouseUserActivitiesListByDatabaseNextResponse = DataWarehouseUserActivitiesListResult & { /** - * Optional request parameter to include managed instance usages within the instance pool. + * The underlying HTTP response. */ - expandChildren?: boolean; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * An interface representing SqlManagementClientOptions. - */ -export interface SqlManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataWarehouseUserActivitiesListResult; + }; +}; /** - * @interface - * The response to a list recoverable databases request - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface RecoverableDatabaseListResult extends Array { -} +export type DatabaseAdvisorsListByDatabaseResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Advisor[]; + }; +}; /** - * @interface - * The response to a list restorable dropped databases request - * @extends Array + * Contains response data for the get operation. */ -export interface RestorableDroppedDatabaseListResult extends Array { -} +export type DatabaseAdvisorsGetResponse = Advisor & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Advisor; + }; +}; /** - * @interface - * A list of servers. - * @extends Array + * Contains response data for the update operation. */ -export interface ServerListResult extends Array { +export type DatabaseAdvisorsUpdateResponse = Advisor & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * The response to a list data masking rules request. - * @extends Array - */ -export interface DataMaskingRuleListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: Advisor; + }; +}; /** - * @interface - * Represents the response to a List Firewall Rules request. - * @extends Array + * Contains response data for the get operation. */ -export interface FirewallRuleListResult extends Array { -} +export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * The response to a list geo backup policies request. - * @extends Array - */ -export interface GeoBackupPolicyListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAutomaticTuning; + }; +}; /** - * @interface - * The response to a list database metrics request. - * @extends Array + * Contains response data for the update operation. */ -export interface MetricListResult extends Array { -} +export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * The response to a list database metric definitions request. - * @extends Array - */ -export interface MetricDefinitionListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAutomaticTuning; + }; +}; /** - * @interface - * A list of databases. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface DatabaseListResult extends Array { +export type DatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseColumnListResult; + }; +}; /** - * @interface - * The result of an elastic pool list request. - * @extends Array + * Contains response data for the listByTable operation. */ -export interface ElasticPoolListResult extends Array { +export type DatabaseColumnsListByTableResponse = DatabaseColumnListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} - -/** - * @interface - * Represents the response to a list recommended elastic pool request. - * @extends Array - */ -export interface RecommendedElasticPoolListResult extends Array { -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * Represents the response to a list recommended elastic pool metrics request. - * @extends Array - */ -export interface RecommendedElasticPoolListMetricsResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseColumnListResult; + }; +}; /** - * @interface - * Represents the response to a List database replication link request. - * @extends Array + * Contains response data for the get operation. */ -export interface ReplicationLinkListResult extends Array { -} +export type DatabaseColumnsGetResponse = DatabaseColumn & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * The response to a list Active Directory Administrators request. - * @extends Array - */ -export interface ServerAdministratorListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseColumn; + }; +}; /** - * @interface - * A list of server communication links. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface ServerCommunicationLinkListResult extends Array { -} +export type DatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * Represents the response to a get database service objectives request. - * @extends Array - */ -export interface ServiceObjectiveListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseColumnListResult; + }; +}; /** - * @interface - * Represents the response to a list elastic pool activity request. - * @extends Array + * Contains response data for the listByTableNext operation. */ -export interface ElasticPoolActivityListResult extends Array { -} +export type DatabaseColumnsListByTableNextResponse = DatabaseColumnListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * Represents the response to a list elastic pool database activity request. - * @extends Array - */ -export interface ElasticPoolDatabaseActivityListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseColumnListResult; + }; +}; /** - * @interface - * Represents the response to a list service tier advisor request. - * @extends Array + * Contains response data for the createOrUpdate operation. */ -export interface ServiceTierAdvisorListResult extends Array { -} +export type DatabaseExtensionsCreateOrUpdateResponse = ImportExportExtensionsOperationResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * Represents the response to a list database transparent data encryption activity request. - * @extends Array - */ -export interface TransparentDataEncryptionActivityListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportExtensionsOperationResult; + }; +}; /** - * @interface - * Represents the response to a list server metrics request. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface ServerUsageListResult extends Array { -} +export type DatabaseExtensionsListByDatabaseResponse = ImportExportExtensionsOperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * The response to a list database metrics request. - * @extends Array - */ -export interface DatabaseUsageListResult extends Array { -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportExtensionsOperationListResult; + }; +}; /** - * @interface - * A list of server encryption protectors. - * @extends Array + * Contains response data for the beginCreateOrUpdate operation. */ -export interface EncryptionProtectorListResult extends Array { +export type DatabaseExtensionsBeginCreateOrUpdateResponse = ImportExportExtensionsOperationResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportExtensionsOperationResult; + }; +}; /** - * @interface - * A list of failover groups. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface FailoverGroupListResult extends Array { +export type DatabaseExtensionsListByDatabaseNextResponse = ImportExportExtensionsOperationListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportExtensionsOperationListResult; + }; +}; /** - * @interface - * Result of the request to list SQL operations. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface OperationListResult extends Array { +export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseOperationListResult; + }; +}; /** - * @interface - * A list of server keys. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface ServerKeyListResult extends Array { +export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseOperationListResult; + }; +}; /** - * @interface - * A list of sync agents. - * @extends Array + * Contains response data for the listByDatabaseAdvisor operation. */ -export interface SyncAgentListResult extends Array { +export type DatabaseRecommendedActionsListByDatabaseAdvisorResponse = Array & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendedAction[]; + }; +}; /** - * @interface - * A list of sync agent linked databases. - * @extends Array + * Contains response data for the get operation. */ -export interface SyncAgentLinkedDatabaseListResult extends Array { +export type DatabaseRecommendedActionsGetResponse = RecommendedAction & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendedAction; + }; +}; /** - * @interface - * A list of sync database ID properties. - * @extends Array + * Contains response data for the update operation. */ -export interface SyncDatabaseIdListResult extends Array { +export type DatabaseRecommendedActionsUpdateResponse = RecommendedAction & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecommendedAction; + }; +}; /** - * @interface - * A list of sync schema properties. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface SyncFullSchemaPropertiesListResult extends Array { +export type DatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseSchemaListResult; + }; +}; /** - * @interface - * A list of sync group log properties. - * @extends Array + * Contains response data for the get operation. */ -export interface SyncGroupLogListResult extends Array { +export type DatabaseSchemasGetResponse = DatabaseSchema & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseSchema; + }; +}; /** - * @interface - * A list of sync groups. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface SyncGroupListResult extends Array { +export type DatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseSchemaListResult; + }; +}; /** - * @interface - * A list of Azure SQL Database sync members. - * @extends Array + * Contains response data for the get operation. */ -export interface SyncMemberListResult extends Array { +export type DatabaseSecurityAlertPoliciesGetResponse = DatabaseSecurityAlertPolicy & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseSecurityAlertPolicy; + }; +}; /** - * @interface - * A list of subscription usage metrics in a location. - * @extends Array + * Contains response data for the createOrUpdate operation. */ -export interface SubscriptionUsageListResult extends Array { +export type DatabaseSecurityAlertPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseSecurityAlertPolicy; + }; +}; /** - * @interface - * A list of virtual clusters. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface VirtualClusterListResult extends Array { +export type DatabaseSecurityAlertPoliciesListByDatabaseResponse = DatabaseSecurityAlertListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseSecurityAlertListResult; + }; +}; /** - * @interface - * A list of virtual network rules. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface VirtualNetworkRuleListResult extends Array { +export type DatabaseSecurityAlertPoliciesListByDatabaseNextResponse = DatabaseSecurityAlertListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseSecurityAlertListResult; + }; +}; /** - * @interface - * A list of server auditing settings. - * @extends Array + * Contains response data for the listBySchema operation. */ -export interface ServerBlobAuditingPolicyListResult extends Array { +export type DatabaseTablesListBySchemaResponse = DatabaseTableListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseTableListResult; + }; +}; /** - * @interface - * A list of database auditing settings. - * @extends Array + * Contains response data for the get operation. */ -export interface DatabaseBlobAuditingPolicyListResult extends Array { +export type DatabaseTablesGetResponse = DatabaseTable & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseTable; + }; +}; /** - * @interface - * A list of the database's vulnerability assessments. - * @extends Array + * Contains response data for the listBySchemaNext operation. */ -export interface DatabaseVulnerabilityAssessmentListResult extends Array { +export type DatabaseTablesListBySchemaNextResponse = DatabaseTableListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseTableListResult; + }; +}; /** - * @interface - * A list of Azure SQL job agents. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface JobAgentListResult extends Array { +export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseUsageListResult; + }; +}; /** - * @interface - * A list of job credentials. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface JobCredentialListResult extends Array { +export type DatabaseUsagesListByDatabaseNextResponse = DatabaseUsageListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseUsageListResult; + }; +}; /** - * @interface - * A list of job executions. - * @extends Array + * Contains response data for the get operation. */ -export interface JobExecutionListResult extends Array { +export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + }; +}; /** - * @interface - * A list of jobs. - * @extends Array + * Contains response data for the createOrUpdate operation. */ -export interface JobListResult extends Array { +export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + }; +}; /** - * @interface - * A list of job steps. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface JobStepListResult extends Array { +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VulnerabilityAssessmentScanRecordListResult; + }; +}; /** - * @interface - * A list of target groups. - * @extends Array + * Contains response data for the get operation. */ -export interface JobTargetGroupListResult extends Array { +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: VulnerabilityAssessmentScanRecord; + }; +}; /** - * @interface - * A list of job versions. - * @extends Array + * Contains response data for the exportMethod operation. */ -export interface JobVersionListResult extends Array { +export type DatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentScansExport; + }; +}; /** - * @interface - * A list of long term retention backups. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface LongTermRetentionBackupListResult extends Array { +export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * @interface - * A list of short term retention policies. - * @extends Array + /** + * The response body as parsed JSON or XML + */ + parsedBody: VulnerabilityAssessmentScanRecordListResult; + }; +}; + +/** + * Contains response data for the get operation. */ -export interface ManagedBackupShortTermRetentionPolicyListResult extends Array { +export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessment; + }; +}; /** - * @interface - * A list of server DNS aliases. - * @extends Array + * Contains response data for the createOrUpdate operation. */ -export interface ServerDnsAliasListResult extends Array { +export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessment; + }; +}; /** - * @interface - * A list of the server's security alert policies. - * @extends Array + * Contains response data for the listByDatabase operation. */ -export interface LogicalServerSecurityAlertPolicyListResult extends Array { +export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentListResult; + }; +}; /** - * @interface - * A list of restorable dropped managed databases. - * @extends Array + * Contains response data for the listByDatabaseNext operation. */ -export interface RestorableDroppedManagedDatabaseListResult extends Array { +export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseVulnerabilityAssessmentListResult; + }; +}; /** - * @interface - * A list of long term retention backups. - * @extends Array + * Contains response data for the listByServer operation. */ -export interface RestorePointListResult extends Array { +export type DatabasesListByServerResponse = DatabaseListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseListResult; + }; +}; /** - * @interface - * A list of the managed database's security alert policies. - * @extends Array + * Contains response data for the get operation. */ -export interface ManagedDatabaseSecurityAlertPolicyListResult extends Array { +export type DatabasesGetResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of the managed Server's security alert policies. - * @extends Array + * Contains response data for the createOrUpdate operation. */ -export interface ManagedServerSecurityAlertPolicyListResult extends Array { +export type DatabasesCreateOrUpdateResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of sensitivity labels. - * @extends Array + * Contains response data for the update operation. */ -export interface SensitivityLabelListResult extends Array { +export type DatabasesUpdateResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of managed instance administrators. - * @extends Array + * Contains response data for the listByElasticPool operation. */ -export interface ManagedInstanceAdministratorListResult extends Array { +export type DatabasesListByElasticPoolResponse = DatabaseListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseListResult; + }; +}; /** - * @interface - * The response to a list database operations request - * @extends Array + * Contains response data for the pause operation. */ -export interface DatabaseOperationListResult extends Array { +export type DatabasesPauseResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * The response to a list elastic pool operations request - * @extends Array + * Contains response data for the resume operation. */ -export interface ElasticPoolOperationListResult extends Array { +export type DatabasesResumeResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of vulnerability assessment scan records. - * @extends Array + * Contains response data for the listInaccessibleByServer operation. */ -export interface VulnerabilityAssessmentScanRecordListResult extends Array { +export type DatabasesListInaccessibleByServerResponse = DatabaseListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseListResult; + }; +}; /** - * @interface - * A list of instance failover groups. - * @extends Array + * Contains response data for the importMethod operation. */ -export interface InstanceFailoverGroupListResult extends Array { +export type DatabasesImportMethodResponse = ImportExportOperationResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportOperationResult; + }; +}; /** - * @interface - * A list of short term retention policies. - * @extends Array + * Contains response data for the exportMethod operation. */ -export interface BackupShortTermRetentionPolicyListResult extends Array { +export type DatabasesExportMethodResponse = ImportExportOperationResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportOperationResult; + }; +}; /** - * @interface - * A list of managed instance keys. - * @extends Array + * Contains response data for the beginCreateOrUpdate operation. */ -export interface ManagedInstanceKeyListResult extends Array { +export type DatabasesBeginCreateOrUpdateResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of managed instance encryption protectors. - * @extends Array + * Contains response data for the beginUpdate operation. */ -export interface ManagedInstanceEncryptionProtectorListResult extends Array { +export type DatabasesBeginUpdateResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of recoverable managed databases. - * @extends Array + * Contains response data for the beginPause operation. */ -export interface RecoverableManagedDatabaseListResult extends Array { +export type DatabasesBeginPauseResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of the ManagedInstance's vulnerability assessments. - * @extends Array + * Contains response data for the beginResume operation. */ -export interface ManagedInstanceVulnerabilityAssessmentListResult extends Array { +export type DatabasesBeginResumeResponse = Database & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Database; + }; +}; /** - * @interface - * A list of the server's vulnerability assessments. - * @extends Array + * Contains response data for the beginImportMethod operation. */ -export interface ServerVulnerabilityAssessmentListResult extends Array { +export type DatabasesBeginImportMethodResponse = ImportExportOperationResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportOperationResult; + }; +}; /** - * @interface - * A list of Azure SQL instance pools. - * @extends Array + * Contains response data for the beginExportMethod operation. */ -export interface InstancePoolListResult extends Array { +export type DatabasesBeginExportMethodResponse = ImportExportOperationResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ImportExportOperationResult; + }; +}; /** - * @interface - * A list of usages. - * @extends Array + * Contains response data for the listByServerNext operation. */ -export interface UsageListResult extends Array { +export type DatabasesListByServerNextResponse = DatabaseListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseListResult; + }; +}; /** - * @interface - * A list of managed instances. - * @extends Array + * Contains response data for the listByElasticPoolNext operation. */ -export interface ManagedInstanceListResult extends Array { +export type DatabasesListByElasticPoolNextResponse = DatabaseListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseListResult; + }; +}; /** - * @interface - * A list of managed databases. - * @extends Array + * Contains response data for the listInaccessibleByServerNext operation. */ -export interface ManagedDatabaseListResult extends Array { +export type DatabasesListInaccessibleByServerNextResponse = DatabaseListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseListResult; + }; +}; /** - * @interface - * A list of private endpoint connections. - * @extends Array + * Contains response data for the list operation. */ -export interface PrivateEndpointConnectionListResult extends Array { +export type DeletedServersListResponse = DeletedServerListResult & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedServerListResult; + }; +}; /** - * @interface - * A list of private link resources - * @extends Array + * Contains response data for the get operation. */ -export interface PrivateLinkResourceListResult extends Array { +export type DeletedServersGetResponse = DeletedServer & { /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for CheckNameAvailabilityReason. - * Possible values include: 'Invalid', 'AlreadyExists' - * @readonly - * @enum {string} - */ -export type CheckNameAvailabilityReason = 'Invalid' | 'AlreadyExists'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedServer; + }; +}; /** - * Defines values for ServerConnectionType. - * Possible values include: 'Default', 'Proxy', 'Redirect' - * @readonly - * @enum {string} + * Contains response data for the listByLocation operation. */ -export type ServerConnectionType = 'Default' | 'Proxy' | 'Redirect'; +export type DeletedServersListByLocationResponse = DeletedServerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SecurityAlertPolicyState. - * Possible values include: 'New', 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SecurityAlertPolicyState = 'New' | 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedServerListResult; + }; +}; /** - * Defines values for SecurityAlertPolicyEmailAccountAdmins. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the recover operation. */ -export type SecurityAlertPolicyEmailAccountAdmins = 'Enabled' | 'Disabled'; +export type DeletedServersRecoverResponse = DeletedServer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SecurityAlertPolicyUseServerDefault. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SecurityAlertPolicyUseServerDefault = 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedServer; + }; +}; /** - * Defines values for DataMaskingState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the beginRecover operation. */ -export type DataMaskingState = 'Disabled' | 'Enabled'; +export type DeletedServersBeginRecoverResponse = DeletedServer & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DataMaskingRuleState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type DataMaskingRuleState = 'Disabled' | 'Enabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedServer; + }; +}; /** - * Defines values for DataMaskingFunction. - * Possible values include: 'Default', 'CCN', 'Email', 'Number', 'SSN', 'Text' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type DataMaskingFunction = 'Default' | 'CCN' | 'Email' | 'Number' | 'SSN' | 'Text'; +export type DeletedServersListNextResponse = DeletedServerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for GeoBackupPolicyState. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type GeoBackupPolicyState = 'Disabled' | 'Enabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedServerListResult; + }; +}; /** - * Defines values for DatabaseEdition. - * Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', - * 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', - * 'Hyperscale' - * @readonly - * @enum {string} + * Contains response data for the listByLocationNext operation. */ -export type DatabaseEdition = 'Web' | 'Business' | 'Basic' | 'Standard' | 'Premium' | 'PremiumRS' | 'Free' | 'Stretch' | 'DataWarehouse' | 'System' | 'System2' | 'GeneralPurpose' | 'BusinessCritical' | 'Hyperscale'; +export type DeletedServersListByLocationNextResponse = DeletedServerListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ServiceObjectiveName. - * Possible values include: 'System', 'System0', 'System1', 'System2', 'System3', 'System4', - * 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7', - * 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', - * 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', - * 'DW1500c', 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', - * 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400', 'DS500', - * 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool' - * @readonly - * @enum {string} - */ -export type ServiceObjectiveName = 'System' | 'System0' | 'System1' | 'System2' | 'System3' | 'System4' | 'System2L' | 'System3L' | 'System4L' | 'Free' | 'Basic' | 'S0' | 'S1' | 'S2' | 'S3' | 'S4' | 'S6' | 'S7' | 'S9' | 'S12' | 'P1' | 'P2' | 'P3' | 'P4' | 'P6' | 'P11' | 'P15' | 'PRS1' | 'PRS2' | 'PRS4' | 'PRS6' | 'DW100' | 'DW200' | 'DW300' | 'DW400' | 'DW500' | 'DW600' | 'DW1000' | 'DW1200' | 'DW1000c' | 'DW1500' | 'DW1500c' | 'DW2000' | 'DW2000c' | 'DW3000' | 'DW2500c' | 'DW3000c' | 'DW6000' | 'DW5000c' | 'DW6000c' | 'DW7500c' | 'DW10000c' | 'DW15000c' | 'DW30000c' | 'DS100' | 'DS200' | 'DS300' | 'DS400' | 'DS500' | 'DS600' | 'DS1000' | 'DS1200' | 'DS1500' | 'DS2000' | 'ElasticPool'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeletedServerListResult; + }; +}; /** - * Defines values for StorageKeyType. - * Possible values include: 'StorageAccessKey', 'SharedAccessKey' - * @readonly - * @enum {string} + * Contains response data for the listByElasticPool operation. */ -export type StorageKeyType = 'StorageAccessKey' | 'SharedAccessKey'; +export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AuthenticationType. - * Possible values include: 'SQL', 'ADPassword' - * @readonly - * @enum {string} - */ -export type AuthenticationType = 'SQL' | 'ADPassword'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPoolOperationListResult; + }; +}; /** - * Defines values for UnitType. - * Possible values include: 'count', 'bytes', 'seconds', 'percent', 'countPerSecond', - * 'bytesPerSecond' - * @readonly - * @enum {string} + * Contains response data for the listByElasticPoolNext operation. */ -export type UnitType = 'count' | 'bytes' | 'seconds' | 'percent' | 'countPerSecond' | 'bytesPerSecond'; +export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' - * @readonly - * @enum {string} - */ -export type PrimaryAggregationType = 'None' | 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPoolOperationListResult; + }; +}; /** - * Defines values for UnitDefinitionType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', - * 'BytesPerSecond' - * @readonly - * @enum {string} + * Contains response data for the listByServer operation. */ -export type UnitDefinitionType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond'; +export type ElasticPoolsListByServerResponse = ElasticPoolListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPoolListResult; + }; +}; /** - * Defines values for ElasticPoolEdition. - * Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ElasticPoolEdition = 'Basic' | 'Standard' | 'Premium' | 'GeneralPurpose' | 'BusinessCritical'; +export type ElasticPoolsGetResponse = ElasticPool & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPool; + }; +}; /** - * Defines values for ReplicationRole. - * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type ReplicationRole = 'Primary' | 'Secondary' | 'NonReadableSecondary' | 'Source' | 'Copy'; +export type ElasticPoolsCreateOrUpdateResponse = ElasticPool & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPool; + }; +}; /** - * Defines values for ReplicationState. - * Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type ReplicationState = 'PENDING' | 'SEEDING' | 'CATCH_UP' | 'SUSPENDED'; +export type ElasticPoolsUpdateResponse = ElasticPool & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for RecommendedIndexAction. - * Possible values include: 'Create', 'Drop', 'Rebuild' - * @readonly - * @enum {string} - */ -export type RecommendedIndexAction = 'Create' | 'Drop' | 'Rebuild'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPool; + }; +}; /** - * Defines values for RecommendedIndexState. - * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending Revert', - * 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type RecommendedIndexState = 'Active' | 'Pending' | 'Executing' | 'Verifying' | 'Pending Revert' | 'Reverting' | 'Reverted' | 'Ignored' | 'Expired' | 'Blocked' | 'Success'; +export type ElasticPoolsBeginCreateOrUpdateResponse = ElasticPool & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for RecommendedIndexType. - * Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' - * @readonly - * @enum {string} - */ -export type RecommendedIndexType = 'CLUSTERED' | 'NONCLUSTERED' | 'COLUMNSTORE' | 'CLUSTERED COLUMNSTORE'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPool; + }; +}; /** - * Defines values for TransparentDataEncryptionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the beginUpdate operation. */ -export type TransparentDataEncryptionStatus = 'Enabled' | 'Disabled'; +export type ElasticPoolsBeginUpdateResponse = ElasticPool & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TransparentDataEncryptionActivityStatus. - * Possible values include: 'Encrypting', 'Decrypting' - * @readonly - * @enum {string} - */ -export type TransparentDataEncryptionActivityStatus = 'Encrypting' | 'Decrypting'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPool; + }; +}; /** - * Defines values for AutomaticTuningMode. - * Possible values include: 'Inherit', 'Custom', 'Auto', 'Unspecified' - * @readonly - * @enum {string} + * Contains response data for the listByServerNext operation. */ -export type AutomaticTuningMode = 'Inherit' | 'Custom' | 'Auto' | 'Unspecified'; +export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AutomaticTuningOptionModeDesired. - * Possible values include: 'Off', 'On', 'Default' - * @readonly - * @enum {string} - */ -export type AutomaticTuningOptionModeDesired = 'Off' | 'On' | 'Default'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ElasticPoolListResult; + }; +}; /** - * Defines values for AutomaticTuningOptionModeActual. - * Possible values include: 'Off', 'On' - * @readonly - * @enum {string} + * Contains response data for the listByServer operation. */ -export type AutomaticTuningOptionModeActual = 'Off' | 'On'; +export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AutomaticTuningDisabledReason. - * Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', - * 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' - * @readonly - * @enum {string} - */ -export type AutomaticTuningDisabledReason = 'Default' | 'Disabled' | 'AutoConfigured' | 'InheritedFromServer' | 'QueryStoreOff' | 'QueryStoreReadOnly' | 'NotSupported'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EncryptionProtectorListResult; + }; +}; /** - * Defines values for ServerKeyType. - * Possible values include: 'ServiceManaged', 'AzureKeyVault' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; +export type EncryptionProtectorsGetResponse = EncryptionProtector & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ReadWriteEndpointFailoverPolicy. - * Possible values include: 'Manual', 'Automatic' - * @readonly - * @enum {string} - */ -export type ReadWriteEndpointFailoverPolicy = 'Manual' | 'Automatic'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EncryptionProtector; + }; +}; /** - * Defines values for ReadOnlyEndpointFailoverPolicy. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type ReadOnlyEndpointFailoverPolicy = 'Disabled' | 'Enabled'; +export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for FailoverGroupReplicationRole. - * Possible values include: 'Primary', 'Secondary' - * @readonly - * @enum {string} - */ -export type FailoverGroupReplicationRole = 'Primary' | 'Secondary'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EncryptionProtector; + }; +}; /** - * Defines values for OperationOrigin. - * Possible values include: 'user', 'system' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type OperationOrigin = 'user' | 'system'; +export type EncryptionProtectorsBeginCreateOrUpdateResponse = EncryptionProtector & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for IdentityType. - * Possible values include: 'SystemAssigned' - * @readonly - * @enum {string} - */ -export type IdentityType = 'SystemAssigned'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EncryptionProtector; + }; +}; /** - * Defines values for SyncAgentState. - * Possible values include: 'Online', 'Offline', 'NeverConnected' - * @readonly - * @enum {string} + * Contains response data for the listByServerNext operation. */ -export type SyncAgentState = 'Online' | 'Offline' | 'NeverConnected'; +export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SyncMemberDbType. - * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * @readonly - * @enum {string} - */ -export type SyncMemberDbType = 'AzureSqlDatabase' | 'SqlServerDatabase'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EncryptionProtectorListResult; + }; +}; /** - * Defines values for SyncGroupLogType. - * Possible values include: 'All', 'Error', 'Warning', 'Success' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type SyncGroupLogType = 'All' | 'Error' | 'Warning' | 'Success'; +export type FailoverGroupsGetResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for SyncConflictResolutionPolicy. - * Possible values include: 'HubWin', 'MemberWin' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type SyncConflictResolutionPolicy = 'HubWin' | 'MemberWin'; +export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SyncGroupState. - * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' - * @readonly - * @enum {string} - */ -export type SyncGroupState = 'NotReady' | 'Error' | 'Warning' | 'Progressing' | 'Good'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for SyncDirection. - * Possible values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type SyncDirection = 'Bidirectional' | 'OneWayMemberToHub' | 'OneWayHubToMember'; +export type FailoverGroupsUpdateResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SyncMemberState. - * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', - * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', - * 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', - * 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', - * 'ReprovisionFailed', 'UnReprovisioned' - * @readonly - * @enum {string} - */ -export type SyncMemberState = 'SyncInProgress' | 'SyncSucceeded' | 'SyncFailed' | 'DisabledTombstoneCleanup' | 'DisabledBackupRestore' | 'SyncSucceededWithWarnings' | 'SyncCancelling' | 'SyncCancelled' | 'UnProvisioned' | 'Provisioning' | 'Provisioned' | 'ProvisionFailed' | 'DeProvisioning' | 'DeProvisioned' | 'DeProvisionFailed' | 'Reprovisioning' | 'ReprovisionFailed' | 'UnReprovisioned'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for VirtualNetworkRuleState. - * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' - * @readonly - * @enum {string} + * Contains response data for the listByServer operation. */ -export type VirtualNetworkRuleState = 'Initializing' | 'InProgress' | 'Ready' | 'Deleting' | 'Unknown'; +export type FailoverGroupsListByServerResponse = FailoverGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for BlobAuditingPolicyState. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroupListResult; + }; +}; /** - * Defines values for JobAgentState. - * Possible values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the failover operation. */ -export type JobAgentState = 'Creating' | 'Ready' | 'Updating' | 'Deleting' | 'Disabled'; +export type FailoverGroupsFailoverResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for JobExecutionLifecycle. - * Possible values include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', - * 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', - * 'Skipped' - * @readonly - * @enum {string} - */ -export type JobExecutionLifecycle = 'Created' | 'InProgress' | 'WaitingForChildJobExecutions' | 'WaitingForRetry' | 'Succeeded' | 'SucceededWithSkipped' | 'Failed' | 'TimedOut' | 'Canceled' | 'Skipped'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for ProvisioningState. - * Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', 'Canceled' - * @readonly - * @enum {string} + * Contains response data for the forceFailoverAllowDataLoss operation. */ -export type ProvisioningState = 'Created' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; +export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for JobTargetType. - * Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', - * 'SqlServer' - * @readonly - * @enum {string} - */ -export type JobTargetType = 'TargetGroup' | 'SqlDatabase' | 'SqlElasticPool' | 'SqlShardMap' | 'SqlServer'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for JobScheduleType. - * Possible values include: 'Once', 'Recurring' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type JobScheduleType = 'Once' | 'Recurring'; +export type FailoverGroupsBeginCreateOrUpdateResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for JobStepActionType. - * Possible values include: 'TSql' - * @readonly - * @enum {string} - */ -export type JobStepActionType = 'TSql'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for JobStepActionSource. - * Possible values include: 'Inline' - * @readonly - * @enum {string} + * Contains response data for the beginUpdate operation. */ -export type JobStepActionSource = 'Inline'; +export type FailoverGroupsBeginUpdateResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for JobStepOutputType. - * Possible values include: 'SqlDatabase' - * @readonly - * @enum {string} - */ -export type JobStepOutputType = 'SqlDatabase'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for JobTargetGroupMembershipType. - * Possible values include: 'Include', 'Exclude' - * @readonly - * @enum {string} + * Contains response data for the beginFailover operation. */ -export type JobTargetGroupMembershipType = 'Include' | 'Exclude'; +export type FailoverGroupsBeginFailoverResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for AutomaticTuningServerMode. - * Possible values include: 'Custom', 'Auto', 'Unspecified' - * @readonly - * @enum {string} - */ -export type AutomaticTuningServerMode = 'Custom' | 'Auto' | 'Unspecified'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for AutomaticTuningServerReason. - * Possible values include: 'Default', 'Disabled', 'AutoConfigured' - * @readonly - * @enum {string} + * Contains response data for the beginForceFailoverAllowDataLoss operation. */ -export type AutomaticTuningServerReason = 'Default' | 'Disabled' | 'AutoConfigured'; +export type FailoverGroupsBeginForceFailoverAllowDataLossResponse = FailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for RestorePointType. - * Possible values include: 'CONTINUOUS', 'DISCRETE' - * @readonly - * @enum {string} - */ -export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroup; + }; +}; /** - * Defines values for ManagementOperationState. - * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', - * 'Cancelled' - * @readonly - * @enum {string} + * Contains response data for the listByServerNext operation. */ -export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; +export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for MaxSizeUnit. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' - * @readonly - * @enum {string} - */ -export type MaxSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FailoverGroupListResult; + }; +}; /** - * Defines values for LogSizeUnit. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type LogSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes' | 'Percent'; +export type FirewallRulesGetResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for CapabilityStatus. - * Possible values include: 'Visible', 'Available', 'Default', 'Disabled' - * @readonly - * @enum {string} - */ -export type CapabilityStatus = 'Visible' | 'Available' | 'Default' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; /** - * Defines values for PerformanceLevelUnit. - * Possible values include: 'DTU', 'VCores' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type PerformanceLevelUnit = 'DTU' | 'VCores'; +export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for CreateMode. - * Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', 'Restore', - * 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', - * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' - * @readonly - * @enum {string} - */ -export type CreateMode = 'Default' | 'Copy' | 'Secondary' | 'PointInTimeRestore' | 'Restore' | 'Recovery' | 'RestoreExternalBackup' | 'RestoreExternalBackupSecondary' | 'RestoreLongTermRetentionBackup' | 'OnlineSecondary'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; /** - * Defines values for SampleName. - * Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' - * @readonly - * @enum {string} + * Contains response data for the listByServer operation. */ -export type SampleName = 'AdventureWorksLT' | 'WideWorldImportersStd' | 'WideWorldImportersFull'; +export type FirewallRulesListByServerResponse = FirewallRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DatabaseStatus. - * Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', - * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', - * 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', - * 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers', 'Disabled' - * @readonly - * @enum {string} - */ -export type DatabaseStatus = 'Online' | 'Restoring' | 'RecoveryPending' | 'Recovering' | 'Suspect' | 'Offline' | 'Standby' | 'Shutdown' | 'EmergencyMode' | 'AutoClosed' | 'Copying' | 'Creating' | 'Inaccessible' | 'OfflineSecondary' | 'Pausing' | 'Paused' | 'Resuming' | 'Scaling' | 'OfflineChangingDwPerformanceTiers' | 'OnlineChangingDwPerformanceTiers' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRuleListResult; + }; +}; /** - * Defines values for CatalogCollationType. - * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * @readonly - * @enum {string} + * Contains response data for the replace operation. */ -export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_CI_AS'; +export type FirewallRulesReplaceResponse = FirewallRule & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DatabaseLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} - */ -export type DatabaseLicenseType = 'LicenseIncluded' | 'BasePrice'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRule; + }; +}; /** - * Defines values for DatabaseReadScale. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the listByServerNext operation. */ -export type DatabaseReadScale = 'Enabled' | 'Disabled'; +export type FirewallRulesListByServerNextResponse = FirewallRuleListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ElasticPoolState. - * Possible values include: 'Creating', 'Ready', 'Disabled' - * @readonly - * @enum {string} - */ -export type ElasticPoolState = 'Creating' | 'Ready' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: FirewallRuleListResult; + }; +}; /** - * Defines values for ElasticPoolLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type ElasticPoolLicenseType = 'LicenseIncluded' | 'BasePrice'; +export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for VulnerabilityAssessmentScanTriggerType. - * Possible values include: 'OnDemand', 'Recurring' - * @readonly - * @enum {string} - */ -export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroup; + }; +}; /** - * Defines values for VulnerabilityAssessmentScanState. - * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; +export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for InstanceFailoverGroupReplicationRole. - * Possible values include: 'Primary', 'Secondary' - * @readonly - * @enum {string} - */ -export type InstanceFailoverGroupReplicationRole = 'Primary' | 'Secondary'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroup; + }; +}; /** - * Defines values for InstancePoolLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} + * Contains response data for the listByLocation operation. */ -export type InstancePoolLicenseType = 'LicenseIncluded' | 'BasePrice'; +export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ManagedServerCreateMode. - * Possible values include: 'Default', 'PointInTimeRestore' - * @readonly - * @enum {string} - */ -export type ManagedServerCreateMode = 'Default' | 'PointInTimeRestore'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroupListResult; + }; +}; /** - * Defines values for ManagedInstanceLicenseType. - * Possible values include: 'LicenseIncluded', 'BasePrice' - * @readonly - * @enum {string} + * Contains response data for the failover operation. */ -export type ManagedInstanceLicenseType = 'LicenseIncluded' | 'BasePrice'; +export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ManagedInstanceProxyOverride. - * Possible values include: 'Proxy', 'Redirect', 'Default' - * @readonly - * @enum {string} - */ -export type ManagedInstanceProxyOverride = 'Proxy' | 'Redirect' | 'Default'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroup; + }; +}; /** - * Defines values for ManagedDatabaseStatus. - * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', - * 'Restoring', 'Updating' - * @readonly - * @enum {string} + * Contains response data for the forceFailoverAllowDataLoss operation. */ -export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Restoring' | 'Updating'; +export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ManagedDatabaseCreateMode. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery' - * @readonly - * @enum {string} - */ -export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroup; + }; +}; /** - * Defines values for LongTermRetentionDatabaseState. - * Possible values include: 'All', 'Live', 'Deleted' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type LongTermRetentionDatabaseState = 'All' | 'Live' | 'Deleted'; +export type InstanceFailoverGroupsBeginCreateOrUpdateResponse = InstanceFailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for VulnerabilityAssessmentPolicyBaselineName. - * Possible values include: 'master', 'default' - * @readonly - * @enum {string} - */ -export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroup; + }; +}; /** - * Defines values for SensitivityLabelSource. - * Possible values include: 'current', 'recommended' - * @readonly - * @enum {string} + * Contains response data for the beginFailover operation. */ -export type SensitivityLabelSource = 'current' | 'recommended'; +export type InstanceFailoverGroupsBeginFailoverResponse = InstanceFailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for CapabilityGroup. - * Possible values include: 'supportedEditions', 'supportedElasticPoolEditions', - * 'supportedManagedInstanceVersions' - * @readonly - * @enum {string} - */ -export type CapabilityGroup = 'supportedEditions' | 'supportedElasticPoolEditions' | 'supportedManagedInstanceVersions'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroup; + }; +}; /** - * Defines values for ReplicaType. - * Possible values include: 'Primary', 'ReadableSecondary' - * @readonly - * @enum {string} + * Contains response data for the beginForceFailoverAllowDataLoss operation. */ -export type ReplicaType = 'Primary' | 'ReadableSecondary'; +export type InstanceFailoverGroupsBeginForceFailoverAllowDataLossResponse = InstanceFailoverGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Type. - * Possible values include: 'All', 'Error', 'Warning', 'Success' - * @readonly - * @enum {string} - */ -export type Type = 'All' | 'Error' | 'Warning' | 'Success'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: InstanceFailoverGroup; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the listByLocationNext operation. */ -export type RecoverableDatabasesGetResponse = RecoverableDatabase & { +export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult & { /** * The underlying HTTP response. */ @@ -7683,14 +13361,14 @@ export type RecoverableDatabasesGetResponse = RecoverableDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableDatabase; + parsedBody: InstanceFailoverGroupListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the get operation. */ -export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListResult & { +export type InstancePoolsGetResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -7703,14 +13381,14 @@ export type RecoverableDatabasesListByServerResponse = RecoverableDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableDatabaseListResult; + parsedBody: InstancePool; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase & { +export type InstancePoolsCreateOrUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -7723,14 +13401,14 @@ export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase & /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDroppedDatabase; + parsedBody: InstancePool; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the update operation. */ -export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult & { +export type InstancePoolsUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -7743,14 +13421,14 @@ export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDa /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDroppedDatabaseListResult; + parsedBody: InstancePool; }; }; /** - * Contains response data for the checkNameAvailability operation. + * Contains response data for the listByResourceGroup operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse & { +export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -7763,14 +13441,14 @@ export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse /** * The response body as parsed JSON or XML */ - parsedBody: CheckNameAvailabilityResponse; + parsedBody: InstancePoolListResult; }; }; /** * Contains response data for the list operation. */ -export type ServersListResponse = ServerListResult & { +export type InstancePoolsListResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -7783,14 +13461,14 @@ export type ServersListResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: InstancePoolListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServersListByResourceGroupResponse = ServerListResult & { +export type InstancePoolsBeginCreateOrUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -7803,14 +13481,14 @@ export type ServersListByResourceGroupResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: InstancePool; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type ServersGetResponse = Server & { +export type InstancePoolsBeginUpdateResponse = InstancePool & { /** * The underlying HTTP response. */ @@ -7823,14 +13501,14 @@ export type ServersGetResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: InstancePool; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ServersCreateOrUpdateResponse = Server & { +export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -7843,14 +13521,14 @@ export type ServersCreateOrUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: InstancePoolListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type ServersUpdateResponse = Server & { +export type InstancePoolsListNextResponse = InstancePoolListResult & { /** * The underlying HTTP response. */ @@ -7863,14 +13541,14 @@ export type ServersUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: InstancePoolListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByServer operation. */ -export type ServersBeginCreateOrUpdateResponse = Server & { +export type JobAgentsListByServerResponse = JobAgentListResult & { /** * The underlying HTTP response. */ @@ -7883,14 +13561,14 @@ export type ServersBeginCreateOrUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: JobAgentListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type ServersBeginUpdateResponse = Server & { +export type JobAgentsGetResponse = JobAgent & { /** * The underlying HTTP response. */ @@ -7903,14 +13581,14 @@ export type ServersBeginUpdateResponse = Server & { /** * The response body as parsed JSON or XML */ - parsedBody: Server; + parsedBody: JobAgent; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ServersListNextResponse = ServerListResult & { +export type JobAgentsCreateOrUpdateResponse = JobAgent & { /** * The underlying HTTP response. */ @@ -7923,14 +13601,14 @@ export type ServersListNextResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: JobAgent; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the update operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult & { +export type JobAgentsUpdateResponse = JobAgent & { /** * The underlying HTTP response. */ @@ -7943,14 +13621,14 @@ export type ServersListByResourceGroupNextResponse = ServerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerListResult; + parsedBody: JobAgent; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPolicy & { +export type JobAgentsBeginCreateOrUpdateResponse = JobAgent & { /** * The underlying HTTP response. */ @@ -7963,14 +13641,14 @@ export type ServerConnectionPoliciesCreateOrUpdateResponse = ServerConnectionPol /** * The response body as parsed JSON or XML */ - parsedBody: ServerConnectionPolicy; + parsedBody: JobAgent; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy & { +export type JobAgentsBeginUpdateResponse = JobAgent & { /** * The underlying HTTP response. */ @@ -7983,14 +13661,14 @@ export type ServerConnectionPoliciesGetResponse = ServerConnectionPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerConnectionPolicy; + parsedBody: JobAgent; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServerNext operation. */ -export type DatabaseThreatDetectionPoliciesGetResponse = DatabaseSecurityAlertPolicy & { +export type JobAgentsListByServerNextResponse = JobAgentListResult & { /** * The underlying HTTP response. */ @@ -8003,14 +13681,14 @@ export type DatabaseThreatDetectionPoliciesGetResponse = DatabaseSecurityAlertPo /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseSecurityAlertPolicy; + parsedBody: JobAgentListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByAgent operation. */ -export type DatabaseThreatDetectionPoliciesCreateOrUpdateResponse = DatabaseSecurityAlertPolicy & { +export type JobCredentialsListByAgentResponse = JobCredentialListResult & { /** * The underlying HTTP response. */ @@ -8023,14 +13701,14 @@ export type DatabaseThreatDetectionPoliciesCreateOrUpdateResponse = DatabaseSecu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseSecurityAlertPolicy; + parsedBody: JobCredentialListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy & { +export type JobCredentialsGetResponse = JobCredential & { /** * The underlying HTTP response. */ @@ -8043,14 +13721,14 @@ export type DataMaskingPoliciesCreateOrUpdateResponse = DataMaskingPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: DataMaskingPolicy; + parsedBody: JobCredential; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type DataMaskingPoliciesGetResponse = DataMaskingPolicy & { +export type JobCredentialsCreateOrUpdateResponse = JobCredential & { /** * The underlying HTTP response. */ @@ -8063,14 +13741,14 @@ export type DataMaskingPoliciesGetResponse = DataMaskingPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: DataMaskingPolicy; + parsedBody: JobCredential; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByAgentNext operation. */ -export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule & { +export type JobCredentialsListByAgentNextResponse = JobCredentialListResult & { /** * The underlying HTTP response. */ @@ -8083,14 +13761,14 @@ export type DataMaskingRulesCreateOrUpdateResponse = DataMaskingRule & { /** * The response body as parsed JSON or XML */ - parsedBody: DataMaskingRule; + parsedBody: JobCredentialListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByAgent operation. */ -export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult & { +export type JobExecutionsListByAgentResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8103,14 +13781,14 @@ export type DataMaskingRulesListByDatabaseResponse = DataMaskingRuleListResult & /** * The response body as parsed JSON or XML */ - parsedBody: DataMaskingRuleListResult; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the create operation. */ -export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { +export type JobExecutionsCreateResponse = JobExecution & { /** * The underlying HTTP response. */ @@ -8123,14 +13801,14 @@ export type FirewallRulesCreateOrUpdateResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: JobExecution; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByJob operation. */ -export type FirewallRulesGetResponse = FirewallRule & { +export type JobExecutionsListByJobResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8143,14 +13821,14 @@ export type FirewallRulesGetResponse = FirewallRule & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRule; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the get operation. */ -export type FirewallRulesListByServerResponse = FirewallRuleListResult & { +export type JobExecutionsGetResponse = JobExecution & { /** * The underlying HTTP response. */ @@ -8163,14 +13841,14 @@ export type FirewallRulesListByServerResponse = FirewallRuleListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FirewallRuleListResult; + parsedBody: JobExecution; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy & { +export type JobExecutionsCreateOrUpdateResponse = JobExecution & { /** * The underlying HTTP response. */ @@ -8183,14 +13861,14 @@ export type GeoBackupPoliciesCreateOrUpdateResponse = GeoBackupPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: GeoBackupPolicy; + parsedBody: JobExecution; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreate operation. */ -export type GeoBackupPoliciesGetResponse = GeoBackupPolicy & { +export type JobExecutionsBeginCreateResponse = JobExecution & { /** * The underlying HTTP response. */ @@ -8203,14 +13881,14 @@ export type GeoBackupPoliciesGetResponse = GeoBackupPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: GeoBackupPolicy; + parsedBody: JobExecution; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult & { +export type JobExecutionsBeginCreateOrUpdateResponse = JobExecution & { /** * The underlying HTTP response. */ @@ -8223,14 +13901,14 @@ export type GeoBackupPoliciesListByDatabaseResponse = GeoBackupPolicyListResult /** * The response body as parsed JSON or XML */ - parsedBody: GeoBackupPolicyListResult; + parsedBody: JobExecution; }; }; /** - * Contains response data for the importMethod operation. + * Contains response data for the listByAgentNext operation. */ -export type DatabasesImportMethodResponse = ImportExportResponse & { +export type JobExecutionsListByAgentNextResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8243,14 +13921,14 @@ export type DatabasesImportMethodResponse = ImportExportResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ImportExportResponse; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the createImportOperation operation. + * Contains response data for the listByJobNext operation. */ -export type DatabasesCreateImportOperationResponse = ImportExportResponse & { +export type JobExecutionsListByJobNextResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8263,14 +13941,14 @@ export type DatabasesCreateImportOperationResponse = ImportExportResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ImportExportResponse; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the exportMethod operation. + * Contains response data for the listByJobExecution operation. */ -export type DatabasesExportMethodResponse = ImportExportResponse & { +export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8283,14 +13961,14 @@ export type DatabasesExportMethodResponse = ImportExportResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ImportExportResponse; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the get operation. */ -export type DatabasesListMetricsResponse = MetricListResult & { +export type JobStepExecutionsGetResponse = JobExecution & { /** * The underlying HTTP response. */ @@ -8303,14 +13981,14 @@ export type DatabasesListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: JobExecution; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the listByJobExecutionNext operation. */ -export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult & { +export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8323,14 +14001,14 @@ export type DatabasesListMetricDefinitionsResponse = MetricDefinitionListResult /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionListResult; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByVersion operation. */ -export type DatabasesListByServerResponse = DatabaseListResult & { +export type JobStepsListByVersionResponse = JobStepListResult & { /** * The underlying HTTP response. */ @@ -8343,14 +14021,14 @@ export type DatabasesListByServerResponse = DatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseListResult; + parsedBody: JobStepListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getByVersion operation. */ -export type DatabasesGetResponse = Database & { +export type JobStepsGetByVersionResponse = JobStep & { /** * The underlying HTTP response. */ @@ -8363,14 +14041,14 @@ export type DatabasesGetResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobStep; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByJob operation. */ -export type DatabasesCreateOrUpdateResponse = Database & { +export type JobStepsListByJobResponse = JobStepListResult & { /** * The underlying HTTP response. */ @@ -8383,14 +14061,14 @@ export type DatabasesCreateOrUpdateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobStepListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type DatabasesUpdateResponse = Database & { +export type JobStepsGetResponse = JobStep & { /** * The underlying HTTP response. */ @@ -8403,14 +14081,14 @@ export type DatabasesUpdateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobStep; }; }; /** - * Contains response data for the listByElasticPool operation. + * Contains response data for the createOrUpdate operation. */ -export type DatabasesListByElasticPoolResponse = DatabaseListResult & { +export type JobStepsCreateOrUpdateResponse = JobStep & { /** * The underlying HTTP response. */ @@ -8423,14 +14101,14 @@ export type DatabasesListByElasticPoolResponse = DatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseListResult; + parsedBody: JobStep; }; }; /** - * Contains response data for the pause operation. + * Contains response data for the listByVersionNext operation. */ -export type DatabasesPauseResponse = Database & { +export type JobStepsListByVersionNextResponse = JobStepListResult & { /** * The underlying HTTP response. */ @@ -8443,14 +14121,14 @@ export type DatabasesPauseResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobStepListResult; }; }; /** - * Contains response data for the resume operation. + * Contains response data for the listByJobNext operation. */ -export type DatabasesResumeResponse = Database & { +export type JobStepsListByJobNextResponse = JobStepListResult & { /** * The underlying HTTP response. */ @@ -8463,14 +14141,14 @@ export type DatabasesResumeResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobStepListResult; }; }; /** - * Contains response data for the beginImportMethod operation. + * Contains response data for the listByJobExecution operation. */ -export type DatabasesBeginImportMethodResponse = ImportExportResponse & { +export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8483,14 +14161,14 @@ export type DatabasesBeginImportMethodResponse = ImportExportResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ImportExportResponse; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the beginCreateImportOperation operation. + * Contains response data for the listByStep operation. */ -export type DatabasesBeginCreateImportOperationResponse = ImportExportResponse & { +export type JobTargetExecutionsListByStepResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8503,14 +14181,14 @@ export type DatabasesBeginCreateImportOperationResponse = ImportExportResponse & /** * The response body as parsed JSON or XML */ - parsedBody: ImportExportResponse; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the beginExportMethod operation. + * Contains response data for the get operation. */ -export type DatabasesBeginExportMethodResponse = ImportExportResponse & { +export type JobTargetExecutionsGetResponse = JobExecution & { /** * The underlying HTTP response. */ @@ -8523,14 +14201,14 @@ export type DatabasesBeginExportMethodResponse = ImportExportResponse & { /** * The response body as parsed JSON or XML */ - parsedBody: ImportExportResponse; + parsedBody: JobExecution; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByJobExecutionNext operation. */ -export type DatabasesBeginCreateOrUpdateResponse = Database & { +export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8543,14 +14221,14 @@ export type DatabasesBeginCreateOrUpdateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByStepNext operation. */ -export type DatabasesBeginUpdateResponse = Database & { +export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult & { /** * The underlying HTTP response. */ @@ -8563,14 +14241,14 @@ export type DatabasesBeginUpdateResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobExecutionListResult; }; }; /** - * Contains response data for the beginPause operation. + * Contains response data for the listByAgent operation. */ -export type DatabasesBeginPauseResponse = Database & { +export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult & { /** * The underlying HTTP response. */ @@ -8583,14 +14261,14 @@ export type DatabasesBeginPauseResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobTargetGroupListResult; }; }; /** - * Contains response data for the beginResume operation. + * Contains response data for the get operation. */ -export type DatabasesBeginResumeResponse = Database & { +export type JobTargetGroupsGetResponse = JobTargetGroup & { /** * The underlying HTTP response. */ @@ -8603,14 +14281,14 @@ export type DatabasesBeginResumeResponse = Database & { /** * The response body as parsed JSON or XML */ - parsedBody: Database; + parsedBody: JobTargetGroup; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the createOrUpdate operation. */ -export type DatabasesListByServerNextResponse = DatabaseListResult & { +export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup & { /** * The underlying HTTP response. */ @@ -8623,14 +14301,14 @@ export type DatabasesListByServerNextResponse = DatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseListResult; + parsedBody: JobTargetGroup; }; }; /** - * Contains response data for the listByElasticPoolNext operation. + * Contains response data for the listByAgentNext operation. */ -export type DatabasesListByElasticPoolNextResponse = DatabaseListResult & { +export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult & { /** * The underlying HTTP response. */ @@ -8643,14 +14321,14 @@ export type DatabasesListByElasticPoolNextResponse = DatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseListResult; + parsedBody: JobTargetGroupListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listByJob operation. */ -export type ElasticPoolsListMetricsResponse = MetricListResult & { +export type JobVersionsListByJobResponse = JobVersionListResult & { /** * The underlying HTTP response. */ @@ -8663,14 +14341,14 @@ export type ElasticPoolsListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: JobVersionListResult; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the get operation. */ -export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResult & { +export type JobVersionsGetResponse = JobVersion & { /** * The underlying HTTP response. */ @@ -8683,14 +14361,14 @@ export type ElasticPoolsListMetricDefinitionsResponse = MetricDefinitionListResu /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionListResult; + parsedBody: JobVersion; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByJobNext operation. */ -export type ElasticPoolsListByServerResponse = ElasticPoolListResult & { +export type JobVersionsListByJobNextResponse = JobVersionListResult & { /** * The underlying HTTP response. */ @@ -8703,14 +14381,14 @@ export type ElasticPoolsListByServerResponse = ElasticPoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolListResult; + parsedBody: JobVersionListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByAgent operation. */ -export type ElasticPoolsGetResponse = ElasticPool & { +export type JobsListByAgentResponse = JobListResult & { /** * The underlying HTTP response. */ @@ -8723,14 +14401,14 @@ export type ElasticPoolsGetResponse = ElasticPool & { /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPool; + parsedBody: JobListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type ElasticPoolsCreateOrUpdateResponse = ElasticPool & { +export type JobsGetResponse = Job & { /** * The underlying HTTP response. */ @@ -8743,14 +14421,14 @@ export type ElasticPoolsCreateOrUpdateResponse = ElasticPool & { /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPool; + parsedBody: Job; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type ElasticPoolsUpdateResponse = ElasticPool & { +export type JobsCreateOrUpdateResponse = Job & { /** * The underlying HTTP response. */ @@ -8763,14 +14441,14 @@ export type ElasticPoolsUpdateResponse = ElasticPool & { /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPool; + parsedBody: Job; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByAgentNext operation. */ -export type ElasticPoolsBeginCreateOrUpdateResponse = ElasticPool & { +export type JobsListByAgentNextResponse = JobListResult & { /** * The underlying HTTP response. */ @@ -8783,14 +14461,14 @@ export type ElasticPoolsBeginCreateOrUpdateResponse = ElasticPool & { /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPool; + parsedBody: JobListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByLocation operation. */ -export type ElasticPoolsBeginUpdateResponse = ElasticPool & { +export type CapabilitiesListByLocationResponse = LocationCapabilities & { /** * The underlying HTTP response. */ @@ -8803,14 +14481,14 @@ export type ElasticPoolsBeginUpdateResponse = ElasticPool & { /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPool; + parsedBody: LocationCapabilities; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the copy operation. */ -export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult & { +export type LongTermRetentionBackupsCopyResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -8823,14 +14501,14 @@ export type ElasticPoolsListByServerNextResponse = ElasticPoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolListResult; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type RecommendedElasticPoolsGetResponse = RecommendedElasticPool & { +export type LongTermRetentionBackupsUpdateResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -8843,14 +14521,14 @@ export type RecommendedElasticPoolsGetResponse = RecommendedElasticPool & { /** * The response body as parsed JSON or XML */ - parsedBody: RecommendedElasticPool; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the get operation. */ -export type RecommendedElasticPoolsListByServerResponse = RecommendedElasticPoolListResult & { +export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup & { /** * The underlying HTTP response. */ @@ -8863,14 +14541,14 @@ export type RecommendedElasticPoolsListByServerResponse = RecommendedElasticPool /** * The response body as parsed JSON or XML */ - parsedBody: RecommendedElasticPoolListResult; + parsedBody: LongTermRetentionBackup; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listByDatabase operation. */ -export type RecommendedElasticPoolsListMetricsResponse = RecommendedElasticPoolListMetricsResult & { +export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -8883,14 +14561,14 @@ export type RecommendedElasticPoolsListMetricsResponse = RecommendedElasticPoolL /** * The response body as parsed JSON or XML */ - parsedBody: RecommendedElasticPoolListMetricsResult; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByLocation operation. */ -export type ReplicationLinksGetResponse = ReplicationLink & { +export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -8903,14 +14581,14 @@ export type ReplicationLinksGetResponse = ReplicationLink & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationLink; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByServer operation. */ -export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult & { +export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -8923,14 +14601,14 @@ export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult & /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationLinkListResult; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the copyByResourceGroup operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator & { +export type LongTermRetentionBackupsCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -8943,14 +14621,14 @@ export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdm /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the updateByResourceGroup operation. */ -export type ServerAzureADAdministratorsDeleteMethodResponse = ServerAzureADAdministrator & { +export type LongTermRetentionBackupsUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -8963,14 +14641,14 @@ export type ServerAzureADAdministratorsDeleteMethodResponse = ServerAzureADAdmin /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getByResourceGroup operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator & { +export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup & { /** * The underlying HTTP response. */ @@ -8983,14 +14661,14 @@ export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: LongTermRetentionBackup; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByResourceGroupDatabase operation. */ -export type ServerAzureADAdministratorsListByServerResponse = ServerAdministratorListResult & { +export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9003,14 +14681,14 @@ export type ServerAzureADAdministratorsListByServerResponse = ServerAdministrato /** * The response body as parsed JSON or XML */ - parsedBody: ServerAdministratorListResult; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByResourceGroupLocation operation. */ -export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzureADAdministrator & { +export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9023,14 +14701,14 @@ export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzure /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the beginDeleteMethod operation. + * Contains response data for the listByResourceGroupServer operation. */ -export type ServerAzureADAdministratorsBeginDeleteMethodResponse = ServerAzureADAdministrator & { +export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9043,14 +14721,14 @@ export type ServerAzureADAdministratorsBeginDeleteMethodResponse = ServerAzureAD /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCopy operation. */ -export type ServerCommunicationLinksGetResponse = ServerCommunicationLink & { +export type LongTermRetentionBackupsBeginCopyResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -9063,14 +14741,14 @@ export type ServerCommunicationLinksGetResponse = ServerCommunicationLink & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerCommunicationLink; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunicationLink & { +export type LongTermRetentionBackupsBeginUpdateResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -9083,14 +14761,14 @@ export type ServerCommunicationLinksCreateOrUpdateResponse = ServerCommunication /** * The response body as parsed JSON or XML */ - parsedBody: ServerCommunicationLink; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the beginCopyByResourceGroup operation. */ -export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLinkListResult & { +export type LongTermRetentionBackupsBeginCopyByResourceGroupResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -9103,14 +14781,14 @@ export type ServerCommunicationLinksListByServerResponse = ServerCommunicationLi /** * The response body as parsed JSON or XML */ - parsedBody: ServerCommunicationLinkListResult; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdateByResourceGroup operation. */ -export type ServerCommunicationLinksBeginCreateOrUpdateResponse = ServerCommunicationLink & { +export type LongTermRetentionBackupsBeginUpdateByResourceGroupResponse = LongTermRetentionBackupOperationResult & { /** * The underlying HTTP response. */ @@ -9123,14 +14801,14 @@ export type ServerCommunicationLinksBeginCreateOrUpdateResponse = ServerCommunic /** * The response body as parsed JSON or XML */ - parsedBody: ServerCommunicationLink; + parsedBody: LongTermRetentionBackupOperationResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabaseNext operation. */ -export type ServiceObjectivesGetResponse = ServiceObjective & { +export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9143,14 +14821,14 @@ export type ServiceObjectivesGetResponse = ServiceObjective & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceObjective; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByLocationNext operation. */ -export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult & { +export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9163,14 +14841,14 @@ export type ServiceObjectivesListByServerResponse = ServiceObjectiveListResult & /** * The response body as parsed JSON or XML */ - parsedBody: ServiceObjectiveListResult; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByElasticPool operation. + * Contains response data for the listByServerNext operation. */ -export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivityListResult & { +export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9183,14 +14861,14 @@ export type ElasticPoolActivitiesListByElasticPoolResponse = ElasticPoolActivity /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolActivityListResult; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByElasticPool operation. + * Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPoolDatabaseActivityListResult & { +export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9203,14 +14881,14 @@ export type ElasticPoolDatabaseActivitiesListByElasticPoolResponse = ElasticPool /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolDatabaseActivityListResult; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupLocationNext operation. */ -export type ServiceTierAdvisorsGetResponse = ServiceTierAdvisor & { +export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9223,14 +14901,14 @@ export type ServiceTierAdvisorsGetResponse = ServiceTierAdvisor & { /** * The response body as parsed JSON or XML */ - parsedBody: ServiceTierAdvisor; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByResourceGroupServerNext operation. */ -export type ServiceTierAdvisorsListByDatabaseResponse = ServiceTierAdvisorListResult & { +export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9243,14 +14921,14 @@ export type ServiceTierAdvisorsListByDatabaseResponse = ServiceTierAdvisorListRe /** * The response body as parsed JSON or XML */ - parsedBody: ServiceTierAdvisorListResult; + parsedBody: LongTermRetentionBackupListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type TransparentDataEncryptionsCreateOrUpdateResponse = TransparentDataEncryption & { +export type LongTermRetentionManagedInstanceBackupsGetResponse = ManagedInstanceLongTermRetentionBackup & { /** * The underlying HTTP response. */ @@ -9263,14 +14941,14 @@ export type TransparentDataEncryptionsCreateOrUpdateResponse = TransparentDataEn /** * The response body as parsed JSON or XML */ - parsedBody: TransparentDataEncryption; + parsedBody: ManagedInstanceLongTermRetentionBackup; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabase operation. */ -export type TransparentDataEncryptionsGetResponse = TransparentDataEncryption & { +export type LongTermRetentionManagedInstanceBackupsListByDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9283,14 +14961,14 @@ export type TransparentDataEncryptionsGetResponse = TransparentDataEncryption & /** * The response body as parsed JSON or XML */ - parsedBody: TransparentDataEncryption; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByConfiguration operation. + * Contains response data for the listByInstance operation. */ -export type TransparentDataEncryptionActivitiesListByConfigurationResponse = TransparentDataEncryptionActivityListResult & { +export type LongTermRetentionManagedInstanceBackupsListByInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9303,14 +14981,14 @@ export type TransparentDataEncryptionActivitiesListByConfigurationResponse = Tra /** * The response body as parsed JSON or XML */ - parsedBody: TransparentDataEncryptionActivityListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByLocation operation. */ -export type ServerUsagesListByServerResponse = ServerUsageListResult & { +export type LongTermRetentionManagedInstanceBackupsListByLocationResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9323,14 +15001,14 @@ export type ServerUsagesListByServerResponse = ServerUsageListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerUsageListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the getByResourceGroup operation. */ -export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult & { +export type LongTermRetentionManagedInstanceBackupsGetByResourceGroupResponse = ManagedInstanceLongTermRetentionBackup & { /** * The underlying HTTP response. */ @@ -9343,14 +15021,14 @@ export type DatabaseUsagesListByDatabaseResponse = DatabaseUsageListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseUsageListResult; + parsedBody: ManagedInstanceLongTermRetentionBackup; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupDatabase operation. */ -export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9363,14 +15041,14 @@ export type DatabaseAutomaticTuningGetResponse = DatabaseAutomaticTuning & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAutomaticTuning; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByResourceGroupInstance operation. */ -export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9383,14 +15061,14 @@ export type DatabaseAutomaticTuningUpdateResponse = DatabaseAutomaticTuning & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAutomaticTuning; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByResourceGroupLocation operation. */ -export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListResult & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9403,14 +15081,14 @@ export type EncryptionProtectorsListByServerResponse = EncryptionProtectorListRe /** * The response body as parsed JSON or XML */ - parsedBody: EncryptionProtectorListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabaseNext operation. */ -export type EncryptionProtectorsGetResponse = EncryptionProtector & { +export type LongTermRetentionManagedInstanceBackupsListByDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9423,14 +15101,14 @@ export type EncryptionProtectorsGetResponse = EncryptionProtector & { /** * The response body as parsed JSON or XML */ - parsedBody: EncryptionProtector; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByInstanceNext operation. */ -export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector & { +export type LongTermRetentionManagedInstanceBackupsListByInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9443,14 +15121,14 @@ export type EncryptionProtectorsCreateOrUpdateResponse = EncryptionProtector & { /** * The response body as parsed JSON or XML */ - parsedBody: EncryptionProtector; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByLocationNext operation. */ -export type EncryptionProtectorsBeginCreateOrUpdateResponse = EncryptionProtector & { +export type LongTermRetentionManagedInstanceBackupsListByLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9463,14 +15141,14 @@ export type EncryptionProtectorsBeginCreateOrUpdateResponse = EncryptionProtecto /** * The response body as parsed JSON or XML */ - parsedBody: EncryptionProtector; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByResourceGroupDatabaseNext operation. */ -export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorListResult & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9483,14 +15161,14 @@ export type EncryptionProtectorsListByServerNextResponse = EncryptionProtectorLi /** * The response body as parsed JSON or XML */ - parsedBody: EncryptionProtectorListResult; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupInstanceNext operation. */ -export type FailoverGroupsGetResponse = FailoverGroup & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9503,14 +15181,14 @@ export type FailoverGroupsGetResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroupLocationNext operation. */ -export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup & { +export type LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextResponse = ManagedInstanceLongTermRetentionBackupListResult & { /** * The underlying HTTP response. */ @@ -9523,14 +15201,14 @@ export type FailoverGroupsCreateOrUpdateResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: ManagedInstanceLongTermRetentionBackupListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type FailoverGroupsUpdateResponse = FailoverGroup & { +export type LongTermRetentionPoliciesGetResponse = LongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9543,14 +15221,14 @@ export type FailoverGroupsUpdateResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: LongTermRetentionPolicy; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the createOrUpdate operation. */ -export type FailoverGroupsListByServerResponse = FailoverGroupListResult & { +export type LongTermRetentionPoliciesCreateOrUpdateResponse = LongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9563,14 +15241,14 @@ export type FailoverGroupsListByServerResponse = FailoverGroupListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroupListResult; + parsedBody: LongTermRetentionPolicy; }; }; /** - * Contains response data for the failover operation. + * Contains response data for the listByDatabase operation. */ -export type FailoverGroupsFailoverResponse = FailoverGroup & { +export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -9583,14 +15261,14 @@ export type FailoverGroupsFailoverResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: LongTermRetentionPolicyListResult; }; }; /** - * Contains response data for the forceFailoverAllowDataLoss operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup & { +export type LongTermRetentionPoliciesBeginCreateOrUpdateResponse = LongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9603,14 +15281,14 @@ export type FailoverGroupsForceFailoverAllowDataLossResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: LongTermRetentionPolicy; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByDatabaseNext operation. */ -export type FailoverGroupsBeginCreateOrUpdateResponse = FailoverGroup & { +export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -9623,14 +15301,14 @@ export type FailoverGroupsBeginCreateOrUpdateResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: LongTermRetentionPolicyListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type FailoverGroupsBeginUpdateResponse = FailoverGroup & { +export type MaintenanceWindowOptionsGetResponse = MaintenanceWindowOptions & { /** * The underlying HTTP response. */ @@ -9643,14 +15321,14 @@ export type FailoverGroupsBeginUpdateResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: MaintenanceWindowOptions; }; }; /** - * Contains response data for the beginFailover operation. + * Contains response data for the get operation. */ -export type FailoverGroupsBeginFailoverResponse = FailoverGroup & { +export type MaintenanceWindowsGetResponse = MaintenanceWindows & { /** * The underlying HTTP response. */ @@ -9663,14 +15341,14 @@ export type FailoverGroupsBeginFailoverResponse = FailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: MaintenanceWindows; }; }; /** - * Contains response data for the beginForceFailoverAllowDataLoss operation. + * Contains response data for the get operation. */ -export type FailoverGroupsBeginForceFailoverAllowDataLossResponse = FailoverGroup & { +export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9683,14 +15361,14 @@ export type FailoverGroupsBeginForceFailoverAllowDataLossResponse = FailoverGrou /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroup; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the createOrUpdate operation. */ -export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult & { +export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9703,14 +15381,14 @@ export type FailoverGroupsListByServerNextResponse = FailoverGroupListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: FailoverGroupListResult; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type OperationsListResponse = OperationListResult & { +export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9723,14 +15401,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByDatabase operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -9743,14 +15421,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServerKeysListByServerResponse = ServerKeyListResult & { +export type ManagedBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9763,14 +15441,14 @@ export type ServerKeysListByServerResponse = ServerKeyListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerKeyListResult; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type ServerKeysGetResponse = ServerKey & { +export type ManagedBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -9783,14 +15461,14 @@ export type ServerKeysGetResponse = ServerKey & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerKey; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByDatabaseNext operation. */ -export type ServerKeysCreateOrUpdateResponse = ServerKey & { +export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -9803,14 +15481,14 @@ export type ServerKeysCreateOrUpdateResponse = ServerKey & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerKey; + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByDatabase operation. */ -export type ServerKeysBeginCreateOrUpdateResponse = ServerKey & { +export type ManagedDatabaseColumnsListByDatabaseResponse = DatabaseColumnListResult & { /** * The underlying HTTP response. */ @@ -9823,14 +15501,14 @@ export type ServerKeysBeginCreateOrUpdateResponse = ServerKey & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerKey; + parsedBody: DatabaseColumnListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByTable operation. */ -export type ServerKeysListByServerNextResponse = ServerKeyListResult & { +export type ManagedDatabaseColumnsListByTableResponse = DatabaseColumnListResult & { /** * The underlying HTTP response. */ @@ -9843,14 +15521,14 @@ export type ServerKeysListByServerNextResponse = ServerKeyListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerKeyListResult; + parsedBody: DatabaseColumnListResult; }; }; /** * Contains response data for the get operation. */ -export type SyncAgentsGetResponse = SyncAgent & { +export type ManagedDatabaseColumnsGetResponse = DatabaseColumn & { /** * The underlying HTTP response. */ @@ -9863,14 +15541,14 @@ export type SyncAgentsGetResponse = SyncAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgent; + parsedBody: DatabaseColumn; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByDatabaseNext operation. */ -export type SyncAgentsCreateOrUpdateResponse = SyncAgent & { +export type ManagedDatabaseColumnsListByDatabaseNextResponse = DatabaseColumnListResult & { /** * The underlying HTTP response. */ @@ -9883,14 +15561,14 @@ export type SyncAgentsCreateOrUpdateResponse = SyncAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgent; + parsedBody: DatabaseColumnListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByTableNext operation. */ -export type SyncAgentsListByServerResponse = SyncAgentListResult & { +export type ManagedDatabaseColumnsListByTableNextResponse = DatabaseColumnListResult & { /** * The underlying HTTP response. */ @@ -9903,14 +15581,14 @@ export type SyncAgentsListByServerResponse = SyncAgentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgentListResult; + parsedBody: DatabaseColumnListResult; }; }; /** - * Contains response data for the generateKey operation. + * Contains response data for the get operation. */ -export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties & { +export type ManagedDatabaseQueriesGetResponse = ManagedInstanceQuery & { /** * The underlying HTTP response. */ @@ -9923,14 +15601,14 @@ export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgentKeyProperties; + parsedBody: ManagedInstanceQuery; }; }; /** - * Contains response data for the listLinkedDatabases operation. + * Contains response data for the listByQuery operation. */ -export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult & { +export type ManagedDatabaseQueriesListByQueryResponse = ManagedInstanceQueryStatistics & { /** * The underlying HTTP response. */ @@ -9943,14 +15621,14 @@ export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListR /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgentLinkedDatabaseListResult; + parsedBody: ManagedInstanceQueryStatistics; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByQueryNext operation. */ -export type SyncAgentsBeginCreateOrUpdateResponse = SyncAgent & { +export type ManagedDatabaseQueriesListByQueryNextResponse = ManagedInstanceQueryStatistics & { /** * The underlying HTTP response. */ @@ -9963,14 +15641,14 @@ export type SyncAgentsBeginCreateOrUpdateResponse = SyncAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgent; + parsedBody: ManagedInstanceQueryStatistics; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the get operation. */ -export type SyncAgentsListByServerNextResponse = SyncAgentListResult & { +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult & { /** * The underlying HTTP response. */ @@ -9983,14 +15661,14 @@ export type SyncAgentsListByServerNextResponse = SyncAgentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgentListResult; + parsedBody: ManagedDatabaseRestoreDetailsResult; }; }; /** - * Contains response data for the listLinkedDatabasesNext operation. + * Contains response data for the listByDatabase operation. */ -export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult & { +export type ManagedDatabaseSchemasListByDatabaseResponse = DatabaseSchemaListResult & { /** * The underlying HTTP response. */ @@ -10003,14 +15681,14 @@ export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseL /** * The response body as parsed JSON or XML */ - parsedBody: SyncAgentLinkedDatabaseListResult; + parsedBody: DatabaseSchemaListResult; }; }; /** - * Contains response data for the listSyncDatabaseIds operation. + * Contains response data for the get operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult & { +export type ManagedDatabaseSchemasGetResponse = DatabaseSchema & { /** * The underlying HTTP response. */ @@ -10023,14 +15701,14 @@ export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncDatabaseIdListResult; + parsedBody: DatabaseSchema; }; }; /** - * Contains response data for the listHubSchemas operation. + * Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult & { +export type ManagedDatabaseSchemasListByDatabaseNextResponse = DatabaseSchemaListResult & { /** * The underlying HTTP response. */ @@ -10043,14 +15721,14 @@ export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResul /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: DatabaseSchemaListResult; }; }; /** - * Contains response data for the listLogs operation. + * Contains response data for the get operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult & { +export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -10063,14 +15741,14 @@ export type SyncGroupsListLogsResponse = SyncGroupLogListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupLogListResult; + parsedBody: ManagedDatabaseSecurityAlertPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type SyncGroupsGetResponse = SyncGroup & { +export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -10083,14 +15761,14 @@ export type SyncGroupsGetResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: ManagedDatabaseSecurityAlertPolicy; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByDatabase operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup & { +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -10103,14 +15781,14 @@ export type SyncGroupsCreateOrUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsUpdateResponse = SyncGroup & { +export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -10123,14 +15801,14 @@ export type SyncGroupsUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; }; }; /** * Contains response data for the listByDatabase operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult & { +export type ManagedDatabaseSecurityEventsListByDatabaseResponse = SecurityEventCollection & { /** * The underlying HTTP response. */ @@ -10143,14 +15821,14 @@ export type SyncGroupsListByDatabaseResponse = SyncGroupListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupListResult; + parsedBody: SecurityEventCollection; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsBeginCreateOrUpdateResponse = SyncGroup & { +export type ManagedDatabaseSecurityEventsListByDatabaseNextResponse = SecurityEventCollection & { /** * The underlying HTTP response. */ @@ -10163,14 +15841,14 @@ export type SyncGroupsBeginCreateOrUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: SecurityEventCollection; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type SyncGroupsBeginUpdateResponse = SyncGroup & { +export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel & { /** * The underlying HTTP response. */ @@ -10183,14 +15861,14 @@ export type SyncGroupsBeginUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: SensitivityLabel; }; }; /** - * Contains response data for the listSyncDatabaseIdsNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult & { +export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { /** * The underlying HTTP response. */ @@ -10203,14 +15881,14 @@ export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult /** * The response body as parsed JSON or XML */ - parsedBody: SyncDatabaseIdListResult; + parsedBody: SensitivityLabel; }; }; /** - * Contains response data for the listHubSchemasNext operation. + * Contains response data for the listCurrentByDatabase operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult & { +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -10223,14 +15901,14 @@ export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListR /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the listLogsNext operation. + * Contains response data for the listRecommendedByDatabase operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult & { +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -10243,14 +15921,14 @@ export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupLogListResult; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the listCurrentByDatabaseNext operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult & { +export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -10263,14 +15941,14 @@ export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupListResult; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listRecommendedByDatabaseNext operation. */ -export type SyncMembersGetResponse = SyncMember & { +export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -10283,14 +15961,14 @@ export type SyncMembersGetResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listBySchema operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember & { +export type ManagedDatabaseTablesListBySchemaResponse = DatabaseTableListResult & { /** * The underlying HTTP response. */ @@ -10303,14 +15981,14 @@ export type SyncMembersCreateOrUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: DatabaseTableListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type SyncMembersUpdateResponse = SyncMember & { +export type ManagedDatabaseTablesGetResponse = DatabaseTable & { /** * The underlying HTTP response. */ @@ -10323,14 +16001,14 @@ export type SyncMembersUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: DatabaseTable; }; }; /** - * Contains response data for the listBySyncGroup operation. + * Contains response data for the listBySchemaNext operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult & { +export type ManagedDatabaseTablesListBySchemaNextResponse = DatabaseTableListResult & { /** * The underlying HTTP response. */ @@ -10343,14 +16021,14 @@ export type SyncMembersListBySyncGroupResponse = SyncMemberListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMemberListResult; + parsedBody: DatabaseTableListResult; }; }; /** - * Contains response data for the listMemberSchemas operation. + * Contains response data for the get operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult & { +export type ManagedDatabaseTransparentDataEncryptionGetResponse = ManagedTransparentDataEncryption & { /** * The underlying HTTP response. */ @@ -10363,14 +16041,14 @@ export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListR /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: ManagedTransparentDataEncryption; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type SyncMembersBeginCreateOrUpdateResponse = SyncMember & { +export type ManagedDatabaseTransparentDataEncryptionCreateOrUpdateResponse = ManagedTransparentDataEncryption & { /** * The underlying HTTP response. */ @@ -10383,14 +16061,14 @@ export type SyncMembersBeginCreateOrUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: ManagedTransparentDataEncryption; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByDatabase operation. */ -export type SyncMembersBeginUpdateResponse = SyncMember & { +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseResponse = ManagedTransparentDataEncryptionListResult & { /** * The underlying HTTP response. */ @@ -10403,14 +16081,14 @@ export type SyncMembersBeginUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: ManagedTransparentDataEncryptionListResult; }; }; /** - * Contains response data for the listBySyncGroupNext operation. + * Contains response data for the listByDatabaseNext operation. */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult & { +export type ManagedDatabaseTransparentDataEncryptionListByDatabaseNextResponse = ManagedTransparentDataEncryptionListResult & { /** * The underlying HTTP response. */ @@ -10423,14 +16101,14 @@ export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMemberListResult; + parsedBody: ManagedTransparentDataEncryptionListResult; }; }; /** - * Contains response data for the listMemberSchemasNext operation. + * Contains response data for the get operation. */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult & { +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { /** * The underlying HTTP response. */ @@ -10443,14 +16121,14 @@ export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesL /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the createOrUpdate operation. */ -export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult & { +export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { /** * The underlying HTTP response. */ @@ -10463,14 +16141,14 @@ export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResu /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionUsageListResult; + parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; }; }; /** - * Contains response data for the get operation. + * Contains response data for the exportMethod operation. */ -export type SubscriptionUsagesGetResponse = SubscriptionUsage & { +export type ManagedDatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { /** * The underlying HTTP response. */ @@ -10483,14 +16161,14 @@ export type SubscriptionUsagesGetResponse = SubscriptionUsage & { /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionUsage; + parsedBody: DatabaseVulnerabilityAssessmentScansExport; }; }; /** - * Contains response data for the listByLocationNext operation. + * Contains response data for the listByDatabase operation. */ -export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult & { +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { /** * The underlying HTTP response. */ @@ -10503,14 +16181,14 @@ export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageList /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionUsageListResult; + parsedBody: VulnerabilityAssessmentScanRecordListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type VirtualClustersListResponse = VirtualClusterListResult & { +export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { /** * The underlying HTTP response. */ @@ -10523,14 +16201,14 @@ export type VirtualClustersListResponse = VirtualClusterListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualClusterListResult; + parsedBody: VulnerabilityAssessmentScanRecord; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listByDatabaseNext operation. */ -export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult & { +export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { /** * The underlying HTTP response. */ @@ -10543,14 +16221,14 @@ export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResul /** * The response body as parsed JSON or XML */ - parsedBody: VirtualClusterListResult; + parsedBody: VulnerabilityAssessmentScanRecordListResult; }; }; /** * Contains response data for the get operation. */ -export type VirtualClustersGetResponse = VirtualCluster & { +export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -10563,14 +16241,14 @@ export type VirtualClustersGetResponse = VirtualCluster & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualCluster; + parsedBody: DatabaseVulnerabilityAssessment; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type VirtualClustersUpdateResponse = VirtualCluster & { +export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -10583,14 +16261,14 @@ export type VirtualClustersUpdateResponse = VirtualCluster & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualCluster; + parsedBody: DatabaseVulnerabilityAssessment; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByDatabase operation. */ -export type VirtualClustersBeginUpdateResponse = VirtualCluster & { +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -10603,14 +16281,14 @@ export type VirtualClustersBeginUpdateResponse = VirtualCluster & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualCluster; + parsedBody: DatabaseVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByDatabaseNext operation. */ -export type VirtualClustersListNextResponse = VirtualClusterListResult & { +export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -10623,14 +16301,14 @@ export type VirtualClustersListNextResponse = VirtualClusterListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualClusterListResult; + parsedBody: DatabaseVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listByInstance operation. */ -export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult & { +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -10643,14 +16321,14 @@ export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListR /** * The response body as parsed JSON or XML */ - parsedBody: VirtualClusterListResult; + parsedBody: ManagedDatabaseListResult; }; }; /** * Contains response data for the get operation. */ -export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { +export type ManagedDatabasesGetResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -10663,14 +16341,14 @@ export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: ManagedDatabase; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -10683,14 +16361,14 @@ export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the update operation. */ -export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult & { +export type ManagedDatabasesUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -10703,14 +16381,14 @@ export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResu /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRuleListResult; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listInaccessibleByInstance operation. */ -export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule & { +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -10723,14 +16401,14 @@ export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRule; + parsedBody: ManagedDatabaseListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult & { +export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -10743,14 +16421,14 @@ export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleList /** * The response body as parsed JSON or XML */ - parsedBody: VirtualNetworkRuleListResult; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBlobAuditingPolicy & { +export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -10763,14 +16441,14 @@ export type ExtendedDatabaseBlobAuditingPoliciesGetResponse = ExtendedDatabaseBl /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedDatabaseBlobAuditingPolicy; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByInstanceNext operation. */ -export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedDatabaseBlobAuditingPolicy & { +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -10783,14 +16461,14 @@ export type ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdateResponse = Extende /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedDatabaseBlobAuditingPolicy; + parsedBody: ManagedDatabaseListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listInaccessibleByInstanceNext operation. */ -export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAuditingPolicy & { +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -10803,14 +16481,14 @@ export type ExtendedServerBlobAuditingPoliciesGetResponse = ExtendedServerBlobAu /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedServerBlobAuditingPolicy; + parsedBody: ManagedDatabaseListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByInstance operation. */ -export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { +export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult & { /** * The underlying HTTP response. */ @@ -10823,14 +16501,14 @@ export type ExtendedServerBlobAuditingPoliciesCreateOrUpdateResponse = ExtendedS /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedServerBlobAuditingPolicy; + parsedBody: ManagedInstanceAdministratorListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type ExtendedServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ExtendedServerBlobAuditingPolicy & { +export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator & { /** * The underlying HTTP response. */ @@ -10843,14 +16521,14 @@ export type ExtendedServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = Exte /** * The response body as parsed JSON or XML */ - parsedBody: ExtendedServerBlobAuditingPolicy; + parsedBody: ManagedInstanceAdministrator; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { +export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator & { /** * The underlying HTTP response. */ @@ -10863,14 +16541,14 @@ export type ServerBlobAuditingPoliciesGetResponse = ServerBlobAuditingPolicy & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicy; + parsedBody: ManagedInstanceAdministrator; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditingPolicy & { +export type ManagedInstanceAdministratorsBeginCreateOrUpdateResponse = ManagedInstanceAdministrator & { /** * The underlying HTTP response. */ @@ -10883,14 +16561,14 @@ export type ServerBlobAuditingPoliciesCreateOrUpdateResponse = ServerBlobAuditin /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicy; + parsedBody: ManagedInstanceAdministrator; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByInstanceNext operation. */ -export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingPolicyListResult & { +export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult & { /** * The underlying HTTP response. */ @@ -10903,14 +16581,14 @@ export type ServerBlobAuditingPoliciesListByServerResponse = ServerBlobAuditingP /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicyListResult; + parsedBody: ManagedInstanceAdministratorListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type ServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAuditingPolicy & { +export type ManagedInstanceAzureADOnlyAuthenticationsGetResponse = ManagedInstanceAzureADOnlyAuthentication & { /** * The underlying HTTP response. */ @@ -10923,14 +16601,14 @@ export type ServerBlobAuditingPoliciesBeginCreateOrUpdateResponse = ServerBlobAu /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicy; + parsedBody: ManagedInstanceAzureADOnlyAuthentication; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAuditingPolicyListResult & { +export type ManagedInstanceAzureADOnlyAuthenticationsCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication & { /** * The underlying HTTP response. */ @@ -10943,14 +16621,14 @@ export type ServerBlobAuditingPoliciesListByServerNextResponse = ServerBlobAudit /** * The response body as parsed JSON or XML */ - parsedBody: ServerBlobAuditingPolicyListResult; + parsedBody: ManagedInstanceAzureADOnlyAuthentication; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByInstance operation. */ -export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy & { +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceResponse = ManagedInstanceAzureADOnlyAuthListResult & { /** * The underlying HTTP response. */ @@ -10963,14 +16641,14 @@ export type DatabaseBlobAuditingPoliciesGetResponse = DatabaseBlobAuditingPolicy /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseBlobAuditingPolicy; + parsedBody: ManagedInstanceAzureADOnlyAuthListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAuditingPolicy & { +export type ManagedInstanceAzureADOnlyAuthenticationsBeginCreateOrUpdateResponse = ManagedInstanceAzureADOnlyAuthentication & { /** * The underlying HTTP response. */ @@ -10983,14 +16661,14 @@ export type DatabaseBlobAuditingPoliciesCreateOrUpdateResponse = DatabaseBlobAud /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseBlobAuditingPolicy; + parsedBody: ManagedInstanceAzureADOnlyAuthentication; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByInstanceNext operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAuditingPolicyListResult & { +export type ManagedInstanceAzureADOnlyAuthenticationsListByInstanceNextResponse = ManagedInstanceAzureADOnlyAuthListResult & { /** * The underlying HTTP response. */ @@ -11003,14 +16681,14 @@ export type DatabaseBlobAuditingPoliciesListByDatabaseResponse = DatabaseBlobAud /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseBlobAuditingPolicyListResult; + parsedBody: ManagedInstanceAzureADOnlyAuthListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the listByInstance operation. */ -export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlobAuditingPolicyListResult & { +export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult & { /** * The underlying HTTP response. */ @@ -11023,14 +16701,14 @@ export type DatabaseBlobAuditingPoliciesListByDatabaseNextResponse = DatabaseBlo /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseBlobAuditingPolicyListResult; + parsedBody: ManagedInstanceEncryptionProtectorListResult; }; }; /** * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector & { /** * The underlying HTTP response. */ @@ -11043,14 +16721,14 @@ export type DatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + parsedBody: ManagedInstanceEncryptionProtector; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector & { /** * The underlying HTTP response. */ @@ -11063,14 +16741,14 @@ export type DatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + parsedBody: ManagedInstanceEncryptionProtector; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { +export type ManagedInstanceEncryptionProtectorsBeginCreateOrUpdateResponse = ManagedInstanceEncryptionProtector & { /** * The underlying HTTP response. */ @@ -11083,14 +16761,14 @@ export type DatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityA /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessment; + parsedBody: ManagedInstanceEncryptionProtector; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByInstanceNext operation. */ -export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { +export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult & { /** * The underlying HTTP response. */ @@ -11103,14 +16781,14 @@ export type DatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVul /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessment; + parsedBody: ManagedInstanceEncryptionProtectorListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByInstance operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { +export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult & { /** * The underlying HTTP response. */ @@ -11123,14 +16801,14 @@ export type DatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVul /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; + parsedBody: ManagedInstanceKeyListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { +export type ManagedInstanceKeysGetResponse = ManagedInstanceKey & { /** * The underlying HTTP response. */ @@ -11143,14 +16821,14 @@ export type DatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = Databas /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; + parsedBody: ManagedInstanceKey; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the createOrUpdate operation. */ -export type JobAgentsListByServerResponse = JobAgentListResult & { +export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey & { /** * The underlying HTTP response. */ @@ -11163,14 +16841,14 @@ export type JobAgentsListByServerResponse = JobAgentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobAgentListResult; + parsedBody: ManagedInstanceKey; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type JobAgentsGetResponse = JobAgent & { +export type ManagedInstanceKeysBeginCreateOrUpdateResponse = ManagedInstanceKey & { /** * The underlying HTTP response. */ @@ -11183,14 +16861,14 @@ export type JobAgentsGetResponse = JobAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: JobAgent; + parsedBody: ManagedInstanceKey; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByInstanceNext operation. */ -export type JobAgentsCreateOrUpdateResponse = JobAgent & { +export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult & { /** * The underlying HTTP response. */ @@ -11203,14 +16881,14 @@ export type JobAgentsCreateOrUpdateResponse = JobAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: JobAgent; + parsedBody: ManagedInstanceKeyListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type JobAgentsUpdateResponse = JobAgent & { +export type ManagedInstanceLongTermRetentionPoliciesGetResponse = ManagedInstanceLongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11223,14 +16901,14 @@ export type JobAgentsUpdateResponse = JobAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: JobAgent; + parsedBody: ManagedInstanceLongTermRetentionPolicy; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type JobAgentsBeginCreateOrUpdateResponse = JobAgent & { +export type ManagedInstanceLongTermRetentionPoliciesCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11243,14 +16921,14 @@ export type JobAgentsBeginCreateOrUpdateResponse = JobAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: JobAgent; + parsedBody: ManagedInstanceLongTermRetentionPolicy; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByDatabase operation. */ -export type JobAgentsBeginUpdateResponse = JobAgent & { +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseResponse = ManagedInstanceLongTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -11263,14 +16941,14 @@ export type JobAgentsBeginUpdateResponse = JobAgent & { /** * The response body as parsed JSON or XML */ - parsedBody: JobAgent; + parsedBody: ManagedInstanceLongTermRetentionPolicyListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type JobAgentsListByServerNextResponse = JobAgentListResult & { +export type ManagedInstanceLongTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedInstanceLongTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11283,14 +16961,14 @@ export type JobAgentsListByServerNextResponse = JobAgentListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobAgentListResult; + parsedBody: ManagedInstanceLongTermRetentionPolicy; }; }; /** - * Contains response data for the listByAgent operation. + * Contains response data for the listByDatabaseNext operation. */ -export type JobCredentialsListByAgentResponse = JobCredentialListResult & { +export type ManagedInstanceLongTermRetentionPoliciesListByDatabaseNextResponse = ManagedInstanceLongTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -11303,14 +16981,14 @@ export type JobCredentialsListByAgentResponse = JobCredentialListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobCredentialListResult; + parsedBody: ManagedInstanceLongTermRetentionPolicyListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByManagedInstance operation. */ -export type JobCredentialsGetResponse = JobCredential & { +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult & { /** * The underlying HTTP response. */ @@ -11323,14 +17001,14 @@ export type JobCredentialsGetResponse = JobCredential & { /** * The response body as parsed JSON or XML */ - parsedBody: JobCredential; + parsedBody: ManagedInstanceOperationListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type JobCredentialsCreateOrUpdateResponse = JobCredential & { +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation & { /** * The underlying HTTP response. */ @@ -11343,14 +17021,14 @@ export type JobCredentialsCreateOrUpdateResponse = JobCredential & { /** * The response body as parsed JSON or XML */ - parsedBody: JobCredential; + parsedBody: ManagedInstanceOperation; }; }; /** - * Contains response data for the listByAgentNext operation. + * Contains response data for the listByManagedInstanceNext operation. */ -export type JobCredentialsListByAgentNextResponse = JobCredentialListResult & { +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult & { /** * The underlying HTTP response. */ @@ -11363,14 +17041,14 @@ export type JobCredentialsListByAgentNextResponse = JobCredentialListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobCredentialListResult; + parsedBody: ManagedInstanceOperationListResult; }; }; /** - * Contains response data for the listByAgent operation. + * Contains response data for the get operation. */ -export type JobExecutionsListByAgentResponse = JobExecutionListResult & { +export type ManagedInstancePrivateEndpointConnectionsGetResponse = ManagedInstancePrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -11383,14 +17061,14 @@ export type JobExecutionsListByAgentResponse = JobExecutionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedInstancePrivateEndpointConnection; }; }; /** - * Contains response data for the create operation. + * Contains response data for the createOrUpdate operation. */ -export type JobExecutionsCreateResponse = JobExecution & { +export type ManagedInstancePrivateEndpointConnectionsCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -11403,14 +17081,14 @@ export type JobExecutionsCreateResponse = JobExecution & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecution; + parsedBody: ManagedInstancePrivateEndpointConnection; }; }; /** - * Contains response data for the listByJob operation. + * Contains response data for the listByManagedInstance operation. */ -export type JobExecutionsListByJobResponse = JobExecutionListResult & { +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceResponse = ManagedInstancePrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -11423,14 +17101,14 @@ export type JobExecutionsListByJobResponse = JobExecutionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedInstancePrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type JobExecutionsGetResponse = JobExecution & { +export type ManagedInstancePrivateEndpointConnectionsBeginCreateOrUpdateResponse = ManagedInstancePrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -11443,14 +17121,14 @@ export type JobExecutionsGetResponse = JobExecution & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecution; + parsedBody: ManagedInstancePrivateEndpointConnection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByManagedInstanceNext operation. */ -export type JobExecutionsCreateOrUpdateResponse = JobExecution & { +export type ManagedInstancePrivateEndpointConnectionsListByManagedInstanceNextResponse = ManagedInstancePrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -11463,14 +17141,14 @@ export type JobExecutionsCreateOrUpdateResponse = JobExecution & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecution; + parsedBody: ManagedInstancePrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the listByManagedInstance operation. */ -export type JobExecutionsBeginCreateResponse = JobExecution & { +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceResponse = ManagedInstancePrivateLinkListResult & { /** * The underlying HTTP response. */ @@ -11483,14 +17161,14 @@ export type JobExecutionsBeginCreateResponse = JobExecution & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecution; + parsedBody: ManagedInstancePrivateLinkListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type JobExecutionsBeginCreateOrUpdateResponse = JobExecution & { +export type ManagedInstancePrivateLinkResourcesGetResponse = ManagedInstancePrivateLink & { /** * The underlying HTTP response. */ @@ -11503,14 +17181,14 @@ export type JobExecutionsBeginCreateOrUpdateResponse = JobExecution & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecution; + parsedBody: ManagedInstancePrivateLink; }; }; /** - * Contains response data for the listByAgentNext operation. + * Contains response data for the listByManagedInstanceNext operation. */ -export type JobExecutionsListByAgentNextResponse = JobExecutionListResult & { +export type ManagedInstancePrivateLinkResourcesListByManagedInstanceNextResponse = ManagedInstancePrivateLinkListResult & { /** * The underlying HTTP response. */ @@ -11523,14 +17201,14 @@ export type JobExecutionsListByAgentNextResponse = JobExecutionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedInstancePrivateLinkListResult; }; }; /** - * Contains response data for the listByJobNext operation. + * Contains response data for the get operation. */ -export type JobExecutionsListByJobNextResponse = JobExecutionListResult & { +export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -11543,14 +17221,14 @@ export type JobExecutionsListByJobNextResponse = JobExecutionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedInstanceVulnerabilityAssessment; }; }; /** - * Contains response data for the listByAgent operation. + * Contains response data for the createOrUpdate operation. */ -export type JobsListByAgentResponse = JobListResult & { +export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -11563,14 +17241,14 @@ export type JobsListByAgentResponse = JobListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobListResult; + parsedBody: ManagedInstanceVulnerabilityAssessment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByInstance operation. */ -export type JobsGetResponse = Job & { +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -11583,14 +17261,14 @@ export type JobsGetResponse = Job & { /** * The response body as parsed JSON or XML */ - parsedBody: Job; + parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByInstanceNext operation. */ -export type JobsCreateOrUpdateResponse = Job & { +export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -11603,14 +17281,14 @@ export type JobsCreateOrUpdateResponse = Job & { /** * The response body as parsed JSON or XML */ - parsedBody: Job; + parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the listByAgentNext operation. + * Contains response data for the listByInstancePool operation. */ -export type JobsListByAgentNextResponse = JobListResult & { +export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -11623,14 +17301,14 @@ export type JobsListByAgentNextResponse = JobListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobListResult; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listByJobExecution operation. + * Contains response data for the list operation. */ -export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult & { +export type ManagedInstancesListResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -11643,14 +17321,14 @@ export type JobStepExecutionsListByJobExecutionResponse = JobExecutionListResult /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroup operation. */ -export type JobStepExecutionsGetResponse = JobExecution & { +export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -11663,14 +17341,14 @@ export type JobStepExecutionsGetResponse = JobExecution & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecution; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listByJobExecutionNext operation. + * Contains response data for the get operation. */ -export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListResult & { +export type ManagedInstancesGetResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -11683,14 +17361,14 @@ export type JobStepExecutionsListByJobExecutionNextResponse = JobExecutionListRe /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the listByVersion operation. + * Contains response data for the createOrUpdate operation. */ -export type JobStepsListByVersionResponse = JobStepListResult & { +export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -11703,14 +17381,14 @@ export type JobStepsListByVersionResponse = JobStepListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobStepListResult; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the getByVersion operation. + * Contains response data for the update operation. */ -export type JobStepsGetByVersionResponse = JobStep & { +export type ManagedInstancesUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -11723,14 +17401,14 @@ export type JobStepsGetByVersionResponse = JobStep & { /** * The response body as parsed JSON or XML */ - parsedBody: JobStep; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the listByJob operation. + * Contains response data for the listByManagedInstance operation. */ -export type JobStepsListByJobResponse = JobStepListResult & { +export type ManagedInstancesListByManagedInstanceResponse = TopQueriesListResult & { /** * The underlying HTTP response. */ @@ -11743,14 +17421,14 @@ export type JobStepsListByJobResponse = JobStepListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobStepListResult; + parsedBody: TopQueriesListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type JobStepsGetResponse = JobStep & { +export type ManagedInstancesBeginCreateOrUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -11763,14 +17441,14 @@ export type JobStepsGetResponse = JobStep & { /** * The response body as parsed JSON or XML */ - parsedBody: JobStep; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type JobStepsCreateOrUpdateResponse = JobStep & { +export type ManagedInstancesBeginUpdateResponse = ManagedInstance & { /** * The underlying HTTP response. */ @@ -11783,14 +17461,14 @@ export type JobStepsCreateOrUpdateResponse = JobStep & { /** * The response body as parsed JSON or XML */ - parsedBody: JobStep; + parsedBody: ManagedInstance; }; }; /** - * Contains response data for the listByVersionNext operation. + * Contains response data for the listByInstancePoolNext operation. */ -export type JobStepsListByVersionNextResponse = JobStepListResult & { +export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -11803,14 +17481,14 @@ export type JobStepsListByVersionNextResponse = JobStepListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobStepListResult; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listByJobNext operation. + * Contains response data for the listNext operation. */ -export type JobStepsListByJobNextResponse = JobStepListResult & { +export type ManagedInstancesListNextResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -11823,14 +17501,14 @@ export type JobStepsListByJobNextResponse = JobStepListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobStepListResult; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listByJobExecution operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResult & { +export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult & { /** * The underlying HTTP response. */ @@ -11843,14 +17521,14 @@ export type JobTargetExecutionsListByJobExecutionResponse = JobExecutionListResu /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedInstanceListResult; }; }; /** - * Contains response data for the listByStep operation. + * Contains response data for the listByManagedInstanceNext operation. */ -export type JobTargetExecutionsListByStepResponse = JobExecutionListResult & { +export type ManagedInstancesListByManagedInstanceNextResponse = TopQueriesListResult & { /** * The underlying HTTP response. */ @@ -11863,14 +17541,14 @@ export type JobTargetExecutionsListByStepResponse = JobExecutionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: TopQueriesListResult; }; }; /** * Contains response data for the get operation. */ -export type JobTargetExecutionsGetResponse = JobExecution & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11883,14 +17561,14 @@ export type JobTargetExecutionsGetResponse = JobExecution & { /** * The response body as parsed JSON or XML */ - parsedBody: JobExecution; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the listByJobExecutionNext operation. + * Contains response data for the createOrUpdate operation. */ -export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionListResult & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11903,14 +17581,14 @@ export type JobTargetExecutionsListByJobExecutionNextResponse = JobExecutionList /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the listByStepNext operation. + * Contains response data for the update operation. */ -export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11923,14 +17601,14 @@ export type JobTargetExecutionsListByStepNextResponse = JobExecutionListResult & /** * The response body as parsed JSON or XML */ - parsedBody: JobExecutionListResult; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the listByAgent operation. + * Contains response data for the listByRestorableDroppedDatabase operation. */ -export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -11943,14 +17621,14 @@ export type JobTargetGroupsListByAgentResponse = JobTargetGroupListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobTargetGroupListResult; + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type JobTargetGroupsGetResponse = JobTargetGroup & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11963,14 +17641,14 @@ export type JobTargetGroupsGetResponse = JobTargetGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: JobTargetGroup; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { /** * The underlying HTTP response. */ @@ -11983,14 +17661,14 @@ export type JobTargetGroupsCreateOrUpdateResponse = JobTargetGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: JobTargetGroup; + parsedBody: ManagedBackupShortTermRetentionPolicy; }; }; /** - * Contains response data for the listByAgentNext operation. + * Contains response data for the listByRestorableDroppedDatabaseNext operation. */ -export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult & { +export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { /** * The underlying HTTP response. */ @@ -12003,14 +17681,14 @@ export type JobTargetGroupsListByAgentNextResponse = JobTargetGroupListResult & /** * The response body as parsed JSON or XML */ - parsedBody: JobTargetGroupListResult; + parsedBody: ManagedBackupShortTermRetentionPolicyListResult; }; }; /** - * Contains response data for the listByJob operation. + * Contains response data for the get operation. */ -export type JobVersionsListByJobResponse = JobVersionListResult & { +export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -12023,14 +17701,14 @@ export type JobVersionsListByJobResponse = JobVersionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobVersionListResult; + parsedBody: ManagedServerSecurityAlertPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type JobVersionsGetResponse = JobVersion & { +export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -12043,14 +17721,14 @@ export type JobVersionsGetResponse = JobVersion & { /** * The response body as parsed JSON or XML */ - parsedBody: JobVersion; + parsedBody: ManagedServerSecurityAlertPolicy; }; }; /** - * Contains response data for the listByJobNext operation. + * Contains response data for the listByInstance operation. */ -export type JobVersionsListByJobNextResponse = JobVersionListResult & { +export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -12063,14 +17741,14 @@ export type JobVersionsListByJobNextResponse = JobVersionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: JobVersionListResult; + parsedBody: ManagedServerSecurityAlertPolicyListResult; }; }; /** - * Contains response data for the getByResourceGroup operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetentionBackup & { +export type ManagedServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -12083,14 +17761,14 @@ export type LongTermRetentionBackupsGetByResourceGroupResponse = LongTermRetenti /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackup; + parsedBody: ManagedServerSecurityAlertPolicy; }; }; /** - * Contains response data for the listByResourceGroupDatabase operation. + * Contains response data for the listByInstanceNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTermRetentionBackupListResult & { +export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -12103,14 +17781,14 @@ export type LongTermRetentionBackupsListByResourceGroupDatabaseResponse = LongTe /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: ManagedServerSecurityAlertPolicyListResult; }; }; /** - * Contains response data for the listByResourceGroupLocation operation. + * Contains response data for the list operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTermRetentionBackupListResult & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -12123,14 +17801,14 @@ export type LongTermRetentionBackupsListByResourceGroupLocationResponse = LongTe /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the listByResourceGroupServer operation. + * Contains response data for the listNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTermRetentionBackupListResult & { +export type OperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -12143,14 +17821,14 @@ export type LongTermRetentionBackupsListByResourceGroupServerResponse = LongTerm /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByLocation operation. */ -export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup & { +export type OperationsHealthListByLocationResponse = OperationsHealthListResult & { /** * The underlying HTTP response. */ @@ -12163,14 +17841,14 @@ export type LongTermRetentionBackupsGetResponse = LongTermRetentionBackup & { /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackup; + parsedBody: OperationsHealthListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByLocationNext operation. */ -export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBackupListResult & { +export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult & { /** * The underlying HTTP response. */ @@ -12183,14 +17861,14 @@ export type LongTermRetentionBackupsListByDatabaseResponse = LongTermRetentionBa /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OperationsHealthListResult; }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the get operation. */ -export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBackupListResult & { +export type OutboundFirewallRulesGetResponse = OutboundFirewallRule & { /** * The underlying HTTP response. */ @@ -12203,14 +17881,14 @@ export type LongTermRetentionBackupsListByLocationResponse = LongTermRetentionBa /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OutboundFirewallRule; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBackupListResult & { +export type OutboundFirewallRulesCreateOrUpdateResponse = OutboundFirewallRule & { /** * The underlying HTTP response. */ @@ -12223,14 +17901,14 @@ export type LongTermRetentionBackupsListByServerResponse = LongTermRetentionBack /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OutboundFirewallRule; }; }; /** - * Contains response data for the listByResourceGroupDatabaseNext operation. + * Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = LongTermRetentionBackupListResult & { +export type OutboundFirewallRulesListByServerResponse = OutboundFirewallRuleListResult & { /** * The underlying HTTP response. */ @@ -12243,14 +17921,14 @@ export type LongTermRetentionBackupsListByResourceGroupDatabaseNextResponse = Lo /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OutboundFirewallRuleListResult; }; }; /** - * Contains response data for the listByResourceGroupLocationNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = LongTermRetentionBackupListResult & { +export type OutboundFirewallRulesBeginCreateOrUpdateResponse = OutboundFirewallRule & { /** * The underlying HTTP response. */ @@ -12263,14 +17941,14 @@ export type LongTermRetentionBackupsListByResourceGroupLocationNextResponse = Lo /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OutboundFirewallRule; }; }; /** - * Contains response data for the listByResourceGroupServerNext operation. + * Contains response data for the listByServerNext operation. */ -export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = LongTermRetentionBackupListResult & { +export type OutboundFirewallRulesListByServerNextResponse = OutboundFirewallRuleListResult & { /** * The underlying HTTP response. */ @@ -12283,14 +17961,14 @@ export type LongTermRetentionBackupsListByResourceGroupServerNextResponse = Long /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: OutboundFirewallRuleListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the get operation. */ -export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetentionBackupListResult & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -12303,14 +17981,14 @@ export type LongTermRetentionBackupsListByDatabaseNextResponse = LongTermRetenti /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByLocationNext operation. + * Contains response data for the createOrUpdate operation. */ -export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetentionBackupListResult & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -12323,14 +18001,14 @@ export type LongTermRetentionBackupsListByLocationNextResponse = LongTermRetenti /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByServer operation. */ -export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetentionBackupListResult & { +export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -12343,14 +18021,14 @@ export type LongTermRetentionBackupsListByServerNextResponse = LongTermRetention /** * The response body as parsed JSON or XML */ - parsedBody: LongTermRetentionBackupListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type BackupLongTermRetentionPoliciesGetResponse = BackupLongTermRetentionPolicy & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -12363,14 +18041,14 @@ export type BackupLongTermRetentionPoliciesGetResponse = BackupLongTermRetention /** * The response body as parsed JSON or XML */ - parsedBody: BackupLongTermRetentionPolicy; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type BackupLongTermRetentionPoliciesCreateOrUpdateResponse = BackupLongTermRetentionPolicy & { +export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -12383,14 +18061,14 @@ export type BackupLongTermRetentionPoliciesCreateOrUpdateResponse = BackupLongTe /** * The response body as parsed JSON or XML */ - parsedBody: BackupLongTermRetentionPolicy; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByServer operation. */ -export type BackupLongTermRetentionPoliciesListByDatabaseResponse = BackupLongTermRetentionPolicy & { +export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -12403,14 +18081,14 @@ export type BackupLongTermRetentionPoliciesListByDatabaseResponse = BackupLongTe /** * The response body as parsed JSON or XML */ - parsedBody: BackupLongTermRetentionPolicy; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type BackupLongTermRetentionPoliciesBeginCreateOrUpdateResponse = BackupLongTermRetentionPolicy & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -12423,14 +18101,14 @@ export type BackupLongTermRetentionPoliciesBeginCreateOrUpdateResponse = BackupL /** * The response body as parsed JSON or XML */ - parsedBody: BackupLongTermRetentionPolicy; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { +export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -12443,14 +18121,14 @@ export type ManagedBackupShortTermRetentionPoliciesGetResponse = ManagedBackupSh /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByInstance operation. */ -export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -12463,14 +18141,14 @@ export type ManagedBackupShortTermRetentionPoliciesCreateOrUpdateResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: RecoverableManagedDatabaseListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase & { /** * The underlying HTTP response. */ @@ -12483,14 +18161,14 @@ export type ManagedBackupShortTermRetentionPoliciesUpdateResponse = ManagedBacku /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: RecoverableManagedDatabase; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByInstanceNext operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { +export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -12503,14 +18181,14 @@ export type ManagedBackupShortTermRetentionPoliciesListByDatabaseResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; + parsedBody: RecoverableManagedDatabaseListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByDatabase operation. */ -export type ManagedBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type ReplicationLinksListByDatabaseResponse = ReplicationLinksListResult & { /** * The underlying HTTP response. */ @@ -12523,14 +18201,14 @@ export type ManagedBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: ReplicationLinksListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type ManagedBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type ReplicationLinksGetResponse = ReplicationLink & { /** * The underlying HTTP response. */ @@ -12543,14 +18221,14 @@ export type ManagedBackupShortTermRetentionPoliciesBeginUpdateResponse = Managed /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: ReplicationLink; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the listByServer operation. */ -export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { +export type ReplicationLinksListByServerResponse = ReplicationLinksListResult & { /** * The underlying HTTP response. */ @@ -12563,14 +18241,14 @@ export type ManagedBackupShortTermRetentionPoliciesListByDatabaseNextResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; + parsedBody: ReplicationLinksListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabaseNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetResponse = ManagedBackupShortTermRetentionPolicy & { +export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinksListResult & { /** * The underlying HTTP response. */ @@ -12583,14 +18261,14 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesGetR /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: ReplicationLinksListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type ReplicationLinksListByServerNextResponse = ReplicationLinksListResult & { /** * The underlying HTTP response. */ @@ -12603,14 +18281,14 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesCrea /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: ReplicationLinksListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByServer operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type RestorableDroppedDatabasesListByServerResponse = RestorableDroppedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -12623,14 +18301,14 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesUpda /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: RestorableDroppedDatabaseListResult; }; }; /** - * Contains response data for the listByRestorableDroppedDatabase operation. + * Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseResponse = ManagedBackupShortTermRetentionPolicyListResult & { +export type RestorableDroppedDatabasesGetResponse = RestorableDroppedDatabase & { /** * The underlying HTTP response. */ @@ -12643,14 +18321,14 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesList /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; + parsedBody: RestorableDroppedDatabase; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type RestorableDroppedDatabasesListByServerNextResponse = RestorableDroppedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -12663,14 +18341,14 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBegi /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: RestorableDroppedDatabaseListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByInstance operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBeginUpdateResponse = ManagedBackupShortTermRetentionPolicy & { +export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -12683,14 +18361,14 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesBegi /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicy; + parsedBody: RestorableDroppedManagedDatabaseListResult; }; }; /** - * Contains response data for the listByRestorableDroppedDatabaseNext operation. + * Contains response data for the get operation. */ -export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesListByRestorableDroppedDatabaseNextResponse = ManagedBackupShortTermRetentionPolicyListResult & { +export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase & { /** * The underlying HTTP response. */ @@ -12703,14 +18381,14 @@ export type ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesList /** * The response body as parsed JSON or XML */ - parsedBody: ManagedBackupShortTermRetentionPolicyListResult; + parsedBody: RestorableDroppedManagedDatabase; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByInstanceNext operation. */ -export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning & { +export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -12723,14 +18401,14 @@ export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerAutomaticTuning; + parsedBody: RestorableDroppedManagedDatabaseListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByDatabase operation. */ -export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning & { +export type RestorePointsListByDatabaseResponse = RestorePointListResult & { /** * The underlying HTTP response. */ @@ -12743,14 +18421,14 @@ export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerAutomaticTuning; + parsedBody: RestorePointListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the create operation. */ -export type ServerDnsAliasesGetResponse = ServerDnsAlias & { +export type RestorePointsCreateResponse = RestorePoint & { /** * The underlying HTTP response. */ @@ -12763,14 +18441,14 @@ export type ServerDnsAliasesGetResponse = ServerDnsAlias & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAlias; + parsedBody: RestorePoint; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias & { +export type RestorePointsGetResponse = RestorePoint & { /** * The underlying HTTP response. */ @@ -12783,14 +18461,14 @@ export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAlias; + parsedBody: RestorePoint; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the beginCreate operation. */ -export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult & { +export type RestorePointsBeginCreateResponse = RestorePoint & { /** * The underlying HTTP response. */ @@ -12803,14 +18481,14 @@ export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAliasListResult; + parsedBody: RestorePoint; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByDatabaseNext operation. */ -export type ServerDnsAliasesBeginCreateOrUpdateResponse = ServerDnsAlias & { +export type RestorePointsListByDatabaseNextResponse = RestorePointListResult & { /** * The underlying HTTP response. */ @@ -12823,14 +18501,14 @@ export type ServerDnsAliasesBeginCreateOrUpdateResponse = ServerDnsAlias & { /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAlias; + parsedBody: RestorePointListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listCurrentByDatabase operation. */ -export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult & { +export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -12843,14 +18521,14 @@ export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult /** * The response body as parsed JSON or XML */ - parsedBody: ServerDnsAliasListResult; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listRecommendedByDatabase operation. */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { +export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -12863,14 +18541,14 @@ export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & /** * The response body as parsed JSON or XML */ - parsedBody: ServerSecurityAlertPolicy; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { +export type SensitivityLabelsGetResponse = SensitivityLabel & { /** * The underlying HTTP response. */ @@ -12883,14 +18561,14 @@ export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAl /** * The response body as parsed JSON or XML */ - parsedBody: ServerSecurityAlertPolicy; + parsedBody: SensitivityLabel; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult & { +export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { /** * The underlying HTTP response. */ @@ -12903,14 +18581,14 @@ export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecur /** * The response body as parsed JSON or XML */ - parsedBody: LogicalServerSecurityAlertPolicyListResult; + parsedBody: SensitivityLabel; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listCurrentByDatabaseNext operation. */ -export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { +export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -12923,14 +18601,14 @@ export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecur /** * The response body as parsed JSON or XML */ - parsedBody: ServerSecurityAlertPolicy; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listRecommendedByDatabaseNext operation. */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult & { +export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { /** * The underlying HTTP response. */ @@ -12943,14 +18621,14 @@ export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerS /** * The response body as parsed JSON or XML */ - parsedBody: LogicalServerSecurityAlertPolicyListResult; + parsedBody: SensitivityLabelListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the listByServer operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceResponse = RestorableDroppedManagedDatabaseListResult & { +export type ServerAdvisorsListByServerResponse = Array & { /** * The underlying HTTP response. */ @@ -12963,14 +18641,14 @@ export type RestorableDroppedManagedDatabasesListByInstanceResponse = Restorable /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDroppedManagedDatabaseListResult; + parsedBody: Advisor[]; }; }; /** * Contains response data for the get operation. */ -export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedManagedDatabase & { +export type ServerAdvisorsGetResponse = Advisor & { /** * The underlying HTTP response. */ @@ -12983,14 +18661,14 @@ export type RestorableDroppedManagedDatabasesGetResponse = RestorableDroppedMana /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDroppedManagedDatabase; + parsedBody: Advisor; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the update operation. */ -export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = RestorableDroppedManagedDatabaseListResult & { +export type ServerAdvisorsUpdateResponse = Advisor & { /** * The underlying HTTP response. */ @@ -13003,14 +18681,14 @@ export type RestorableDroppedManagedDatabasesListByInstanceNextResponse = Restor /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDroppedManagedDatabaseListResult; + parsedBody: Advisor; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the get operation. */ -export type RestorePointsListByDatabaseResponse = RestorePointListResult & { +export type ServerAutomaticTuningGetResponse = ServerAutomaticTuning & { /** * The underlying HTTP response. */ @@ -13023,14 +18701,14 @@ export type RestorePointsListByDatabaseResponse = RestorePointListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePointListResult; + parsedBody: ServerAutomaticTuning; }; }; /** - * Contains response data for the create operation. + * Contains response data for the update operation. */ -export type RestorePointsCreateResponse = RestorePoint & { +export type ServerAutomaticTuningUpdateResponse = ServerAutomaticTuning & { /** * The underlying HTTP response. */ @@ -13043,14 +18721,14 @@ export type RestorePointsCreateResponse = RestorePoint & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePoint; + parsedBody: ServerAutomaticTuning; }; }; /** * Contains response data for the get operation. */ -export type RestorePointsGetResponse = RestorePoint & { +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -13063,14 +18741,14 @@ export type RestorePointsGetResponse = RestorePoint & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePoint; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the createOrUpdate operation. */ -export type RestorePointsBeginCreateResponse = RestorePoint & { +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -13083,14 +18761,14 @@ export type RestorePointsBeginCreateResponse = RestorePoint & { /** * The response body as parsed JSON or XML */ - parsedBody: RestorePoint; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServer operation. */ -export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSecurityAlertPolicy & { +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult & { /** * The underlying HTTP response. */ @@ -13103,14 +18781,14 @@ export type ManagedDatabaseSecurityAlertPoliciesGetResponse = ManagedDatabaseSec /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseSecurityAlertPolicy; + parsedBody: AdministratorListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = ManagedDatabaseSecurityAlertPolicy & { +export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -13123,14 +18801,14 @@ export type ManagedDatabaseSecurityAlertPoliciesCreateOrUpdateResponse = Managed /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseSecurityAlertPolicy; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = ManagedDatabaseSecurityAlertPolicyListResult & { +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult & { /** * The underlying HTTP response. */ @@ -13143,14 +18821,14 @@ export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseResponse = Managed /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; + parsedBody: AdministratorListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the get operation. */ -export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = ManagedDatabaseSecurityAlertPolicyListResult & { +export type ServerAzureADOnlyAuthenticationsGetResponse = ServerAzureADOnlyAuthentication & { /** * The underlying HTTP response. */ @@ -13163,14 +18841,14 @@ export type ManagedDatabaseSecurityAlertPoliciesListByDatabaseNextResponse = Man /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseSecurityAlertPolicyListResult; + parsedBody: ServerAzureADOnlyAuthentication; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurityAlertPolicy & { +export type ServerAzureADOnlyAuthenticationsCreateOrUpdateResponse = ServerAzureADOnlyAuthentication & { /** * The underlying HTTP response. */ @@ -13183,14 +18861,14 @@ export type ManagedServerSecurityAlertPoliciesGetResponse = ManagedServerSecurit /** * The response body as parsed JSON or XML */ - parsedBody: ManagedServerSecurityAlertPolicy; + parsedBody: ServerAzureADOnlyAuthentication; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServer operation. */ -export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { +export type ServerAzureADOnlyAuthenticationsListByServerResponse = AzureADOnlyAuthListResult & { /** * The underlying HTTP response. */ @@ -13203,14 +18881,14 @@ export type ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse = ManagedSe /** * The response body as parsed JSON or XML */ - parsedBody: ManagedServerSecurityAlertPolicy; + parsedBody: AzureADOnlyAuthListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedServerSecurityAlertPolicyListResult & { +export type ServerAzureADOnlyAuthenticationsBeginCreateOrUpdateResponse = ServerAzureADOnlyAuthentication & { /** * The underlying HTTP response. */ @@ -13223,14 +18901,14 @@ export type ManagedServerSecurityAlertPoliciesListByInstanceResponse = ManagedSe /** * The response body as parsed JSON or XML */ - parsedBody: ManagedServerSecurityAlertPolicyListResult; + parsedBody: ServerAzureADOnlyAuthentication; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ManagedServerSecurityAlertPolicy & { +export type ServerAzureADOnlyAuthenticationsListByServerNextResponse = AzureADOnlyAuthListResult & { /** * The underlying HTTP response. */ @@ -13243,14 +18921,14 @@ export type ManagedServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedServerSecurityAlertPolicy; + parsedBody: AzureADOnlyAuthListResult; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the get operation. */ -export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = ManagedServerSecurityAlertPolicyListResult & { +export type ServerDevOpsAuditSettingsGetResponse = ServerDevOpsAuditingSettings & { /** * The underlying HTTP response. */ @@ -13263,14 +18941,14 @@ export type ManagedServerSecurityAlertPoliciesListByInstanceNextResponse = Manag /** * The response body as parsed JSON or XML */ - parsedBody: ManagedServerSecurityAlertPolicyListResult; + parsedBody: ServerDevOpsAuditingSettings; }; }; /** - * Contains response data for the listCurrentByDatabase operation. + * Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { +export type ServerDevOpsAuditSettingsCreateOrUpdateResponse = ServerDevOpsAuditingSettings & { /** * The underlying HTTP response. */ @@ -13283,14 +18961,14 @@ export type SensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelLis /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ServerDevOpsAuditingSettings; }; }; /** - * Contains response data for the listRecommendedByDatabase operation. + * Contains response data for the listByServer operation. */ -export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { +export type ServerDevOpsAuditSettingsListByServerResponse = ServerDevOpsAuditSettingsListResult & { /** * The underlying HTTP response. */ @@ -13303,14 +18981,14 @@ export type SensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabe /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ServerDevOpsAuditSettingsListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type SensitivityLabelsGetResponse = SensitivityLabel & { +export type ServerDevOpsAuditSettingsBeginCreateOrUpdateResponse = ServerDevOpsAuditingSettings & { /** * The underlying HTTP response. */ @@ -13323,14 +19001,14 @@ export type SensitivityLabelsGetResponse = SensitivityLabel & { /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabel; + parsedBody: ServerDevOpsAuditingSettings; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { +export type ServerDevOpsAuditSettingsListByServerNextResponse = ServerDevOpsAuditSettingsListResult & { /** * The underlying HTTP response. */ @@ -13343,14 +19021,14 @@ export type SensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabel; + parsedBody: ServerDevOpsAuditSettingsListResult; }; }; /** - * Contains response data for the listCurrentByDatabaseNext operation. + * Contains response data for the get operation. */ -export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { +export type ServerDnsAliasesGetResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13363,14 +19041,14 @@ export type SensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabe /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the listRecommendedByDatabaseNext operation. + * Contains response data for the createOrUpdate operation. */ -export type SensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { +export type ServerDnsAliasesCreateOrUpdateResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13383,14 +19061,14 @@ export type SensitivityLabelsListRecommendedByDatabaseNextResponse = Sensitivity /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the listByServer operation. */ -export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanceAdministratorListResult & { +export type ServerDnsAliasesListByServerResponse = ServerDnsAliasListResult & { /** * The underlying HTTP response. */ @@ -13403,14 +19081,14 @@ export type ManagedInstanceAdministratorsListByInstanceResponse = ManagedInstanc /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceAdministratorListResult; + parsedBody: ServerDnsAliasListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the acquire operation. */ -export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministrator & { +export type ServerDnsAliasesAcquireResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13423,14 +19101,14 @@ export type ManagedInstanceAdministratorsGetResponse = ManagedInstanceAdministra /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceAdministrator; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanceAdministrator & { +export type ServerDnsAliasesBeginCreateOrUpdateResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13443,14 +19121,14 @@ export type ManagedInstanceAdministratorsCreateOrUpdateResponse = ManagedInstanc /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceAdministrator; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginAcquire operation. */ -export type ManagedInstanceAdministratorsBeginCreateOrUpdateResponse = ManagedInstanceAdministrator & { +export type ServerDnsAliasesBeginAcquireResponse = ServerDnsAlias & { /** * The underlying HTTP response. */ @@ -13463,14 +19141,14 @@ export type ManagedInstanceAdministratorsBeginCreateOrUpdateResponse = ManagedIn /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceAdministrator; + parsedBody: ServerDnsAlias; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedInstanceAdministratorListResult & { +export type ServerDnsAliasesListByServerNextResponse = ServerDnsAliasListResult & { /** * The underlying HTTP response. */ @@ -13483,14 +19161,14 @@ export type ManagedInstanceAdministratorsListByInstanceNextResponse = ManagedIns /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceAdministratorListResult; + parsedBody: ServerDnsAliasListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByServer operation. */ -export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResult & { +export type ServerKeysListByServerResponse = ServerKeyListResult & { /** * The underlying HTTP response. */ @@ -13503,14 +19181,14 @@ export type DatabaseOperationsListByDatabaseResponse = DatabaseOperationListResu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseOperationListResult; + parsedBody: ServerKeyListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the get operation. */ -export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationListResult & { +export type ServerKeysGetResponse = ServerKey & { /** * The underlying HTTP response. */ @@ -13523,14 +19201,14 @@ export type DatabaseOperationsListByDatabaseNextResponse = DatabaseOperationList /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseOperationListResult; + parsedBody: ServerKey; }; }; /** - * Contains response data for the listByElasticPool operation. + * Contains response data for the createOrUpdate operation. */ -export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperationListResult & { +export type ServerKeysCreateOrUpdateResponse = ServerKey & { /** * The underlying HTTP response. */ @@ -13543,14 +19221,14 @@ export type ElasticPoolOperationsListByElasticPoolResponse = ElasticPoolOperatio /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolOperationListResult; + parsedBody: ServerKey; }; }; /** - * Contains response data for the listByElasticPoolNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOperationListResult & { +export type ServerKeysBeginCreateOrUpdateResponse = ServerKey & { /** * The underlying HTTP response. */ @@ -13563,14 +19241,14 @@ export type ElasticPoolOperationsListByElasticPoolNextResponse = ElasticPoolOper /** * The response body as parsed JSON or XML */ - parsedBody: ElasticPoolOperationListResult; + parsedBody: ServerKey; }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the listByServerNext operation. */ -export type CapabilitiesListByLocationResponse = LocationCapabilities & { +export type ServerKeysListByServerNextResponse = ServerKeyListResult & { /** * The underlying HTTP response. */ @@ -13583,14 +19261,14 @@ export type CapabilitiesListByLocationResponse = LocationCapabilities & { /** * The response body as parsed JSON or XML */ - parsedBody: LocationCapabilities; + parsedBody: ServerKeyListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByServer operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { +export type ServerOperationsListByServerResponse = ServerOperationListResult & { /** * The underlying HTTP response. */ @@ -13603,14 +19281,14 @@ export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = Vulnera /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: ServerOperationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServerNext operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { +export type ServerOperationsListByServerNextResponse = ServerOperationListResult & { /** * The underlying HTTP response. */ @@ -13623,14 +19301,14 @@ export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAsses /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecord; + parsedBody: ServerOperationListResult; }; }; /** - * Contains response data for the exportMethod operation. + * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13643,14 +19321,14 @@ export type DatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseV /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentScansExport; + parsedBody: ServerSecurityAlertPolicy; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the createOrUpdate operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13663,14 +19341,14 @@ export type DatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = Vul /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: ServerSecurityAlertPolicy; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServer operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -13683,14 +19361,14 @@ export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesGetResponse = Dat /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + parsedBody: LogicalServerSecurityAlertPolicyListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateResponse = DatabaseVulnerabilityAssessmentRuleBaseline & { +export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { /** * The underlying HTTP response. */ @@ -13703,14 +19381,14 @@ export type ManagedDatabaseVulnerabilityAssessmentRuleBaselinesCreateOrUpdateRes /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentRuleBaseline; + parsedBody: ServerSecurityAlertPolicy; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { +export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult & { /** * The underlying HTTP response. */ @@ -13723,14 +19401,14 @@ export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseResponse = /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: LogicalServerSecurityAlertPolicyListResult; }; }; /** * Contains response data for the get operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { +export type ServerTrustGroupsGetResponse = ServerTrustGroup & { /** * The underlying HTTP response. */ @@ -13743,14 +19421,14 @@ export type ManagedDatabaseVulnerabilityAssessmentScansGetResponse = Vulnerabili /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecord; + parsedBody: ServerTrustGroup; }; }; /** - * Contains response data for the exportMethod operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansExportMethodResponse = DatabaseVulnerabilityAssessmentScansExport & { +export type ServerTrustGroupsCreateOrUpdateResponse = ServerTrustGroup & { /** * The underlying HTTP response. */ @@ -13763,14 +19441,14 @@ export type ManagedDatabaseVulnerabilityAssessmentScansExportMethodResponse = Da /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentScansExport; + parsedBody: ServerTrustGroup; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the listByLocation operation. */ -export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextResponse = VulnerabilityAssessmentScanRecordListResult & { +export type ServerTrustGroupsListByLocationResponse = ServerTrustGroupListResult & { /** * The underlying HTTP response. */ @@ -13783,14 +19461,14 @@ export type ManagedDatabaseVulnerabilityAssessmentScansListByDatabaseNextRespons /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: ServerTrustGroupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByInstance operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnerabilityAssessment & { +export type ServerTrustGroupsListByInstanceResponse = ServerTrustGroupListResult & { /** * The underlying HTTP response. */ @@ -13803,14 +19481,14 @@ export type ManagedDatabaseVulnerabilityAssessmentsGetResponse = DatabaseVulnera /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessment; + parsedBody: ServerTrustGroupListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = DatabaseVulnerabilityAssessment & { +export type ServerTrustGroupsBeginCreateOrUpdateResponse = ServerTrustGroup & { /** * The underlying HTTP response. */ @@ -13823,14 +19501,14 @@ export type ManagedDatabaseVulnerabilityAssessmentsCreateOrUpdateResponse = Data /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessment; + parsedBody: ServerTrustGroup; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listByLocationNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = DatabaseVulnerabilityAssessmentListResult & { +export type ServerTrustGroupsListByLocationNextResponse = ServerTrustGroupListResult & { /** * The underlying HTTP response. */ @@ -13843,14 +19521,14 @@ export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseResponse = Data /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; + parsedBody: ServerTrustGroupListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the listByInstanceNext operation. */ -export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = DatabaseVulnerabilityAssessmentListResult & { +export type ServerTrustGroupsListByInstanceNextResponse = ServerTrustGroupListResult & { /** * The underlying HTTP response. */ @@ -13863,14 +19541,14 @@ export type ManagedDatabaseVulnerabilityAssessmentsListByDatabaseNextResponse = /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseVulnerabilityAssessmentListResult; + parsedBody: ServerTrustGroupListResult; }; }; /** * Contains response data for the get operation. */ -export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup & { +export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -13883,14 +19561,14 @@ export type InstanceFailoverGroupsGetResponse = InstanceFailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: ServerVulnerabilityAssessment; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup & { +export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment & { /** * The underlying HTTP response. */ @@ -13903,14 +19581,14 @@ export type InstanceFailoverGroupsCreateOrUpdateResponse = InstanceFailoverGroup /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: ServerVulnerabilityAssessment; }; }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the listByServer operation. */ -export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroupListResult & { +export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -13923,14 +19601,14 @@ export type InstanceFailoverGroupsListByLocationResponse = InstanceFailoverGroup /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroupListResult; + parsedBody: ServerVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the failover operation. + * Contains response data for the listByServerNext operation. */ -export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup & { +export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult & { /** * The underlying HTTP response. */ @@ -13943,14 +19621,14 @@ export type InstanceFailoverGroupsFailoverResponse = InstanceFailoverGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: ServerVulnerabilityAssessmentListResult; }; }; /** - * Contains response data for the forceFailoverAllowDataLoss operation. + * Contains response data for the listByResourceGroup operation. */ -export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceFailoverGroup & { +export type ServersListByResourceGroupResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -13963,14 +19641,14 @@ export type InstanceFailoverGroupsForceFailoverAllowDataLossResponse = InstanceF /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type InstanceFailoverGroupsBeginCreateOrUpdateResponse = InstanceFailoverGroup & { +export type ServersGetResponse = Server & { /** * The underlying HTTP response. */ @@ -13983,14 +19661,14 @@ export type InstanceFailoverGroupsBeginCreateOrUpdateResponse = InstanceFailover /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: Server; }; }; /** - * Contains response data for the beginFailover operation. + * Contains response data for the createOrUpdate operation. */ -export type InstanceFailoverGroupsBeginFailoverResponse = InstanceFailoverGroup & { +export type ServersCreateOrUpdateResponse = Server & { /** * The underlying HTTP response. */ @@ -14003,14 +19681,14 @@ export type InstanceFailoverGroupsBeginFailoverResponse = InstanceFailoverGroup /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: Server; }; }; /** - * Contains response data for the beginForceFailoverAllowDataLoss operation. + * Contains response data for the update operation. */ -export type InstanceFailoverGroupsBeginForceFailoverAllowDataLossResponse = InstanceFailoverGroup & { +export type ServersUpdateResponse = Server & { /** * The underlying HTTP response. */ @@ -14023,14 +19701,14 @@ export type InstanceFailoverGroupsBeginForceFailoverAllowDataLossResponse = Inst /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroup; + parsedBody: Server; }; }; /** - * Contains response data for the listByLocationNext operation. + * Contains response data for the list operation. */ -export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverGroupListResult & { +export type ServersListResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -14043,14 +19721,14 @@ export type InstanceFailoverGroupsListByLocationNextResponse = InstanceFailoverG /** * The response body as parsed JSON or XML */ - parsedBody: InstanceFailoverGroupListResult; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the importDatabase operation. */ -export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetentionPolicy & { +export type ServersImportDatabaseResponse = ImportExportOperationResult & { /** * The underlying HTTP response. */ @@ -14063,14 +19741,14 @@ export type BackupShortTermRetentionPoliciesGetResponse = BackupShortTermRetenti /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: ImportExportOperationResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the checkNameAvailability operation. */ -export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShortTermRetentionPolicy & { +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse & { /** * The underlying HTTP response. */ @@ -14083,14 +19761,14 @@ export type BackupShortTermRetentionPoliciesCreateOrUpdateResponse = BackupShort /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: CheckNameAvailabilityResponse; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRetentionPolicy & { +export type ServersBeginCreateOrUpdateResponse = Server & { /** * The underlying HTTP response. */ @@ -14103,14 +19781,14 @@ export type BackupShortTermRetentionPoliciesUpdateResponse = BackupShortTermRete /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: Server; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the beginUpdate operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShortTermRetentionPolicyListResult & { +export type ServersBeginUpdateResponse = Server & { /** * The underlying HTTP response. */ @@ -14123,14 +19801,14 @@ export type BackupShortTermRetentionPoliciesListByDatabaseResponse = BackupShort /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicyListResult; + parsedBody: Server; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginImportDatabase operation. */ -export type BackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = BackupShortTermRetentionPolicy & { +export type ServersBeginImportDatabaseResponse = ImportExportOperationResult & { /** * The underlying HTTP response. */ @@ -14143,14 +19821,14 @@ export type BackupShortTermRetentionPoliciesBeginCreateOrUpdateResponse = Backup /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: ImportExportOperationResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type BackupShortTermRetentionPoliciesBeginUpdateResponse = BackupShortTermRetentionPolicy & { +export type ServersListByResourceGroupNextResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -14163,14 +19841,14 @@ export type BackupShortTermRetentionPoliciesBeginUpdateResponse = BackupShortTer /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicy; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the listNext operation. */ -export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupShortTermRetentionPolicyListResult & { +export type ServersListNextResponse = ServerListResult & { /** * The underlying HTTP response. */ @@ -14183,14 +19861,14 @@ export type BackupShortTermRetentionPoliciesListByDatabaseNextResponse = BackupS /** * The response body as parsed JSON or XML */ - parsedBody: BackupShortTermRetentionPolicyListResult; + parsedBody: ServerListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the get operation. */ -export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListResult & { +export type SqlAgentGetResponse = SqlAgentConfiguration & { /** * The underlying HTTP response. */ @@ -14203,14 +19881,14 @@ export type ManagedInstanceKeysListByInstanceResponse = ManagedInstanceKeyListRe /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKeyListResult; + parsedBody: SqlAgentConfiguration; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceKeysGetResponse = ManagedInstanceKey & { +export type SqlAgentCreateOrUpdateResponse = SqlAgentConfiguration & { /** * The underlying HTTP response. */ @@ -14223,14 +19901,14 @@ export type ManagedInstanceKeysGetResponse = ManagedInstanceKey & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKey; + parsedBody: SqlAgentConfiguration; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByLocation operation. */ -export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey & { +export type SubscriptionUsagesListByLocationResponse = SubscriptionUsageListResult & { /** * The underlying HTTP response. */ @@ -14243,14 +19921,14 @@ export type ManagedInstanceKeysCreateOrUpdateResponse = ManagedInstanceKey & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKey; + parsedBody: SubscriptionUsageListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type ManagedInstanceKeysBeginCreateOrUpdateResponse = ManagedInstanceKey & { +export type SubscriptionUsagesGetResponse = SubscriptionUsage & { /** * The underlying HTTP response. */ @@ -14263,14 +19941,14 @@ export type ManagedInstanceKeysBeginCreateOrUpdateResponse = ManagedInstanceKey /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKey; + parsedBody: SubscriptionUsage; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listByLocationNext operation. */ -export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyListResult & { +export type SubscriptionUsagesListByLocationNextResponse = SubscriptionUsageListResult & { /** * The underlying HTTP response. */ @@ -14283,14 +19961,14 @@ export type ManagedInstanceKeysListByInstanceNextResponse = ManagedInstanceKeyLi /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceKeyListResult; + parsedBody: SubscriptionUsageListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the get operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedInstanceEncryptionProtectorListResult & { +export type SyncAgentsGetResponse = SyncAgent & { /** * The underlying HTTP response. */ @@ -14303,14 +19981,14 @@ export type ManagedInstanceEncryptionProtectorsListByInstanceResponse = ManagedI /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtectorListResult; + parsedBody: SyncAgent; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncryptionProtector & { +export type SyncAgentsCreateOrUpdateResponse = SyncAgent & { /** * The underlying HTTP response. */ @@ -14323,14 +20001,14 @@ export type ManagedInstanceEncryptionProtectorsGetResponse = ManagedInstanceEncr /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtector; + parsedBody: SyncAgent; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServer operation. */ -export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedInstanceEncryptionProtector & { +export type SyncAgentsListByServerResponse = SyncAgentListResult & { /** * The underlying HTTP response. */ @@ -14343,14 +20021,14 @@ export type ManagedInstanceEncryptionProtectorsCreateOrUpdateResponse = ManagedI /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtector; + parsedBody: SyncAgentListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the generateKey operation. */ -export type ManagedInstanceEncryptionProtectorsBeginCreateOrUpdateResponse = ManagedInstanceEncryptionProtector & { +export type SyncAgentsGenerateKeyResponse = SyncAgentKeyProperties & { /** * The underlying HTTP response. */ @@ -14363,14 +20041,14 @@ export type ManagedInstanceEncryptionProtectorsBeginCreateOrUpdateResponse = Man /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtector; + parsedBody: SyncAgentKeyProperties; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listLinkedDatabases operation. */ -export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = ManagedInstanceEncryptionProtectorListResult & { +export type SyncAgentsListLinkedDatabasesResponse = SyncAgentLinkedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -14383,14 +20061,14 @@ export type ManagedInstanceEncryptionProtectorsListByInstanceNextResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceEncryptionProtectorListResult; + parsedBody: SyncAgentLinkedDatabaseListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManagedDatabaseListResult & { +export type SyncAgentsBeginCreateOrUpdateResponse = SyncAgent & { /** * The underlying HTTP response. */ @@ -14403,14 +20081,14 @@ export type RecoverableManagedDatabasesListByInstanceResponse = RecoverableManag /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableManagedDatabaseListResult; + parsedBody: SyncAgent; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServerNext operation. */ -export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase & { +export type SyncAgentsListByServerNextResponse = SyncAgentListResult & { /** * The underlying HTTP response. */ @@ -14423,14 +20101,14 @@ export type RecoverableManagedDatabasesGetResponse = RecoverableManagedDatabase /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableManagedDatabase; + parsedBody: SyncAgentListResult; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the listLinkedDatabasesNext operation. */ -export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableManagedDatabaseListResult & { +export type SyncAgentsListLinkedDatabasesNextResponse = SyncAgentLinkedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -14443,14 +20121,14 @@ export type RecoverableManagedDatabasesListByInstanceNextResponse = RecoverableM /** * The response body as parsed JSON or XML */ - parsedBody: RecoverableManagedDatabaseListResult; + parsedBody: SyncAgentLinkedDatabaseListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listSyncDatabaseIds operation. */ -export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstanceVulnerabilityAssessment & { +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult & { /** * The underlying HTTP response. */ @@ -14463,14 +20141,14 @@ export type ManagedInstanceVulnerabilityAssessmentsGetResponse = ManagedInstance /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessment; + parsedBody: SyncDatabaseIdListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listHubSchemas operation. */ -export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = ManagedInstanceVulnerabilityAssessment & { +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -14483,14 +20161,14 @@ export type ManagedInstanceVulnerabilityAssessmentsCreateOrUpdateResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessment; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the listLogs operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = ManagedInstanceVulnerabilityAssessmentListResult & { +export type SyncGroupsListLogsResponse = SyncGroupLogListResult & { /** * The underlying HTTP response. */ @@ -14503,14 +20181,14 @@ export type ManagedInstanceVulnerabilityAssessmentsListByInstanceResponse = Mana /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; + parsedBody: SyncGroupLogListResult; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the get operation. */ -export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = ManagedInstanceVulnerabilityAssessmentListResult & { +export type SyncGroupsGetResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -14523,14 +20201,14 @@ export type ManagedInstanceVulnerabilityAssessmentsListByInstanceNextResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceVulnerabilityAssessmentListResult; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAssessment & { +export type SyncGroupsCreateOrUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -14543,14 +20221,14 @@ export type ServerVulnerabilityAssessmentsGetResponse = ServerVulnerabilityAsses /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnerabilityAssessment & { +export type SyncGroupsUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -14563,14 +20241,14 @@ export type ServerVulnerabilityAssessmentsCreateOrUpdateResponse = ServerVulnera /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessment; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByDatabase operation. */ -export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabilityAssessmentListResult & { +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult & { /** * The underlying HTTP response. */ @@ -14583,14 +20261,14 @@ export type ServerVulnerabilityAssessmentsListByServerResponse = ServerVulnerabi /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessmentListResult; + parsedBody: SyncGroupListResult; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulnerabilityAssessmentListResult & { +export type SyncGroupsBeginCreateOrUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -14603,14 +20281,14 @@ export type ServerVulnerabilityAssessmentsListByServerNextResponse = ServerVulne /** * The response body as parsed JSON or XML */ - parsedBody: ServerVulnerabilityAssessmentListResult; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel & { +export type SyncGroupsBeginUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -14623,14 +20301,14 @@ export type ManagedDatabaseSensitivityLabelsGetResponse = SensitivityLabel & { /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabel; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listSyncDatabaseIdsNext operation. */ -export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = SensitivityLabel & { +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult & { /** * The underlying HTTP response. */ @@ -14643,14 +20321,14 @@ export type ManagedDatabaseSensitivityLabelsCreateOrUpdateResponse = Sensitivity /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabel; + parsedBody: SyncDatabaseIdListResult; }; }; /** - * Contains response data for the listCurrentByDatabase operation. + * Contains response data for the listHubSchemasNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = SensitivityLabelListResult & { +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -14663,14 +20341,14 @@ export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseResponse = Sens /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the listRecommendedByDatabase operation. + * Contains response data for the listLogsNext operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = SensitivityLabelListResult & { +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult & { /** * The underlying HTTP response. */ @@ -14683,14 +20361,14 @@ export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseResponse = /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: SyncGroupLogListResult; }; }; /** - * Contains response data for the listCurrentByDatabaseNext operation. + * Contains response data for the listByDatabaseNext operation. */ -export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = SensitivityLabelListResult & { +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult & { /** * The underlying HTTP response. */ @@ -14703,14 +20381,14 @@ export type ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextResponse = /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: SyncGroupListResult; }; }; /** - * Contains response data for the listRecommendedByDatabaseNext operation. + * Contains response data for the get operation. */ -export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextResponse = SensitivityLabelListResult & { +export type SyncMembersGetResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -14723,14 +20401,14 @@ export type ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextRespons /** * The response body as parsed JSON or XML */ - parsedBody: SensitivityLabelListResult; + parsedBody: SyncMember; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type InstancePoolsGetResponse = InstancePool & { +export type SyncMembersCreateOrUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -14743,14 +20421,14 @@ export type InstancePoolsGetResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: SyncMember; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type InstancePoolsCreateOrUpdateResponse = InstancePool & { +export type SyncMembersUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -14763,14 +20441,14 @@ export type InstancePoolsCreateOrUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: SyncMember; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listBySyncGroup operation. */ -export type InstancePoolsUpdateResponse = InstancePool & { +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult & { /** * The underlying HTTP response. */ @@ -14783,14 +20461,14 @@ export type InstancePoolsUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: SyncMemberListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listMemberSchemas operation. */ -export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult & { +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -14803,14 +20481,14 @@ export type InstancePoolsListByResourceGroupResponse = InstancePoolListResult & /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type InstancePoolsListResponse = InstancePoolListResult & { +export type SyncMembersBeginCreateOrUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -14823,14 +20501,14 @@ export type InstancePoolsListResponse = InstancePoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: SyncMember; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type InstancePoolsBeginCreateOrUpdateResponse = InstancePool & { +export type SyncMembersBeginUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -14843,14 +20521,14 @@ export type InstancePoolsBeginCreateOrUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: SyncMember; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listBySyncGroupNext operation. */ -export type InstancePoolsBeginUpdateResponse = InstancePool & { +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult & { /** * The underlying HTTP response. */ @@ -14863,14 +20541,14 @@ export type InstancePoolsBeginUpdateResponse = InstancePool & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePool; + parsedBody: SyncMemberListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listMemberSchemasNext operation. */ -export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResult & { +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -14883,14 +20561,14 @@ export type InstancePoolsListByResourceGroupNextResponse = InstancePoolListResul /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByLocation operation. */ -export type InstancePoolsListNextResponse = InstancePoolListResult & { +export type TimeZonesListByLocationResponse = TimeZoneListResult & { /** * The underlying HTTP response. */ @@ -14903,14 +20581,14 @@ export type InstancePoolsListNextResponse = InstancePoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: InstancePoolListResult; + parsedBody: TimeZoneListResult; }; }; /** - * Contains response data for the listByInstancePool operation. + * Contains response data for the get operation. */ -export type UsagesListByInstancePoolResponse = UsageListResult & { +export type TimeZonesGetResponse = TimeZone & { /** * The underlying HTTP response. */ @@ -14923,14 +20601,14 @@ export type UsagesListByInstancePoolResponse = UsageListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsageListResult; + parsedBody: TimeZone; }; }; /** - * Contains response data for the listByInstancePoolNext operation. + * Contains response data for the listByLocationNext operation. */ -export type UsagesListByInstancePoolNextResponse = UsageListResult & { +export type TimeZonesListByLocationNextResponse = TimeZoneListResult & { /** * The underlying HTTP response. */ @@ -14943,14 +20621,14 @@ export type UsagesListByInstancePoolNextResponse = UsageListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsageListResult; + parsedBody: TimeZoneListResult; }; }; /** - * Contains response data for the listByInstancePool operation. + * Contains response data for the get operation. */ -export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResult & { +export type TransparentDataEncryptionsGetResponse = LogicalDatabaseTransparentDataEncryption & { /** * The underlying HTTP response. */ @@ -14963,14 +20641,14 @@ export type ManagedInstancesListByInstancePoolResponse = ManagedInstanceListResu /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: LogicalDatabaseTransparentDataEncryption; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListResult & { +export type TransparentDataEncryptionsCreateOrUpdateResponse = LogicalDatabaseTransparentDataEncryption & { /** * The underlying HTTP response. */ @@ -14983,14 +20661,14 @@ export type ManagedInstancesListByResourceGroupResponse = ManagedInstanceListRes /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: LogicalDatabaseTransparentDataEncryption; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabase operation. */ -export type ManagedInstancesGetResponse = ManagedInstance & { +export type TransparentDataEncryptionsListByDatabaseResponse = LogicalDatabaseTransparentDataEncryptionListResult & { /** * The underlying HTTP response. */ @@ -15003,14 +20681,14 @@ export type ManagedInstancesGetResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: LogicalDatabaseTransparentDataEncryptionListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByDatabaseNext operation. */ -export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance & { +export type TransparentDataEncryptionsListByDatabaseNextResponse = LogicalDatabaseTransparentDataEncryptionListResult & { /** * The underlying HTTP response. */ @@ -15023,14 +20701,14 @@ export type ManagedInstancesCreateOrUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: LogicalDatabaseTransparentDataEncryptionListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the updateDnsServers operation. */ -export type ManagedInstancesUpdateResponse = ManagedInstance & { +export type VirtualClustersUpdateDnsServersResponse = UpdateManagedInstanceDnsServersOperation & { /** * The underlying HTTP response. */ @@ -15043,14 +20721,14 @@ export type ManagedInstancesUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: UpdateManagedInstanceDnsServersOperation; }; }; /** * Contains response data for the list operation. */ -export type ManagedInstancesListResponse = ManagedInstanceListResult & { +export type VirtualClustersListResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -15063,14 +20741,14 @@ export type ManagedInstancesListResponse = ManagedInstanceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: VirtualClusterListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type ManagedInstancesBeginCreateOrUpdateResponse = ManagedInstance & { +export type VirtualClustersListByResourceGroupResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -15083,14 +20761,14 @@ export type ManagedInstancesBeginCreateOrUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: VirtualClusterListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type ManagedInstancesBeginUpdateResponse = ManagedInstance & { +export type VirtualClustersGetResponse = VirtualCluster & { /** * The underlying HTTP response. */ @@ -15103,14 +20781,14 @@ export type ManagedInstancesBeginUpdateResponse = ManagedInstance & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstance; + parsedBody: VirtualCluster; }; }; /** - * Contains response data for the listByInstancePoolNext operation. + * Contains response data for the update operation. */ -export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceListResult & { +export type VirtualClustersUpdateResponse = VirtualCluster & { /** * The underlying HTTP response. */ @@ -15123,14 +20801,14 @@ export type ManagedInstancesListByInstancePoolNextResponse = ManagedInstanceList /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: VirtualCluster; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the beginUpdate operation. */ -export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceListResult & { +export type VirtualClustersBeginUpdateResponse = VirtualCluster & { /** * The underlying HTTP response. */ @@ -15143,14 +20821,14 @@ export type ManagedInstancesListByResourceGroupNextResponse = ManagedInstanceLis /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: VirtualCluster; }; }; /** * Contains response data for the listNext operation. */ -export type ManagedInstancesListNextResponse = ManagedInstanceListResult & { +export type VirtualClustersListNextResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -15163,14 +20841,14 @@ export type ManagedInstancesListNextResponse = ManagedInstanceListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceListResult; + parsedBody: VirtualClusterListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult & { +export type VirtualClustersListByResourceGroupNextResponse = VirtualClusterListResult & { /** * The underlying HTTP response. */ @@ -15183,14 +20861,14 @@ export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDet /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseRestoreDetailsResult; + parsedBody: VirtualClusterListResult; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the get operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & { +export type VirtualNetworkRulesGetResponse = VirtualNetworkRule & { /** * The underlying HTTP response. */ @@ -15203,14 +20881,14 @@ export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: VirtualNetworkRule; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase & { +export type VirtualNetworkRulesCreateOrUpdateResponse = VirtualNetworkRule & { /** * The underlying HTTP response. */ @@ -15223,14 +20901,14 @@ export type ManagedDatabasesGetResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: VirtualNetworkRule; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServer operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { +export type VirtualNetworkRulesListByServerResponse = VirtualNetworkRuleListResult & { /** * The underlying HTTP response. */ @@ -15243,14 +20921,14 @@ export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: VirtualNetworkRuleListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase & { +export type VirtualNetworkRulesBeginCreateOrUpdateResponse = VirtualNetworkRule & { /** * The underlying HTTP response. */ @@ -15263,14 +20941,14 @@ export type ManagedDatabasesUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: VirtualNetworkRule; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { +export type VirtualNetworkRulesListByServerNextResponse = VirtualNetworkRuleListResult & { /** * The underlying HTTP response. */ @@ -15283,14 +20961,14 @@ export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: VirtualNetworkRuleListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { +export type WorkloadClassifiersGetResponse = WorkloadClassifier & { /** * The underlying HTTP response. */ @@ -15303,14 +20981,14 @@ export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: WorkloadClassifier; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult & { +export type WorkloadClassifiersCreateOrUpdateResponse = WorkloadClassifier & { /** * The underlying HTTP response. */ @@ -15323,14 +21001,14 @@ export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResu /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: WorkloadClassifier; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByWorkloadGroup operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type WorkloadClassifiersListByWorkloadGroupResponse = WorkloadClassifierListResult & { /** * The underlying HTTP response. */ @@ -15343,14 +21021,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: WorkloadClassifierListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type WorkloadClassifiersBeginCreateOrUpdateResponse = WorkloadClassifier & { /** * The underlying HTTP response. */ @@ -15363,14 +21041,14 @@ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointCo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: WorkloadClassifier; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByWorkloadGroupNext operation. */ -export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConnectionListResult & { +export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassifierListResult & { /** * The underlying HTTP response. */ @@ -15383,14 +21061,14 @@ export type PrivateEndpointConnectionsListByServerResponse = PrivateEndpointConn /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: WorkloadClassifierListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the get operation. */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { +export type WorkloadGroupsGetResponse = WorkloadGroup & { /** * The underlying HTTP response. */ @@ -15403,14 +21081,14 @@ export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: WorkloadGroup; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpointConnectionListResult & { +export type WorkloadGroupsCreateOrUpdateResponse = WorkloadGroup & { /** * The underlying HTTP response. */ @@ -15423,14 +21101,14 @@ export type PrivateEndpointConnectionsListByServerNextResponse = PrivateEndpoint /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: WorkloadGroup; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listByDatabase operation. */ -export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListResult & { +export type WorkloadGroupsListByDatabaseResponse = WorkloadGroupListResult & { /** * The underlying HTTP response. */ @@ -15443,14 +21121,14 @@ export type PrivateLinkResourcesListByServerResponse = PrivateLinkResourceListRe /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: WorkloadGroupListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { +export type WorkloadGroupsBeginCreateOrUpdateResponse = WorkloadGroup & { /** * The underlying HTTP response. */ @@ -15463,14 +21141,14 @@ export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResource; + parsedBody: WorkloadGroup; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByDatabaseNext operation. */ -export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceListResult & { +export type WorkloadGroupsListByDatabaseNextResponse = WorkloadGroupListResult & { /** * The underlying HTTP response. */ @@ -15483,6 +21161,6 @@ export type PrivateLinkResourcesListByServerNextResponse = PrivateLinkResourceLi /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourceListResult; + parsedBody: WorkloadGroupListResult; }; }; diff --git a/sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts b/sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts index a31090e2d7d3..badaa61bab42 100644 --- a/sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts +++ b/sdk/sql/arm-sql/src/models/instanceFailoverGroupsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupListResult, InstanceFailoverGroupReadOnlyEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts b/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts index a471ed9af1d2..69e84b2ab8e1 100644 --- a/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts +++ b/sdk/sql/arm-sql/src/models/instancePoolsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -57,53 +60,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -112,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobAgentsMappers.ts b/sdk/sql/arm-sql/src/models/jobAgentsMappers.ts index 3caafa179664..36c314dcc49f 100644 --- a/sdk/sql/arm-sql/src/models/jobAgentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobAgentsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -57,53 +60,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -112,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts b/sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts index be1a9dd38073..334290ad40d8 100644 --- a/sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobCredentialsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts b/sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts index 5377feb7dd16..7308f7835e77 100644 --- a/sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobExecutionsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts b/sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts index 5377feb7dd16..7308f7835e77 100644 --- a/sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobStepExecutionsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobStepsMappers.ts b/sdk/sql/arm-sql/src/models/jobStepsMappers.ts index 36e930956434..2375736b7cee 100644 --- a/sdk/sql/arm-sql/src/models/jobStepsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobStepsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts b/sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts index 5377feb7dd16..7308f7835e77 100644 --- a/sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobTargetExecutionsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts b/sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts index 9b433c364f7a..d3bcefff245d 100644 --- a/sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobTargetGroupsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTargetGroup, JobTargetGroupListResult, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobVersionsMappers.ts b/sdk/sql/arm-sql/src/models/jobVersionsMappers.ts index e9ef19060444..841f5ceda3d1 100644 --- a/sdk/sql/arm-sql/src/models/jobVersionsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobVersionsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTargetGroup, JobVersion, JobVersionListResult, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/jobsMappers.ts b/sdk/sql/arm-sql/src/models/jobsMappers.ts index 324fe5622e6d..3d2567282a99 100644 --- a/sdk/sql/arm-sql/src/models/jobsMappers.ts +++ b/sdk/sql/arm-sql/src/models/jobsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts b/sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts index e83b6fdbd626..e759da925ce5 100644 --- a/sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts +++ b/sdk/sql/arm-sql/src/models/longTermRetentionBackupsMappers.ts @@ -1,32 +1,36 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, + CopyLongTermRetentionBackupParameters, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +59,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, LongTermRetentionBackupListResult, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +154,20 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateLongTermRetentionBackupParameters, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/longTermRetentionManagedInstanceBackupsMappers.ts b/sdk/sql/arm-sql/src/models/longTermRetentionManagedInstanceBackupsMappers.ts new file mode 100644 index 000000000000..4544ae239782 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/longTermRetentionManagedInstanceBackupsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionBackupListResult, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/longTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/longTermRetentionPoliciesMappers.ts new file mode 100644 index 000000000000..dfd34df54d39 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/longTermRetentionPoliciesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + LongTermRetentionPolicyListResult, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts b/sdk/sql/arm-sql/src/models/maintenanceWindowOptionsOperationsMappers.ts similarity index 53% rename from sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts rename to sdk/sql/arm-sql/src/models/maintenanceWindowOptionsOperationsMappers.ts index 5f51959ea946..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts +++ b/sdk/sql/arm-sql/src/models/maintenanceWindowOptionsOperationsMappers.ts @@ -1,33 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - DataMaskingRuleListResult, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/databaseThreatDetectionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/maintenanceWindowsOperationsMappers.ts similarity index 53% rename from sdk/sql/arm-sql/src/models/databaseThreatDetectionPoliciesMappers.ts rename to sdk/sql/arm-sql/src/models/maintenanceWindowsOperationsMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/databaseThreatDetectionPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/maintenanceWindowsOperationsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts index 03c4d1f05ca5..87a794618951 100644 --- a/sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedBackupShortTermRetentionPoliciesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,7 +58,13 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedBackupShortTermRetentionPolicyListResult, ManagedDatabase, @@ -63,46 +72,79 @@ export { ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseColumnsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseColumnsMappers.ts new file mode 100644 index 000000000000..8240c8616046 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedDatabaseColumnsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseColumnListResult, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseQueriesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseQueriesMappers.ts new file mode 100644 index 000000000000..1d3034ff679d --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedDatabaseQueriesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceQueryStatistics, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseRecommendedSensitivityLabelsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseRecommendedSensitivityLabelsMappers.ts new file mode 100644 index 000000000000..fdf5691063b1 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedDatabaseRecommendedSensitivityLabelsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecommendedSensitivityLabelUpdateList, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseRestoreDetailsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseSchemasMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseSchemasMappers.ts new file mode 100644 index 000000000000..f15e43af8cbb --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedDatabaseSchemasMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSchemaListResult, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts index 04f6452546af..53a63b3a6063 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseSecurityAlertPoliciesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,7 +58,13 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, @@ -63,46 +72,79 @@ export { ManagedDatabaseSecurityAlertPolicyListResult, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseSecurityEventsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseSecurityEventsMappers.ts new file mode 100644 index 000000000000..a61eafd01ddf --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedDatabaseSecurityEventsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventCollection, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts index 87d6022ba880..87e08f76f3db 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseSensitivityLabelsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,94 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, SensitivityLabelListResult, + SensitivityLabelUpdate, + SensitivityLabelUpdateList, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseTablesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseTablesMappers.ts new file mode 100644 index 000000000000..7ec60c87a68e --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedDatabaseTablesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseTableListResult, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseTransparentDataEncryptionMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseTransparentDataEncryptionMappers.ts new file mode 100644 index 000000000000..49fbfe03cf6e --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedDatabaseTransparentDataEncryptionMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + ManagedTransparentDataEncryptionListResult, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentRuleBaselinesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts index 8db2e4f353ef..4469ce84e0e4 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentScansMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,14 +152,20 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, VulnerabilityAssessmentScanRecord, - VulnerabilityAssessmentScanRecordListResult + VulnerabilityAssessmentScanRecordListResult, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts index ddd16788a720..d049b4eb7108 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabaseVulnerabilityAssessmentsMappers.ts @@ -1,33 +1,36 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentListResult, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,53 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts index 3020d2d590b6..548072bb625b 100644 --- a/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedDatabasesMappers.ts @@ -1,15 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, @@ -17,17 +17,20 @@ export { Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,7 +59,13 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseListResult, @@ -65,46 +74,79 @@ export { ManagedDatabaseUpdate, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -113,13 +155,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts index f82643c82012..db56a68f465f 100644 --- a/sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstanceAdministratorsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,7 +58,13 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, @@ -63,46 +72,79 @@ export { ManagedInstance, ManagedInstanceAdministrator, ManagedInstanceAdministratorListResult, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceAzureADOnlyAuthenticationsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceAzureADOnlyAuthenticationsMappers.ts new file mode 100644 index 000000000000..e1a5bbdce8e7 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedInstanceAzureADOnlyAuthenticationsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceAzureADOnlyAuthListResult, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts index 94c329fb02fb..9a4ae454d978 100644 --- a/sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstanceEncryptionProtectorsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, ManagedInstanceEncryptionProtectorListResult, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts index 5d77e04a398a..cf2afcf4a298 100644 --- a/sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstanceKeysMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, ManagedInstanceKeyListResult, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceLongTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceLongTermRetentionPoliciesMappers.ts new file mode 100644 index 000000000000..692cd687863d --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedInstanceLongTermRetentionPoliciesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceLongTermRetentionPolicyListResult, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceOperationsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceOperationsMappers.ts new file mode 100644 index 000000000000..3254ec4d2432 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedInstanceOperationsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationListResult, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstancePrivateEndpointConnectionsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstancePrivateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..76ddee36a791 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedInstancePrivateEndpointConnectionsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionListResult, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstancePrivateLinkResourcesMappers.ts b/sdk/sql/arm-sql/src/models/managedInstancePrivateLinkResourcesMappers.ts new file mode 100644 index 000000000000..302b30ae88ce --- /dev/null +++ b/sdk/sql/arm-sql/src/models/managedInstancePrivateLinkResourcesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkListResult, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstanceTdeCertificatesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts index 935d313fae09..1ceceab3af2f 100644 --- a/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstanceVulnerabilityAssessmentsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedInstanceVulnerabilityAssessmentListResult, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts b/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts index 82dca3bb3c6e..15c549f9b499 100644 --- a/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedInstancesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,55 +58,95 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, ManagedInstanceListResult, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceUpdate, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + QueryStatisticsProperties, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -112,13 +155,21 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, + TopQueries, + TopQueriesListResult, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts index 03c4d1f05ca5..87a794618951 100644 --- a/sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,7 +58,13 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedBackupShortTermRetentionPolicyListResult, ManagedDatabase, @@ -63,46 +72,79 @@ export { ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts index b0f6c453f109..6387a6f5f79a 100644 --- a/sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/managedServerSecurityAlertPoliciesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, ManagedServerSecurityAlertPolicyListResult, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index 93b27cc1a62f..f4d174ee4dbf 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -54,113 +54,17 @@ export const ProxyResource: msRest.CompositeMapper = { } }; -export const RecoverableDatabase: msRest.CompositeMapper = { - serializedName: "RecoverableDatabase", - type: { - name: "Composite", - className: "RecoverableDatabase", - modelProperties: { - ...ProxyResource.type.modelProperties, - edition: { - readOnly: true, - serializedName: "properties.edition", - type: { - name: "String" - } - }, - serviceLevelObjective: { - readOnly: true, - serializedName: "properties.serviceLevelObjective", - type: { - name: "String" - } - }, - elasticPoolName: { - readOnly: true, - serializedName: "properties.elasticPoolName", - type: { - name: "String" - } - }, - lastAvailableBackupDate: { - readOnly: true, - serializedName: "properties.lastAvailableBackupDate", - type: { - name: "DateTime" - } - } - } - } -}; - -export const RestorableDroppedDatabase: msRest.CompositeMapper = { - serializedName: "RestorableDroppedDatabase", +export const BackupShortTermRetentionPolicy: msRest.CompositeMapper = { + serializedName: "BackupShortTermRetentionPolicy", type: { name: "Composite", - className: "RestorableDroppedDatabase", + className: "BackupShortTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", - type: { - name: "String" - } - }, - edition: { - readOnly: true, - serializedName: "properties.edition", - type: { - name: "String" - } - }, - maxSizeBytes: { - readOnly: true, - serializedName: "properties.maxSizeBytes", - type: { - name: "String" - } - }, - serviceLevelObjective: { - readOnly: true, - serializedName: "properties.serviceLevelObjective", - type: { - name: "String" - } - }, - elasticPoolName: { - readOnly: true, - serializedName: "properties.elasticPoolName", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - deletionDate: { - readOnly: true, - serializedName: "properties.deletionDate", - type: { - name: "DateTime" - } - }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "DateTime" + name: "Number" } } } @@ -196,175 +100,185 @@ export const TrackedResource: msRest.CompositeMapper = { } }; -export const CheckNameAvailabilityRequest: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityRequest", +export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ExtendedDatabaseBlobAuditingPolicy", type: { name: "Composite", - className: "CheckNameAvailabilityRequest", + className: "ExtendedDatabaseBlobAuditingPolicy", modelProperties: { - name: { - required: true, - serializedName: "name", + ...ProxyResource.type.modelProperties, + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, - type: { - required: true, - isConstant: true, - serializedName: "type", - defaultValue: 'Microsoft.Sql/servers', + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { - serializedName: "CheckNameAvailabilityResponse", - type: { - name: "Composite", - className: "CheckNameAvailabilityResponse", - modelProperties: { - available: { - readOnly: true, - serializedName: "available", + }, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { name: "Boolean" } }, - message: { - readOnly: true, - serializedName: "message", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - name: { - readOnly: true, - serializedName: "name", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - reason: { - readOnly: true, - serializedName: "reason", + state: { + required: true, + serializedName: "properties.state", type: { name: "Enum", allowedValues: [ - "Invalid", - "AlreadyExists" + "Enabled", + "Disabled" ] } - } - } - } -}; - -export const ServerConnectionPolicy: msRest.CompositeMapper = { - serializedName: "ServerConnectionPolicy", - type: { - name: "Composite", - className: "ServerConnectionPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - connectionType: { - required: true, - serializedName: "properties.connectionType", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "Enum", - allowedValues: [ - "Default", - "Proxy", - "Redirect" - ] + name: "Uuid" } } } } }; -export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "DatabaseSecurityAlertPolicy", +export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ExtendedServerBlobAuditingPolicy", type: { name: "Composite", - className: "DatabaseSecurityAlertPolicy", + className: "ExtendedServerBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, - kind: { - readOnly: true, - serializedName: "kind", + predicateExpression: { + serializedName: "properties.predicateExpression", type: { name: "String" } }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", + type: { + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + queueDelayMs: { + serializedName: "properties.queueDelayMs", + type: { + name: "Number" + } + }, state: { required: true, serializedName: "properties.state", type: { name: "Enum", allowedValues: [ - "New", "Enabled", "Disabled" ] } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + } + } + } +}; + +export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "ServerBlobAuditingPolicy", + type: { + name: "Composite", + className: "ServerBlobAuditingPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + isDevopsAuditEnabled: { + serializedName: "properties.isDevopsAuditEnabled", type: { - name: "String" + name: "Boolean" } }, retentionDays: { @@ -373,653 +287,657 @@ export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { name: "Number" } }, - useServerDefault: { - serializedName: "properties.useServerDefault", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const DataMaskingPolicy: msRest.CompositeMapper = { - serializedName: "DataMaskingPolicy", - type: { - name: "Composite", - className: "DataMaskingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - dataMaskingState: { - required: true, - serializedName: "properties.dataMaskingState", + }, + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] + name: "Boolean" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" } }, - exemptPrincipals: { - serializedName: "properties.exemptPrincipals", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - applicationPrincipals: { - readOnly: true, - serializedName: "properties.applicationPrincipals", + state: { + required: true, + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] } }, - maskingLevel: { - readOnly: true, - serializedName: "properties.maskingLevel", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - kind: { - readOnly: true, - serializedName: "kind", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } } } } }; -export const DataMaskingRule: msRest.CompositeMapper = { - serializedName: "DataMaskingRule", +export const DatabaseBlobAuditingPolicy: msRest.CompositeMapper = { + serializedName: "DatabaseBlobAuditingPolicy", type: { name: "Composite", - className: "DataMaskingRule", + className: "DatabaseBlobAuditingPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - dataMaskingRuleId: { + kind: { readOnly: true, - serializedName: "properties.id", + serializedName: "kind", type: { name: "String" } }, - aliasName: { - serializedName: "properties.aliasName", + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "String" + name: "Number" } }, - ruleState: { - serializedName: "properties.ruleState", + auditActionsAndGroups: { + serializedName: "properties.auditActionsAndGroups", type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - schemaName: { - required: true, - serializedName: "properties.schemaName", + isStorageSecondaryKeyInUse: { + serializedName: "properties.isStorageSecondaryKeyInUse", type: { - name: "String" + name: "Boolean" } }, - tableName: { - required: true, - serializedName: "properties.tableName", + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", type: { - name: "String" + name: "Boolean" } }, - columnName: { - required: true, - serializedName: "properties.columnName", + queueDelayMs: { + serializedName: "properties.queueDelayMs", type: { - name: "String" + name: "Number" } }, - maskingFunction: { + state: { required: true, - serializedName: "properties.maskingFunction", + serializedName: "properties.state", type: { name: "Enum", allowedValues: [ - "Default", - "CCN", - "Email", - "Number", - "SSN", - "Text" + "Enabled", + "Disabled" ] } }, - numberFrom: { - serializedName: "properties.numberFrom", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - numberTo: { - serializedName: "properties.numberTo", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - prefixSize: { - serializedName: "properties.prefixSize", + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", type: { - name: "String" + name: "Uuid" } - }, - suffixSize: { - serializedName: "properties.suffixSize", + } + } + } +}; + +export const DataWarehouseUserActivities: msRest.CompositeMapper = { + serializedName: "DataWarehouseUserActivities", + type: { + name: "Composite", + className: "DataWarehouseUserActivities", + modelProperties: { + ...ProxyResource.type.modelProperties, + activeQueriesCount: { + readOnly: true, + serializedName: "properties.activeQueriesCount", type: { - name: "String" + name: "Number" } - }, - replacementString: { - serializedName: "properties.replacementString", + } + } + } +}; + +export const RecommendedActionStateInfo: msRest.CompositeMapper = { + serializedName: "RecommendedActionStateInfo", + type: { + name: "Composite", + className: "RecommendedActionStateInfo", + modelProperties: { + currentValue: { + required: true, + serializedName: "currentValue", type: { name: "String" } }, - location: { + actionInitiatedBy: { readOnly: true, - serializedName: "location", + serializedName: "actionInitiatedBy", type: { - name: "String" + name: "Enum", + allowedValues: [ + "User", + "System" + ] } }, - kind: { + lastModified: { readOnly: true, - serializedName: "kind", + serializedName: "lastModified", type: { - name: "String" + name: "DateTime" } } } } }; -export const FirewallRule: msRest.CompositeMapper = { - serializedName: "FirewallRule", +export const RecommendedActionImplementationInfo: msRest.CompositeMapper = { + serializedName: "RecommendedActionImplementationInfo", type: { name: "Composite", - className: "FirewallRule", + className: "RecommendedActionImplementationInfo", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { + method: { readOnly: true, - serializedName: "kind", + serializedName: "method", type: { - name: "String" + name: "Enum", + allowedValues: [ + "TSql", + "AzurePowerShell" + ] } }, - location: { + script: { readOnly: true, - serializedName: "location", + serializedName: "script", type: { name: "String" } - }, - startIpAddress: { - required: true, - serializedName: "properties.startIpAddress", + } + } + } +}; + +export const RecommendedActionErrorInfo: msRest.CompositeMapper = { + serializedName: "RecommendedActionErrorInfo", + type: { + name: "Composite", + className: "RecommendedActionErrorInfo", + modelProperties: { + errorCode: { + readOnly: true, + serializedName: "errorCode", type: { name: "String" } }, - endIpAddress: { - required: true, - serializedName: "properties.endIpAddress", + isRetryable: { + readOnly: true, + serializedName: "isRetryable", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Yes", + "No" + ] } } } } }; -export const GeoBackupPolicy: msRest.CompositeMapper = { - serializedName: "GeoBackupPolicy", +export const RecommendedActionImpactRecord: msRest.CompositeMapper = { + serializedName: "RecommendedActionImpactRecord", type: { name: "Composite", - className: "GeoBackupPolicy", + className: "RecommendedActionImpactRecord", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + dimensionName: { + readOnly: true, + serializedName: "dimensionName", type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Enabled" - ] + name: "String" } }, - storageType: { + unit: { readOnly: true, - serializedName: "properties.storageType", + serializedName: "unit", type: { name: "String" } }, - kind: { + absoluteValue: { readOnly: true, - serializedName: "kind", + serializedName: "absoluteValue", type: { - name: "String" + name: "Number" } }, - location: { + changeValueAbsolute: { readOnly: true, - serializedName: "location", + serializedName: "changeValueAbsolute", type: { - name: "String" + name: "Number" + } + }, + changeValueRelative: { + readOnly: true, + serializedName: "changeValueRelative", + type: { + name: "Number" } } } } }; -export const ImportExtensionRequest: msRest.CompositeMapper = { - serializedName: "ImportExtensionRequest", +export const RecommendedActionMetricInfo: msRest.CompositeMapper = { + serializedName: "RecommendedActionMetricInfo", type: { name: "Composite", - className: "ImportExtensionRequest", + className: "RecommendedActionMetricInfo", modelProperties: { - name: { - serializedName: "name", + metricName: { + readOnly: true, + serializedName: "metricName", type: { name: "String" } }, - type: { - serializedName: "type", + unit: { + readOnly: true, + serializedName: "unit", type: { name: "String" } }, - storageKeyType: { - required: true, - serializedName: "properties.storageKeyType", - type: { - name: "Enum", - allowedValues: [ - "StorageAccessKey", - "SharedAccessKey" - ] - } - }, - storageKey: { - required: true, - serializedName: "properties.storageKey", - type: { - name: "String" - } - }, - storageUri: { - required: true, - serializedName: "properties.storageUri", - type: { - name: "String" - } - }, - administratorLogin: { - required: true, - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - required: true, - serializedName: "properties.administratorLoginPassword", + timeGrain: { + readOnly: true, + serializedName: "timeGrain", type: { name: "String" } }, - authenticationType: { - serializedName: "properties.authenticationType", - defaultValue: 'SQL', + startTime: { + readOnly: true, + serializedName: "startTime", type: { - name: "Enum", - allowedValues: [ - "SQL", - "ADPassword" - ] + name: "DateTime" } }, - operationMode: { - required: true, - isConstant: true, - serializedName: "properties.operationMode", - defaultValue: 'Import', + value: { + readOnly: true, + serializedName: "value", type: { - name: "String" + name: "Number" } } } } }; -export const ImportExportResponse: msRest.CompositeMapper = { - serializedName: "ImportExportResponse", +export const RecommendedAction: msRest.CompositeMapper = { + serializedName: "RecommendedAction", type: { name: "Composite", - className: "ImportExportResponse", + className: "RecommendedAction", modelProperties: { ...ProxyResource.type.modelProperties, - requestType: { + kind: { readOnly: true, - serializedName: "properties.requestType", + serializedName: "kind", type: { name: "String" } }, - requestId: { + location: { readOnly: true, - serializedName: "properties.requestId", + serializedName: "location", type: { - name: "Uuid" + name: "String" } }, - serverName: { + recommendationReason: { readOnly: true, - serializedName: "properties.serverName", + serializedName: "properties.recommendationReason", type: { name: "String" } }, - databaseName: { + validSince: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "properties.validSince", type: { - name: "String" + name: "DateTime" } }, - status: { + lastRefresh: { readOnly: true, - serializedName: "properties.status", + serializedName: "properties.lastRefresh", type: { - name: "String" + name: "DateTime" } }, - lastModifiedTime: { - readOnly: true, - serializedName: "properties.lastModifiedTime", + state: { + required: true, + serializedName: "properties.state", type: { - name: "String" + name: "Composite", + className: "RecommendedActionStateInfo" } }, - queuedTime: { + isExecutableAction: { readOnly: true, - serializedName: "properties.queuedTime", + serializedName: "properties.isExecutableAction", type: { - name: "String" + name: "Boolean" } }, - blobUri: { + isRevertableAction: { readOnly: true, - serializedName: "properties.blobUri", + serializedName: "properties.isRevertableAction", type: { - name: "String" + name: "Boolean" } }, - errorMessage: { + isArchivedAction: { readOnly: true, - serializedName: "properties.errorMessage", - type: { - name: "String" - } - } - } - } -}; - -export const ExportRequest: msRest.CompositeMapper = { - serializedName: "ExportRequest", - type: { - name: "Composite", - className: "ExportRequest", - modelProperties: { - storageKeyType: { - required: true, - serializedName: "storageKeyType", + serializedName: "properties.isArchivedAction", type: { - name: "Enum", - allowedValues: [ - "StorageAccessKey", - "SharedAccessKey" - ] + name: "Boolean" } }, - storageKey: { - required: true, - serializedName: "storageKey", + executeActionStartTime: { + readOnly: true, + serializedName: "properties.executeActionStartTime", type: { - name: "String" + name: "DateTime" } }, - storageUri: { - required: true, - serializedName: "storageUri", + executeActionDuration: { + readOnly: true, + serializedName: "properties.executeActionDuration", type: { name: "String" } }, - administratorLogin: { - required: true, - serializedName: "administratorLogin", + revertActionStartTime: { + readOnly: true, + serializedName: "properties.revertActionStartTime", type: { - name: "String" + name: "DateTime" } }, - administratorLoginPassword: { - required: true, - serializedName: "administratorLoginPassword", + revertActionDuration: { + readOnly: true, + serializedName: "properties.revertActionDuration", type: { name: "String" } }, - authenticationType: { - serializedName: "authenticationType", - defaultValue: 'SQL', + executeActionInitiatedBy: { + readOnly: true, + serializedName: "properties.executeActionInitiatedBy", type: { name: "Enum", allowedValues: [ - "SQL", - "ADPassword" + "User", + "System" ] } - } - } - } -}; - -export const ImportRequest: msRest.CompositeMapper = { - serializedName: "ImportRequest", - type: { - name: "Composite", - className: "ImportRequest", - modelProperties: { - ...ExportRequest.type.modelProperties, - databaseName: { - required: true, - serializedName: "databaseName", - type: { - name: "String" - } }, - edition: { - required: true, - serializedName: "edition", + executeActionInitiatedTime: { + readOnly: true, + serializedName: "properties.executeActionInitiatedTime", type: { - name: "String" + name: "DateTime" } }, - serviceObjectiveName: { - required: true, - serializedName: "serviceObjectiveName", + revertActionInitiatedBy: { + readOnly: true, + serializedName: "properties.revertActionInitiatedBy", type: { - name: "String" + name: "Enum", + allowedValues: [ + "User", + "System" + ] } }, - maxSizeBytes: { - required: true, - serializedName: "maxSizeBytes", + revertActionInitiatedTime: { + readOnly: true, + serializedName: "properties.revertActionInitiatedTime", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const MetricValue: msRest.CompositeMapper = { - serializedName: "MetricValue", - type: { - name: "Composite", - className: "MetricValue", - modelProperties: { - count: { + }, + score: { readOnly: true, - serializedName: "count", + serializedName: "properties.score", type: { name: "Number" } }, - average: { + implementationDetails: { readOnly: true, - serializedName: "average", + serializedName: "properties.implementationDetails", type: { - name: "Number" + name: "Composite", + className: "RecommendedActionImplementationInfo" } }, - maximum: { + errorDetails: { readOnly: true, - serializedName: "maximum", + serializedName: "properties.errorDetails", type: { - name: "Number" + name: "Composite", + className: "RecommendedActionErrorInfo" } }, - minimum: { + estimatedImpact: { readOnly: true, - serializedName: "minimum", + serializedName: "properties.estimatedImpact", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - timestamp: { + observedImpact: { readOnly: true, - serializedName: "timestamp", + serializedName: "properties.observedImpact", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionImpactRecord" + } + } } }, - total: { + timeSeries: { readOnly: true, - serializedName: "total", + serializedName: "properties.timeSeries", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedActionMetricInfo" + } + } } - } - } - } -}; - -export const MetricName: msRest.CompositeMapper = { - serializedName: "MetricName", - type: { - name: "Composite", - className: "MetricName", - modelProperties: { - value: { + }, + linkedObjects: { readOnly: true, - serializedName: "value", + serializedName: "properties.linkedObjects", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - localizedValue: { + details: { readOnly: true, - serializedName: "localizedValue", + serializedName: "properties.details", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Object" + } + } } } } } }; -export const Metric: msRest.CompositeMapper = { - serializedName: "Metric", +export const Advisor: msRest.CompositeMapper = { + serializedName: "Advisor", type: { name: "Composite", - className: "Metric", + className: "Advisor", modelProperties: { - startTime: { - readOnly: true, - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - endTime: { + ...ProxyResource.type.modelProperties, + kind: { readOnly: true, - serializedName: "endTime", + serializedName: "kind", type: { - name: "DateTime" + name: "String" } }, - timeGrain: { + location: { readOnly: true, - serializedName: "timeGrain", + serializedName: "location", type: { name: "String" } }, - unit: { + advisorStatus: { readOnly: true, - serializedName: "unit", + serializedName: "properties.advisorStatus", type: { - name: "String" + name: "Enum", + allowedValues: [ + "GA", + "PublicPreview", + "LimitedPublicPreview", + "PrivatePreview" + ] } }, - name: { - readOnly: true, - serializedName: "name", + autoExecuteStatus: { + required: true, + serializedName: "properties.autoExecuteStatus", type: { - name: "Composite", - className: "MetricName" + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled", + "Default" + ] + } + }, + autoExecuteStatusInheritedFrom: { + readOnly: true, + serializedName: "properties.autoExecuteStatusInheritedFrom", + type: { + name: "Enum", + allowedValues: [ + "Default", + "Subscription", + "Server", + "ElasticPool", + "Database" + ] + } + }, + recommendationsStatus: { + readOnly: true, + serializedName: "properties.recommendationsStatus", + type: { + name: "String" + } + }, + lastChecked: { + readOnly: true, + serializedName: "properties.lastChecked", + type: { + name: "DateTime" } }, - metricValues: { + recommendedActions: { readOnly: true, - serializedName: "metricValues", + serializedName: "properties.recommendedActions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricValue" + className: "RecommendedAction" } } } @@ -1028,74 +946,101 @@ export const Metric: msRest.CompositeMapper = { } }; -export const MetricAvailability: msRest.CompositeMapper = { - serializedName: "MetricAvailability", +export const AutomaticTuningOptions: msRest.CompositeMapper = { + serializedName: "AutomaticTuningOptions", type: { name: "Composite", - className: "MetricAvailability", + className: "AutomaticTuningOptions", modelProperties: { - retention: { + desiredState: { + serializedName: "desiredState", + type: { + name: "Enum", + allowedValues: [ + "Off", + "On", + "Default" + ] + } + }, + actualState: { readOnly: true, - serializedName: "retention", + serializedName: "actualState", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Off", + "On" + ] } }, - timeGrain: { + reasonCode: { readOnly: true, - serializedName: "timeGrain", + serializedName: "reasonCode", type: { - name: "String" + name: "Number" + } + }, + reasonDesc: { + readOnly: true, + serializedName: "reasonDesc", + type: { + name: "Enum", + allowedValues: [ + "Default", + "Disabled", + "AutoConfigured", + "InheritedFromServer", + "QueryStoreOff", + "QueryStoreReadOnly", + "NotSupported" + ] } } } } }; -export const MetricDefinition: msRest.CompositeMapper = { - serializedName: "MetricDefinition", +export const DatabaseAutomaticTuning: msRest.CompositeMapper = { + serializedName: "DatabaseAutomaticTuning", type: { name: "Composite", - className: "MetricDefinition", + className: "DatabaseAutomaticTuning", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "Composite", - className: "MetricName" - } - }, - primaryAggregationType: { - readOnly: true, - serializedName: "primaryAggregationType", - type: { - name: "String" - } - }, - resourceUri: { - readOnly: true, - serializedName: "resourceUri", + ...ProxyResource.type.modelProperties, + desiredState: { + serializedName: "properties.desiredState", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Inherit", + "Custom", + "Auto", + "Unspecified" + ] } }, - unit: { + actualState: { readOnly: true, - serializedName: "unit", + serializedName: "properties.actualState", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Inherit", + "Custom", + "Auto", + "Unspecified" + ] } }, - metricAvailabilities: { - readOnly: true, - serializedName: "metricAvailabilities", + options: { + serializedName: "properties.options", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "MetricAvailability" + className: "AutomaticTuningOptions" } } } @@ -1104,672 +1049,717 @@ export const MetricDefinition: msRest.CompositeMapper = { } }; -export const RecommendedElasticPoolMetric: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPoolMetric", +export const DatabaseColumn: msRest.CompositeMapper = { + serializedName: "DatabaseColumn", type: { name: "Composite", - className: "RecommendedElasticPoolMetric", + className: "DatabaseColumn", modelProperties: { - dateTime: { - serializedName: "dateTime", + ...ProxyResource.type.modelProperties, + columnType: { + serializedName: "properties.columnType", type: { - name: "DateTime" + name: "String" } }, - dtu: { - serializedName: "dtu", + temporalType: { + serializedName: "properties.temporalType", type: { - name: "Number" + name: "String" } }, - sizeGB: { - serializedName: "sizeGB", + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "Number" + name: "Boolean" + } + }, + isComputed: { + serializedName: "properties.isComputed", + type: { + name: "Boolean" } } } } }; -export const RecommendedElasticPool: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPool", +export const DatabaseExtensions: msRest.CompositeMapper = { + serializedName: "DatabaseExtensions", type: { name: "Composite", - className: "RecommendedElasticPool", + className: "DatabaseExtensions", modelProperties: { ...ProxyResource.type.modelProperties, - databaseEdition: { - readOnly: true, - serializedName: "properties.databaseEdition", + operationMode: { + required: true, + isConstant: true, + serializedName: "properties.operationMode", + defaultValue: 'PolybaseImport', type: { name: "String" } }, - dtu: { - serializedName: "properties.dtu", + storageKeyType: { + required: true, + serializedName: "properties.storageKeyType", type: { - name: "Number" + name: "String" } }, - databaseDtuMin: { - serializedName: "properties.databaseDtuMin", + storageKey: { + required: true, + serializedName: "properties.storageKey", type: { - name: "Number" + name: "String" } }, - databaseDtuMax: { - serializedName: "properties.databaseDtuMax", + storageUri: { + required: true, + serializedName: "properties.storageUri", type: { - name: "Number" + name: "String" } - }, - storageMB: { - serializedName: "properties.storageMB", + } + } + } +}; + +export const ImportExportExtensionsOperationResult: msRest.CompositeMapper = { + serializedName: "ImportExportExtensionsOperationResult", + type: { + name: "Composite", + className: "ImportExportExtensionsOperationResult", + modelProperties: { + ...ProxyResource.type.modelProperties, + requestId: { + readOnly: true, + serializedName: "properties.requestId", type: { - name: "Number" + name: "Uuid" } }, - observationPeriodStart: { + requestType: { readOnly: true, - serializedName: "properties.observationPeriodStart", + serializedName: "properties.requestType", type: { - name: "DateTime" + name: "String" } }, - observationPeriodEnd: { + lastModifiedTime: { readOnly: true, - serializedName: "properties.observationPeriodEnd", + serializedName: "properties.lastModifiedTime", type: { - name: "DateTime" + name: "String" } }, - maxObservedDtu: { + serverName: { readOnly: true, - serializedName: "properties.maxObservedDtu", + serializedName: "properties.serverName", type: { - name: "Number" + name: "String" } }, - maxObservedStorageMB: { + databaseName: { readOnly: true, - serializedName: "properties.maxObservedStorageMB", + serializedName: "properties.databaseName", type: { - name: "Number" + name: "String" } }, - databases: { + status: { readOnly: true, - serializedName: "properties.databases", + serializedName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TrackedResource" - } - } + name: "String" } }, - metrics: { + errorMessage: { readOnly: true, - serializedName: "properties.metrics", + serializedName: "properties.errorMessage", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendedElasticPoolMetric" - } - } + name: "String" } } } } }; -export const ReplicationLink: msRest.CompositeMapper = { - serializedName: "ReplicationLink", +export const DatabaseOperation: msRest.CompositeMapper = { + serializedName: "DatabaseOperation", type: { name: "Composite", - className: "ReplicationLink", + className: "DatabaseOperation", modelProperties: { ...ProxyResource.type.modelProperties, - location: { + databaseName: { readOnly: true, - serializedName: "location", + serializedName: "properties.databaseName", type: { name: "String" } }, - isTerminationAllowed: { + operation: { readOnly: true, - serializedName: "properties.isTerminationAllowed", + serializedName: "properties.operation", type: { - name: "Boolean" + name: "String" } }, - replicationMode: { + operationFriendlyName: { readOnly: true, - serializedName: "properties.replicationMode", + serializedName: "properties.operationFriendlyName", type: { name: "String" } }, - partnerServer: { + percentComplete: { readOnly: true, - serializedName: "properties.partnerServer", + serializedName: "properties.percentComplete", type: { - name: "String" + name: "Number" } }, - partnerDatabase: { + serverName: { readOnly: true, - serializedName: "properties.partnerDatabase", + serializedName: "properties.serverName", type: { name: "String" } }, - partnerLocation: { + startTime: { readOnly: true, - serializedName: "properties.partnerLocation", + serializedName: "properties.startTime", type: { - name: "String" + name: "DateTime" } }, - role: { + state: { readOnly: true, - serializedName: "properties.role", + serializedName: "properties.state", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "String" } }, - partnerRole: { + errorCode: { readOnly: true, - serializedName: "properties.partnerRole", + serializedName: "properties.errorCode", type: { - name: "Enum", - allowedValues: [ - "Primary", - "Secondary", - "NonReadableSecondary", - "Source", - "Copy" - ] + name: "Number" } }, - startTime: { + errorDescription: { readOnly: true, - serializedName: "properties.startTime", + serializedName: "properties.errorDescription", type: { - name: "DateTime" + name: "String" } }, - percentComplete: { + errorSeverity: { readOnly: true, - serializedName: "properties.percentComplete", + serializedName: "properties.errorSeverity", type: { name: "Number" } }, - replicationState: { + isUserError: { readOnly: true, - serializedName: "properties.replicationState", - type: { - name: "String" - } - } - } - } -}; - -export const ServerAzureADAdministrator: msRest.CompositeMapper = { - serializedName: "ServerAzureADAdministrator", - type: { - name: "Composite", - className: "ServerAzureADAdministrator", - modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - required: true, - isConstant: true, - serializedName: "properties.administratorType", - defaultValue: 'ActiveDirectory', + serializedName: "properties.isUserError", type: { - name: "String" + name: "Boolean" } }, - login: { - required: true, - serializedName: "properties.login", + estimatedCompletionTime: { + readOnly: true, + serializedName: "properties.estimatedCompletionTime", type: { - name: "String" + name: "DateTime" } }, - sid: { - required: true, - serializedName: "properties.sid", + description: { + readOnly: true, + serializedName: "properties.description", type: { - name: "Uuid" + name: "String" } }, - tenantId: { - required: true, - serializedName: "properties.tenantId", + isCancellable: { + readOnly: true, + serializedName: "properties.isCancellable", type: { - name: "Uuid" + name: "Boolean" } } } } }; -export const ServerCommunicationLink: msRest.CompositeMapper = { - serializedName: "ServerCommunicationLink", +export const DatabaseSchema: msRest.CompositeMapper = { + serializedName: "DatabaseSchema", type: { name: "Composite", - className: "ServerCommunicationLink", + className: "DatabaseSchema", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - partnerServer: { - required: true, - serializedName: "properties.partnerServer", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - } + ...ProxyResource.type.modelProperties } } }; -export const ServiceObjective: msRest.CompositeMapper = { - serializedName: "ServiceObjective", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "ServiceObjective", + className: "SystemData", modelProperties: { - ...ProxyResource.type.modelProperties, - serviceObjectiveName: { - readOnly: true, - serializedName: "properties.serviceObjectiveName", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - isDefault: { - nullable: false, - readOnly: true, - serializedName: "properties.isDefault", + createdByType: { + serializedName: "createdByType", type: { - name: "Boolean" + name: "String" } }, - isSystem: { - nullable: false, - readOnly: true, - serializedName: "properties.isSystem", + createdAt: { + serializedName: "createdAt", type: { - name: "Boolean" + name: "DateTime" } }, - description: { - readOnly: true, - serializedName: "properties.description", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - enabled: { - nullable: false, - readOnly: true, - serializedName: "properties.enabled", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Boolean" + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" } } } } }; -export const ElasticPoolActivity: msRest.CompositeMapper = { - serializedName: "ElasticPoolActivity", +export const DatabaseSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "DatabaseSecurityAlertPolicy", type: { name: "Composite", - className: "ElasticPoolActivity", + className: "DatabaseSecurityAlertPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - endTime: { - readOnly: true, - serializedName: "properties.endTime", - type: { - name: "DateTime" - } - }, - errorCode: { - readOnly: true, - serializedName: "properties.errorCode", - type: { - name: "Number" - } - }, - errorMessage: { - readOnly: true, - serializedName: "properties.errorMessage", - type: { - name: "String" - } - }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", - type: { - name: "Number" - } - }, - operation: { + systemData: { readOnly: true, - serializedName: "properties.operation", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } }, - operationId: { - nullable: false, - readOnly: true, - serializedName: "properties.operationId", + state: { + required: true, + serializedName: "properties.state", type: { - name: "Uuid" + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] } }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - requestedDatabaseDtuMax: { - readOnly: true, - serializedName: "properties.requestedDatabaseDtuMax", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - requestedDatabaseDtuMin: { - readOnly: true, - serializedName: "properties.requestedDatabaseDtuMin", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Number" + name: "Boolean" } }, - requestedDtu: { - readOnly: true, - serializedName: "properties.requestedDtu", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Number" + name: "String" } }, - requestedElasticPoolName: { - readOnly: true, - serializedName: "properties.requestedElasticPoolName", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - requestedStorageLimitInGB: { - readOnly: true, - serializedName: "properties.requestedStorageLimitInGB", + retentionDays: { + serializedName: "properties.retentionDays", type: { name: "Number" } }, - elasticPoolName: { + creationTime: { readOnly: true, - serializedName: "properties.elasticPoolName", + serializedName: "properties.creationTime", type: { - name: "String" + name: "DateTime" } - }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + } + } + } +}; + +export const DatabaseTable: msRest.CompositeMapper = { + serializedName: "DatabaseTable", + type: { + name: "Composite", + className: "DatabaseTable", + modelProperties: { + ...ProxyResource.type.modelProperties, + temporalType: { + serializedName: "properties.temporalType", type: { name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", + memoryOptimized: { + serializedName: "properties.memoryOptimized", type: { - name: "DateTime" + name: "Boolean" } - }, - state: { + } + } + } +}; + +export const DatabaseUsage: msRest.CompositeMapper = { + serializedName: "DatabaseUsage", + type: { + name: "Composite", + className: "DatabaseUsage", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.displayName", type: { name: "String" } }, - requestedStorageLimitInMB: { - readOnly: true, - serializedName: "properties.requestedStorageLimitInMB", - type: { - name: "Number" - } - }, - requestedDatabaseDtuGuarantee: { + currentValue: { readOnly: true, - serializedName: "properties.requestedDatabaseDtuGuarantee", + serializedName: "properties.currentValue", type: { name: "Number" } }, - requestedDatabaseDtuCap: { + limit: { readOnly: true, - serializedName: "properties.requestedDatabaseDtuCap", + serializedName: "properties.limit", type: { name: "Number" } }, - requestedDtuGuarantee: { + unit: { readOnly: true, - serializedName: "properties.requestedDtuGuarantee", + serializedName: "properties.unit", type: { - name: "Number" + name: "String" } } } } }; -export const ElasticPoolDatabaseActivity: msRest.CompositeMapper = { - serializedName: "ElasticPoolDatabaseActivity", +export const DatabaseVulnerabilityAssessmentRuleBaselineItem: msRest.CompositeMapper = { + serializedName: "DatabaseVulnerabilityAssessmentRuleBaselineItem", type: { name: "Composite", - className: "ElasticPoolDatabaseActivity", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + result: { + required: true, + serializedName: "result", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - databaseName: { + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentRuleBaseline: msRest.CompositeMapper = { + serializedName: "DatabaseVulnerabilityAssessmentRuleBaseline", + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaseline", + modelProperties: { + ...ProxyResource.type.modelProperties, + baselineResults: { + required: true, + serializedName: "properties.baselineResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" + } + } + } + } + } + } +}; + +export const VulnerabilityAssessmentScanError: msRest.CompositeMapper = { + serializedName: "VulnerabilityAssessmentScanError", + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanError", + modelProperties: { + code: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "code", type: { name: "String" } }, - endTime: { + message: { readOnly: true, - serializedName: "properties.endTime", + serializedName: "message", type: { - name: "DateTime" + name: "String" } - }, - errorCode: { + } + } + } +}; + +export const VulnerabilityAssessmentScanRecord: msRest.CompositeMapper = { + serializedName: "VulnerabilityAssessmentScanRecord", + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanRecord", + modelProperties: { + ...ProxyResource.type.modelProperties, + scanId: { readOnly: true, - serializedName: "properties.errorCode", + serializedName: "properties.scanId", type: { - name: "Number" + name: "String" } }, - errorMessage: { + triggerType: { readOnly: true, - serializedName: "properties.errorMessage", + serializedName: "properties.triggerType", type: { name: "String" } }, - errorSeverity: { + state: { readOnly: true, - serializedName: "properties.errorSeverity", + serializedName: "properties.state", type: { - name: "Number" + name: "String" } }, - operation: { + startTime: { readOnly: true, - serializedName: "properties.operation", + serializedName: "properties.startTime", type: { - name: "String" + name: "DateTime" } }, - operationId: { - nullable: false, + endTime: { readOnly: true, - serializedName: "properties.operationId", + serializedName: "properties.endTime", type: { - name: "Uuid" + name: "DateTime" } }, - percentComplete: { + errors: { readOnly: true, - serializedName: "properties.percentComplete", + serializedName: "properties.errors", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VulnerabilityAssessmentScanError" + } + } } }, - requestedElasticPoolName: { + storageContainerPath: { readOnly: true, - serializedName: "properties.requestedElasticPoolName", + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - currentElasticPoolName: { + numberOfFailedSecurityChecks: { readOnly: true, - serializedName: "properties.currentElasticPoolName", + serializedName: "properties.numberOfFailedSecurityChecks", type: { - name: "String" + name: "Number" } - }, - currentServiceObjective: { + } + } + } +}; + +export const DatabaseVulnerabilityAssessmentScansExport: msRest.CompositeMapper = { + serializedName: "DatabaseVulnerabilityAssessmentScansExport", + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessmentScansExport", + modelProperties: { + ...ProxyResource.type.modelProperties, + exportedReportLocation: { readOnly: true, - serializedName: "properties.currentServiceObjective", + serializedName: "properties.exportedReportLocation", type: { name: "String" } + } + } + } +}; + +export const VulnerabilityAssessmentRecurringScansProperties: msRest.CompositeMapper = { + serializedName: "VulnerabilityAssessmentRecurringScansProperties", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties", + modelProperties: { + isEnabled: { + serializedName: "isEnabled", + type: { + name: "Boolean" + } }, - requestedServiceObjective: { - readOnly: true, - serializedName: "properties.requestedServiceObjective", + emailSubscriptionAdmins: { + serializedName: "emailSubscriptionAdmins", + defaultValue: true, type: { - name: "String" + name: "Boolean" } }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + emails: { + serializedName: "emails", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "DatabaseVulnerabilityAssessment", + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { - name: "DateTime" + name: "String" } }, - state: { - readOnly: true, - serializedName: "properties.state", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" + } } } } }; -export const OperationImpact: msRest.CompositeMapper = { - serializedName: "OperationImpact", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "OperationImpact", + className: "Sku", modelProperties: { name: { - readOnly: true, + required: true, serializedName: "name", type: { name: "String" } }, - unit: { - readOnly: true, - serializedName: "unit", + tier: { + serializedName: "tier", type: { name: "String" } }, - changeValueAbsolute: { - readOnly: true, - serializedName: "changeValueAbsolute", + size: { + serializedName: "size", type: { - name: "Number" + name: "String" } }, - changeValueRelative: { - readOnly: true, - serializedName: "changeValueRelative", + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", type: { name: "Number" } @@ -1778,715 +1768,519 @@ export const OperationImpact: msRest.CompositeMapper = { } }; -export const RecommendedIndex: msRest.CompositeMapper = { - serializedName: "RecommendedIndex", +export const Database: msRest.CompositeMapper = { + serializedName: "Database", type: { name: "Composite", - className: "RecommendedIndex", + className: "Database", modelProperties: { - ...ProxyResource.type.modelProperties, - action: { - readOnly: true, - serializedName: "properties.action", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "Enum", - allowedValues: [ - "Create", - "Drop", - "Rebuild" - ] + name: "Composite", + className: "Sku" } }, - state: { + kind: { readOnly: true, - serializedName: "properties.state", + serializedName: "kind", type: { - name: "Enum", - allowedValues: [ - "Active", - "Pending", - "Executing", - "Verifying", - "Pending Revert", - "Reverting", - "Reverted", - "Ignored", - "Expired", - "Blocked", - "Success" - ] + name: "String" } }, - created: { + managedBy: { readOnly: true, - serializedName: "properties.created", + serializedName: "managedBy", type: { - name: "DateTime" + name: "String" } }, - lastModified: { - readOnly: true, - serializedName: "properties.lastModified", + createMode: { + serializedName: "properties.createMode", type: { - name: "DateTime" + name: "String" } }, - indexType: { - readOnly: true, - serializedName: "properties.indexType", + collation: { + serializedName: "properties.collation", type: { - name: "Enum", - allowedValues: [ - "CLUSTERED", - "NONCLUSTERED", - "COLUMNSTORE", - "CLUSTERED COLUMNSTORE" - ] + name: "String" } }, - schema: { - readOnly: true, - serializedName: "properties.schema", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "String" + name: "Number" } }, - table: { - readOnly: true, - serializedName: "properties.table", + sampleName: { + serializedName: "properties.sampleName", type: { name: "String" } }, - columns: { - readOnly: true, - serializedName: "properties.columns", + elasticPoolId: { + serializedName: "properties.elasticPoolId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - includedColumns: { - readOnly: true, - serializedName: "properties.includedColumns", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - indexScript: { + status: { readOnly: true, - serializedName: "properties.indexScript", + serializedName: "properties.status", type: { name: "String" } }, - estimatedImpact: { + databaseId: { readOnly: true, - serializedName: "properties.estimatedImpact", + serializedName: "properties.databaseId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } + name: "Uuid" } }, - reportedImpact: { + creationDate: { readOnly: true, - serializedName: "properties.reportedImpact", + serializedName: "properties.creationDate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationImpact" - } - } + name: "DateTime" } - } - } - } -}; - -export const TransparentDataEncryption: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryption", - type: { - name: "Composite", - className: "TransparentDataEncryption", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { + }, + currentServiceObjectiveName: { readOnly: true, - serializedName: "location", + serializedName: "properties.currentServiceObjectiveName", type: { name: "String" } }, - status: { - serializedName: "properties.status", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - } - } - } -}; - -export const SloUsageMetric: msRest.CompositeMapper = { - serializedName: "SloUsageMetric", - type: { - name: "Composite", - className: "SloUsageMetric", - modelProperties: { - serviceLevelObjective: { + requestedServiceObjectiveName: { readOnly: true, - serializedName: "serviceLevelObjective", + serializedName: "properties.requestedServiceObjectiveName", type: { name: "String" } }, - serviceLevelObjectiveId: { - nullable: false, + defaultSecondaryLocation: { readOnly: true, - serializedName: "serviceLevelObjectiveId", + serializedName: "properties.defaultSecondaryLocation", type: { - name: "Uuid" + name: "String" } }, - inRangeTimeRatio: { - nullable: false, + failoverGroupId: { readOnly: true, - serializedName: "inRangeTimeRatio", + serializedName: "properties.failoverGroupId", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const ServiceTierAdvisor: msRest.CompositeMapper = { - serializedName: "ServiceTierAdvisor", - type: { - name: "Composite", - className: "ServiceTierAdvisor", - modelProperties: { - ...ProxyResource.type.modelProperties, - observationPeriodStart: { - readOnly: true, - serializedName: "properties.observationPeriodStart", + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { name: "DateTime" } }, - observationPeriodEnd: { - readOnly: true, - serializedName: "properties.observationPeriodEnd", + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", type: { name: "DateTime" } }, - activeTimeRatio: { - readOnly: true, - serializedName: "properties.activeTimeRatio", + recoveryServicesRecoveryPointId: { + serializedName: "properties.recoveryServicesRecoveryPointId", type: { - name: "Number" + name: "String" } }, - minDtu: { - readOnly: true, - serializedName: "properties.minDtu", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { - name: "Number" + name: "String" } }, - avgDtu: { - readOnly: true, - serializedName: "properties.avgDtu", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { - name: "Number" + name: "String" } }, - maxDtu: { - readOnly: true, - serializedName: "properties.maxDtu", + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { - name: "Number" + name: "String" } }, - maxSizeInGB: { - readOnly: true, - serializedName: "properties.maxSizeInGB", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Number" + name: "String" } }, - serviceLevelObjectiveUsageMetrics: { - readOnly: true, - serializedName: "properties.serviceLevelObjectiveUsageMetrics", + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SloUsageMetric" - } - } + name: "Boolean" } }, - currentServiceLevelObjective: { - readOnly: true, - serializedName: "properties.currentServiceLevelObjective", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - currentServiceLevelObjectiveId: { + maxLogSizeBytes: { readOnly: true, - serializedName: "properties.currentServiceLevelObjectiveId", + serializedName: "properties.maxLogSizeBytes", type: { - name: "Uuid" + name: "Number" } }, - usageBasedRecommendationServiceLevelObjective: { + earliestRestoreDate: { readOnly: true, - serializedName: "properties.usageBasedRecommendationServiceLevelObjective", + serializedName: "properties.earliestRestoreDate", type: { - name: "String" + name: "DateTime" } }, - usageBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.usageBasedRecommendationServiceLevelObjectiveId", + readScale: { + serializedName: "properties.readScale", type: { - name: "Uuid" + name: "String" } }, - databaseSizeBasedRecommendationServiceLevelObjective: { - readOnly: true, - serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjective", + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", type: { - name: "String" + name: "Number" } }, - databaseSizeBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.databaseSizeBasedRecommendationServiceLevelObjectiveId", + secondaryType: { + serializedName: "properties.secondaryType", type: { - name: "Uuid" + name: "String" } }, - disasterPlanBasedRecommendationServiceLevelObjective: { + currentSku: { readOnly: true, - serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjective", + serializedName: "properties.currentSku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - disasterPlanBasedRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.disasterPlanBasedRecommendationServiceLevelObjectiveId", + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", type: { - name: "Uuid" + name: "Number" } }, - overallRecommendationServiceLevelObjective: { + currentBackupStorageRedundancy: { readOnly: true, - serializedName: "properties.overallRecommendationServiceLevelObjective", + serializedName: "properties.currentBackupStorageRedundancy", type: { name: "String" } }, - overallRecommendationServiceLevelObjectiveId: { - readOnly: true, - serializedName: "properties.overallRecommendationServiceLevelObjectiveId", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { - name: "Uuid" + name: "String" } }, - confidence: { - nullable: false, - readOnly: true, - serializedName: "properties.confidence", + minCapacity: { + serializedName: "properties.minCapacity", type: { name: "Number" } - } - } - } -}; - -export const TransparentDataEncryptionActivity: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionActivity", - type: { - name: "Composite", - className: "TransparentDataEncryptionActivity", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { + }, + pausedDate: { readOnly: true, - serializedName: "location", + serializedName: "properties.pausedDate", type: { - name: "String" + name: "DateTime" } }, - status: { + resumedDate: { readOnly: true, - serializedName: "properties.status", + serializedName: "properties.resumedDate", type: { - name: "String" + name: "DateTime" } }, - percentComplete: { - readOnly: true, - serializedName: "properties.percentComplete", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Number" + name: "String" } } } } }; -export const ServerUsage: msRest.CompositeMapper = { - serializedName: "ServerUsage", +export const DatabaseUpdate: msRest.CompositeMapper = { + serializedName: "DatabaseUpdate", type: { name: "Composite", - className: "ServerUsage", + className: "DatabaseUpdate", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - resourceName: { - readOnly: true, - serializedName: "resourceName", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - displayName: { - readOnly: true, - serializedName: "displayName", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - currentValue: { - readOnly: true, - serializedName: "currentValue", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { name: "Number" } }, - limit: { - readOnly: true, - serializedName: "limit", + sampleName: { + serializedName: "properties.sampleName", type: { - name: "Number" + name: "String" } }, - unit: { - readOnly: true, - serializedName: "unit", + elasticPoolId: { + serializedName: "properties.elasticPoolId", type: { name: "String" } }, - nextResetTime: { - readOnly: true, - serializedName: "nextResetTime", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const DatabaseUsage: msRest.CompositeMapper = { - serializedName: "DatabaseUsage", - type: { - name: "Composite", - className: "DatabaseUsage", - modelProperties: { - name: { + }, + status: { readOnly: true, - serializedName: "name", + serializedName: "properties.status", type: { name: "String" } }, - resourceName: { + databaseId: { readOnly: true, - serializedName: "resourceName", + serializedName: "properties.databaseId", type: { - name: "String" + name: "Uuid" } }, - displayName: { + creationDate: { readOnly: true, - serializedName: "displayName", + serializedName: "properties.creationDate", type: { - name: "String" + name: "DateTime" } }, - currentValue: { + currentServiceObjectiveName: { readOnly: true, - serializedName: "currentValue", + serializedName: "properties.currentServiceObjectiveName", type: { - name: "Number" + name: "String" } }, - limit: { + requestedServiceObjectiveName: { readOnly: true, - serializedName: "limit", + serializedName: "properties.requestedServiceObjectiveName", type: { - name: "Number" + name: "String" } }, - unit: { + defaultSecondaryLocation: { readOnly: true, - serializedName: "unit", + serializedName: "properties.defaultSecondaryLocation", type: { name: "String" } }, - nextResetTime: { + failoverGroupId: { readOnly: true, - serializedName: "nextResetTime", + serializedName: "properties.failoverGroupId", + type: { + name: "String" + } + }, + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { name: "DateTime" } - } - } - } -}; - -export const AutomaticTuningOptions: msRest.CompositeMapper = { - serializedName: "AutomaticTuningOptions", - type: { - name: "Composite", - className: "AutomaticTuningOptions", - modelProperties: { - desiredState: { - serializedName: "desiredState", + }, + sourceDatabaseDeletionDate: { + serializedName: "properties.sourceDatabaseDeletionDate", type: { - name: "Enum", - allowedValues: [ - "Off", - "On", - "Default" - ] + name: "DateTime" } }, - actualState: { - readOnly: true, - serializedName: "actualState", + recoveryServicesRecoveryPointId: { + serializedName: "properties.recoveryServicesRecoveryPointId", type: { - name: "Enum", - allowedValues: [ - "Off", - "On" - ] + name: "String" } }, - reasonCode: { - readOnly: true, - serializedName: "reasonCode", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { - name: "Number" + name: "String" } }, - reasonDesc: { - readOnly: true, - serializedName: "reasonDesc", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { - name: "Enum", - allowedValues: [ - "Default", - "Disabled", - "AutoConfigured", - "InheritedFromServer", - "QueryStoreOff", - "QueryStoreReadOnly", - "NotSupported" - ] + name: "String" } - } - } - } -}; - -export const DatabaseAutomaticTuning: msRest.CompositeMapper = { - serializedName: "DatabaseAutomaticTuning", - type: { - name: "Composite", - className: "DatabaseAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] + name: "String" } }, - actualState: { - readOnly: true, - serializedName: "properties.actualState", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Enum", - allowedValues: [ - "Inherit", - "Custom", - "Auto", - "Unspecified" - ] + name: "String" } }, - options: { - serializedName: "properties.options", + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningOptions" - } - } + name: "Boolean" } - } - } - } -}; - -export const EncryptionProtector: msRest.CompositeMapper = { - serializedName: "EncryptionProtector", - type: { - name: "Composite", - className: "EncryptionProtector", - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", + }, + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - location: { + maxLogSizeBytes: { readOnly: true, - serializedName: "location", + serializedName: "properties.maxLogSizeBytes", type: { - name: "String" + name: "Number" } }, - subregion: { + earliestRestoreDate: { readOnly: true, - serializedName: "properties.subregion", + serializedName: "properties.earliestRestoreDate", type: { - name: "String" + name: "DateTime" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + readScale: { + serializedName: "properties.readScale", type: { name: "String" } }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", + highAvailabilityReplicaCount: { + serializedName: "properties.highAvailabilityReplicaCount", + type: { + name: "Number" + } + }, + secondaryType: { + serializedName: "properties.secondaryType", type: { name: "String" } }, - uri: { + currentSku: { readOnly: true, - serializedName: "properties.uri", + serializedName: "properties.currentSku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - thumbprint: { + autoPauseDelay: { + serializedName: "properties.autoPauseDelay", + type: { + name: "Number" + } + }, + currentBackupStorageRedundancy: { readOnly: true, - serializedName: "properties.thumbprint", + serializedName: "properties.currentBackupStorageRedundancy", type: { name: "String" } - } - } - } -}; - -export const FailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { - serializedName: "FailoverGroupReadWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint", - modelProperties: { - failoverPolicy: { - required: true, - serializedName: "failoverPolicy", + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + minCapacity: { + serializedName: "properties.minCapacity", type: { name: "Number" } - } - } - } -}; - -export const FailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { - serializedName: "FailoverGroupReadOnlyEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", - modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + }, + pausedDate: { + readOnly: true, + serializedName: "properties.pausedDate", type: { - name: "String" + name: "DateTime" + } + }, + resumedDate: { + readOnly: true, + serializedName: "properties.resumedDate", + type: { + name: "DateTime" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const PartnerInfo: msRest.CompositeMapper = { - serializedName: "PartnerInfo", +export const ResourceMoveDefinition: msRest.CompositeMapper = { + serializedName: "ResourceMoveDefinition", type: { name: "Composite", - className: "PartnerInfo", + className: "ResourceMoveDefinition", modelProperties: { id: { required: true, @@ -2494,17 +2288,25 @@ export const PartnerInfo: msRest.CompositeMapper = { type: { name: "String" } - }, - location: { - readOnly: true, - serializedName: "location", + } + } + } +}; + +export const NetworkIsolationSettings: msRest.CompositeMapper = { + serializedName: "NetworkIsolationSettings", + type: { + name: "Composite", + className: "NetworkIsolationSettings", + modelProperties: { + storageAccountResourceId: { + serializedName: "storageAccountResourceId", type: { name: "String" } }, - replicationRole: { - readOnly: true, - serializedName: "replicationRole", + sqlServerResourceId: { + serializedName: "sqlServerResourceId", type: { name: "String" } @@ -2513,208 +2315,174 @@ export const PartnerInfo: msRest.CompositeMapper = { } }; -export const FailoverGroup: msRest.CompositeMapper = { - serializedName: "FailoverGroup", +export const ImportExistingDatabaseDefinition: msRest.CompositeMapper = { + serializedName: "ImportExistingDatabaseDefinition", type: { name: "Composite", - className: "FailoverGroup", + className: "ImportExistingDatabaseDefinition", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - readOnly: true, - serializedName: "location", + storageKeyType: { + required: true, + serializedName: "storageKeyType", type: { name: "String" } }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - readWriteEndpoint: { + storageKey: { required: true, - serializedName: "properties.readWriteEndpoint", + serializedName: "storageKey", type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "String" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + storageUri: { + required: true, + serializedName: "storageUri", type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "String" } }, - replicationRole: { - readOnly: true, - serializedName: "properties.replicationRole", + administratorLogin: { + required: true, + serializedName: "administratorLogin", type: { name: "String" } }, - replicationState: { - readOnly: true, - serializedName: "properties.replicationState", + administratorLoginPassword: { + required: true, + serializedName: "administratorLoginPassword", type: { name: "String" } }, - partnerServers: { - required: true, - serializedName: "properties.partnerServers", + authenticationType: { + serializedName: "authenticationType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } + name: "String" } }, - databases: { - serializedName: "properties.databases", + networkIsolation: { + serializedName: "networkIsolation", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "NetworkIsolationSettings" } } } } }; -export const FailoverGroupUpdate: msRest.CompositeMapper = { - serializedName: "FailoverGroupUpdate", +export const PrivateEndpointConnectionRequestStatus: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionRequestStatus", type: { name: "Composite", - className: "FailoverGroupUpdate", + className: "PrivateEndpointConnectionRequestStatus", modelProperties: { - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", - type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" - } - }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + privateLinkServiceId: { + readOnly: true, + serializedName: "privateLinkServiceId", type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "String" } }, - databases: { - serializedName: "properties.databases", + privateEndpointConnectionName: { + readOnly: true, + serializedName: "privateEndpointConnectionName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - tags: { - serializedName: "tags", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", +export const ImportExportOperationResult: msRest.CompositeMapper = { + serializedName: "ImportExportOperationResult", type: { name: "Composite", - className: "OperationDisplay", + className: "ImportExportOperationResult", modelProperties: { - provider: { + ...ProxyResource.type.modelProperties, + requestId: { readOnly: true, - serializedName: "provider", + serializedName: "properties.requestId", + type: { + name: "Uuid" + } + }, + requestType: { + readOnly: true, + serializedName: "properties.requestType", type: { name: "String" } }, - resource: { + queuedTime: { readOnly: true, - serializedName: "resource", + serializedName: "properties.queuedTime", type: { name: "String" } }, - operation: { + lastModifiedTime: { readOnly: true, - serializedName: "operation", + serializedName: "properties.lastModifiedTime", type: { name: "String" } }, - description: { + blobUri: { readOnly: true, - serializedName: "description", + serializedName: "properties.blobUri", type: { name: "String" } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { + }, + serverName: { readOnly: true, - serializedName: "name", + serializedName: "properties.serverName", type: { name: "String" } }, - display: { + databaseName: { readOnly: true, - serializedName: "display", + serializedName: "properties.databaseName", type: { - name: "Composite", - className: "OperationDisplay" + name: "String" } }, - origin: { + status: { readOnly: true, - serializedName: "origin", + serializedName: "properties.status", type: { name: "String" } }, - properties: { + errorMessage: { readOnly: true, - serializedName: "properties", + serializedName: "properties.errorMessage", type: { - name: "Dictionary", - value: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { type: { - name: "Object" + name: "Composite", + className: "PrivateEndpointConnectionRequestStatus" } } } @@ -2723,134 +2491,88 @@ export const Operation: msRest.CompositeMapper = { } }; -export const ServerKey: msRest.CompositeMapper = { - serializedName: "ServerKey", +export const ExportDatabaseDefinition: msRest.CompositeMapper = { + serializedName: "ExportDatabaseDefinition", type: { name: "Composite", - className: "ServerKey", + className: "ExportDatabaseDefinition", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - serializedName: "kind", + storageKeyType: { + required: true, + serializedName: "storageKeyType", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + storageKey: { + required: true, + serializedName: "storageKey", type: { name: "String" } }, - subregion: { - readOnly: true, - serializedName: "properties.subregion", + storageUri: { + required: true, + serializedName: "storageUri", type: { name: "String" } }, - serverKeyType: { + administratorLogin: { required: true, - serializedName: "properties.serverKeyType", + serializedName: "administratorLogin", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + administratorLoginPassword: { + required: true, + serializedName: "administratorLoginPassword", type: { name: "String" } }, - thumbprint: { - serializedName: "properties.thumbprint", + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } }, - creationDate: { - serializedName: "properties.creationDate", + networkIsolation: { + serializedName: "networkIsolation", type: { - name: "DateTime" + name: "Composite", + className: "NetworkIsolationSettings" } } } } }; -export const ResourceIdentity: msRest.CompositeMapper = { - serializedName: "ResourceIdentity", +export const DeletedServer: msRest.CompositeMapper = { + serializedName: "DeletedServer", type: { name: "Composite", - className: "ResourceIdentity", + className: "DeletedServer", modelProperties: { - principalId: { + ...ProxyResource.type.modelProperties, + version: { readOnly: true, - serializedName: "principalId", - type: { - name: "Uuid" - } - }, - type: { - serializedName: "type", + serializedName: "properties.version", type: { name: "String" } }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "Uuid" - } - } - } - } -}; - -export const Server: msRest.CompositeMapper = { - serializedName: "Server", - type: { - name: "Composite", - className: "Server", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - kind: { + deletionTime: { readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - administratorLogin: { - serializedName: "properties.administratorLogin", - type: { - name: "String" - } - }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", + serializedName: "properties.deletionTime", type: { - name: "String" + name: "DateTime" } }, - state: { + originalId: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.originalId", type: { name: "String" } @@ -2866,197 +2588,199 @@ export const Server: msRest.CompositeMapper = { } }; -export const ServerUpdate: msRest.CompositeMapper = { - serializedName: "ServerUpdate", +export const ElasticPoolOperation: msRest.CompositeMapper = { + serializedName: "ElasticPoolOperation", type: { name: "Composite", - className: "ServerUpdate", + className: "ElasticPoolOperation", modelProperties: { - administratorLogin: { - serializedName: "properties.administratorLogin", + ...ProxyResource.type.modelProperties, + elasticPoolName: { + readOnly: true, + serializedName: "properties.elasticPoolName", type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + operation: { + readOnly: true, + serializedName: "properties.operation", type: { name: "String" } }, - version: { - serializedName: "properties.version", + operationFriendlyName: { + readOnly: true, + serializedName: "properties.operationFriendlyName", type: { name: "String" } }, - state: { + percentComplete: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.percentComplete", type: { - name: "String" + name: "Number" } }, - fullyQualifiedDomainName: { + serverName: { readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", + serializedName: "properties.serverName", type: { name: "String" } }, - tags: { - serializedName: "tags", + startTime: { + readOnly: true, + serializedName: "properties.startTime", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "DateTime" } - } - } - } -}; - -export const SyncAgent: msRest.CompositeMapper = { - serializedName: "SyncAgent", - type: { - name: "Composite", - className: "SyncAgent", - modelProperties: { - ...ProxyResource.type.modelProperties, - syncAgentName: { + }, + state: { readOnly: true, - serializedName: "properties.name", + serializedName: "properties.state", type: { name: "String" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + errorCode: { + readOnly: true, + serializedName: "properties.errorCode", type: { - name: "String" + name: "Number" } }, - lastAliveTime: { + errorDescription: { readOnly: true, - serializedName: "properties.lastAliveTime", + serializedName: "properties.errorDescription", type: { - name: "DateTime" + name: "String" } }, - state: { + errorSeverity: { readOnly: true, - serializedName: "properties.state", + serializedName: "properties.errorSeverity", type: { - name: "String" + name: "Number" } }, - isUpToDate: { + isUserError: { readOnly: true, - serializedName: "properties.isUpToDate", + serializedName: "properties.isUserError", type: { name: "Boolean" } }, - expiryTime: { + estimatedCompletionTime: { readOnly: true, - serializedName: "properties.expiryTime", + serializedName: "properties.estimatedCompletionTime", type: { name: "DateTime" } }, - version: { + description: { readOnly: true, - serializedName: "properties.version", + serializedName: "properties.description", type: { name: "String" } + }, + isCancellable: { + readOnly: true, + serializedName: "properties.isCancellable", + type: { + name: "Boolean" + } } } } }; -export const SyncAgentKeyProperties: msRest.CompositeMapper = { - serializedName: "SyncAgentKeyProperties", +export const ElasticPoolPerDatabaseSettings: msRest.CompositeMapper = { + serializedName: "ElasticPoolPerDatabaseSettings", type: { name: "Composite", - className: "SyncAgentKeyProperties", + className: "ElasticPoolPerDatabaseSettings", modelProperties: { - syncAgentKey: { - readOnly: true, - serializedName: "syncAgentKey", + minCapacity: { + serializedName: "minCapacity", type: { - name: "String" + name: "Number" + } + }, + maxCapacity: { + serializedName: "maxCapacity", + type: { + name: "Number" } } } } }; -export const SyncAgentLinkedDatabase: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabase", +export const ElasticPool: msRest.CompositeMapper = { + serializedName: "ElasticPool", type: { name: "Composite", - className: "SyncAgentLinkedDatabase", + className: "ElasticPool", modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - readOnly: true, - serializedName: "properties.databaseType", + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - databaseId: { + kind: { readOnly: true, - serializedName: "properties.databaseId", + serializedName: "kind", type: { name: "String" } }, - description: { + state: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.state", type: { name: "String" } }, - serverName: { + creationDate: { readOnly: true, - serializedName: "properties.serverName", + serializedName: "properties.creationDate", type: { - name: "String" + name: "DateTime" } }, - databaseName: { - readOnly: true, - serializedName: "properties.databaseName", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "String" + name: "Number" } }, - userName: { - readOnly: true, - serializedName: "properties.userName", + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" + } + }, + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } - } - } - } -}; - -export const SyncDatabaseIdProperties: msRest.CompositeMapper = { - serializedName: "SyncDatabaseIdProperties", - type: { - name: "Composite", - className: "SyncDatabaseIdProperties", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } @@ -3065,190 +2789,192 @@ export const SyncDatabaseIdProperties: msRest.CompositeMapper = { } }; -export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTableColumn", +export const ElasticPoolUpdate: msRest.CompositeMapper = { + serializedName: "ElasticPoolUpdate", type: { name: "Composite", - className: "SyncFullSchemaTableColumn", + className: "ElasticPoolUpdate", modelProperties: { - dataSize: { - readOnly: true, - serializedName: "dataSize", + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - dataType: { - readOnly: true, - serializedName: "dataType", + maxSizeBytes: { + serializedName: "properties.maxSizeBytes", type: { - name: "String" + name: "Number" } }, - errorId: { - readOnly: true, - serializedName: "errorId", + perDatabaseSettings: { + serializedName: "properties.perDatabaseSettings", type: { - name: "String" + name: "Composite", + className: "ElasticPoolPerDatabaseSettings" } }, - hasError: { - readOnly: true, - serializedName: "hasError", + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { name: "Boolean" } }, - isPrimaryKey: { - readOnly: true, - serializedName: "isPrimaryKey", + licenseType: { + serializedName: "properties.licenseType", type: { - name: "Boolean" + name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - quotedName: { - readOnly: true, - serializedName: "quotedName", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const SyncFullSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTable", +export const EncryptionProtector: msRest.CompositeMapper = { + serializedName: "EncryptionProtector", type: { name: "Composite", - className: "SyncFullSchemaTable", + className: "EncryptionProtector", modelProperties: { - columns: { + ...ProxyResource.type.modelProperties, + kind: { readOnly: true, - serializedName: "columns", + serializedName: "kind", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTableColumn" - } - } + name: "String" } }, - errorId: { + location: { readOnly: true, - serializedName: "errorId", + serializedName: "location", type: { name: "String" } }, - hasError: { + subregion: { readOnly: true, - serializedName: "hasError", + serializedName: "properties.subregion", type: { - name: "Boolean" + name: "String" } }, - name: { + serverKeyName: { + serializedName: "properties.serverKeyName", + type: { + name: "String" + } + }, + serverKeyType: { + required: true, + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { readOnly: true, - serializedName: "name", + serializedName: "properties.uri", type: { name: "String" } }, - quotedName: { + thumbprint: { readOnly: true, - serializedName: "quotedName", + serializedName: "properties.thumbprint", type: { name: "String" } + }, + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" + } } } } }; -export const SyncFullSchemaProperties: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaProperties", +export const FailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { + serializedName: "FailoverGroupReadWriteEndpoint", type: { name: "Composite", - className: "SyncFullSchemaProperties", + className: "FailoverGroupReadWriteEndpoint", modelProperties: { - tables: { - readOnly: true, - serializedName: "tables", + failoverPolicy: { + required: true, + serializedName: "failoverPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTable" - } - } + name: "String" } }, - lastUpdateTime: { - readOnly: true, - serializedName: "lastUpdateTime", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "DateTime" + name: "Number" } } } } }; -export const SyncGroupLogProperties: msRest.CompositeMapper = { - serializedName: "SyncGroupLogProperties", +export const FailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { + serializedName: "FailoverGroupReadOnlyEndpoint", type: { name: "Composite", - className: "SyncGroupLogProperties", + className: "FailoverGroupReadOnlyEndpoint", modelProperties: { - timestamp: { - readOnly: true, - serializedName: "timestamp", - type: { - name: "DateTime" - } - }, - type: { - readOnly: true, - serializedName: "type", + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } - }, - source: { - readOnly: true, - serializedName: "source", + } + } + } +}; + +export const PartnerInfo: msRest.CompositeMapper = { + serializedName: "PartnerInfo", + type: { + name: "Composite", + className: "PartnerInfo", + modelProperties: { + id: { + required: true, + serializedName: "id", type: { name: "String" } }, - details: { + location: { readOnly: true, - serializedName: "details", + serializedName: "location", type: { name: "String" } }, - tracingId: { - readOnly: true, - serializedName: "tracingId", - type: { - name: "Uuid" - } - }, - operationStatus: { + replicationRole: { readOnly: true, - serializedName: "operationStatus", + serializedName: "replicationRole", type: { name: "String" } @@ -3257,210 +2983,251 @@ export const SyncGroupLogProperties: msRest.CompositeMapper = { } }; -export const SyncGroupSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTableColumn", +export const FailoverGroup: msRest.CompositeMapper = { + serializedName: "FailoverGroup", type: { name: "Composite", - className: "SyncGroupSchemaTableColumn", + className: "FailoverGroup", modelProperties: { - quotedName: { - serializedName: "quotedName", + ...ProxyResource.type.modelProperties, + location: { + readOnly: true, + serializedName: "location", type: { name: "String" } }, - dataSize: { - serializedName: "dataSize", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + readWriteEndpoint: { + required: true, + serializedName: "properties.readWriteEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" + } + }, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" + } + }, + replicationRole: { + readOnly: true, + serializedName: "properties.replicationRole", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + replicationState: { + readOnly: true, + serializedName: "properties.replicationState", type: { name: "String" } - } - } - } -}; - -export const SyncGroupSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTable", - type: { - name: "Composite", - className: "SyncGroupSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", + }, + partnerServers: { + required: true, + serializedName: "properties.partnerServers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SyncGroupSchemaTableColumn" + className: "PartnerInfo" } } } }, - quotedName: { - serializedName: "quotedName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncGroupSchema: msRest.CompositeMapper = { - serializedName: "SyncGroupSchema", - type: { - name: "Composite", - className: "SyncGroupSchema", - modelProperties: { - tables: { - serializedName: "tables", + databases: { + serializedName: "properties.databases", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SyncGroupSchemaTable" + name: "String" } } } - }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", - type: { - name: "String" - } } } } }; -export const SyncGroup: msRest.CompositeMapper = { - serializedName: "SyncGroup", +export const FailoverGroupUpdate: msRest.CompositeMapper = { + serializedName: "FailoverGroupUpdate", type: { name: "Composite", - className: "SyncGroup", + className: "FailoverGroupUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - interval: { - serializedName: "properties.interval", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { - name: "Number" + name: "Composite", + className: "FailoverGroupReadWriteEndpoint" } }, - lastSyncTime: { - readOnly: true, - serializedName: "properties.lastSyncTime", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "DateTime" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", + databases: { + serializedName: "properties.databases", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + } + } + } +}; + +export const ResourceWithWritableName: msRest.CompositeMapper = { + serializedName: "ResourceWithWritableName", + type: { + name: "Composite", + className: "ResourceWithWritableName", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + name: { + serializedName: "name", type: { name: "String" } }, - syncState: { + type: { readOnly: true, - serializedName: "properties.syncState", + serializedName: "type", type: { name: "String" } - }, - schema: { - serializedName: "properties.schema", - type: { - name: "Composite", - className: "SyncGroupSchema" - } } } } }; -export const SyncMember: msRest.CompositeMapper = { - serializedName: "SyncMember", +export const ProxyResourceWithWritableName: msRest.CompositeMapper = { + serializedName: "ProxyResourceWithWritableName", type: { name: "Composite", - className: "SyncMember", + className: "ProxyResourceWithWritableName", modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", - type: { - name: "String" - } - }, - syncAgentId: { - serializedName: "properties.syncAgentId", - type: { - name: "String" - } - }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", - type: { - name: "Uuid" - } - }, - serverName: { - serializedName: "properties.serverName", + ...ResourceWithWritableName.type.modelProperties + } + } +}; + +export const FirewallRule: msRest.CompositeMapper = { + serializedName: "FirewallRule", + type: { + name: "Composite", + className: "FirewallRule", + modelProperties: { + ...ProxyResourceWithWritableName.type.modelProperties, + startIpAddress: { + serializedName: "properties.startIpAddress", type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + endIpAddress: { + serializedName: "properties.endIpAddress", type: { name: "String" } - }, - userName: { - serializedName: "properties.userName", + } + } + } +}; + +export const FirewallRuleList: msRest.CompositeMapper = { + serializedName: "FirewallRuleList", + type: { + name: "Composite", + className: "FirewallRuleList", + modelProperties: { + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "FirewallRule" + } + } } - }, - password: { - serializedName: "properties.password", + } + } + } +}; + +export const InstanceFailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { + serializedName: "InstanceFailoverGroupReadWriteEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint", + modelProperties: { + failoverPolicy: { + required: true, + serializedName: "failoverPolicy", type: { name: "String" } }, - syncDirection: { - serializedName: "properties.syncDirection", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "String" + name: "Number" } - }, - syncState: { - readOnly: true, - serializedName: "properties.syncState", + } + } + } +}; + +export const InstanceFailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { + serializedName: "InstanceFailoverGroupReadOnlyEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint", + modelProperties: { + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } @@ -3469,37 +3236,21 @@ export const SyncMember: msRest.CompositeMapper = { } }; -export const SubscriptionUsage: msRest.CompositeMapper = { - serializedName: "SubscriptionUsage", +export const PartnerRegionInfo: msRest.CompositeMapper = { + serializedName: "PartnerRegionInfo", type: { name: "Composite", - className: "SubscriptionUsage", + className: "PartnerRegionInfo", modelProperties: { - ...ProxyResource.type.modelProperties, - displayName: { - readOnly: true, - serializedName: "properties.displayName", + location: { + serializedName: "location", type: { name: "String" } }, - currentValue: { - readOnly: true, - serializedName: "properties.currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "properties.limit", - type: { - name: "Number" - } - }, - unit: { + replicationRole: { readOnly: true, - serializedName: "properties.unit", + serializedName: "replicationRole", type: { name: "String" } @@ -3508,80 +3259,86 @@ export const SubscriptionUsage: msRest.CompositeMapper = { } }; -export const VirtualCluster: msRest.CompositeMapper = { - serializedName: "VirtualCluster", +export const ManagedInstancePairInfo: msRest.CompositeMapper = { + serializedName: "ManagedInstancePairInfo", type: { name: "Composite", - className: "VirtualCluster", + className: "ManagedInstancePairInfo", modelProperties: { - ...TrackedResource.type.modelProperties, - subnetId: { - readOnly: true, - serializedName: "properties.subnetId", + primaryManagedInstanceId: { + serializedName: "primaryManagedInstanceId", type: { name: "String" } }, - family: { - serializedName: "properties.family", + partnerManagedInstanceId: { + serializedName: "partnerManagedInstanceId", type: { name: "String" } - }, - childResources: { - readOnly: true, - serializedName: "properties.childResources", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const VirtualClusterUpdate: msRest.CompositeMapper = { - serializedName: "VirtualClusterUpdate", +export const InstanceFailoverGroup: msRest.CompositeMapper = { + serializedName: "InstanceFailoverGroup", type: { name: "Composite", - className: "VirtualClusterUpdate", + className: "InstanceFailoverGroup", modelProperties: { - subnetId: { + ...ProxyResource.type.modelProperties, + readWriteEndpoint: { + required: true, + serializedName: "properties.readWriteEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadWriteEndpoint" + } + }, + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", + type: { + name: "Composite", + className: "InstanceFailoverGroupReadOnlyEndpoint" + } + }, + replicationRole: { readOnly: true, - serializedName: "properties.subnetId", + serializedName: "properties.replicationRole", type: { name: "String" } }, - family: { - serializedName: "properties.family", + replicationState: { + readOnly: true, + serializedName: "properties.replicationState", type: { name: "String" } }, - childResources: { - readOnly: true, - serializedName: "properties.childResources", + partnerRegions: { + required: true, + serializedName: "properties.partnerRegions", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "PartnerRegionInfo" } } } }, - tags: { - serializedName: "tags", + managedInstancePairs: { + required: true, + serializedName: "properties.managedInstancePairs", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ManagedInstancePairInfo" } } } @@ -3590,29 +3347,37 @@ export const VirtualClusterUpdate: msRest.CompositeMapper = { } }; -export const VirtualNetworkRule: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule", +export const InstancePool: msRest.CompositeMapper = { + serializedName: "InstancePool", type: { name: "Composite", - className: "VirtualNetworkRule", + className: "InstancePool", modelProperties: { - ...ProxyResource.type.modelProperties, - virtualNetworkSubnetId: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + subnetId: { required: true, - serializedName: "properties.virtualNetworkSubnetId", + serializedName: "properties.subnetId", type: { name: "String" } }, - ignoreMissingVnetServiceEndpoint: { - serializedName: "properties.ignoreMissingVnetServiceEndpoint", + vCores: { + required: true, + serializedName: "properties.vCores", type: { - name: "Boolean" + name: "Number" } }, - state: { - readOnly: true, - serializedName: "properties.state", + licenseType: { + required: true, + serializedName: "properties.licenseType", type: { name: "String" } @@ -3621,482 +3386,481 @@ export const VirtualNetworkRule: msRest.CompositeMapper = { } }; -export const ExtendedDatabaseBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedDatabaseBlobAuditingPolicy", +export const InstancePoolUpdate: msRest.CompositeMapper = { + serializedName: "InstancePoolUpdate", type: { name: "Composite", - className: "ExtendedDatabaseBlobAuditingPolicy", + className: "InstancePoolUpdate", modelProperties: { - ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - }, - state: { - required: true, - serializedName: "properties.state", + } + } + } +}; + +export const JobAgent: msRest.CompositeMapper = { + serializedName: "JobAgent", + type: { + name: "Composite", + className: "JobAgent", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Composite", + className: "Sku" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + databaseId: { + required: true, + serializedName: "properties.databaseId", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + state: { + readOnly: true, + serializedName: "properties.state", type: { name: "String" } - }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + } + } + } +}; + +export const JobAgentUpdate: msRest.CompositeMapper = { + serializedName: "JobAgentUpdate", + type: { + name: "Composite", + className: "JobAgentUpdate", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } - }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", - type: { - name: "Uuid" - } - }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + } + } + } +}; + +export const JobCredential: msRest.CompositeMapper = { + serializedName: "JobCredential", + type: { + name: "Composite", + className: "JobCredential", + modelProperties: { + ...ProxyResource.type.modelProperties, + username: { + required: true, + serializedName: "properties.username", type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + password: { + required: true, + serializedName: "properties.password", type: { - name: "Boolean" + name: "String" } } } } }; -export const ExtendedServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ExtendedServerBlobAuditingPolicy", +export const JobExecutionTarget: msRest.CompositeMapper = { + serializedName: "JobExecutionTarget", type: { name: "Composite", - className: "ExtendedServerBlobAuditingPolicy", + className: "JobExecutionTarget", modelProperties: { - ...ProxyResource.type.modelProperties, - predicateExpression: { - serializedName: "properties.predicateExpression", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - state: { - required: true, - serializedName: "properties.state", + serverName: { + readOnly: true, + serializedName: "serverName", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "String" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + databaseName: { + readOnly: true, + serializedName: "databaseName", type: { name: "String" } + } + } + } +}; + +export const JobExecution: msRest.CompositeMapper = { + serializedName: "JobExecution", + type: { + name: "Composite", + className: "JobExecution", + modelProperties: { + ...ProxyResource.type.modelProperties, + jobVersion: { + readOnly: true, + serializedName: "properties.jobVersion", + type: { + name: "Number" + } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + stepName: { + readOnly: true, + serializedName: "properties.stepName", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + stepId: { + readOnly: true, + serializedName: "properties.stepId", type: { name: "Number" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + jobExecutionId: { + readOnly: true, + serializedName: "properties.jobExecutionId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Uuid" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + lifecycle: { + readOnly: true, + serializedName: "properties.lifecycle", type: { - name: "Uuid" + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + createTime: { + readOnly: true, + serializedName: "properties.createTime", type: { - name: "Boolean" + name: "DateTime" } - } - } - } -}; - -export const ServerBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicy", - type: { - name: "Composite", - className: "ServerBlobAuditingPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + }, + startTime: { + readOnly: true, + serializedName: "properties.startTime", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "DateTime" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + endTime: { + readOnly: true, + serializedName: "properties.endTime", type: { - name: "String" + name: "DateTime" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + currentAttempts: { + serializedName: "properties.currentAttempts", type: { - name: "String" + name: "Number" } }, - retentionDays: { - serializedName: "properties.retentionDays", + currentAttemptStartTime: { + readOnly: true, + serializedName: "properties.currentAttemptStartTime", type: { - name: "Number" + name: "DateTime" } }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + lastMessage: { + readOnly: true, + serializedName: "properties.lastMessage", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + target: { + readOnly: true, + serializedName: "properties.target", type: { - name: "Uuid" + name: "Composite", + className: "JobExecutionTarget" + } + } + } + } +}; + +export const JobStepAction: msRest.CompositeMapper = { + serializedName: "JobStepAction", + type: { + name: "Composite", + className: "JobStepAction", + modelProperties: { + type: { + serializedName: "type", + defaultValue: 'TSql', + type: { + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + source: { + serializedName: "source", + defaultValue: 'Inline', type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + value: { + required: true, + serializedName: "value", type: { - name: "Boolean" + name: "String" } } } } }; -export const DatabaseBlobAuditingPolicy: msRest.CompositeMapper = { - serializedName: "DatabaseBlobAuditingPolicy", +export const JobStepOutput: msRest.CompositeMapper = { + serializedName: "JobStepOutput", type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy", + className: "JobStepOutput", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", + type: { + serializedName: "type", + defaultValue: 'SqlDatabase', type: { name: "String" } }, - state: { - required: true, - serializedName: "properties.state", + subscriptionId: { + serializedName: "subscriptionId", type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] + name: "Uuid" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + resourceGroupName: { + serializedName: "resourceGroupName", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + serverName: { + required: true, + serializedName: "serverName", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", - type: { - name: "Number" - } - }, - auditActionsAndGroups: { - serializedName: "properties.auditActionsAndGroups", + databaseName: { + required: true, + serializedName: "databaseName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - storageAccountSubscriptionId: { - serializedName: "properties.storageAccountSubscriptionId", + schemaName: { + serializedName: "schemaName", + defaultValue: 'dbo', type: { - name: "Uuid" + name: "String" } }, - isStorageSecondaryKeyInUse: { - serializedName: "properties.isStorageSecondaryKeyInUse", + tableName: { + required: true, + serializedName: "tableName", type: { - name: "Boolean" + name: "String" } }, - isAzureMonitorTargetEnabled: { - serializedName: "properties.isAzureMonitorTargetEnabled", + credential: { + required: true, + serializedName: "credential", type: { - name: "Boolean" + name: "String" } } } } }; -export const DatabaseVulnerabilityAssessmentRuleBaselineItem: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentRuleBaselineItem", +export const JobStepExecutionOptions: msRest.CompositeMapper = { + serializedName: "JobStepExecutionOptions", type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem", + className: "JobStepExecutionOptions", modelProperties: { - result: { - required: true, - serializedName: "result", + timeoutSeconds: { + serializedName: "timeoutSeconds", + defaultValue: 43200, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" + } + }, + retryAttempts: { + serializedName: "retryAttempts", + defaultValue: 10, + type: { + name: "Number" + } + }, + initialRetryIntervalSeconds: { + serializedName: "initialRetryIntervalSeconds", + defaultValue: 1, + type: { + name: "Number" + } + }, + maximumRetryIntervalSeconds: { + serializedName: "maximumRetryIntervalSeconds", + defaultValue: 120, + type: { + name: "Number" + } + }, + retryIntervalBackoffMultiplier: { + serializedName: "retryIntervalBackoffMultiplier", + defaultValue: 2, + type: { + name: "Number" } } } } }; -export const DatabaseVulnerabilityAssessmentRuleBaseline: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentRuleBaseline", +export const JobStep: msRest.CompositeMapper = { + serializedName: "JobStep", type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaseline", + className: "JobStep", modelProperties: { ...ProxyResource.type.modelProperties, - baselineResults: { + stepId: { + serializedName: "properties.stepId", + type: { + name: "Number" + } + }, + targetGroup: { required: true, - serializedName: "properties.baselineResults", + serializedName: "properties.targetGroup", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessmentRuleBaselineItem" - } - } - } - } - } - } -}; - -export const VulnerabilityAssessmentRecurringScansProperties: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentRecurringScansProperties", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties", - modelProperties: { - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } - }, - emailSubscriptionAdmins: { - serializedName: "emailSubscriptionAdmins", - defaultValue: true, - type: { - name: "Boolean" + name: "String" } }, - emails: { - serializedName: "emails", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DatabaseVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessment", - type: { - name: "Composite", - className: "DatabaseVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - serializedName: "properties.storageContainerPath", + credential: { + required: true, + serializedName: "properties.credential", type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + action: { + required: true, + serializedName: "properties.action", type: { - name: "String" + name: "Composite", + className: "JobStepAction" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + output: { + serializedName: "properties.output", type: { - name: "String" + name: "Composite", + className: "JobStepOutput" } }, - recurringScans: { - serializedName: "properties.recurringScans", + executionOptions: { + serializedName: "properties.executionOptions", type: { name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + className: "JobStepExecutionOptions" } } } } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const JobTarget: msRest.CompositeMapper = { + serializedName: "JobTarget", type: { name: "Composite", - className: "Sku", + className: "JobTarget", modelProperties: { - name: { - required: true, - serializedName: "name", + membershipType: { + serializedName: "membershipType", + defaultValue: 'Include', type: { - name: "String" + name: "Enum", + allowedValues: [ + "Include", + "Exclude" + ] } }, - tier: { - serializedName: "tier", + type: { + required: true, + serializedName: "type", type: { name: "String" } }, - size: { - serializedName: "size", + serverName: { + serializedName: "serverName", type: { name: "String" } }, - family: { - serializedName: "family", + databaseName: { + serializedName: "databaseName", type: { name: "String" } }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } -}; - -export const JobAgent: msRest.CompositeMapper = { - serializedName: "JobAgent", - type: { - name: "Composite", - className: "JobAgent", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + elasticPoolName: { + serializedName: "elasticPoolName", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - databaseId: { - required: true, - serializedName: "properties.databaseId", + shardMapName: { + serializedName: "shardMapName", type: { name: "String" } }, - state: { - readOnly: true, - serializedName: "properties.state", + refreshCredential: { + serializedName: "refreshCredential", type: { name: "String" } @@ -4105,19 +3869,22 @@ export const JobAgent: msRest.CompositeMapper = { } }; -export const JobAgentUpdate: msRest.CompositeMapper = { - serializedName: "JobAgentUpdate", +export const JobTargetGroup: msRest.CompositeMapper = { + serializedName: "JobTargetGroup", type: { name: "Composite", - className: "JobAgentUpdate", + className: "JobTargetGroup", modelProperties: { - tags: { - serializedName: "tags", + ...ProxyResource.type.modelProperties, + members: { + required: true, + serializedName: "properties.members", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "JobTarget" } } } @@ -4126,54 +3893,56 @@ export const JobAgentUpdate: msRest.CompositeMapper = { } }; -export const JobCredential: msRest.CompositeMapper = { - serializedName: "JobCredential", +export const JobVersion: msRest.CompositeMapper = { + serializedName: "JobVersion", type: { name: "Composite", - className: "JobCredential", + className: "JobVersion", modelProperties: { - ...ProxyResource.type.modelProperties, - username: { - required: true, - serializedName: "properties.username", - type: { - name: "String" - } - }, - password: { - required: true, - serializedName: "properties.password", - type: { - name: "String" - } - } + ...ProxyResource.type.modelProperties } } }; -export const JobExecutionTarget: msRest.CompositeMapper = { - serializedName: "JobExecutionTarget", +export const JobSchedule: msRest.CompositeMapper = { + serializedName: "JobSchedule", type: { name: "Composite", - className: "JobExecutionTarget", + className: "JobSchedule", modelProperties: { + startTime: { + serializedName: "startTime", + defaultValue: new Date('0001-01-01T00:00:00+00:00'), + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + defaultValue: new Date('9999-12-31T11:59:59+00:00'), + type: { + name: "DateTime" + } + }, type: { - readOnly: true, serializedName: "type", + defaultValue: 'Once', type: { - name: "String" + name: "Enum", + allowedValues: [ + "Once", + "Recurring" + ] } }, - serverName: { - readOnly: true, - serializedName: "serverName", + enabled: { + serializedName: "enabled", type: { - name: "String" + name: "Boolean" } }, - databaseName: { - readOnly: true, - serializedName: "databaseName", + interval: { + serializedName: "interval", type: { name: "String" } @@ -4182,147 +3951,139 @@ export const JobExecutionTarget: msRest.CompositeMapper = { } }; -export const JobExecution: msRest.CompositeMapper = { - serializedName: "JobExecution", +export const Job: msRest.CompositeMapper = { + serializedName: "Job", type: { name: "Composite", - className: "JobExecution", + className: "Job", modelProperties: { ...ProxyResource.type.modelProperties, - jobVersion: { - readOnly: true, - serializedName: "properties.jobVersion", - type: { - name: "Number" - } - }, - stepName: { - readOnly: true, - serializedName: "properties.stepName", + description: { + serializedName: "properties.description", + defaultValue: '', type: { name: "String" } }, - stepId: { + version: { readOnly: true, - serializedName: "properties.stepId", + serializedName: "properties.version", type: { name: "Number" } }, - jobExecutionId: { - readOnly: true, - serializedName: "properties.jobExecutionId", + schedule: { + serializedName: "properties.schedule", type: { - name: "Uuid" + name: "Composite", + className: "JobSchedule" } - }, - lifecycle: { + } + } + } +}; + +export const MaxSizeCapability: msRest.CompositeMapper = { + serializedName: "MaxSizeCapability", + type: { + name: "Composite", + className: "MaxSizeCapability", + modelProperties: { + limit: { readOnly: true, - serializedName: "properties.lifecycle", + serializedName: "limit", type: { - name: "String" + name: "Number" } }, - provisioningState: { + unit: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "unit", type: { name: "String" } - }, - createTime: { + } + } + } +}; + +export const LogSizeCapability: msRest.CompositeMapper = { + serializedName: "LogSizeCapability", + type: { + name: "Composite", + className: "LogSizeCapability", + modelProperties: { + limit: { readOnly: true, - serializedName: "properties.createTime", + serializedName: "limit", type: { - name: "DateTime" + name: "Number" } }, - startTime: { + unit: { readOnly: true, - serializedName: "properties.startTime", + serializedName: "unit", type: { - name: "DateTime" + name: "String" } - }, - endTime: { + } + } + } +}; + +export const MaxSizeRangeCapability: msRest.CompositeMapper = { + serializedName: "MaxSizeRangeCapability", + type: { + name: "Composite", + className: "MaxSizeRangeCapability", + modelProperties: { + minValue: { readOnly: true, - serializedName: "properties.endTime", - type: { - name: "DateTime" - } - }, - currentAttempts: { - serializedName: "properties.currentAttempts", + serializedName: "minValue", type: { - name: "Number" + name: "Composite", + className: "MaxSizeCapability" } }, - currentAttemptStartTime: { + maxValue: { readOnly: true, - serializedName: "properties.currentAttemptStartTime", + serializedName: "maxValue", type: { - name: "DateTime" + name: "Composite", + className: "MaxSizeCapability" } }, - lastMessage: { + scaleSize: { readOnly: true, - serializedName: "properties.lastMessage", + serializedName: "scaleSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - target: { + logSize: { readOnly: true, - serializedName: "properties.target", + serializedName: "logSize", type: { name: "Composite", - className: "JobExecutionTarget" - } - } - } - } -}; - -export const JobSchedule: msRest.CompositeMapper = { - serializedName: "JobSchedule", - type: { - name: "Composite", - className: "JobSchedule", - modelProperties: { - startTime: { - serializedName: "startTime", - defaultValue: new Date('0001-01-01T00:00:00Z'), - type: { - name: "DateTime" - } - }, - endTime: { - serializedName: "endTime", - defaultValue: new Date('9999-12-31T11:59:59Z'), - type: { - name: "DateTime" + className: "LogSizeCapability" } }, - type: { - serializedName: "type", - defaultValue: 'Once', + status: { + readOnly: true, + serializedName: "status", type: { name: "Enum", allowedValues: [ - "Once", - "Recurring" + "Visible", + "Available", + "Default", + "Disabled" ] } }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - interval: { - serializedName: "interval", + reason: { + serializedName: "reason", type: { name: "String" } @@ -4331,61 +4092,58 @@ export const JobSchedule: msRest.CompositeMapper = { } }; -export const Job: msRest.CompositeMapper = { - serializedName: "Job", +export const PerformanceLevelCapability: msRest.CompositeMapper = { + serializedName: "PerformanceLevelCapability", type: { name: "Composite", - className: "Job", + className: "PerformanceLevelCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", - defaultValue: '', - type: { - name: "String" - } - }, - version: { + value: { readOnly: true, - serializedName: "properties.version", + serializedName: "value", type: { name: "Number" } }, - schedule: { - serializedName: "properties.schedule", + unit: { + readOnly: true, + serializedName: "unit", type: { - name: "Composite", - className: "JobSchedule" + name: "String" } } } } }; -export const JobStepAction: msRest.CompositeMapper = { - serializedName: "JobStepAction", +export const LicenseTypeCapability: msRest.CompositeMapper = { + serializedName: "LicenseTypeCapability", type: { name: "Composite", - className: "JobStepAction", + className: "LicenseTypeCapability", modelProperties: { - type: { - serializedName: "type", - defaultValue: 'TSql', + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - source: { - serializedName: "source", - defaultValue: 'Inline', + status: { + readOnly: true, + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - value: { - required: true, - serializedName: "value", + reason: { + serializedName: "reason", type: { name: "String" } @@ -4394,489 +4152,462 @@ export const JobStepAction: msRest.CompositeMapper = { } }; -export const JobStepOutput: msRest.CompositeMapper = { - serializedName: "JobStepOutput", +export const AutoPauseDelayTimeRange: msRest.CompositeMapper = { + serializedName: "AutoPauseDelayTimeRange", type: { name: "Composite", - className: "JobStepOutput", + className: "AutoPauseDelayTimeRange", modelProperties: { - type: { - serializedName: "type", - defaultValue: 'SqlDatabase', - type: { - name: "String" - } - }, - subscriptionId: { - serializedName: "subscriptionId", - type: { - name: "Uuid" - } - }, - resourceGroupName: { - serializedName: "resourceGroupName", + minValue: { + readOnly: true, + serializedName: "minValue", type: { - name: "String" + name: "Number" } }, - serverName: { - required: true, - serializedName: "serverName", + maxValue: { + readOnly: true, + serializedName: "maxValue", type: { - name: "String" + name: "Number" } }, - databaseName: { - required: true, - serializedName: "databaseName", + stepSize: { + readOnly: true, + serializedName: "stepSize", type: { - name: "String" + name: "Number" } }, - schemaName: { - serializedName: "schemaName", - defaultValue: 'dbo', + default: { + readOnly: true, + serializedName: "default", type: { - name: "String" + name: "Number" } }, - tableName: { - required: true, - serializedName: "tableName", + unit: { + readOnly: true, + serializedName: "unit", type: { name: "String" } }, - credential: { - required: true, - serializedName: "credential", + doNotPauseValue: { + readOnly: true, + serializedName: "doNotPauseValue", type: { - name: "String" + name: "Number" } } } } }; -export const JobStepExecutionOptions: msRest.CompositeMapper = { - serializedName: "JobStepExecutionOptions", +export const MinCapacityCapability: msRest.CompositeMapper = { + serializedName: "MinCapacityCapability", type: { name: "Composite", - className: "JobStepExecutionOptions", + className: "MinCapacityCapability", modelProperties: { - timeoutSeconds: { - serializedName: "timeoutSeconds", - defaultValue: 43200, + value: { + readOnly: true, + serializedName: "value", type: { name: "Number" } }, - retryAttempts: { - serializedName: "retryAttempts", - defaultValue: 10, - type: { - name: "Number" - } - }, - initialRetryIntervalSeconds: { - serializedName: "initialRetryIntervalSeconds", - defaultValue: 1, - type: { - name: "Number" - } - }, - maximumRetryIntervalSeconds: { - serializedName: "maximumRetryIntervalSeconds", - defaultValue: 120, + status: { + readOnly: true, + serializedName: "status", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - retryIntervalBackoffMultiplier: { - serializedName: "retryIntervalBackoffMultiplier", - defaultValue: 2, + reason: { + serializedName: "reason", type: { - name: "Number" + name: "String" } } } } }; -export const JobStep: msRest.CompositeMapper = { - serializedName: "JobStep", +export const MaintenanceConfigurationCapability: msRest.CompositeMapper = { + serializedName: "MaintenanceConfigurationCapability", type: { name: "Composite", - className: "JobStep", + className: "MaintenanceConfigurationCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - stepId: { - serializedName: "properties.stepId", - type: { - name: "Number" - } - }, - targetGroup: { - required: true, - serializedName: "properties.targetGroup", - type: { - name: "String" - } - }, - credential: { - required: true, - serializedName: "properties.credential", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - action: { - required: true, - serializedName: "properties.action", + zoneRedundant: { + readOnly: true, + serializedName: "zoneRedundant", type: { - name: "Composite", - className: "JobStepAction" + name: "Boolean" } }, - output: { - serializedName: "properties.output", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Composite", - className: "JobStepOutput" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - executionOptions: { - serializedName: "properties.executionOptions", + reason: { + serializedName: "reason", type: { - name: "Composite", - className: "JobStepExecutionOptions" + name: "String" } } } } }; -export const JobTarget: msRest.CompositeMapper = { - serializedName: "JobTarget", +export const ServiceObjectiveCapability: msRest.CompositeMapper = { + serializedName: "ServiceObjectiveCapability", type: { name: "Composite", - className: "JobTarget", + className: "ServiceObjectiveCapability", modelProperties: { - membershipType: { - serializedName: "membershipType", - defaultValue: 'Include', - type: { - name: "Enum", - allowedValues: [ - "Include", - "Exclude" - ] - } - }, - type: { - required: true, - serializedName: "type", + id: { + readOnly: true, + serializedName: "id", type: { - name: "String" + name: "Uuid" } }, - serverName: { - serializedName: "serverName", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - databaseName: { - serializedName: "databaseName", + supportedMaxSizes: { + readOnly: true, + serializedName: "supportedMaxSizes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } }, - elasticPoolName: { - serializedName: "elasticPoolName", + performanceLevel: { + readOnly: true, + serializedName: "performanceLevel", type: { - name: "String" + name: "Composite", + className: "PerformanceLevelCapability" } }, - shardMapName: { - serializedName: "shardMapName", + sku: { + readOnly: true, + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - refreshCredential: { - serializedName: "refreshCredential", - type: { - name: "String" - } - } - } - } -}; - -export const JobTargetGroup: msRest.CompositeMapper = { - serializedName: "JobTargetGroup", - type: { - name: "Composite", - className: "JobTargetGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - members: { - required: true, - serializedName: "properties.members", + supportedLicenseTypes: { + readOnly: true, + serializedName: "supportedLicenseTypes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "JobTarget" + className: "LicenseTypeCapability" } } } - } - } - } -}; - -export const JobVersion: msRest.CompositeMapper = { - serializedName: "JobVersion", - type: { - name: "Composite", - className: "JobVersion", - modelProperties: { - ...ProxyResource.type.modelProperties - } - } -}; - -export const LongTermRetentionBackup: msRest.CompositeMapper = { - serializedName: "LongTermRetentionBackup", - type: { - name: "Composite", - className: "LongTermRetentionBackup", - modelProperties: { - ...ProxyResource.type.modelProperties, - serverName: { + }, + includedMaxSize: { readOnly: true, - serializedName: "properties.serverName", + serializedName: "includedMaxSize", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - serverCreateTime: { + zoneRedundant: { readOnly: true, - serializedName: "properties.serverCreateTime", + serializedName: "zoneRedundant", type: { - name: "DateTime" + name: "Boolean" } }, - databaseName: { + supportedAutoPauseDelay: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "supportedAutoPauseDelay", type: { - name: "String" + name: "Composite", + className: "AutoPauseDelayTimeRange" } }, - databaseDeletionTime: { + supportedMinCapacities: { readOnly: true, - serializedName: "properties.databaseDeletionTime", + serializedName: "supportedMinCapacities", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MinCapacityCapability" + } + } } }, - backupTime: { + computeModel: { readOnly: true, - serializedName: "properties.backupTime", + serializedName: "computeModel", type: { - name: "DateTime" + name: "String" } }, - backupExpirationTime: { + supportedMaintenanceConfigurations: { readOnly: true, - serializedName: "properties.backupExpirationTime", + serializedName: "supportedMaintenanceConfigurations", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceConfigurationCapability" + } + } + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const BackupLongTermRetentionPolicy: msRest.CompositeMapper = { - serializedName: "BackupLongTermRetentionPolicy", +export const ReadScaleCapability: msRest.CompositeMapper = { + serializedName: "ReadScaleCapability", type: { name: "Composite", - className: "BackupLongTermRetentionPolicy", + className: "ReadScaleCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - weeklyRetention: { - serializedName: "properties.weeklyRetention", + maxNumberOfReplicas: { + readOnly: true, + serializedName: "maxNumberOfReplicas", type: { - name: "String" + name: "Number" } }, - monthlyRetention: { - serializedName: "properties.monthlyRetention", + status: { + readOnly: true, + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - yearlyRetention: { - serializedName: "properties.yearlyRetention", + reason: { + serializedName: "reason", type: { name: "String" } - }, - weekOfYear: { - serializedName: "properties.weekOfYear", - type: { - name: "Number" - } } } } }; -export const ManagedBackupShortTermRetentionPolicy: msRest.CompositeMapper = { - serializedName: "ManagedBackupShortTermRetentionPolicy", +export const StorageCapability: msRest.CompositeMapper = { + serializedName: "StorageCapability", type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy", + className: "StorageCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + storageAccountType: { + readOnly: true, + serializedName: "storageAccountType", type: { - name: "Number" + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const AutomaticTuningServerOptions: msRest.CompositeMapper = { - serializedName: "AutomaticTuningServerOptions", +export const EditionCapability: msRest.CompositeMapper = { + serializedName: "EditionCapability", type: { name: "Composite", - className: "AutomaticTuningServerOptions", + className: "EditionCapability", modelProperties: { - desiredState: { - serializedName: "desiredState", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "Off", - "On", - "Default" - ] + name: "String" } }, - actualState: { + supportedServiceLevelObjectives: { readOnly: true, - serializedName: "actualState", + serializedName: "supportedServiceLevelObjectives", type: { - name: "Enum", - allowedValues: [ - "Off", - "On" - ] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceObjectiveCapability" + } + } } }, - reasonCode: { + zoneRedundant: { readOnly: true, - serializedName: "reasonCode", + serializedName: "zoneRedundant", type: { - name: "Number" + name: "Boolean" } }, - reasonDesc: { + readScale: { readOnly: true, - serializedName: "reasonDesc", + serializedName: "readScale", type: { - name: "Enum", - allowedValues: [ - "Default", - "Disabled", - "AutoConfigured" - ] + name: "Composite", + className: "ReadScaleCapability" } - } - } - } -}; - -export const ServerAutomaticTuning: msRest.CompositeMapper = { - serializedName: "ServerAutomaticTuning", - type: { - name: "Composite", - className: "ServerAutomaticTuning", - modelProperties: { - ...ProxyResource.type.modelProperties, - desiredState: { - serializedName: "properties.desiredState", + }, + supportedStorageCapabilities: { + readOnly: true, + serializedName: "supportedStorageCapabilities", type: { - name: "Enum", - allowedValues: [ - "Custom", - "Auto", - "Unspecified" - ] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageCapability" + } + } } }, - actualState: { + status: { readOnly: true, - serializedName: "properties.actualState", + serializedName: "status", type: { name: "Enum", allowedValues: [ - "Custom", - "Auto", - "Unspecified" + "Visible", + "Available", + "Default", + "Disabled" ] } }, - options: { - serializedName: "properties.options", + reason: { + serializedName: "reason", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AutomaticTuningServerOptions" - } - } + name: "String" } } } } }; -export const ServerDnsAlias: msRest.CompositeMapper = { - serializedName: "ServerDnsAlias", +export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: msRest.CompositeMapper = { + serializedName: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", type: { name: "Composite", - className: "ServerDnsAlias", + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - azureDnsRecord: { + limit: { readOnly: true, - serializedName: "properties.azureDnsRecord", + serializedName: "limit", + type: { + name: "Number" + } + }, + unit: { + readOnly: true, + serializedName: "unit", type: { name: "String" } - } - } - } -}; - -export const ServerDnsAliasAcquisition: msRest.CompositeMapper = { - serializedName: "ServerDnsAliasAcquisition", - type: { - name: "Composite", - className: "ServerDnsAliasAcquisition", - modelProperties: { - oldServerDnsAliasId: { - serializedName: "oldServerDnsAliasId", + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] + } + }, + reason: { + serializedName: "reason", type: { name: "String" } @@ -4885,163 +4616,242 @@ export const ServerDnsAliasAcquisition: msRest.CompositeMapper = { } }; -export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ServerSecurityAlertPolicy", +export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: msRest.CompositeMapper = { + serializedName: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", type: { name: "Composite", - className: "ServerSecurityAlertPolicy", + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + limit: { + readOnly: true, + serializedName: "limit", type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] + name: "Number" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + unit: { + readOnly: true, + serializedName: "unit", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + supportedPerDatabaseMinPerformanceLevels: { + readOnly: true, + serializedName: "supportedPerDatabaseMinPerformanceLevels", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" } } } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Boolean" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + reason: { + serializedName: "reason", type: { name: "String" } + } + } + } +}; + +export const ElasticPoolPerformanceLevelCapability: msRest.CompositeMapper = { + serializedName: "ElasticPoolPerformanceLevelCapability", + type: { + name: "Composite", + className: "ElasticPoolPerformanceLevelCapability", + modelProperties: { + performanceLevel: { + readOnly: true, + serializedName: "performanceLevel", + type: { + name: "Composite", + className: "PerformanceLevelCapability" + } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + sku: { + readOnly: true, + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - retentionDays: { - serializedName: "properties.retentionDays", + supportedLicenseTypes: { + readOnly: true, + serializedName: "supportedLicenseTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } + } + }, + maxDatabaseCount: { + readOnly: true, + serializedName: "maxDatabaseCount", type: { name: "Number" } }, - creationTime: { + includedMaxSize: { readOnly: true, - serializedName: "properties.creationTime", + serializedName: "includedMaxSize", type: { - name: "DateTime" + name: "Composite", + className: "MaxSizeCapability" } - } - } - } -}; - -export const RestorableDroppedManagedDatabase: msRest.CompositeMapper = { - serializedName: "RestorableDroppedManagedDatabase", - type: { - name: "Composite", - className: "RestorableDroppedManagedDatabase", - modelProperties: { - ...TrackedResource.type.modelProperties, - databaseName: { + }, + supportedMaxSizes: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "supportedMaxSizes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } }, - creationDate: { + supportedPerDatabaseMaxSizes: { readOnly: true, - serializedName: "properties.creationDate", + serializedName: "supportedPerDatabaseMaxSizes", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaxSizeRangeCapability" + } + } } }, - deletionDate: { + supportedPerDatabaseMaxPerformanceLevels: { readOnly: true, - serializedName: "properties.deletionDate", + serializedName: "supportedPerDatabaseMaxPerformanceLevels", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" + } + } } }, - earliestRestoreDate: { + zoneRedundant: { readOnly: true, - serializedName: "properties.earliestRestoreDate", + serializedName: "zoneRedundant", type: { - name: "DateTime" + name: "Boolean" + } + }, + supportedMaintenanceConfigurations: { + readOnly: true, + serializedName: "supportedMaintenanceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceConfigurationCapability" + } + } + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const RestorePoint: msRest.CompositeMapper = { - serializedName: "RestorePoint", +export const ElasticPoolEditionCapability: msRest.CompositeMapper = { + serializedName: "ElasticPoolEditionCapability", type: { name: "Composite", - className: "RestorePoint", + className: "ElasticPoolEditionCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { + name: { readOnly: true, - serializedName: "location", + serializedName: "name", type: { name: "String" } }, - restorePointType: { + supportedElasticPoolPerformanceLevels: { readOnly: true, - serializedName: "properties.restorePointType", + serializedName: "supportedElasticPoolPerformanceLevels", type: { - name: "Enum", - allowedValues: [ - "CONTINUOUS", - "DISCRETE" - ] + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ElasticPoolPerformanceLevelCapability" + } + } } }, - earliestRestoreDate: { + zoneRedundant: { readOnly: true, - serializedName: "properties.earliestRestoreDate", + serializedName: "zoneRedundant", type: { - name: "DateTime" + name: "Boolean" } }, - restorePointCreationDate: { + status: { readOnly: true, - serializedName: "properties.restorePointCreationDate", + serializedName: "status", type: { - name: "DateTime" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - restorePointLabel: { - readOnly: true, - serializedName: "properties.restorePointLabel", + reason: { + serializedName: "reason", type: { name: "String" } @@ -5050,491 +4860,657 @@ export const RestorePoint: msRest.CompositeMapper = { } }; -export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { - serializedName: "CreateDatabaseRestorePointDefinition", +export const ServerVersionCapability: msRest.CompositeMapper = { + serializedName: "ServerVersionCapability", type: { name: "Composite", - className: "CreateDatabaseRestorePointDefinition", + className: "ServerVersionCapability", modelProperties: { - restorePointLabel: { - required: true, - serializedName: "restorePointLabel", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const ManagedDatabaseSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseSecurityAlertPolicy", - type: { - name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] - } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + supportedEditions: { + readOnly: true, + serializedName: "supportedEditions", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "EditionCapability" } } } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + supportedElasticPoolEditions: { + readOnly: true, + serializedName: "supportedElasticPoolEditions", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ElasticPoolEditionCapability" } } } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Boolean" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + reason: { + serializedName: "reason", type: { name: "String" } - }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + } + } + } +}; + +export const ManagedInstanceMaintenanceConfigurationCapability: msRest.CompositeMapper = { + serializedName: "ManagedInstanceMaintenanceConfigurationCapability", + type: { + name: "Composite", + className: "ManagedInstanceMaintenanceConfigurationCapability", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - retentionDays: { - serializedName: "properties.retentionDays", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", + reason: { + serializedName: "reason", type: { - name: "DateTime" + name: "String" } } } } }; -export const ManagedServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ManagedServerSecurityAlertPolicy", +export const ManagedInstanceVcoresCapability: msRest.CompositeMapper = { + serializedName: "ManagedInstanceVcoresCapability", type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy", + className: "ManagedInstanceVcoresCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "New", - "Enabled", - "Disabled" - ] + name: "String" } }, - disabledAlerts: { - serializedName: "properties.disabledAlerts", + value: { + readOnly: true, + serializedName: "value", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - emailAddresses: { - serializedName: "properties.emailAddresses", + includedMaxSize: { + readOnly: true, + serializedName: "includedMaxSize", + type: { + name: "Composite", + className: "MaxSizeCapability" + } + }, + supportedStorageSizes: { + readOnly: true, + serializedName: "supportedStorageSizes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "MaxSizeRangeCapability" } } } }, - emailAccountAdmins: { - serializedName: "properties.emailAccountAdmins", + instancePoolSupported: { + readOnly: true, + serializedName: "instancePoolSupported", type: { name: "Boolean" } }, - storageEndpoint: { - serializedName: "properties.storageEndpoint", + standaloneSupported: { + readOnly: true, + serializedName: "standaloneSupported", type: { - name: "String" + name: "Boolean" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + supportedMaintenanceConfigurations: { + readOnly: true, + serializedName: "supportedMaintenanceConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceMaintenanceConfigurationCapability" + } + } } }, - retentionDays: { - serializedName: "properties.retentionDays", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", + reason: { + serializedName: "reason", type: { - name: "DateTime" + name: "String" } } } } }; -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", +export const ManagedInstanceFamilyCapability: msRest.CompositeMapper = { + serializedName: "ManagedInstanceFamilyCapability", type: { name: "Composite", - className: "SensitivityLabel", + className: "ManagedInstanceFamilyCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - labelName: { - serializedName: "properties.labelName", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - labelId: { - serializedName: "properties.labelId", + sku: { + readOnly: true, + serializedName: "sku", type: { name: "String" } }, - informationType: { - serializedName: "properties.informationType", + supportedLicenseTypes: { + readOnly: true, + serializedName: "supportedLicenseTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } } }, - informationTypeId: { - serializedName: "properties.informationTypeId", + supportedVcoresValues: { + readOnly: true, + serializedName: "supportedVcoresValues", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceVcoresCapability" + } + } } }, - isDisabled: { + status: { readOnly: true, - serializedName: "properties.isDisabled", + serializedName: "status", type: { - name: "Boolean" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const ManagedInstanceAdministrator: msRest.CompositeMapper = { - serializedName: "ManagedInstanceAdministrator", +export const ManagedInstanceEditionCapability: msRest.CompositeMapper = { + serializedName: "ManagedInstanceEditionCapability", type: { name: "Composite", - className: "ManagedInstanceAdministrator", + className: "ManagedInstanceEditionCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - required: true, - isConstant: true, - serializedName: "properties.administratorType", - defaultValue: 'ActiveDirectory', + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - login: { - required: true, - serializedName: "properties.login", + supportedFamilies: { + readOnly: true, + serializedName: "supportedFamilies", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceFamilyCapability" + } + } } }, - sid: { - required: true, - serializedName: "properties.sid", + supportedStorageCapabilities: { + readOnly: true, + serializedName: "supportedStorageCapabilities", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageCapability" + } + } } }, - tenantId: { - serializedName: "properties.tenantId", + zoneRedundant: { + readOnly: true, + serializedName: "zoneRedundant", type: { - name: "Uuid" + name: "Boolean" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] + } + }, + reason: { + serializedName: "reason", + type: { + name: "String" } } } } }; -export const DatabaseOperation: msRest.CompositeMapper = { - serializedName: "DatabaseOperation", +export const InstancePoolVcoresCapability: msRest.CompositeMapper = { + serializedName: "InstancePoolVcoresCapability", type: { name: "Composite", - className: "DatabaseOperation", + className: "InstancePoolVcoresCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - databaseName: { + name: { readOnly: true, - serializedName: "properties.databaseName", + serializedName: "name", type: { name: "String" } }, - operation: { + value: { readOnly: true, - serializedName: "properties.operation", + serializedName: "value", type: { - name: "String" + name: "Number" } }, - operationFriendlyName: { + storageLimit: { readOnly: true, - serializedName: "properties.operationFriendlyName", + serializedName: "storageLimit", type: { - name: "String" + name: "Composite", + className: "MaxSizeCapability" } }, - percentComplete: { + status: { readOnly: true, - serializedName: "properties.percentComplete", + serializedName: "status", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - serverName: { - readOnly: true, - serializedName: "properties.serverName", + reason: { + serializedName: "reason", type: { name: "String" } - }, - startTime: { + } + } + } +}; + +export const InstancePoolFamilyCapability: msRest.CompositeMapper = { + serializedName: "InstancePoolFamilyCapability", + type: { + name: "Composite", + className: "InstancePoolFamilyCapability", + modelProperties: { + name: { readOnly: true, - serializedName: "properties.startTime", + serializedName: "name", type: { - name: "DateTime" + name: "String" } }, - state: { + supportedLicenseTypes: { readOnly: true, - serializedName: "properties.state", + serializedName: "supportedLicenseTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LicenseTypeCapability" + } + } } }, - errorCode: { + supportedVcoresValues: { readOnly: true, - serializedName: "properties.errorCode", + serializedName: "supportedVcoresValues", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePoolVcoresCapability" + } + } } }, - errorDescription: { + status: { readOnly: true, - serializedName: "properties.errorDescription", + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", + reason: { + serializedName: "reason", type: { - name: "Number" + name: "String" } - }, - isUserError: { + } + } + } +}; + +export const InstancePoolEditionCapability: msRest.CompositeMapper = { + serializedName: "InstancePoolEditionCapability", + type: { + name: "Composite", + className: "InstancePoolEditionCapability", + modelProperties: { + name: { readOnly: true, - serializedName: "properties.isUserError", + serializedName: "name", type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { + supportedFamilies: { readOnly: true, - serializedName: "properties.estimatedCompletionTime", + serializedName: "supportedFamilies", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePoolFamilyCapability" + } + } } }, - description: { + status: { readOnly: true, - serializedName: "properties.description", + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", + reason: { + serializedName: "reason", type: { - name: "Boolean" + name: "String" } } } } }; -export const ElasticPoolOperation: msRest.CompositeMapper = { - serializedName: "ElasticPoolOperation", +export const ManagedInstanceVersionCapability: msRest.CompositeMapper = { + serializedName: "ManagedInstanceVersionCapability", type: { name: "Composite", - className: "ElasticPoolOperation", + className: "ManagedInstanceVersionCapability", modelProperties: { - ...ProxyResource.type.modelProperties, - elasticPoolName: { + name: { readOnly: true, - serializedName: "properties.elasticPoolName", + serializedName: "name", type: { name: "String" } }, - operation: { + supportedEditions: { readOnly: true, - serializedName: "properties.operation", + serializedName: "supportedEditions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceEditionCapability" + } + } } }, - operationFriendlyName: { + supportedInstancePoolEditions: { readOnly: true, - serializedName: "properties.operationFriendlyName", + serializedName: "supportedInstancePoolEditions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePoolEditionCapability" + } + } } }, - percentComplete: { + status: { readOnly: true, - serializedName: "properties.percentComplete", + serializedName: "status", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - serverName: { + reason: { + serializedName: "reason", + type: { + name: "String" + } + } + } + } +}; + +export const LocationCapabilities: msRest.CompositeMapper = { + serializedName: "LocationCapabilities", + type: { + name: "Composite", + className: "LocationCapabilities", + modelProperties: { + name: { readOnly: true, - serializedName: "properties.serverName", + serializedName: "name", type: { name: "String" } }, - startTime: { + supportedServerVersions: { readOnly: true, - serializedName: "properties.startTime", + serializedName: "supportedServerVersions", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVersionCapability" + } + } } }, - state: { + supportedManagedInstanceVersions: { readOnly: true, - serializedName: "properties.state", + serializedName: "supportedManagedInstanceVersions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstanceVersionCapability" + } + } } }, - errorCode: { + status: { readOnly: true, - serializedName: "properties.errorCode", + serializedName: "status", type: { - name: "Number" + name: "Enum", + allowedValues: [ + "Visible", + "Available", + "Default", + "Disabled" + ] } }, - errorDescription: { - readOnly: true, - serializedName: "properties.errorDescription", + reason: { + serializedName: "reason", type: { name: "String" } - }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", + } + } + } +}; + +export const CopyLongTermRetentionBackupParameters: msRest.CompositeMapper = { + serializedName: "CopyLongTermRetentionBackupParameters", + type: { + name: "Composite", + className: "CopyLongTermRetentionBackupParameters", + modelProperties: { + targetSubscriptionId: { + serializedName: "properties.targetSubscriptionId", type: { - name: "Number" + name: "String" } }, - isUserError: { - readOnly: true, - serializedName: "properties.isUserError", + targetResourceGroup: { + serializedName: "properties.targetResourceGroup", type: { - name: "Boolean" + name: "String" } }, - estimatedCompletionTime: { - readOnly: true, - serializedName: "properties.estimatedCompletionTime", + targetServerResourceId: { + serializedName: "properties.targetServerResourceId", type: { - name: "DateTime" + name: "String" } }, - description: { - readOnly: true, - serializedName: "properties.description", + targetServerFullyQualifiedDomainName: { + serializedName: "properties.targetServerFullyQualifiedDomainName", type: { name: "String" } }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", - type: { - name: "Boolean" - } - } - } - } -}; - -export const MaxSizeCapability: msRest.CompositeMapper = { - serializedName: "MaxSizeCapability", - type: { - name: "Composite", - className: "MaxSizeCapability", - modelProperties: { - limit: { - readOnly: true, - serializedName: "limit", + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", type: { - name: "Number" + name: "String" } }, - unit: { - readOnly: true, - serializedName: "unit", + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", type: { name: "String" } @@ -5543,83 +5519,58 @@ export const MaxSizeCapability: msRest.CompositeMapper = { } }; -export const LogSizeCapability: msRest.CompositeMapper = { - serializedName: "LogSizeCapability", +export const LongTermRetentionBackupOperationResult: msRest.CompositeMapper = { + serializedName: "LongTermRetentionBackupOperationResult", type: { name: "Composite", - className: "LogSizeCapability", + className: "LongTermRetentionBackupOperationResult", modelProperties: { - limit: { + ...ProxyResource.type.modelProperties, + requestId: { readOnly: true, - serializedName: "limit", + serializedName: "properties.requestId", type: { - name: "Number" + name: "Uuid" } }, - unit: { + operationType: { readOnly: true, - serializedName: "unit", + serializedName: "properties.operationType", type: { name: "String" } - } - } - } -}; - -export const MaxSizeRangeCapability: msRest.CompositeMapper = { - serializedName: "MaxSizeRangeCapability", - type: { - name: "Composite", - className: "MaxSizeRangeCapability", - modelProperties: { - minValue: { - readOnly: true, - serializedName: "minValue", - type: { - name: "Composite", - className: "MaxSizeCapability" - } }, - maxValue: { + fromBackupResourceId: { readOnly: true, - serializedName: "maxValue", + serializedName: "properties.fromBackupResourceId", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - scaleSize: { + toBackupResourceId: { readOnly: true, - serializedName: "scaleSize", + serializedName: "properties.toBackupResourceId", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "String" } }, - logSize: { + targetBackupStorageRedundancy: { readOnly: true, - serializedName: "logSize", + serializedName: "properties.targetBackupStorageRedundancy", type: { - name: "Composite", - className: "LogSizeCapability" + name: "String" } }, status: { readOnly: true, - serializedName: "status", + serializedName: "properties.status", type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "String" } }, - reason: { - serializedName: "reason", + message: { + readOnly: true, + serializedName: "properties.message", type: { name: "String" } @@ -5628,22 +5579,14 @@ export const MaxSizeRangeCapability: msRest.CompositeMapper = { } }; -export const PerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "PerformanceLevelCapability", +export const UpdateLongTermRetentionBackupParameters: msRest.CompositeMapper = { + serializedName: "UpdateLongTermRetentionBackupParameters", type: { name: "Composite", - className: "PerformanceLevelCapability", + className: "UpdateLongTermRetentionBackupParameters", modelProperties: { - value: { - readOnly: true, - serializedName: "value", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } @@ -5652,34 +5595,64 @@ export const PerformanceLevelCapability: msRest.CompositeMapper = { } }; -export const LicenseTypeCapability: msRest.CompositeMapper = { - serializedName: "LicenseTypeCapability", +export const LongTermRetentionBackup: msRest.CompositeMapper = { + serializedName: "LongTermRetentionBackup", type: { name: "Composite", - className: "LicenseTypeCapability", + className: "LongTermRetentionBackup", modelProperties: { - name: { + ...ProxyResource.type.modelProperties, + serverName: { readOnly: true, - serializedName: "name", + serializedName: "properties.serverName", type: { name: "String" } }, - status: { + serverCreateTime: { readOnly: true, - serializedName: "status", + serializedName: "properties.serverCreateTime", type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "DateTime" } }, - reason: { - serializedName: "reason", + databaseName: { + readOnly: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + databaseDeletionTime: { + readOnly: true, + serializedName: "properties.databaseDeletionTime", + type: { + name: "DateTime" + } + }, + backupTime: { + readOnly: true, + serializedName: "properties.backupTime", + type: { + name: "DateTime" + } + }, + backupExpirationTime: { + readOnly: true, + serializedName: "properties.backupExpirationTime", + type: { + name: "DateTime" + } + }, + backupStorageRedundancy: { + readOnly: true, + serializedName: "properties.backupStorageRedundancy", + type: { + name: "String" + } + }, + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } @@ -5688,91 +5661,58 @@ export const LicenseTypeCapability: msRest.CompositeMapper = { } }; -export const ServiceObjectiveCapability: msRest.CompositeMapper = { - serializedName: "ServiceObjectiveCapability", +export const ManagedInstanceLongTermRetentionBackup: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionBackup", type: { name: "Composite", - className: "ServiceObjectiveCapability", + className: "ManagedInstanceLongTermRetentionBackup", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "Uuid" - } - }, - name: { + ...ProxyResource.type.modelProperties, + managedInstanceName: { readOnly: true, - serializedName: "name", + serializedName: "properties.managedInstanceName", type: { name: "String" } }, - supportedMaxSizes: { + managedInstanceCreateTime: { readOnly: true, - serializedName: "supportedMaxSizes", + serializedName: "properties.managedInstanceCreateTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "DateTime" } }, - performanceLevel: { + databaseName: { readOnly: true, - serializedName: "performanceLevel", + serializedName: "properties.databaseName", type: { - name: "Composite", - className: "PerformanceLevelCapability" + name: "String" } }, - sku: { + databaseDeletionTime: { readOnly: true, - serializedName: "sku", + serializedName: "properties.databaseDeletionTime", type: { - name: "Composite", - className: "Sku" + name: "DateTime" } }, - supportedLicenseTypes: { + backupTime: { readOnly: true, - serializedName: "supportedLicenseTypes", + serializedName: "properties.backupTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "DateTime" } }, - includedMaxSize: { + backupExpirationTime: { readOnly: true, - serializedName: "includedMaxSize", + serializedName: "properties.backupExpirationTime", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "DateTime" } }, - status: { + backupStorageRedundancy: { readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", + serializedName: "properties.backupStorageRedundancy", type: { name: "String" } @@ -5781,97 +5721,61 @@ export const ServiceObjectiveCapability: msRest.CompositeMapper = { } }; -export const EditionCapability: msRest.CompositeMapper = { - serializedName: "EditionCapability", +export const LongTermRetentionPolicy: msRest.CompositeMapper = { + serializedName: "LongTermRetentionPolicy", type: { name: "Composite", - className: "EditionCapability", + className: "LongTermRetentionPolicy", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - supportedServiceLevelObjectives: { - readOnly: true, - serializedName: "supportedServiceLevelObjectives", + monthlyRetention: { + serializedName: "properties.monthlyRetention", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceObjectiveCapability" - } - } + name: "String" } }, - zoneRedundant: { - readOnly: true, - serializedName: "zoneRedundant", + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { - name: "Boolean" - } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "String" } }, - reason: { - serializedName: "reason", + weekOfYear: { + serializedName: "properties.weekOfYear", type: { - name: "String" + name: "Number" } } } } }; -export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", +export const MaintenanceWindowTimeRange: msRest.CompositeMapper = { + serializedName: "MaintenanceWindowTimeRange", type: { name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability", + className: "MaintenanceWindowTimeRange", modelProperties: { - limit: { - readOnly: true, - serializedName: "limit", - type: { - name: "Number" - } - }, - unit: { - readOnly: true, - serializedName: "unit", + dayOfWeek: { + serializedName: "dayOfWeek", type: { name: "String" } }, - status: { - readOnly: true, - serializedName: "status", + startTime: { + serializedName: "startTime", type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "String" } }, - reason: { - serializedName: "reason", + duration: { + serializedName: "duration", type: { name: "String" } @@ -5880,54 +5784,114 @@ export const ElasticPoolPerDatabaseMinPerformanceLevelCapability: msRest.Composi } }; -export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", +export const MaintenanceWindowOptions: msRest.CompositeMapper = { + serializedName: "MaintenanceWindowOptions", type: { name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability", + className: "MaintenanceWindowOptions", modelProperties: { - limit: { - readOnly: true, - serializedName: "limit", + ...ProxyResource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean" + } + }, + maintenanceWindowCycles: { + serializedName: "properties.maintenanceWindowCycles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MaintenanceWindowTimeRange" + } + } + } + }, + minDurationInMinutes: { + serializedName: "properties.minDurationInMinutes", type: { name: "Number" } }, - unit: { - readOnly: true, - serializedName: "unit", + defaultDurationInMinutes: { + serializedName: "properties.defaultDurationInMinutes", type: { - name: "String" + name: "Number" } }, - supportedPerDatabaseMinPerformanceLevels: { - readOnly: true, - serializedName: "supportedPerDatabaseMinPerformanceLevels", + minCycles: { + serializedName: "properties.minCycles", + type: { + name: "Number" + } + }, + timeGranularityInMinutes: { + serializedName: "properties.timeGranularityInMinutes", + type: { + name: "Number" + } + }, + allowMultipleMaintenanceWindowsPerCycle: { + serializedName: "properties.allowMultipleMaintenanceWindowsPerCycle", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MaintenanceWindows: msRest.CompositeMapper = { + serializedName: "MaintenanceWindows", + type: { + name: "Composite", + className: "MaintenanceWindows", + modelProperties: { + ...ProxyResource.type.modelProperties, + timeRanges: { + serializedName: "properties.timeRanges", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolPerDatabaseMinPerformanceLevelCapability" + className: "MaintenanceWindowTimeRange" } } } - }, - status: { - readOnly: true, - serializedName: "status", + } + } + } +}; + +export const ManagedBackupShortTermRetentionPolicy: msRest.CompositeMapper = { + serializedName: "ManagedBackupShortTermRetentionPolicy", + type: { + name: "Composite", + className: "ManagedBackupShortTermRetentionPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + retentionDays: { + serializedName: "properties.retentionDays", type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "Number" } - }, - reason: { - serializedName: "reason", + } + } + } +}; + +export const ManagedInstanceQuery: msRest.CompositeMapper = { + serializedName: "ManagedInstanceQuery", + type: { + name: "Composite", + className: "ManagedInstanceQuery", + modelProperties: { + ...ProxyResource.type.modelProperties, + queryText: { + serializedName: "properties.queryText", type: { name: "String" } @@ -5936,410 +5900,301 @@ export const ElasticPoolPerDatabaseMaxPerformanceLevelCapability: msRest.Composi } }; -export const ElasticPoolPerformanceLevelCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerformanceLevelCapability", +export const QueryMetricProperties: msRest.CompositeMapper = { + serializedName: "QueryMetricProperties", type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability", + className: "QueryMetricProperties", modelProperties: { - performanceLevel: { + name: { readOnly: true, - serializedName: "performanceLevel", + serializedName: "name", type: { - name: "Composite", - className: "PerformanceLevelCapability" + name: "String" } }, - sku: { + displayName: { readOnly: true, - serializedName: "sku", + serializedName: "displayName", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - supportedLicenseTypes: { + unit: { readOnly: true, - serializedName: "supportedLicenseTypes", + serializedName: "unit", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "String" } }, - maxDatabaseCount: { + value: { readOnly: true, - serializedName: "maxDatabaseCount", + serializedName: "value", type: { name: "Number" } }, - includedMaxSize: { + min: { readOnly: true, - serializedName: "includedMaxSize", + serializedName: "min", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "Number" } }, - supportedMaxSizes: { + max: { readOnly: true, - serializedName: "supportedMaxSizes", + serializedName: "max", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "Number" } }, - supportedPerDatabaseMaxSizes: { + avg: { readOnly: true, - serializedName: "supportedPerDatabaseMaxSizes", + serializedName: "avg", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MaxSizeRangeCapability" - } - } + name: "Number" } }, - supportedPerDatabaseMaxPerformanceLevels: { + sum: { readOnly: true, - serializedName: "supportedPerDatabaseMaxPerformanceLevels", + serializedName: "sum", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ElasticPoolPerDatabaseMaxPerformanceLevelCapability" - } - } + name: "Number" } }, - status: { + stdev: { readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", + serializedName: "stdev", type: { - name: "String" + name: "Number" } } } } }; -export const ElasticPoolEditionCapability: msRest.CompositeMapper = { - serializedName: "ElasticPoolEditionCapability", +export const QueryMetricInterval: msRest.CompositeMapper = { + serializedName: "QueryMetricInterval", type: { name: "Composite", - className: "ElasticPoolEditionCapability", + className: "QueryMetricInterval", modelProperties: { - name: { + intervalStartTime: { readOnly: true, - serializedName: "name", + serializedName: "intervalStartTime", type: { name: "String" } }, - supportedElasticPoolPerformanceLevels: { + intervalType: { readOnly: true, - serializedName: "supportedElasticPoolPerformanceLevels", + serializedName: "intervalType", + type: { + name: "String" + } + }, + executionCount: { + readOnly: true, + serializedName: "executionCount", + type: { + name: "Number" + } + }, + metrics: { + serializedName: "metrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolPerformanceLevelCapability" + className: "QueryMetricProperties" } } } - }, - zoneRedundant: { + } + } + } +}; + +export const QueryStatisticsProperties: msRest.CompositeMapper = { + serializedName: "QueryStatisticsProperties", + type: { + name: "Composite", + className: "QueryStatisticsProperties", + modelProperties: { + databaseName: { readOnly: true, - serializedName: "zoneRedundant", + serializedName: "databaseName", type: { - name: "Boolean" + name: "String" } }, - status: { + queryId: { readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", + serializedName: "queryId", type: { name: "String" } - } - } - } -}; - -export const ServerVersionCapability: msRest.CompositeMapper = { - serializedName: "ServerVersionCapability", - type: { - name: "Composite", - className: "ServerVersionCapability", - modelProperties: { - name: { + }, + startTime: { readOnly: true, - serializedName: "name", + serializedName: "startTime", type: { name: "String" } }, - supportedEditions: { + endTime: { readOnly: true, - serializedName: "supportedEditions", + serializedName: "endTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EditionCapability" - } - } + name: "String" } }, - supportedElasticPoolEditions: { - readOnly: true, - serializedName: "supportedElasticPoolEditions", + intervals: { + serializedName: "intervals", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolEditionCapability" + className: "QueryMetricInterval" } } } - }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } } } } }; -export const ManagedInstanceVcoresCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVcoresCapability", +export const QueryStatistics: msRest.CompositeMapper = { + serializedName: "QueryStatistics", type: { name: "Composite", - className: "ManagedInstanceVcoresCapability", + className: "QueryStatistics", modelProperties: { - name: { + ...ProxyResource.type.modelProperties, + databaseName: { readOnly: true, - serializedName: "name", + serializedName: "properties.databaseName", type: { name: "String" } }, - value: { + queryId: { readOnly: true, - serializedName: "value", + serializedName: "properties.queryId", type: { - name: "Number" + name: "String" } }, - status: { + startTime: { readOnly: true, - serializedName: "status", + serializedName: "properties.startTime", type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "String" } }, - reason: { - serializedName: "reason", + endTime: { + readOnly: true, + serializedName: "properties.endTime", type: { name: "String" } + }, + intervals: { + serializedName: "properties.intervals", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryMetricInterval" + } + } + } } } } }; -export const ManagedInstanceFamilyCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceFamilyCapability", +export const ManagedDatabaseRestoreDetailsResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseRestoreDetailsResult", type: { name: "Composite", - className: "ManagedInstanceFamilyCapability", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { - name: { + ...ProxyResource.type.modelProperties, + status: { readOnly: true, - serializedName: "name", + serializedName: "properties.status", type: { name: "String" } }, - sku: { + currentRestoringFileName: { readOnly: true, - serializedName: "sku", + serializedName: "properties.currentRestoringFileName", type: { name: "String" } }, - supportedLicenseTypes: { + lastRestoredFileName: { readOnly: true, - serializedName: "supportedLicenseTypes", + serializedName: "properties.lastRestoredFileName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LicenseTypeCapability" - } - } + name: "String" } }, - supportedVcoresValues: { + lastRestoredFileTime: { readOnly: true, - serializedName: "supportedVcoresValues", + serializedName: "properties.lastRestoredFileTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVcoresCapability" - } - } + name: "DateTime" } }, - includedMaxSize: { + percentCompleted: { readOnly: true, - serializedName: "includedMaxSize", + serializedName: "properties.percentCompleted", type: { - name: "Composite", - className: "MaxSizeCapability" + name: "Number" } }, - supportedStorageSizes: { + unrestorableFiles: { readOnly: true, - serializedName: "supportedStorageSizes", + serializedName: "properties.unrestorableFiles", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MaxSizeRangeCapability" + name: "String" } } } }, - status: { + numberOfFilesDetected: { readOnly: true, - serializedName: "status", + serializedName: "properties.numberOfFilesDetected", type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "Number" } }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedInstanceEditionCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceEditionCapability", - type: { - name: "Composite", - className: "ManagedInstanceEditionCapability", - modelProperties: { - name: { + lastUploadedFileName: { readOnly: true, - serializedName: "name", + serializedName: "properties.lastUploadedFileName", type: { name: "String" } }, - supportedFamilies: { + lastUploadedFileTime: { readOnly: true, - serializedName: "supportedFamilies", + serializedName: "properties.lastUploadedFileTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceFamilyCapability" - } - } + name: "DateTime" } }, - status: { + blockReason: { readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", + serializedName: "properties.blockReason", type: { name: "String" } @@ -6348,393 +6203,494 @@ export const ManagedInstanceEditionCapability: msRest.CompositeMapper = { } }; -export const ManagedInstanceVersionCapability: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVersionCapability", +export const ManagedDatabaseSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseSecurityAlertPolicy", type: { name: "Composite", - className: "ManagedInstanceVersionCapability", + className: "ManagedDatabaseSecurityAlertPolicy", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + ...ProxyResource.type.modelProperties, + state: { + required: true, + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: [ + "New", + "Enabled", + "Disabled" + ] } }, - supportedEditions: { - readOnly: true, - serializedName: "supportedEditions", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ManagedInstanceEditionCapability" + name: "String" } } } }, - status: { - readOnly: true, - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - } - } - } -}; - -export const LocationCapabilities: msRest.CompositeMapper = { - serializedName: "LocationCapabilities", - type: { - name: "Composite", - className: "LocationCapabilities", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - supportedServerVersions: { - readOnly: true, - serializedName: "supportedServerVersions", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ServerVersionCapability" + name: "String" } } } }, - supportedManagedInstanceVersions: { - readOnly: true, - serializedName: "supportedManagedInstanceVersions", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstanceVersionCapability" - } - } + name: "Boolean" } }, - status: { - readOnly: true, - serializedName: "status", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { - name: "Enum", - allowedValues: [ - "Visible", - "Available", - "Default", - "Disabled" - ] + name: "String" } }, - reason: { - serializedName: "reason", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } } } } }; -export const Database: msRest.CompositeMapper = { - serializedName: "Database", +export const SecurityEventsFilterParameters: msRest.CompositeMapper = { + serializedName: "SecurityEventsFilterParameters", type: { name: "Composite", - className: "Database", + className: "SecurityEventsFilterParameters", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + eventTime: { + serializedName: "eventTime", type: { - name: "Composite", - className: "Sku" + name: "DateTime" } }, - kind: { + showServerRecords: { + serializedName: "showServerRecords", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SecurityEventSqlInjectionAdditionalProperties: msRest.CompositeMapper = { + serializedName: "SecurityEventSqlInjectionAdditionalProperties", + type: { + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties", + modelProperties: { + threatId: { readOnly: true, - serializedName: "kind", + serializedName: "threatId", type: { name: "String" } }, - managedBy: { + statement: { readOnly: true, - serializedName: "managedBy", + serializedName: "statement", type: { name: "String" } }, - createMode: { - serializedName: "properties.createMode", + statementHighlightOffset: { + readOnly: true, + serializedName: "statementHighlightOffset", type: { - name: "String" + name: "Number" } }, - collation: { - serializedName: "properties.collation", + statementHighlightLength: { + readOnly: true, + serializedName: "statementHighlightLength", type: { - name: "String" + name: "Number" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + errorCode: { + readOnly: true, + serializedName: "errorCode", type: { name: "Number" } }, - sampleName: { - serializedName: "properties.sampleName", + errorSeverity: { + readOnly: true, + serializedName: "errorSeverity", type: { - name: "String" + name: "Number" } }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", + errorMessage: { + readOnly: true, + serializedName: "errorMessage", type: { name: "String" } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + } + } + } +}; + +export const SecurityEvent: msRest.CompositeMapper = { + serializedName: "SecurityEvent", + type: { + name: "Composite", + className: "SecurityEvent", + modelProperties: { + ...ProxyResource.type.modelProperties, + eventTime: { + readOnly: true, + serializedName: "properties.eventTime", type: { - name: "String" + name: "DateTime" } }, - status: { + securityEventType: { readOnly: true, - serializedName: "properties.status", + serializedName: "properties.securityEventType", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Undefined", + "SqlInjectionVulnerability", + "SqlInjectionExploit" + ] } }, - databaseId: { + subscription: { readOnly: true, - serializedName: "properties.databaseId", + serializedName: "properties.subscription", type: { - name: "Uuid" + name: "String" } }, - creationDate: { + server: { readOnly: true, - serializedName: "properties.creationDate", + serializedName: "properties.server", type: { - name: "DateTime" + name: "String" } }, - currentServiceObjectiveName: { + database: { readOnly: true, - serializedName: "properties.currentServiceObjectiveName", + serializedName: "properties.database", type: { name: "String" } }, - requestedServiceObjectiveName: { + clientIp: { readOnly: true, - serializedName: "properties.requestedServiceObjectiveName", + serializedName: "properties.clientIp", type: { name: "String" } }, - defaultSecondaryLocation: { + applicationName: { readOnly: true, - serializedName: "properties.defaultSecondaryLocation", + serializedName: "properties.applicationName", type: { name: "String" } }, - failoverGroupId: { + principalName: { readOnly: true, - serializedName: "properties.failoverGroupId", + serializedName: "properties.principalName", type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + securityEventSqlInjectionAdditionalProperties: { + readOnly: true, + serializedName: "properties.securityEventSqlInjectionAdditionalProperties", type: { - name: "DateTime" + name: "Composite", + className: "SecurityEventSqlInjectionAdditionalProperties" } - }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", + } + } + } +}; + +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel", + modelProperties: { + ...ProxyResource.type.modelProperties, + managedBy: { + readOnly: true, + serializedName: "managedBy", type: { - name: "DateTime" + name: "String" } }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", + schemaName: { + readOnly: true, + serializedName: "properties.schemaName", type: { name: "String" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + tableName: { + readOnly: true, + serializedName: "properties.tableName", type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + columnName: { + readOnly: true, + serializedName: "properties.columnName", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + labelName: { + serializedName: "properties.labelName", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + labelId: { + serializedName: "properties.labelId", type: { name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + informationType: { + serializedName: "properties.informationType", type: { - name: "Boolean" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + informationTypeId: { + serializedName: "properties.informationTypeId", type: { name: "String" } }, - maxLogSizeBytes: { + isDisabled: { readOnly: true, - serializedName: "properties.maxLogSizeBytes", + serializedName: "properties.isDisabled", type: { - name: "Number" + name: "Boolean" } }, - earliestRestoreDate: { - readOnly: true, - serializedName: "properties.earliestRestoreDate", + rank: { + serializedName: "properties.rank", type: { - name: "DateTime" + name: "Enum", + allowedValues: [ + "None", + "Low", + "Medium", + "High", + "Critical" + ] + } + } + } + } +}; + +export const SensitivityLabelUpdate: msRest.CompositeMapper = { + serializedName: "SensitivityLabelUpdate", + type: { + name: "Composite", + className: "SensitivityLabelUpdate", + modelProperties: { + ...ProxyResource.type.modelProperties, + op: { + required: true, + serializedName: "properties.op", + type: { + name: "Enum", + allowedValues: [ + "set", + "remove" + ] } }, - readScale: { - serializedName: "properties.readScale", + schema: { + required: true, + serializedName: "properties.schema", type: { name: "String" } }, - readReplicaCount: { - serializedName: "properties.readReplicaCount", + table: { + required: true, + serializedName: "properties.table", type: { - name: "Number" + name: "String" } }, - currentSku: { - readOnly: true, - serializedName: "properties.currentSku", - type: { - name: "Composite", - className: "Sku" - } - }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", - type: { - name: "Number" - } - }, - minCapacity: { - serializedName: "properties.minCapacity", + column: { + required: true, + serializedName: "properties.column", type: { - name: "Number" + name: "String" } }, - pausedDate: { - readOnly: true, - serializedName: "properties.pausedDate", + sensitivityLabel: { + serializedName: "properties.sensitivityLabel", type: { - name: "DateTime" + name: "Composite", + className: "SensitivityLabel" } - }, - resumedDate: { - readOnly: true, - serializedName: "properties.resumedDate", + } + } + } +}; + +export const SensitivityLabelUpdateList: msRest.CompositeMapper = { + serializedName: "SensitivityLabelUpdateList", + type: { + name: "Composite", + className: "SensitivityLabelUpdateList", + modelProperties: { + operations: { + serializedName: "operations", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SensitivityLabelUpdate" + } + } } } } } }; -export const DatabaseUpdate: msRest.CompositeMapper = { - serializedName: "DatabaseUpdate", +export const RecommendedSensitivityLabelUpdate: msRest.CompositeMapper = { + serializedName: "RecommendedSensitivityLabelUpdate", type: { name: "Composite", - className: "DatabaseUpdate", + className: "RecommendedSensitivityLabelUpdate", modelProperties: { - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + op: { + required: true, + serializedName: "properties.op", type: { - name: "Composite", - className: "Sku" + name: "Enum", + allowedValues: [ + "enable", + "disable" + ] } }, - createMode: { - serializedName: "properties.createMode", + schema: { + required: true, + serializedName: "properties.schema", type: { name: "String" } }, - collation: { - serializedName: "properties.collation", + table: { + required: true, + serializedName: "properties.table", type: { name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + column: { + required: true, + serializedName: "properties.column", type: { - name: "Number" + name: "String" } - }, - sampleName: { - serializedName: "properties.sampleName", + } + } + } +}; + +export const RecommendedSensitivityLabelUpdateList: msRest.CompositeMapper = { + serializedName: "RecommendedSensitivityLabelUpdateList", + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdateList", + modelProperties: { + operations: { + serializedName: "operations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedSensitivityLabelUpdate" + } + } } - }, - elasticPoolId: { - serializedName: "properties.elasticPoolId", + } + } + } +}; + +export const ManagedTransparentDataEncryption: msRest.CompositeMapper = { + serializedName: "ManagedTransparentDataEncryption", + type: { + name: "Composite", + className: "ManagedTransparentDataEncryption", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + required: true, + serializedName: "properties.state", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + } + } + } +}; + +export const ManagedDatabase: msRest.CompositeMapper = { + serializedName: "ManagedDatabase", + type: { + name: "Composite", + className: "ManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + collation: { + serializedName: "properties.collation", type: { name: "String" } @@ -6746,13 +6702,6 @@ export const DatabaseUpdate: msRest.CompositeMapper = { name: "String" } }, - databaseId: { - readOnly: true, - serializedName: "properties.databaseId", - type: { - name: "Uuid" - } - }, creationDate: { readOnly: true, serializedName: "properties.creationDate", @@ -6760,18 +6709,17 @@ export const DatabaseUpdate: msRest.CompositeMapper = { name: "DateTime" } }, - currentServiceObjectiveName: { + earliestRestorePoint: { readOnly: true, - serializedName: "properties.currentServiceObjectiveName", + serializedName: "properties.earliestRestorePoint", type: { - name: "String" + name: "DateTime" } }, - requestedServiceObjectiveName: { - readOnly: true, - serializedName: "properties.requestedServiceObjectiveName", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "String" + name: "DateTime" } }, defaultSecondaryLocation: { @@ -6781,125 +6729,188 @@ export const DatabaseUpdate: msRest.CompositeMapper = { name: "String" } }, - failoverGroupId: { - readOnly: true, - serializedName: "properties.failoverGroupId", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + createMode: { + serializedName: "properties.createMode", type: { - name: "DateTime" + name: "String" } }, - sourceDatabaseDeletionDate: { - serializedName: "properties.sourceDatabaseDeletionDate", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { - name: "DateTime" + name: "String" } }, - recoveryServicesRecoveryPointId: { - serializedName: "properties.recoveryServicesRecoveryPointId", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + failoverGroupId: { + readOnly: true, + serializedName: "properties.failoverGroupId", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", + type: { + name: "String" + } + }, + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", type: { name: "Boolean" } }, - licenseType: { - serializedName: "properties.licenseType", + lastBackupName: { + serializedName: "properties.lastBackupName", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedDatabaseUpdate: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseUpdate", + type: { + name: "Composite", + className: "ManagedDatabaseUpdate", + modelProperties: { + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - maxLogSizeBytes: { + status: { readOnly: true, - serializedName: "properties.maxLogSizeBytes", + serializedName: "properties.status", type: { - name: "Number" + name: "String" } }, - earliestRestoreDate: { + creationDate: { readOnly: true, - serializedName: "properties.earliestRestoreDate", + serializedName: "properties.creationDate", type: { name: "DateTime" } }, - readScale: { - serializedName: "properties.readScale", + earliestRestorePoint: { + readOnly: true, + serializedName: "properties.earliestRestorePoint", type: { - name: "String" + name: "DateTime" } }, - readReplicaCount: { - serializedName: "properties.readReplicaCount", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "Number" + name: "DateTime" } }, - currentSku: { + defaultSecondaryLocation: { readOnly: true, - serializedName: "properties.currentSku", + serializedName: "properties.defaultSecondaryLocation", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - autoPauseDelay: { - serializedName: "properties.autoPauseDelay", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { - name: "Number" + name: "String" } }, - minCapacity: { - serializedName: "properties.minCapacity", + createMode: { + serializedName: "properties.createMode", type: { - name: "Number" + name: "String" } }, - pausedDate: { - readOnly: true, - serializedName: "properties.pausedDate", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { - name: "DateTime" + name: "String" } }, - resumedDate: { + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", + type: { + name: "String" + } + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", + type: { + name: "String" + } + }, + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", + type: { + name: "String" + } + }, + failoverGroupId: { readOnly: true, - serializedName: "properties.resumedDate", + serializedName: "properties.failoverGroupId", type: { - name: "DateTime" + 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" } }, tags: { @@ -6917,15 +6928,15 @@ export const DatabaseUpdate: msRest.CompositeMapper = { } }; -export const ResourceMoveDefinition: msRest.CompositeMapper = { - serializedName: "ResourceMoveDefinition", +export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { + serializedName: "CompleteDatabaseRestoreDefinition", type: { name: "Composite", - className: "ResourceMoveDefinition", + className: "CompleteDatabaseRestoreDefinition", modelProperties: { - id: { + lastBackupName: { required: true, - serializedName: "id", + serializedName: "lastBackupName", type: { name: "String" } @@ -6934,42 +6945,71 @@ export const ResourceMoveDefinition: msRest.CompositeMapper = { } }; -export const ElasticPoolPerDatabaseSettings: msRest.CompositeMapper = { - serializedName: "ElasticPoolPerDatabaseSettings", +export const ManagedInstanceAdministrator: msRest.CompositeMapper = { + serializedName: "ManagedInstanceAdministrator", type: { name: "Composite", - className: "ElasticPoolPerDatabaseSettings", + className: "ManagedInstanceAdministrator", modelProperties: { - minCapacity: { - serializedName: "minCapacity", + ...ProxyResource.type.modelProperties, + administratorType: { + required: true, + isConstant: true, + serializedName: "properties.administratorType", + defaultValue: 'ActiveDirectory', type: { - name: "Number" + name: "String" } }, - maxCapacity: { - serializedName: "maxCapacity", + login: { + required: true, + serializedName: "properties.login", type: { - name: "Number" + name: "String" + } + }, + sid: { + required: true, + serializedName: "properties.sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "Uuid" } } } } }; -export const ElasticPool: msRest.CompositeMapper = { - serializedName: "ElasticPool", +export const ManagedInstanceAzureADOnlyAuthentication: msRest.CompositeMapper = { + serializedName: "ManagedInstanceAzureADOnlyAuthentication", type: { name: "Composite", - className: "ElasticPool", + className: "ManagedInstanceAzureADOnlyAuthentication", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + azureADOnlyAuthentication: { + required: true, + serializedName: "properties.azureADOnlyAuthentication", type: { - name: "Composite", - className: "Sku" + name: "Boolean" } - }, + } + } + } +}; + +export const ManagedInstanceEncryptionProtector: msRest.CompositeMapper = { + serializedName: "ManagedInstanceEncryptionProtector", + type: { + name: "Composite", + className: "ManagedInstanceEncryptionProtector", + modelProperties: { + ...ProxyResource.type.modelProperties, kind: { readOnly: true, serializedName: "kind", @@ -6977,248 +7017,381 @@ export const ElasticPool: msRest.CompositeMapper = { name: "String" } }, - state: { - readOnly: true, - serializedName: "properties.state", + serverKeyName: { + serializedName: "properties.serverKeyName", type: { name: "String" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + serverKeyType: { + required: true, + serializedName: "properties.serverKeyType", type: { - name: "DateTime" + name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + uri: { + readOnly: true, + serializedName: "properties.uri", type: { - name: "Number" + name: "String" } }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + thumbprint: { + readOnly: true, + serializedName: "properties.thumbprint", type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" + name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + autoRotationEnabled: { + serializedName: "properties.autoRotationEnabled", type: { name: "Boolean" } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } } } } }; -export const ElasticPoolUpdate: msRest.CompositeMapper = { - serializedName: "ElasticPoolUpdate", +export const ManagedInstanceKey: msRest.CompositeMapper = { + serializedName: "ManagedInstanceKey", type: { name: "Composite", - className: "ElasticPoolUpdate", + className: "ManagedInstanceKey", modelProperties: { - sku: { - serializedName: "sku", + ...ProxyResource.type.modelProperties, + kind: { + readOnly: true, + serializedName: "kind", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - maxSizeBytes: { - serializedName: "properties.maxSizeBytes", + serverKeyType: { + required: true, + serializedName: "properties.serverKeyType", type: { - name: "Number" + name: "String" } }, - perDatabaseSettings: { - serializedName: "properties.perDatabaseSettings", + uri: { + serializedName: "properties.uri", type: { - name: "Composite", - className: "ElasticPoolPerDatabaseSettings" + name: "String" } }, - zoneRedundant: { - serializedName: "properties.zoneRedundant", + thumbprint: { + readOnly: true, + serializedName: "properties.thumbprint", type: { - name: "Boolean" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { - name: "String" + name: "DateTime" } }, - tags: { - serializedName: "tags", + autoRotationEnabled: { + readOnly: true, + serializedName: "properties.autoRotationEnabled", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Boolean" } } } } }; -export const VulnerabilityAssessmentScanError: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanError", +export const ManagedInstanceLongTermRetentionPolicy: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionPolicy", type: { name: "Composite", - className: "VulnerabilityAssessmentScanError", + className: "ManagedInstanceLongTermRetentionPolicy", modelProperties: { - code: { - readOnly: true, - serializedName: "code", + ...ProxyResource.type.modelProperties, + weeklyRetention: { + serializedName: "properties.weeklyRetention", type: { name: "String" } }, - message: { - readOnly: true, - serializedName: "message", + monthlyRetention: { + serializedName: "properties.monthlyRetention", + type: { + name: "String" + } + }, + yearlyRetention: { + serializedName: "properties.yearlyRetention", type: { name: "String" } + }, + weekOfYear: { + serializedName: "properties.weekOfYear", + type: { + name: "Number" + } } } } }; -export const VulnerabilityAssessmentScanRecord: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanRecord", +export const UpsertManagedServerOperationParameters: msRest.CompositeMapper = { + serializedName: "UpsertManagedServerOperationParameters", type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord", + className: "UpsertManagedServerOperationParameters", modelProperties: { - ...ProxyResource.type.modelProperties, - scanId: { - readOnly: true, - serializedName: "properties.scanId", + family: { + serializedName: "family", type: { name: "String" } }, - triggerType: { - readOnly: true, - serializedName: "properties.triggerType", + tier: { + serializedName: "tier", type: { name: "String" } }, - state: { - readOnly: true, - serializedName: "properties.state", + vCores: { + serializedName: "vCores", type: { - name: "String" + name: "Number" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", + storageSizeInGB: { + serializedName: "storageSizeInGB", type: { - name: "DateTime" + name: "Number" } - }, - endTime: { + } + } + } +}; + +export const ManagedInstanceOperationParametersPair: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationParametersPair", + type: { + name: "Composite", + className: "ManagedInstanceOperationParametersPair", + modelProperties: { + currentParameters: { readOnly: true, - serializedName: "properties.endTime", + serializedName: "currentParameters", type: { - name: "DateTime" + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - errors: { + requestedParameters: { readOnly: true, - serializedName: "properties.errors", + serializedName: "requestedParameters", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VulnerabilityAssessmentScanError" - } - } + name: "Composite", + className: "UpsertManagedServerOperationParameters" + } + } + } + } +}; + +export const UpsertManagedServerOperationStep: msRest.CompositeMapper = { + serializedName: "UpsertManagedServerOperationStep", + type: { + name: "Composite", + className: "UpsertManagedServerOperationStep", + modelProperties: { + order: { + serializedName: "order", + type: { + name: "Number" } }, - storageContainerPath: { - readOnly: true, - serializedName: "properties.storageContainerPath", + name: { + serializedName: "name", type: { name: "String" } }, - numberOfFailedSecurityChecks: { - readOnly: true, - serializedName: "properties.numberOfFailedSecurityChecks", + status: { + serializedName: "status", type: { - name: "Number" + name: "String" } } } } }; -export const DatabaseVulnerabilityAssessmentScansExport: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentScansExport", +export const ManagedInstanceOperationSteps: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationSteps", type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentScansExport", + className: "ManagedInstanceOperationSteps", modelProperties: { - ...ProxyResource.type.modelProperties, - exportedReportLocation: { + totalSteps: { readOnly: true, - serializedName: "properties.exportedReportLocation", + serializedName: "totalSteps", type: { name: "String" } + }, + currentStep: { + readOnly: true, + serializedName: "currentStep", + type: { + name: "Number" + } + }, + stepsList: { + readOnly: true, + serializedName: "stepsList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpsertManagedServerOperationStep" + } + } + } } } } }; -export const InstanceFailoverGroupReadWriteEndpoint: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroupReadWriteEndpoint", +export const ManagedInstanceOperation: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperation", type: { name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint", + className: "ManagedInstanceOperation", modelProperties: { - failoverPolicy: { - required: true, - serializedName: "failoverPolicy", + ...ProxyResource.type.modelProperties, + managedInstanceName: { + readOnly: true, + serializedName: "properties.managedInstanceName", type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + operation: { + readOnly: true, + serializedName: "properties.operation", + type: { + name: "String" + } + }, + operationFriendlyName: { + readOnly: true, + serializedName: "properties.operationFriendlyName", + type: { + name: "String" + } + }, + percentComplete: { + readOnly: true, + serializedName: "properties.percentComplete", + type: { + name: "Number" + } + }, + startTime: { + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + errorCode: { + readOnly: true, + serializedName: "properties.errorCode", + type: { + name: "Number" + } + }, + errorDescription: { + readOnly: true, + serializedName: "properties.errorDescription", + type: { + name: "String" + } + }, + errorSeverity: { + readOnly: true, + serializedName: "properties.errorSeverity", type: { name: "Number" } + }, + isUserError: { + readOnly: true, + serializedName: "properties.isUserError", + type: { + name: "Boolean" + } + }, + estimatedCompletionTime: { + readOnly: true, + serializedName: "properties.estimatedCompletionTime", + type: { + name: "DateTime" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + isCancellable: { + readOnly: true, + serializedName: "properties.isCancellable", + type: { + name: "Boolean" + } + }, + operationParameters: { + readOnly: true, + serializedName: "properties.operationParameters", + type: { + name: "Composite", + className: "ManagedInstanceOperationParametersPair" + } + }, + operationSteps: { + readOnly: true, + serializedName: "properties.operationSteps", + type: { + name: "Composite", + className: "ManagedInstanceOperationSteps" + } } } } }; -export const InstanceFailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroupReadOnlyEndpoint", +export const ManagedInstancePrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateEndpointProperty", type: { name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint", + className: "ManagedInstancePrivateEndpointProperty", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + id: { + serializedName: "id", type: { name: "String" } @@ -7227,21 +7400,29 @@ export const InstanceFailoverGroupReadOnlyEndpoint: msRest.CompositeMapper = { } }; -export const PartnerRegionInfo: msRest.CompositeMapper = { - serializedName: "PartnerRegionInfo", +export const ManagedInstancePrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateLinkServiceConnectionStateProperty", type: { name: "Composite", - className: "PartnerRegionInfo", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty", modelProperties: { - location: { - serializedName: "location", + status: { + required: true, + serializedName: "status", type: { name: "String" } }, - replicationRole: { + description: { + required: true, + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { readOnly: true, - serializedName: "replicationRole", + serializedName: "actionsRequired", type: { name: "String" } @@ -7250,20 +7431,29 @@ export const PartnerRegionInfo: msRest.CompositeMapper = { } }; -export const ManagedInstancePairInfo: msRest.CompositeMapper = { - serializedName: "ManagedInstancePairInfo", +export const ManagedInstancePrivateEndpointConnectionProperties: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateEndpointConnectionProperties", type: { name: "Composite", - className: "ManagedInstancePairInfo", + className: "ManagedInstancePrivateEndpointConnectionProperties", modelProperties: { - primaryManagedInstanceId: { - serializedName: "primaryManagedInstanceId", + privateEndpoint: { + serializedName: "privateEndpoint", type: { - name: "String" + name: "Composite", + className: "ManagedInstancePrivateEndpointProperty" } }, - partnerManagedInstanceId: { - serializedName: "partnerManagedInstanceId", + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", type: { name: "String" } @@ -7272,64 +7462,59 @@ export const ManagedInstancePairInfo: msRest.CompositeMapper = { } }; -export const InstanceFailoverGroup: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroup", +export const ManagedInstancePrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateEndpointConnection", type: { name: "Composite", - className: "InstanceFailoverGroup", + className: "ManagedInstancePrivateEndpointConnection", modelProperties: { ...ProxyResource.type.modelProperties, - readWriteEndpoint: { - required: true, - serializedName: "properties.readWriteEndpoint", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "InstanceFailoverGroupReadWriteEndpoint" + className: "ManagedInstancePrivateEndpointProperty" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "InstanceFailoverGroupReadOnlyEndpoint" + className: "ManagedInstancePrivateLinkServiceConnectionStateProperty" } }, - replicationRole: { + provisioningState: { readOnly: true, - serializedName: "properties.replicationRole", + serializedName: "properties.provisioningState", type: { name: "String" } - }, - replicationState: { + } + } + } +}; + +export const ManagedInstancePrivateLinkProperties: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateLinkProperties", + type: { + name: "Composite", + className: "ManagedInstancePrivateLinkProperties", + modelProperties: { + groupId: { readOnly: true, - serializedName: "properties.replicationState", + serializedName: "groupId", type: { name: "String" } }, - partnerRegions: { - required: true, - serializedName: "properties.partnerRegions", + requiredMembers: { + readOnly: true, + serializedName: "requiredMembers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PartnerRegionInfo" - } - } - } - }, - managedInstancePairs: { - required: true, - serializedName: "properties.managedInstancePairs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedInstancePairInfo" + name: "String" } } } @@ -7338,17 +7523,19 @@ export const InstanceFailoverGroup: msRest.CompositeMapper = { } }; -export const BackupShortTermRetentionPolicy: msRest.CompositeMapper = { - serializedName: "BackupShortTermRetentionPolicy", +export const ManagedInstancePrivateLink: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateLink", type: { name: "Composite", - className: "BackupShortTermRetentionPolicy", + className: "ManagedInstancePrivateLink", modelProperties: { ...ProxyResource.type.modelProperties, - retentionDays: { - serializedName: "properties.retentionDays", + properties: { + readOnly: true, + serializedName: "properties", type: { - name: "Number" + name: "Composite", + className: "ManagedInstancePrivateLinkProperties" } } } @@ -7379,195 +7566,194 @@ export const TdeCertificate: msRest.CompositeMapper = { } }; -export const ManagedInstanceKey: msRest.CompositeMapper = { - serializedName: "ManagedInstanceKey", +export const ManagedInstanceVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "ManagedInstanceVulnerabilityAssessment", type: { name: "Composite", - className: "ManagedInstanceKey", + className: "ManagedInstanceVulnerabilityAssessment", modelProperties: { ...ProxyResource.type.modelProperties, - kind: { - readOnly: true, - serializedName: "kind", - type: { - name: "String" - } - }, - serverKeyType: { + storageContainerPath: { required: true, - serializedName: "properties.serverKeyType", + serializedName: "properties.storageContainerPath", type: { name: "String" } }, - uri: { - serializedName: "properties.uri", + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", type: { name: "String" } }, - thumbprint: { - readOnly: true, - serializedName: "properties.thumbprint", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + recurringScans: { + serializedName: "properties.recurringScans", type: { - name: "DateTime" + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" } } } } }; -export const ManagedInstanceEncryptionProtector: msRest.CompositeMapper = { - serializedName: "ManagedInstanceEncryptionProtector", +export const UserIdentity: msRest.CompositeMapper = { + serializedName: "UserIdentity", type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector", + className: "UserIdentity", modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { + principalId: { readOnly: true, - serializedName: "kind", + serializedName: "principalId", type: { - name: "String" + name: "Uuid" } }, - serverKeyName: { - serializedName: "properties.serverKeyName", + clientId: { + readOnly: true, + serializedName: "clientId", type: { - name: "String" + name: "Uuid" } - }, - serverKeyType: { - required: true, - serializedName: "properties.serverKeyType", + } + } + } +}; + +export const ResourceIdentityWithUserAssignedIdentities: msRest.CompositeMapper = { + serializedName: "ResourceIdentityWithUserAssignedIdentities", + type: { + name: "Composite", + className: "ResourceIdentityWithUserAssignedIdentities", + modelProperties: { + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserIdentity" + } + } } }, - uri: { + principalId: { readOnly: true, - serializedName: "properties.uri", + serializedName: "principalId", + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", type: { name: "String" } }, - thumbprint: { + tenantId: { readOnly: true, - serializedName: "properties.thumbprint", + serializedName: "tenantId", type: { - name: "String" + name: "Uuid" } } } } }; -export const RecoverableManagedDatabase: msRest.CompositeMapper = { - serializedName: "RecoverableManagedDatabase", +export const ManagedInstancePecProperty: msRest.CompositeMapper = { + serializedName: "ManagedInstancePecProperty", type: { name: "Composite", - className: "RecoverableManagedDatabase", + className: "ManagedInstancePecProperty", modelProperties: { - ...ProxyResource.type.modelProperties, - lastAvailableBackupDate: { + id: { readOnly: true, - serializedName: "properties.lastAvailableBackupDate", + serializedName: "id", type: { name: "String" } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Composite", + className: "ManagedInstancePrivateEndpointConnectionProperties" + } } } } }; -export const ManagedInstanceVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVulnerabilityAssessment", +export const ManagedInstanceExternalAdministrator: msRest.CompositeMapper = { + serializedName: "ManagedInstanceExternalAdministrator", type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment", + className: "ManagedInstanceExternalAdministrator", modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - required: true, - serializedName: "properties.storageContainerPath", - type: { - name: "String" - } - }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + administratorType: { + serializedName: "administratorType", type: { name: "String" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + principalType: { + serializedName: "principalType", type: { name: "String" } }, - recurringScans: { - serializedName: "properties.recurringScans", - type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" - } - } - } - } -}; - -export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - modelProperties: { - ...ProxyResource.type.modelProperties, - storageContainerPath: { - required: true, - serializedName: "properties.storageContainerPath", + login: { + serializedName: "login", type: { name: "String" } }, - storageContainerSasKey: { - serializedName: "properties.storageContainerSasKey", + sid: { + serializedName: "sid", type: { - name: "String" + name: "Uuid" } }, - storageAccountAccessKey: { - serializedName: "properties.storageAccountAccessKey", + tenantId: { + serializedName: "tenantId", type: { - name: "String" + name: "Uuid" } }, - recurringScans: { - serializedName: "properties.recurringScans", + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", type: { - name: "Composite", - className: "VulnerabilityAssessmentRecurringScansProperties" + name: "Boolean" } } } } }; -export const InstancePool: msRest.CompositeMapper = { - serializedName: "InstancePool", +export const ManagedInstance: msRest.CompositeMapper = { + serializedName: "ManagedInstance", type: { name: "Composite", - className: "InstancePool", + className: "ManagedInstance", modelProperties: { ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentityWithUserAssignedIdentities" + } + }, sku: { serializedName: "sku", type: { @@ -7575,264 +7761,178 @@ export const InstancePool: msRest.CompositeMapper = { className: "Sku" } }, - subnetId: { - required: true, - serializedName: "properties.subnetId", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - vCores: { - required: true, - serializedName: "properties.vCores", + managedInstanceCreateMode: { + serializedName: "properties.managedInstanceCreateMode", type: { - name: "Number" + name: "String" } }, - licenseType: { - required: true, - serializedName: "properties.licenseType", + fullyQualifiedDomainName: { + readOnly: true, + serializedName: "properties.fullyQualifiedDomainName", type: { name: "String" } - } - } - } -}; - -export const InstancePoolUpdate: msRest.CompositeMapper = { - serializedName: "InstancePoolUpdate", - type: { - name: "Composite", - className: "InstancePoolUpdate", - modelProperties: { - tags: { - serializedName: "tags", + }, + administratorLogin: { + serializedName: "properties.administratorLogin", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const Name: msRest.CompositeMapper = { - serializedName: "Name", - type: { - name: "Composite", - className: "Name", - modelProperties: { - value: { - serializedName: "value", + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { name: "String" } }, - localizedValue: { - serializedName: "localizedValue", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } - } - } - } -}; - -export const Usage: msRest.CompositeMapper = { - serializedName: "Usage", - type: { - name: "Composite", - className: "Usage", - modelProperties: { - id: { + }, + state: { readOnly: true, - serializedName: "id", + serializedName: "properties.state", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "Composite", - className: "Name" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - unit: { - readOnly: true, - serializedName: "unit", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - currentValue: { - readOnly: true, - serializedName: "currentValue", - type: { - name: "Number" - } - }, - limit: { - readOnly: true, - serializedName: "limit", + vCores: { + serializedName: "properties.vCores", type: { name: "Number" } }, - requestedLimit: { - readOnly: true, - serializedName: "requestedLimit", + storageSizeInGB: { + serializedName: "properties.storageSizeInGB", type: { name: "Number" } - } - } - } -}; - -export const ManagedInstance: msRest.CompositeMapper = { - serializedName: "ManagedInstance", - type: { - name: "Composite", - className: "ManagedInstance", - modelProperties: { - ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ResourceIdentity" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } }, - managedInstanceCreateMode: { - serializedName: "properties.managedInstanceCreateMode", + collation: { + serializedName: "properties.collation", type: { name: "String" } }, - fullyQualifiedDomainName: { + dnsZone: { readOnly: true, - serializedName: "properties.fullyQualifiedDomainName", + serializedName: "properties.dnsZone", type: { name: "String" } }, - administratorLogin: { - serializedName: "properties.administratorLogin", + dnsZonePartner: { + serializedName: "properties.dnsZonePartner", type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + publicDataEndpointEnabled: { + serializedName: "properties.publicDataEndpointEnabled", type: { - name: "String" + name: "Boolean" } }, - subnetId: { - serializedName: "properties.subnetId", + sourceManagedInstanceId: { + serializedName: "properties.sourceManagedInstanceId", type: { name: "String" } }, - state: { - readOnly: true, - serializedName: "properties.state", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "String" + name: "DateTime" } }, - licenseType: { - serializedName: "properties.licenseType", + proxyOverride: { + serializedName: "properties.proxyOverride", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + timezoneId: { + serializedName: "properties.timezoneId", type: { - name: "Number" + name: "String" } }, - storageSizeInGB: { - serializedName: "properties.storageSizeInGB", + instancePoolId: { + serializedName: "properties.instancePoolId", type: { - name: "Number" + name: "String" } }, - collation: { - serializedName: "properties.collation", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } }, - dnsZone: { + privateEndpointConnections: { readOnly: true, - serializedName: "properties.dnsZone", + serializedName: "properties.privateEndpointConnections", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedInstancePecProperty" + } + } } }, - dnsZonePartner: { - serializedName: "properties.dnsZonePartner", + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { name: "String" } }, - publicDataEndpointEnabled: { - serializedName: "properties.publicDataEndpointEnabled", - type: { - name: "Boolean" - } - }, - sourceManagedInstanceId: { - serializedName: "properties.sourceManagedInstanceId", + storageAccountType: { + serializedName: "properties.storageAccountType", type: { name: "String" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + zoneRedundant: { + serializedName: "properties.zoneRedundant", type: { - name: "DateTime" + name: "Boolean" } }, - proxyOverride: { - serializedName: "properties.proxyOverride", + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - timezoneId: { - serializedName: "properties.timezoneId", + keyId: { + serializedName: "properties.keyId", type: { name: "String" } }, - instancePoolId: { - serializedName: "properties.instancePoolId", + administrators: { + serializedName: "properties.administrators", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceExternalAdministrator" } } } @@ -7852,6 +7952,20 @@ export const ManagedInstanceUpdate: msRest.CompositeMapper = { className: "Sku" } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentityWithUserAssignedIdentities" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, managedInstanceCreateMode: { serializedName: "properties.managedInstanceCreateMode", type: { @@ -7963,199 +8077,254 @@ export const ManagedInstanceUpdate: msRest.CompositeMapper = { name: "String" } }, - tags: { - serializedName: "tags", + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { - name: "Dictionary", - value: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ManagedInstancePecProperty" } } } - } - } - } -}; - -export const ManagedDatabaseRestoreDetailsResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseRestoreDetailsResult", - type: { - name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - status: { - readOnly: true, - serializedName: "properties.status", + }, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { name: "String" } }, - currentRestoringFileName: { - readOnly: true, - serializedName: "properties.currentRestoringFileName", + storageAccountType: { + serializedName: "properties.storageAccountType", type: { name: "String" } }, - lastRestoredFileName: { - readOnly: true, - serializedName: "properties.lastRestoredFileName", + zoneRedundant: { + serializedName: "properties.zoneRedundant", + type: { + name: "Boolean" + } + }, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - lastRestoredFileTime: { - readOnly: true, - serializedName: "properties.lastRestoredFileTime", + keyId: { + serializedName: "properties.keyId", type: { - name: "DateTime" + name: "String" } }, - percentCompleted: { - readOnly: true, - serializedName: "properties.percentCompleted", + administrators: { + serializedName: "properties.administrators", type: { - name: "Number" + name: "Composite", + className: "ManagedInstanceExternalAdministrator" } }, - unrestorableFiles: { - readOnly: true, - serializedName: "properties.unrestorableFiles", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } - }, - numberOfFilesDetected: { + } + } + } +}; + +export const TopQueries: msRest.CompositeMapper = { + serializedName: "TopQueries", + type: { + name: "Composite", + className: "TopQueries", + modelProperties: { + numberOfQueries: { readOnly: true, - serializedName: "properties.numberOfFilesDetected", + serializedName: "numberOfQueries", type: { name: "Number" } }, - lastUploadedFileName: { + aggregationFunction: { readOnly: true, - serializedName: "properties.lastUploadedFileName", + serializedName: "aggregationFunction", type: { name: "String" } }, - lastUploadedFileTime: { + observationMetric: { readOnly: true, - serializedName: "properties.lastUploadedFileTime", + serializedName: "observationMetric", type: { - name: "DateTime" + name: "String" } }, - blockReason: { + intervalType: { readOnly: true, - serializedName: "properties.blockReason", - type: { - name: "String" - } - } - } - } -}; - -export const ManagedDatabase: msRest.CompositeMapper = { - serializedName: "ManagedDatabase", - type: { - name: "Composite", - className: "ManagedDatabase", - modelProperties: { - ...TrackedResource.type.modelProperties, - collation: { - serializedName: "properties.collation", + serializedName: "intervalType", type: { name: "String" } }, - status: { + startTime: { readOnly: true, - serializedName: "properties.status", + serializedName: "startTime", type: { name: "String" } }, - creationDate: { + endTime: { readOnly: true, - serializedName: "properties.creationDate", + serializedName: "endTime", type: { - name: "DateTime" + name: "String" } }, - earliestRestorePoint: { - readOnly: true, - serializedName: "properties.earliestRestorePoint", + queries: { + serializedName: "queries", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QueryStatisticsProperties" + } + } + } + } + } + } +}; + +export const ManagedServerSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ManagedServerSecurityAlertPolicy", + type: { + name: "Composite", + className: "ManagedServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + state: { + required: true, + serializedName: "properties.state", type: { - name: "DateTime" + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] } }, - defaultSecondaryLocation: { - readOnly: true, - serializedName: "properties.defaultSecondaryLocation", + disabledAlerts: { + serializedName: "properties.disabledAlerts", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + emailAddresses: { + serializedName: "properties.emailAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - createMode: { - serializedName: "properties.createMode", + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", type: { - name: "String" + name: "Boolean" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + storageEndpoint: { + serializedName: "properties.storageEndpoint", type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + readOnly: true, + serializedName: "provider", type: { name: "String" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + resource: { + readOnly: true, + serializedName: "resource", type: { name: "String" } }, - failoverGroupId: { + operation: { readOnly: true, - serializedName: "properties.failoverGroupId", + serializedName: "operation", type: { name: "String" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + description: { + readOnly: true, + serializedName: "description", type: { name: "String" } @@ -8164,125 +8333,2840 @@ export const ManagedDatabase: msRest.CompositeMapper = { } }; -export const ManagedDatabaseUpdate: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseUpdate", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "ManagedDatabaseUpdate", + className: "Operation", modelProperties: { - collation: { - serializedName: "properties.collation", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - status: { + display: { readOnly: true, - serializedName: "properties.status", + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } }, - creationDate: { + origin: { readOnly: true, - serializedName: "properties.creationDate", + serializedName: "origin", type: { - name: "DateTime" + name: "String" } }, - earliestRestorePoint: { + properties: { readOnly: true, - serializedName: "properties.earliestRestorePoint", + serializedName: "properties", type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { + name: "Object" + } + } } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + } + } + } +}; + +export const OperationsHealth: msRest.CompositeMapper = { + serializedName: "OperationsHealth", + type: { + name: "Composite", + className: "OperationsHealth", + modelProperties: { + ...ProxyResource.type.modelProperties, + operationsHealthName: { + readOnly: true, + serializedName: "properties.name", type: { - name: "DateTime" + name: "String" } }, - defaultSecondaryLocation: { + health: { readOnly: true, - serializedName: "properties.defaultSecondaryLocation", + serializedName: "properties.health", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + description: { + readOnly: true, + serializedName: "properties.description", type: { name: "String" } - }, - createMode: { - serializedName: "properties.createMode", + } + } + } +}; + +export const OutboundFirewallRule: msRest.CompositeMapper = { + serializedName: "OutboundFirewallRule", + type: { + name: "Composite", + className: "OutboundFirewallRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } - }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + } + } + } +}; + +export const PrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperty", + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } - }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionStateProperty", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + required: true, + serializedName: "status", type: { name: "String" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + description: { + required: true, + serializedName: "description", type: { name: "String" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + actionsRequired: { + readOnly: true, + serializedName: "actionsRequired", type: { name: "String" } + } + } + } +}; + +export const PrivateEndpointConnectionProperties: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } }, - failoverGroupId: { + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { readOnly: true, - serializedName: "properties.failoverGroupId", + serializedName: "provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceProperties: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceProperties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + groupId: { + readOnly: true, + serializedName: "groupId", + type: { + name: "String" + } + }, + requiredMembers: { + readOnly: true, + serializedName: "requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + readOnly: true, + serializedName: "requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties" + } + } + } + } +}; + +export const RecoverableManagedDatabase: msRest.CompositeMapper = { + serializedName: "RecoverableManagedDatabase", + type: { + name: "Composite", + className: "RecoverableManagedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + lastAvailableBackupDate: { + readOnly: true, + serializedName: "properties.lastAvailableBackupDate", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicationLink: msRest.CompositeMapper = { + serializedName: "ReplicationLink", + type: { + name: "Composite", + className: "ReplicationLink", + modelProperties: { + ...ProxyResource.type.modelProperties, + partnerServer: { + readOnly: true, + serializedName: "properties.partnerServer", + type: { + name: "String" + } + }, + partnerDatabase: { + readOnly: true, + serializedName: "properties.partnerDatabase", + type: { + name: "String" + } + }, + partnerLocation: { + readOnly: true, + serializedName: "properties.partnerLocation", + type: { + name: "String" + } + }, + role: { + readOnly: true, + serializedName: "properties.role", + type: { + name: "String" + } + }, + partnerRole: { + readOnly: true, + serializedName: "properties.partnerRole", + type: { + name: "String" + } + }, + replicationMode: { + readOnly: true, + serializedName: "properties.replicationMode", + type: { + name: "String" + } + }, + startTime: { + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + percentComplete: { + readOnly: true, + serializedName: "properties.percentComplete", + type: { + name: "Number" + } + }, + replicationState: { + readOnly: true, + serializedName: "properties.replicationState", + type: { + name: "String" + } + }, + isTerminationAllowed: { + readOnly: true, + serializedName: "properties.isTerminationAllowed", + type: { + name: "Boolean" + } + }, + linkType: { + readOnly: true, + serializedName: "properties.linkType", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableDroppedDatabase: msRest.CompositeMapper = { + serializedName: "RestorableDroppedDatabase", + 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: { + readOnly: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + maxSizeBytes: { + readOnly: true, + serializedName: "properties.maxSizeBytes", + type: { + name: "Number" + } + }, + elasticPoolId: { + readOnly: true, + serializedName: "properties.elasticPoolId", + type: { + name: "String" + } + }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, + deletionDate: { + readOnly: true, + serializedName: "properties.deletionDate", + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + readOnly: true, + serializedName: "properties.earliestRestoreDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const RestorableDroppedManagedDatabase: msRest.CompositeMapper = { + serializedName: "RestorableDroppedManagedDatabase", + type: { + name: "Composite", + className: "RestorableDroppedManagedDatabase", + modelProperties: { + ...TrackedResource.type.modelProperties, + databaseName: { + readOnly: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, + deletionDate: { + readOnly: true, + serializedName: "properties.deletionDate", + type: { + name: "DateTime" + } + }, + earliestRestoreDate: { + readOnly: true, + serializedName: "properties.earliestRestoreDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const RestorePoint: msRest.CompositeMapper = { + serializedName: "RestorePoint", + type: { + name: "Composite", + className: "RestorePoint", + modelProperties: { + ...ProxyResource.type.modelProperties, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + restorePointType: { + readOnly: true, + serializedName: "properties.restorePointType", + type: { + name: "Enum", + allowedValues: [ + "CONTINUOUS", + "DISCRETE" + ] + } + }, + earliestRestoreDate: { + readOnly: true, + serializedName: "properties.earliestRestoreDate", + type: { + name: "DateTime" + } + }, + restorePointCreationDate: { + readOnly: true, + serializedName: "properties.restorePointCreationDate", + type: { + name: "DateTime" + } + }, + restorePointLabel: { + readOnly: true, + serializedName: "properties.restorePointLabel", + type: { + name: "String" + } + } + } + } +}; + +export const CreateDatabaseRestorePointDefinition: msRest.CompositeMapper = { + serializedName: "CreateDatabaseRestorePointDefinition", + type: { + name: "Composite", + className: "CreateDatabaseRestorePointDefinition", + modelProperties: { + restorePointLabel: { + required: true, + serializedName: "restorePointLabel", + type: { + name: "String" + } + } + } + } +}; + +export const AutomaticTuningServerOptions: msRest.CompositeMapper = { + serializedName: "AutomaticTuningServerOptions", + type: { + name: "Composite", + className: "AutomaticTuningServerOptions", + modelProperties: { + desiredState: { + serializedName: "desiredState", + type: { + name: "Enum", + allowedValues: [ + "Off", + "On", + "Default" + ] + } + }, + actualState: { + readOnly: true, + serializedName: "actualState", + type: { + name: "Enum", + allowedValues: [ + "Off", + "On" + ] + } + }, + reasonCode: { + readOnly: true, + serializedName: "reasonCode", + type: { + name: "Number" + } + }, + reasonDesc: { + readOnly: true, + serializedName: "reasonDesc", + type: { + name: "Enum", + allowedValues: [ + "Default", + "Disabled", + "AutoConfigured" + ] + } + } + } + } +}; + +export const ServerAutomaticTuning: msRest.CompositeMapper = { + serializedName: "ServerAutomaticTuning", + type: { + name: "Composite", + className: "ServerAutomaticTuning", + modelProperties: { + ...ProxyResource.type.modelProperties, + desiredState: { + serializedName: "properties.desiredState", + type: { + name: "Enum", + allowedValues: [ + "Custom", + "Auto", + "Unspecified" + ] + } + }, + actualState: { + readOnly: true, + serializedName: "properties.actualState", + type: { + name: "Enum", + allowedValues: [ + "Custom", + "Auto", + "Unspecified" + ] + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AutomaticTuningServerOptions" + } + } + } + } + } + } +}; + +export const ServerAzureADAdministrator: msRest.CompositeMapper = { + serializedName: "ServerAzureADAdministrator", + type: { + name: "Composite", + className: "ServerAzureADAdministrator", + modelProperties: { + ...ProxyResource.type.modelProperties, + administratorType: { + required: true, + isConstant: true, + serializedName: "properties.administratorType", + defaultValue: 'ActiveDirectory', + type: { + name: "String" + } + }, + login: { + required: true, + serializedName: "properties.login", + type: { + name: "String" + } + }, + sid: { + required: true, + serializedName: "properties.sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "Uuid" + } + }, + azureADOnlyAuthentication: { + readOnly: true, + serializedName: "properties.azureADOnlyAuthentication", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServerAzureADOnlyAuthentication: msRest.CompositeMapper = { + serializedName: "ServerAzureADOnlyAuthentication", + type: { + name: "Composite", + className: "ServerAzureADOnlyAuthentication", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureADOnlyAuthentication: { + required: true, + serializedName: "properties.azureADOnlyAuthentication", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServerDevOpsAuditingSettings: msRest.CompositeMapper = { + serializedName: "ServerDevOpsAuditingSettings", + type: { + name: "Composite", + className: "ServerDevOpsAuditingSettings", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + isAzureMonitorTargetEnabled: { + serializedName: "properties.isAzureMonitorTargetEnabled", + type: { + name: "Boolean" + } + }, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + storageAccountSubscriptionId: { + serializedName: "properties.storageAccountSubscriptionId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const ServerDnsAlias: msRest.CompositeMapper = { + serializedName: "ServerDnsAlias", + type: { + name: "Composite", + className: "ServerDnsAlias", + modelProperties: { + ...ProxyResource.type.modelProperties, + azureDnsRecord: { + readOnly: true, + serializedName: "properties.azureDnsRecord", + type: { + name: "String" + } + } + } + } +}; + +export const ServerDnsAliasAcquisition: msRest.CompositeMapper = { + serializedName: "ServerDnsAliasAcquisition", + type: { + name: "Composite", + className: "ServerDnsAliasAcquisition", + modelProperties: { + oldServerDnsAliasId: { + required: true, + serializedName: "oldServerDnsAliasId", + type: { + name: "String" + } + } + } + } +}; + +export const ServerKey: msRest.CompositeMapper = { + serializedName: "ServerKey", + type: { + name: "Composite", + className: "ServerKey", + modelProperties: { + ...ProxyResource.type.modelProperties, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "location", + type: { + name: "String" + } + }, + subregion: { + readOnly: true, + serializedName: "properties.subregion", + type: { + name: "String" + } + }, + serverKeyType: { + required: true, + serializedName: "properties.serverKeyType", + type: { + name: "String" + } + }, + uri: { + serializedName: "properties.uri", + type: { + name: "String" + } + }, + thumbprint: { + readOnly: true, + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, + autoRotationEnabled: { + readOnly: true, + serializedName: "properties.autoRotationEnabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServerOperation: msRest.CompositeMapper = { + serializedName: "ServerOperation", + type: { + name: "Composite", + className: "ServerOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, + operation: { + readOnly: true, + serializedName: "properties.operation", + type: { + name: "String" + } + }, + operationFriendlyName: { + readOnly: true, + serializedName: "properties.operationFriendlyName", + type: { + name: "String" + } + }, + percentComplete: { + readOnly: true, + serializedName: "properties.percentComplete", + type: { + name: "Number" + } + }, + serverName: { + readOnly: true, + serializedName: "properties.serverName", + type: { + name: "String" + } + }, + startTime: { + readOnly: true, + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + errorCode: { + readOnly: true, + serializedName: "properties.errorCode", + type: { + name: "Number" + } + }, + errorDescription: { + readOnly: true, + serializedName: "properties.errorDescription", + type: { + name: "String" + } + }, + errorSeverity: { + readOnly: true, + serializedName: "properties.errorSeverity", + type: { + name: "Number" + } + }, + isUserError: { + readOnly: true, + serializedName: "properties.isUserError", + type: { + name: "Boolean" + } + }, + estimatedCompletionTime: { + readOnly: true, + serializedName: "properties.estimatedCompletionTime", + type: { + name: "DateTime" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + isCancellable: { + readOnly: true, + serializedName: "properties.isCancellable", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ServerSecurityAlertPolicy", + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + state: { + required: true, + 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: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const ServerInfo: msRest.CompositeMapper = { + serializedName: "ServerInfo", + type: { + name: "Composite", + className: "ServerInfo", + modelProperties: { + serverId: { + required: true, + serializedName: "serverId", + type: { + name: "String" + } + } + } + } +}; + +export const ServerTrustGroup: msRest.CompositeMapper = { + serializedName: "ServerTrustGroup", + type: { + name: "Composite", + className: "ServerTrustGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + groupMembers: { + required: true, + serializedName: "properties.groupMembers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerInfo" + } + } + } + }, + trustScopes: { + required: true, + serializedName: "properties.trustScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + modelProperties: { + ...ProxyResource.type.modelProperties, + storageContainerPath: { + required: true, + serializedName: "properties.storageContainerPath", + type: { + name: "String" + } + }, + storageContainerSasKey: { + serializedName: "properties.storageContainerSasKey", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + recurringScans: { + serializedName: "properties.recurringScans", + type: { + name: "Composite", + className: "VulnerabilityAssessmentRecurringScansProperties" + } + } + } + } +}; + +export const ServerPrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "ServerPrivateEndpointConnection", + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + properties: { + readOnly: true, + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties" + } + } + } + } +}; + +export const ServerExternalAdministrator: msRest.CompositeMapper = { + serializedName: "ServerExternalAdministrator", + type: { + name: "Composite", + className: "ServerExternalAdministrator", + modelProperties: { + administratorType: { + serializedName: "administratorType", + type: { + name: "String" + } + }, + principalType: { + serializedName: "principalType", + type: { + name: "String" + } + }, + login: { + serializedName: "login", + type: { + name: "String" + } + }, + sid: { + serializedName: "sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "Uuid" + } + }, + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", + type: { + name: "Boolean" + } + } + } + } +}; + +export const Server: msRest.CompositeMapper = { + serializedName: "Server", + type: { + name: "Composite", + className: "Server", + modelProperties: { + ...TrackedResource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentityWithUserAssignedIdentities" + } + }, + kind: { + readOnly: true, + serializedName: "kind", + type: { + name: "String" + } + }, + administratorLogin: { + serializedName: "properties.administratorLogin", + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + fullyQualifiedDomainName: { + readOnly: true, + serializedName: "properties.fullyQualifiedDomainName", + type: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection" + } + } + } + }, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + workspaceFeature: { + readOnly: true, + serializedName: "properties.workspaceFeature", + type: { + name: "String" + } + }, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", + type: { + name: "String" + } + }, + keyId: { + serializedName: "properties.keyId", + type: { + name: "String" + } + }, + administrators: { + serializedName: "properties.administrators", + type: { + name: "Composite", + className: "ServerExternalAdministrator" + } + }, + restrictOutboundNetworkAccess: { + serializedName: "properties.restrictOutboundNetworkAccess", + type: { + name: "String" + } + } + } + } +}; + +export const ServerUpdate: msRest.CompositeMapper = { + serializedName: "ServerUpdate", + type: { + name: "Composite", + className: "ServerUpdate", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ResourceIdentityWithUserAssignedIdentities" + } + }, + administratorLogin: { + serializedName: "properties.administratorLogin", + type: { + name: "String" + } + }, + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", + type: { + name: "String" + } + }, + version: { + serializedName: "properties.version", + type: { + name: "String" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + fullyQualifiedDomainName: { + readOnly: true, + serializedName: "properties.fullyQualifiedDomainName", + type: { + name: "String" + } + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerPrivateEndpointConnection" + } + } + } + }, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", + type: { + name: "String" + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + workspaceFeature: { + readOnly: true, + serializedName: "properties.workspaceFeature", + type: { + name: "String" + } + }, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", + type: { + name: "String" + } + }, + keyId: { + serializedName: "properties.keyId", + type: { + name: "String" + } + }, + administrators: { + serializedName: "properties.administrators", + type: { + name: "Composite", + className: "ServerExternalAdministrator" + } + }, + restrictOutboundNetworkAccess: { + serializedName: "properties.restrictOutboundNetworkAccess", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ImportNewDatabaseDefinition: msRest.CompositeMapper = { + serializedName: "ImportNewDatabaseDefinition", + type: { + name: "Composite", + className: "ImportNewDatabaseDefinition", + modelProperties: { + databaseName: { + serializedName: "databaseName", + type: { + name: "String" + } + }, + edition: { + serializedName: "edition", + type: { + name: "String" + } + }, + serviceObjectiveName: { + serializedName: "serviceObjectiveName", + type: { + name: "String" + } + }, + maxSizeBytes: { + serializedName: "maxSizeBytes", + type: { + name: "String" + } + }, + storageKeyType: { + required: true, + serializedName: "storageKeyType", + type: { + name: "String" + } + }, + storageKey: { + required: true, + serializedName: "storageKey", + type: { + name: "String" + } + }, + storageUri: { + required: true, + serializedName: "storageUri", + type: { + name: "String" + } + }, + administratorLogin: { + required: true, + serializedName: "administratorLogin", + type: { + name: "String" + } + }, + administratorLoginPassword: { + required: true, + serializedName: "administratorLoginPassword", + type: { + name: "String" + } + }, + authenticationType: { + serializedName: "authenticationType", + type: { + name: "String" + } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } + } + } + } +}; + +export const CheckNameAvailabilityRequest: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityRequest", + type: { + name: "Composite", + className: "CheckNameAvailabilityRequest", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.Sql/servers', + type: { + name: "String" + } + } + } + } +}; + +export const CheckNameAvailabilityResponse: msRest.CompositeMapper = { + serializedName: "CheckNameAvailabilityResponse", + type: { + name: "Composite", + className: "CheckNameAvailabilityResponse", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + available: { + readOnly: true, + serializedName: "available", + type: { + name: "Boolean" + } + }, + reason: { + readOnly: true, + serializedName: "reason", + type: { + name: "Enum", + allowedValues: [ + "Invalid", + "AlreadyExists" + ] + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const SqlAgentConfiguration: msRest.CompositeMapper = { + serializedName: "SqlAgentConfiguration", + type: { + name: "Composite", + className: "SqlAgentConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + } + } + } +}; + +export const SubscriptionUsage: msRest.CompositeMapper = { + serializedName: "SubscriptionUsage", + type: { + name: "Composite", + className: "SubscriptionUsage", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + currentValue: { + readOnly: true, + serializedName: "properties.currentValue", + type: { + name: "Number" + } + }, + limit: { + readOnly: true, + serializedName: "properties.limit", + type: { + name: "Number" + } + }, + unit: { + readOnly: true, + serializedName: "properties.unit", + type: { + name: "String" + } + } + } + } +}; + +export const SyncAgent: msRest.CompositeMapper = { + serializedName: "SyncAgent", + type: { + name: "Composite", + className: "SyncAgent", + modelProperties: { + ...ProxyResource.type.modelProperties, + syncAgentName: { + readOnly: true, + serializedName: "properties.name", + type: { + name: "String" + } + }, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", + type: { + name: "String" + } + }, + lastAliveTime: { + readOnly: true, + serializedName: "properties.lastAliveTime", + type: { + name: "DateTime" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + }, + isUpToDate: { + readOnly: true, + serializedName: "properties.isUpToDate", + type: { + name: "Boolean" + } + }, + expiryTime: { + readOnly: true, + serializedName: "properties.expiryTime", + type: { + name: "DateTime" + } + }, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "String" + } + } + } + } +}; + +export const SyncAgentKeyProperties: msRest.CompositeMapper = { + serializedName: "SyncAgentKeyProperties", + type: { + name: "Composite", + className: "SyncAgentKeyProperties", + modelProperties: { + syncAgentKey: { + readOnly: true, + serializedName: "syncAgentKey", + type: { + name: "String" + } + } + } + } +}; + +export const SyncAgentLinkedDatabase: msRest.CompositeMapper = { + serializedName: "SyncAgentLinkedDatabase", + type: { + name: "Composite", + className: "SyncAgentLinkedDatabase", + modelProperties: { + ...ProxyResource.type.modelProperties, + databaseType: { + readOnly: true, + serializedName: "properties.databaseType", + type: { + name: "String" + } + }, + databaseId: { + readOnly: true, + serializedName: "properties.databaseId", + type: { + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + serverName: { + readOnly: true, + serializedName: "properties.serverName", + type: { + name: "String" + } + }, + databaseName: { + readOnly: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const SyncDatabaseIdProperties: msRest.CompositeMapper = { + serializedName: "SyncDatabaseIdProperties", + type: { + name: "Composite", + className: "SyncDatabaseIdProperties", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaTableColumn", + type: { + name: "Composite", + className: "SyncFullSchemaTableColumn", + modelProperties: { + dataSize: { + readOnly: true, + serializedName: "dataSize", + type: { + name: "String" + } + }, + dataType: { + readOnly: true, + serializedName: "dataType", + type: { + name: "String" + } + }, + errorId: { + readOnly: true, + serializedName: "errorId", + type: { + name: "String" + } + }, + hasError: { + readOnly: true, + serializedName: "hasError", + type: { + name: "Boolean" + } + }, + isPrimaryKey: { + readOnly: true, + serializedName: "isPrimaryKey", + type: { + name: "Boolean" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + quotedName: { + readOnly: true, + serializedName: "quotedName", + type: { + name: "String" + } + } + } + } +}; + +export const SyncFullSchemaTable: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaTable", + type: { + name: "Composite", + className: "SyncFullSchemaTable", + modelProperties: { + columns: { + readOnly: true, + serializedName: "columns", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTableColumn" + } + } + } + }, + errorId: { + readOnly: true, + serializedName: "errorId", + type: { + name: "String" + } + }, + hasError: { + readOnly: true, + serializedName: "hasError", + type: { + name: "Boolean" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + quotedName: { + readOnly: true, + serializedName: "quotedName", + type: { + name: "String" + } + } + } + } +}; + +export const SyncFullSchemaProperties: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaProperties", + type: { + name: "Composite", + className: "SyncFullSchemaProperties", + modelProperties: { + tables: { + readOnly: true, + serializedName: "tables", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTable" + } + } + } + }, + lastUpdateTime: { + readOnly: true, + serializedName: "lastUpdateTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const SyncGroupLogProperties: msRest.CompositeMapper = { + serializedName: "SyncGroupLogProperties", + type: { + name: "Composite", + className: "SyncGroupLogProperties", + modelProperties: { + timestamp: { + readOnly: true, + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + source: { + readOnly: true, + serializedName: "source", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "String" + } + }, + tracingId: { + readOnly: true, + serializedName: "tracingId", + type: { + name: "Uuid" + } + }, + operationStatus: { + readOnly: true, + serializedName: "operationStatus", + type: { + name: "String" + } + } + } + } +}; + +export const SyncGroupSchemaTableColumn: msRest.CompositeMapper = { + serializedName: "SyncGroupSchemaTableColumn", + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn", + modelProperties: { + quotedName: { + serializedName: "quotedName", + type: { + name: "String" + } + }, + dataSize: { + serializedName: "dataSize", + type: { + name: "String" + } + }, + dataType: { + serializedName: "dataType", + type: { + name: "String" + } + } + } + } +}; + +export const SyncGroupSchemaTable: msRest.CompositeMapper = { + serializedName: "SyncGroupSchemaTable", + type: { + name: "Composite", + className: "SyncGroupSchemaTable", + modelProperties: { + columns: { + serializedName: "columns", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn" + } + } + } + }, + quotedName: { + serializedName: "quotedName", + type: { + name: "String" + } + } + } + } +}; + +export const SyncGroupSchema: msRest.CompositeMapper = { + serializedName: "SyncGroupSchema", + type: { + name: "Composite", + className: "SyncGroupSchema", + modelProperties: { + tables: { + serializedName: "tables", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTable" + } + } + } + }, + masterSyncMemberName: { + serializedName: "masterSyncMemberName", + type: { + name: "String" + } + } + } + } +}; + +export const SyncGroup: msRest.CompositeMapper = { + serializedName: "SyncGroup", + type: { + name: "Composite", + className: "SyncGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + interval: { + serializedName: "properties.interval", + type: { + name: "Number" + } + }, + lastSyncTime: { + readOnly: true, + serializedName: "properties.lastSyncTime", + type: { + name: "DateTime" + } + }, + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", + type: { + name: "String" + } + }, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", + type: { + name: "String" + } + }, + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", + type: { + name: "String" + } + }, + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", + type: { + name: "String" + } + }, + syncState: { + readOnly: true, + serializedName: "properties.syncState", + type: { + name: "String" + } + }, + schema: { + serializedName: "properties.schema", + type: { + name: "Composite", + className: "SyncGroupSchema" + } + }, + enableConflictLogging: { + serializedName: "properties.enableConflictLogging", + type: { + name: "Boolean" + } + }, + conflictLoggingRetentionInDays: { + serializedName: "properties.conflictLoggingRetentionInDays", + type: { + name: "Number" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + readOnly: true, + serializedName: "properties.privateEndpointName", + type: { + name: "String" + } + } + } + } +}; + +export const SyncMember: msRest.CompositeMapper = { + serializedName: "SyncMember", + type: { + name: "Composite", + className: "SyncMember", + modelProperties: { + ...ProxyResource.type.modelProperties, + databaseType: { + serializedName: "properties.databaseType", + type: { + name: "String" + } + }, + syncAgentId: { + serializedName: "properties.syncAgentId", + type: { + name: "String" + } + }, + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", + type: { + name: "Uuid" + } + }, + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", + type: { + name: "String" + } + }, + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + }, + privateEndpointName: { + readOnly: true, + serializedName: "properties.privateEndpointName", + type: { + name: "String" + } + }, + serverName: { + serializedName: "properties.serverName", + type: { + name: "String" + } + }, + databaseName: { + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + userName: { + serializedName: "properties.userName", + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", + type: { + name: "String" + } + }, + syncDirection: { + serializedName: "properties.syncDirection", + type: { + name: "String" + } + }, + syncState: { + readOnly: true, + serializedName: "properties.syncState", + type: { + name: "String" + } + } + } + } +}; + +export const TimeZone: msRest.CompositeMapper = { + serializedName: "TimeZone", + type: { + name: "Composite", + className: "TimeZone", + modelProperties: { + ...ProxyResource.type.modelProperties, + timeZoneId: { + readOnly: true, + serializedName: "properties.timeZoneId", + type: { + name: "String" + } + }, + displayName: { + readOnly: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + } + } + } +}; + +export const LogicalDatabaseTransparentDataEncryption: msRest.CompositeMapper = { + serializedName: "LogicalDatabaseTransparentDataEncryption", + type: { + name: "Composite", + className: "LogicalDatabaseTransparentDataEncryption", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + } + } + } +}; + +export const UpdateManagedInstanceDnsServersOperation: msRest.CompositeMapper = { + serializedName: "UpdateManagedInstanceDnsServersOperation", + type: { + name: "Composite", + className: "UpdateManagedInstanceDnsServersOperation", + modelProperties: { + ...ProxyResource.type.modelProperties, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualCluster: msRest.CompositeMapper = { + serializedName: "VirtualCluster", + type: { + name: "Composite", + className: "VirtualCluster", + modelProperties: { + ...TrackedResource.type.modelProperties, + subnetId: { + readOnly: true, + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + family: { + serializedName: "properties.family", + type: { + name: "String" + } + }, + childResources: { + readOnly: true, + serializedName: "properties.childResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + } + } + } +}; + +export const VirtualClusterUpdate: msRest.CompositeMapper = { + serializedName: "VirtualClusterUpdate", + type: { + name: "Composite", + className: "VirtualClusterUpdate", + modelProperties: { + subnetId: { + readOnly: true, + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + family: { + serializedName: "properties.family", + type: { + name: "String" + } + }, + childResources: { + readOnly: true, + serializedName: "properties.childResources", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const VirtualNetworkRule: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRule", + type: { + name: "Composite", + className: "VirtualNetworkRule", + modelProperties: { + ...ProxyResource.type.modelProperties, + virtualNetworkSubnetId: { + required: true, + serializedName: "properties.virtualNetworkSubnetId", + type: { + name: "String" + } + }, + ignoreMissingVnetServiceEndpoint: { + serializedName: "properties.ignoreMissingVnetServiceEndpoint", + type: { + name: "Boolean" + } + }, + state: { + readOnly: true, + serializedName: "properties.state", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadClassifier: msRest.CompositeMapper = { + serializedName: "WorkloadClassifier", + type: { + name: "Composite", + className: "WorkloadClassifier", + modelProperties: { + ...ProxyResource.type.modelProperties, + memberName: { + required: true, + serializedName: "properties.memberName", + type: { + name: "String" + } + }, + label: { + serializedName: "properties.label", + type: { + name: "String" + } + }, + context: { + serializedName: "properties.context", + type: { + name: "String" + } + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "String" + } + }, + endTime: { + serializedName: "properties.endTime", + type: { + name: "String" + } + }, + importance: { + serializedName: "properties.importance", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadGroup: msRest.CompositeMapper = { + serializedName: "WorkloadGroup", + type: { + name: "Composite", + className: "WorkloadGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + minResourcePercent: { + required: true, + serializedName: "properties.minResourcePercent", + type: { + name: "Number" + } + }, + maxResourcePercent: { + required: true, + serializedName: "properties.maxResourcePercent", + type: { + name: "Number" + } + }, + minResourcePercentPerRequest: { + required: true, + serializedName: "properties.minResourcePercentPerRequest", + type: { + name: "Number" + } + }, + maxResourcePercentPerRequest: { + serializedName: "properties.maxResourcePercentPerRequest", + type: { + name: "Number" + } + }, + importance: { + serializedName: "properties.importance", + type: { + name: "String" + } + }, + queryExecutionTimeout: { + serializedName: "properties.queryExecutionTimeout", + type: { + name: "Number" + } + } + } + } +}; + +export const BackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = { + serializedName: "BackupShortTermRetentionPolicyListResult", + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupShortTermRetentionPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedDatabaseBlobAuditingPolicyListResult: msRest.CompositeMapper = { + serializedName: "ExtendedDatabaseBlobAuditingPolicyListResult", + type: { + name: "Composite", + className: "ExtendedDatabaseBlobAuditingPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedDatabaseBlobAuditingPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { + serializedName: "ExtendedServerBlobAuditingPolicyListResult", + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExtendedServerBlobAuditingPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { + serializedName: "ServerBlobAuditingPolicyListResult", + type: { + name: "Composite", + className: "ServerBlobAuditingPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerBlobAuditingPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseBlobAuditingPolicyListResult: msRest.CompositeMapper = { + serializedName: "DatabaseBlobAuditingPolicyListResult", + type: { + name: "Composite", + className: "DatabaseBlobAuditingPolicyListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseBlobAuditingPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DataWarehouseUserActivitiesListResult: msRest.CompositeMapper = { + serializedName: "DataWarehouseUserActivitiesListResult", + type: { + name: "Composite", + className: "DataWarehouseUserActivitiesListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataWarehouseUserActivities" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseColumnListResult: msRest.CompositeMapper = { + serializedName: "DatabaseColumnListResult", + type: { + name: "Composite", + className: "DatabaseColumnListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseColumn" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ImportExportExtensionsOperationListResult: msRest.CompositeMapper = { + serializedName: "ImportExportExtensionsOperationListResult", + type: { + name: "Composite", + className: "ImportExportExtensionsOperationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImportExportExtensionsOperationResult" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DatabaseOperationListResult: msRest.CompositeMapper = { + serializedName: "DatabaseOperationListResult", + type: { + name: "Composite", + className: "DatabaseOperationListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseOperation" + } + } } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + nextLink: { + readOnly: true, + serializedName: "nextLink", type: { name: "String" } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } } } } }; -export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { - serializedName: "CompleteDatabaseRestoreDefinition", +export const DatabaseSchemaListResult: msRest.CompositeMapper = { + serializedName: "DatabaseSchemaListResult", type: { name: "Composite", - className: "CompleteDatabaseRestoreDefinition", + className: "DatabaseSchemaListResult", modelProperties: { - lastBackupName: { - required: true, - serializedName: "lastBackupName", + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseSchema" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", type: { name: "String" } @@ -8291,14 +11175,28 @@ export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { } }; -export const PrivateEndpointProperty: msRest.CompositeMapper = { - serializedName: "PrivateEndpointProperty", +export const DatabaseSecurityAlertListResult: msRest.CompositeMapper = { + serializedName: "DatabaseSecurityAlertListResult", type: { name: "Composite", - className: "PrivateEndpointProperty", + className: "DatabaseSecurityAlertListResult", modelProperties: { - id: { - serializedName: "id", + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseSecurityAlertPolicy" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", type: { name: "String" } @@ -8307,29 +11205,28 @@ export const PrivateEndpointProperty: msRest.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionStateProperty", +export const DatabaseTableListResult: msRest.CompositeMapper = { + serializedName: "DatabaseTableListResult", type: { name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", + className: "DatabaseTableListResult", modelProperties: { - status: { - required: true, - serializedName: "status", - type: { - name: "String" - } - }, - description: { - required: true, - serializedName: "description", + value: { + readOnly: true, + serializedName: "", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseTable" + } + } } }, - actionsRequired: { + nextLink: { readOnly: true, - serializedName: "actionsRequired", + serializedName: "nextLink", type: { name: "String" } @@ -8338,30 +11235,28 @@ export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const DatabaseUsageListResult: msRest.CompositeMapper = { + serializedName: "DatabaseUsageListResult", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "DatabaseUsageListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + value: { + readOnly: true, + serializedName: "", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseUsage" + } + } } }, - provisioningState: { + nextLink: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "nextLink", type: { name: "String" } @@ -8370,105 +11265,131 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { } }; -export const PrivateLinkResourceProperties: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceProperties", +export const VulnerabilityAssessmentScanRecordListResult: msRest.CompositeMapper = { + serializedName: "VulnerabilityAssessmentScanRecordListResult", type: { name: "Composite", - className: "PrivateLinkResourceProperties", + className: "VulnerabilityAssessmentScanRecordListResult", modelProperties: { - groupId: { - readOnly: true, - serializedName: "groupId", - type: { - name: "String" - } - }, - requiredMembers: { + value: { readOnly: true, - serializedName: "requiredMembers", + serializedName: "", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VulnerabilityAssessmentScanRecord" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = { + serializedName: "DatabaseVulnerabilityAssessmentListResult", type: { name: "Composite", - className: "PrivateLinkResource", + className: "DatabaseVulnerabilityAssessmentListResult", modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { + value: { readOnly: true, - serializedName: "properties", + serializedName: "", type: { - name: "Composite", - className: "PrivateLinkResourceProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseVulnerabilityAssessment" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" } } } } }; -export const RecoverableDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RecoverableDatabaseListResult", +export const DatabaseListResult: msRest.CompositeMapper = { + serializedName: "DatabaseListResult", type: { name: "Composite", - className: "RecoverableDatabaseListResult", + className: "DatabaseListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecoverableDatabase" + className: "Database" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const RestorableDroppedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RestorableDroppedDatabaseListResult", +export const DeletedServerListResult: msRest.CompositeMapper = { + serializedName: "DeletedServerListResult", type: { name: "Composite", - className: "RestorableDroppedDatabaseListResult", + className: "DeletedServerListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RestorableDroppedDatabase" + className: "DeletedServer" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ServerListResult: msRest.CompositeMapper = { - serializedName: "ServerListResult", +export const ElasticPoolOperationListResult: msRest.CompositeMapper = { + serializedName: "ElasticPoolOperationListResult", type: { name: "Composite", - className: "ServerListResult", + className: "ElasticPoolOperationListResult", modelProperties: { value: { readOnly: true, @@ -8478,7 +11399,7 @@ export const ServerListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Server" + className: "ElasticPoolOperation" } } } @@ -8494,123 +11415,161 @@ export const ServerListResult: msRest.CompositeMapper = { } }; -export const DataMaskingRuleListResult: msRest.CompositeMapper = { - serializedName: "DataMaskingRuleListResult", +export const ElasticPoolListResult: msRest.CompositeMapper = { + serializedName: "ElasticPoolListResult", type: { name: "Composite", - className: "DataMaskingRuleListResult", + className: "ElasticPoolListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataMaskingRule" + className: "ElasticPool" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const FirewallRuleListResult: msRest.CompositeMapper = { - serializedName: "FirewallRuleListResult", +export const EncryptionProtectorListResult: msRest.CompositeMapper = { + serializedName: "EncryptionProtectorListResult", type: { name: "Composite", - className: "FirewallRuleListResult", + className: "EncryptionProtectorListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "FirewallRule" + className: "EncryptionProtector" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const GeoBackupPolicyListResult: msRest.CompositeMapper = { - serializedName: "GeoBackupPolicyListResult", +export const FailoverGroupListResult: msRest.CompositeMapper = { + serializedName: "FailoverGroupListResult", type: { name: "Composite", - className: "GeoBackupPolicyListResult", + className: "FailoverGroupListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GeoBackupPolicy" + className: "FailoverGroup" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const MetricListResult: msRest.CompositeMapper = { - serializedName: "MetricListResult", +export const FirewallRuleListResult: msRest.CompositeMapper = { + serializedName: "FirewallRuleListResult", type: { name: "Composite", - className: "MetricListResult", + className: "FirewallRuleListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Metric" + className: "FirewallRule" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const MetricDefinitionListResult: msRest.CompositeMapper = { - serializedName: "MetricDefinitionListResult", +export const InstanceFailoverGroupListResult: msRest.CompositeMapper = { + serializedName: "InstanceFailoverGroupListResult", type: { name: "Composite", - className: "MetricDefinitionListResult", + className: "InstanceFailoverGroupListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricDefinition" + className: "InstanceFailoverGroup" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const DatabaseListResult: msRest.CompositeMapper = { - serializedName: "DatabaseListResult", +export const InstancePoolListResult: msRest.CompositeMapper = { + serializedName: "InstancePoolListResult", type: { name: "Composite", - className: "DatabaseListResult", + className: "InstancePoolListResult", modelProperties: { value: { readOnly: true, @@ -8620,7 +11579,7 @@ export const DatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Database" + className: "InstancePool" } } } @@ -8636,11 +11595,11 @@ export const DatabaseListResult: msRest.CompositeMapper = { } }; -export const ElasticPoolListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolListResult", +export const JobAgentListResult: msRest.CompositeMapper = { + serializedName: "JobAgentListResult", type: { name: "Composite", - className: "ElasticPoolListResult", + className: "JobAgentListResult", modelProperties: { value: { readOnly: true, @@ -8650,7 +11609,7 @@ export const ElasticPoolListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPool" + className: "JobAgent" } } } @@ -8666,284 +11625,371 @@ export const ElasticPoolListResult: msRest.CompositeMapper = { } }; -export const RecommendedElasticPoolListResult: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPoolListResult", +export const JobCredentialListResult: msRest.CompositeMapper = { + serializedName: "JobCredentialListResult", type: { name: "Composite", - className: "RecommendedElasticPoolListResult", + className: "JobCredentialListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedElasticPool" + className: "JobCredential" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const RecommendedElasticPoolListMetricsResult: msRest.CompositeMapper = { - serializedName: "RecommendedElasticPoolListMetricsResult", +export const JobExecutionListResult: msRest.CompositeMapper = { + serializedName: "JobExecutionListResult", type: { name: "Composite", - className: "RecommendedElasticPoolListMetricsResult", + className: "JobExecutionListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RecommendedElasticPoolMetric" + className: "JobExecution" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ReplicationLinkListResult: msRest.CompositeMapper = { - serializedName: "ReplicationLinkListResult", +export const JobStepListResult: msRest.CompositeMapper = { + serializedName: "JobStepListResult", type: { name: "Composite", - className: "ReplicationLinkListResult", + className: "JobStepListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ReplicationLink" + className: "JobStep" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ServerAdministratorListResult: msRest.CompositeMapper = { - serializedName: "ServerAdministratorListResult", +export const JobTargetGroupListResult: msRest.CompositeMapper = { + serializedName: "JobTargetGroupListResult", type: { name: "Composite", - className: "ServerAdministratorListResult", + className: "JobTargetGroupListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerAzureADAdministrator" + className: "JobTargetGroup" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ServerCommunicationLinkListResult: msRest.CompositeMapper = { - serializedName: "ServerCommunicationLinkListResult", +export const JobVersionListResult: msRest.CompositeMapper = { + serializedName: "JobVersionListResult", type: { name: "Composite", - className: "ServerCommunicationLinkListResult", + className: "JobVersionListResult", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerCommunicationLink" + className: "JobVersion" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ServiceObjectiveListResult: msRest.CompositeMapper = { - serializedName: "ServiceObjectiveListResult", +export const JobListResult: msRest.CompositeMapper = { + serializedName: "JobListResult", type: { name: "Composite", - className: "ServiceObjectiveListResult", + className: "JobListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceObjective" + className: "Job" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ElasticPoolActivityListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolActivityListResult", +export const LongTermRetentionBackupListResult: msRest.CompositeMapper = { + serializedName: "LongTermRetentionBackupListResult", type: { name: "Composite", - className: "ElasticPoolActivityListResult", + className: "LongTermRetentionBackupListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolActivity" + className: "LongTermRetentionBackup" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ElasticPoolDatabaseActivityListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolDatabaseActivityListResult", +export const ManagedInstanceLongTermRetentionBackupListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionBackupListResult", type: { name: "Composite", - className: "ElasticPoolDatabaseActivityListResult", + className: "ManagedInstanceLongTermRetentionBackupListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ElasticPoolDatabaseActivity" + className: "ManagedInstanceLongTermRetentionBackup" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ServiceTierAdvisorListResult: msRest.CompositeMapper = { - serializedName: "ServiceTierAdvisorListResult", +export const LongTermRetentionPolicyListResult: msRest.CompositeMapper = { + serializedName: "LongTermRetentionPolicyListResult", type: { name: "Composite", - className: "ServiceTierAdvisorListResult", + className: "LongTermRetentionPolicyListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServiceTierAdvisor" + className: "LongTermRetentionPolicy" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const TransparentDataEncryptionActivityListResult: msRest.CompositeMapper = { - serializedName: "TransparentDataEncryptionActivityListResult", +export const ManagedBackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedBackupShortTermRetentionPolicyListResult", type: { name: "Composite", - className: "TransparentDataEncryptionActivityListResult", + className: "ManagedBackupShortTermRetentionPolicyListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TransparentDataEncryptionActivity" + className: "ManagedBackupShortTermRetentionPolicy" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ServerUsageListResult: msRest.CompositeMapper = { - serializedName: "ServerUsageListResult", +export const ManagedInstanceQueryStatistics: msRest.CompositeMapper = { + serializedName: "ManagedInstanceQueryStatistics", type: { name: "Composite", - className: "ServerUsageListResult", + className: "ManagedInstanceQueryStatistics", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerUsage" + className: "QueryStatistics" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const DatabaseUsageListResult: msRest.CompositeMapper = { - serializedName: "DatabaseUsageListResult", +export const ManagedDatabaseSecurityAlertPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseSecurityAlertPolicyListResult", type: { name: "Composite", - className: "DatabaseUsageListResult", + className: "ManagedDatabaseSecurityAlertPolicyListResult", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DatabaseUsage" + className: "ManagedDatabaseSecurityAlertPolicy" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const EncryptionProtectorListResult: msRest.CompositeMapper = { - serializedName: "EncryptionProtectorListResult", +export const SecurityEventCollection: msRest.CompositeMapper = { + serializedName: "SecurityEventCollection", type: { name: "Composite", - className: "EncryptionProtectorListResult", + className: "SecurityEventCollection", modelProperties: { value: { readOnly: true, @@ -8953,7 +11999,7 @@ export const EncryptionProtectorListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "EncryptionProtector" + className: "SecurityEvent" } } } @@ -8969,11 +12015,11 @@ export const EncryptionProtectorListResult: msRest.CompositeMapper = { } }; -export const FailoverGroupListResult: msRest.CompositeMapper = { - serializedName: "FailoverGroupListResult", +export const SensitivityLabelListResult: msRest.CompositeMapper = { + serializedName: "SensitivityLabelListResult", type: { name: "Composite", - className: "FailoverGroupListResult", + className: "SensitivityLabelListResult", modelProperties: { value: { readOnly: true, @@ -8983,7 +12029,7 @@ export const FailoverGroupListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "FailoverGroup" + className: "SensitivityLabel" } } } @@ -8999,11 +12045,11 @@ export const FailoverGroupListResult: msRest.CompositeMapper = { } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const ManagedTransparentDataEncryptionListResult: msRest.CompositeMapper = { + serializedName: "ManagedTransparentDataEncryptionListResult", type: { name: "Composite", - className: "OperationListResult", + className: "ManagedTransparentDataEncryptionListResult", modelProperties: { value: { readOnly: true, @@ -9013,7 +12059,7 @@ export const OperationListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" + className: "ManagedTransparentDataEncryption" } } } @@ -9029,11 +12075,11 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const ServerKeyListResult: msRest.CompositeMapper = { - serializedName: "ServerKeyListResult", +export const ManagedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseListResult", type: { name: "Composite", - className: "ServerKeyListResult", + className: "ManagedDatabaseListResult", modelProperties: { value: { readOnly: true, @@ -9043,7 +12089,7 @@ export const ServerKeyListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerKey" + className: "ManagedDatabase" } } } @@ -9059,11 +12105,11 @@ export const ServerKeyListResult: msRest.CompositeMapper = { } }; -export const SyncAgentListResult: msRest.CompositeMapper = { - serializedName: "SyncAgentListResult", +export const ManagedInstanceAdministratorListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceAdministratorListResult", type: { name: "Composite", - className: "SyncAgentListResult", + className: "ManagedInstanceAdministratorListResult", modelProperties: { value: { readOnly: true, @@ -9073,7 +12119,7 @@ export const SyncAgentListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncAgent" + className: "ManagedInstanceAdministrator" } } } @@ -9089,11 +12135,11 @@ export const SyncAgentListResult: msRest.CompositeMapper = { } }; -export const SyncAgentLinkedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "SyncAgentLinkedDatabaseListResult", +export const ManagedInstanceAzureADOnlyAuthListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceAzureADOnlyAuthListResult", type: { name: "Composite", - className: "SyncAgentLinkedDatabaseListResult", + className: "ManagedInstanceAzureADOnlyAuthListResult", modelProperties: { value: { readOnly: true, @@ -9103,7 +12149,7 @@ export const SyncAgentLinkedDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncAgentLinkedDatabase" + className: "ManagedInstanceAzureADOnlyAuthentication" } } } @@ -9119,11 +12165,11 @@ export const SyncAgentLinkedDatabaseListResult: msRest.CompositeMapper = { } }; -export const SyncDatabaseIdListResult: msRest.CompositeMapper = { - serializedName: "SyncDatabaseIdListResult", +export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceEncryptionProtectorListResult", type: { name: "Composite", - className: "SyncDatabaseIdListResult", + className: "ManagedInstanceEncryptionProtectorListResult", modelProperties: { value: { readOnly: true, @@ -9133,7 +12179,7 @@ export const SyncDatabaseIdListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncDatabaseIdProperties" + className: "ManagedInstanceEncryptionProtector" } } } @@ -9149,11 +12195,11 @@ export const SyncDatabaseIdListResult: msRest.CompositeMapper = { } }; -export const SyncFullSchemaPropertiesListResult: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaPropertiesListResult", +export const ManagedInstanceKeyListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceKeyListResult", type: { name: "Composite", - className: "SyncFullSchemaPropertiesListResult", + className: "ManagedInstanceKeyListResult", modelProperties: { value: { readOnly: true, @@ -9163,7 +12209,7 @@ export const SyncFullSchemaPropertiesListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncFullSchemaProperties" + className: "ManagedInstanceKey" } } } @@ -9179,11 +12225,11 @@ export const SyncFullSchemaPropertiesListResult: msRest.CompositeMapper = { } }; -export const SyncGroupLogListResult: msRest.CompositeMapper = { - serializedName: "SyncGroupLogListResult", +export const ManagedInstanceLongTermRetentionPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceLongTermRetentionPolicyListResult", type: { name: "Composite", - className: "SyncGroupLogListResult", + className: "ManagedInstanceLongTermRetentionPolicyListResult", modelProperties: { value: { readOnly: true, @@ -9193,7 +12239,7 @@ export const SyncGroupLogListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncGroupLogProperties" + className: "ManagedInstanceLongTermRetentionPolicy" } } } @@ -9209,11 +12255,11 @@ export const SyncGroupLogListResult: msRest.CompositeMapper = { } }; -export const SyncGroupListResult: msRest.CompositeMapper = { - serializedName: "SyncGroupListResult", +export const ManagedInstanceOperationListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationListResult", type: { name: "Composite", - className: "SyncGroupListResult", + className: "ManagedInstanceOperationListResult", modelProperties: { value: { readOnly: true, @@ -9223,7 +12269,7 @@ export const SyncGroupListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncGroup" + className: "ManagedInstanceOperation" } } } @@ -9239,11 +12285,11 @@ export const SyncGroupListResult: msRest.CompositeMapper = { } }; -export const SyncMemberListResult: msRest.CompositeMapper = { - serializedName: "SyncMemberListResult", +export const ManagedInstancePrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateEndpointConnectionListResult", type: { name: "Composite", - className: "SyncMemberListResult", + className: "ManagedInstancePrivateEndpointConnectionListResult", modelProperties: { value: { readOnly: true, @@ -9253,7 +12299,7 @@ export const SyncMemberListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SyncMember" + className: "ManagedInstancePrivateEndpointConnection" } } } @@ -9269,11 +12315,11 @@ export const SyncMemberListResult: msRest.CompositeMapper = { } }; -export const SubscriptionUsageListResult: msRest.CompositeMapper = { - serializedName: "SubscriptionUsageListResult", +export const ManagedInstancePrivateLinkListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstancePrivateLinkListResult", type: { name: "Composite", - className: "SubscriptionUsageListResult", + className: "ManagedInstancePrivateLinkListResult", modelProperties: { value: { readOnly: true, @@ -9283,7 +12329,7 @@ export const SubscriptionUsageListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionUsage" + className: "ManagedInstancePrivateLink" } } } @@ -9298,12 +12344,12 @@ export const SubscriptionUsageListResult: msRest.CompositeMapper = { } } }; - -export const VirtualClusterListResult: msRest.CompositeMapper = { - serializedName: "VirtualClusterListResult", + +export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceVulnerabilityAssessmentListResult", type: { name: "Composite", - className: "VirtualClusterListResult", + className: "ManagedInstanceVulnerabilityAssessmentListResult", modelProperties: { value: { readOnly: true, @@ -9313,7 +12359,7 @@ export const VirtualClusterListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualCluster" + className: "ManagedInstanceVulnerabilityAssessment" } } } @@ -9329,11 +12375,11 @@ export const VirtualClusterListResult: msRest.CompositeMapper = { } }; -export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRuleListResult", +export const ManagedInstanceListResult: msRest.CompositeMapper = { + serializedName: "ManagedInstanceListResult", type: { name: "Composite", - className: "VirtualNetworkRuleListResult", + className: "ManagedInstanceListResult", modelProperties: { value: { readOnly: true, @@ -9343,7 +12389,7 @@ export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualNetworkRule" + className: "ManagedInstance" } } } @@ -9359,11 +12405,11 @@ export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { } }; -export const ServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "ServerBlobAuditingPolicyListResult", +export const TopQueriesListResult: msRest.CompositeMapper = { + serializedName: "TopQueriesListResult", type: { name: "Composite", - className: "ServerBlobAuditingPolicyListResult", + className: "TopQueriesListResult", modelProperties: { value: { readOnly: true, @@ -9373,7 +12419,7 @@ export const ServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerBlobAuditingPolicy" + className: "TopQueries" } } } @@ -9389,11 +12435,11 @@ export const ServerBlobAuditingPolicyListResult: msRest.CompositeMapper = { } }; -export const DatabaseBlobAuditingPolicyListResult: msRest.CompositeMapper = { - serializedName: "DatabaseBlobAuditingPolicyListResult", +export const ManagedServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { + serializedName: "ManagedServerSecurityAlertPolicyListResult", type: { name: "Composite", - className: "DatabaseBlobAuditingPolicyListResult", + className: "ManagedServerSecurityAlertPolicyListResult", modelProperties: { value: { readOnly: true, @@ -9403,7 +12449,7 @@ export const DatabaseBlobAuditingPolicyListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseBlobAuditingPolicy" + className: "ManagedServerSecurityAlertPolicy" } } } @@ -9419,11 +12465,11 @@ export const DatabaseBlobAuditingPolicyListResult: msRest.CompositeMapper = { } }; -export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "DatabaseVulnerabilityAssessmentListResult", +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", type: { name: "Composite", - className: "DatabaseVulnerabilityAssessmentListResult", + className: "OperationListResult", modelProperties: { value: { readOnly: true, @@ -9433,7 +12479,7 @@ export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = element: { type: { name: "Composite", - className: "DatabaseVulnerabilityAssessment" + className: "Operation" } } } @@ -9449,11 +12495,11 @@ export const DatabaseVulnerabilityAssessmentListResult: msRest.CompositeMapper = } }; -export const JobAgentListResult: msRest.CompositeMapper = { - serializedName: "JobAgentListResult", +export const OperationsHealthListResult: msRest.CompositeMapper = { + serializedName: "OperationsHealthListResult", type: { name: "Composite", - className: "JobAgentListResult", + className: "OperationsHealthListResult", modelProperties: { value: { readOnly: true, @@ -9463,7 +12509,7 @@ export const JobAgentListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "JobAgent" + className: "OperationsHealth" } } } @@ -9479,11 +12525,11 @@ export const JobAgentListResult: msRest.CompositeMapper = { } }; -export const JobCredentialListResult: msRest.CompositeMapper = { - serializedName: "JobCredentialListResult", +export const OutboundFirewallRuleListResult: msRest.CompositeMapper = { + serializedName: "OutboundFirewallRuleListResult", type: { name: "Composite", - className: "JobCredentialListResult", + className: "OutboundFirewallRuleListResult", modelProperties: { value: { readOnly: true, @@ -9493,7 +12539,7 @@ export const JobCredentialListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "JobCredential" + className: "OutboundFirewallRule" } } } @@ -9509,11 +12555,11 @@ export const JobCredentialListResult: msRest.CompositeMapper = { } }; -export const JobExecutionListResult: msRest.CompositeMapper = { - serializedName: "JobExecutionListResult", +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", type: { name: "Composite", - className: "JobExecutionListResult", + className: "PrivateEndpointConnectionListResult", modelProperties: { value: { readOnly: true, @@ -9523,7 +12569,7 @@ export const JobExecutionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "JobExecution" + className: "PrivateEndpointConnection" } } } @@ -9539,11 +12585,11 @@ export const JobExecutionListResult: msRest.CompositeMapper = { } }; -export const JobListResult: msRest.CompositeMapper = { - serializedName: "JobListResult", +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", type: { name: "Composite", - className: "JobListResult", + className: "PrivateLinkResourceListResult", modelProperties: { value: { readOnly: true, @@ -9553,7 +12599,7 @@ export const JobListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Job" + className: "PrivateLinkResource" } } } @@ -9569,11 +12615,11 @@ export const JobListResult: msRest.CompositeMapper = { } }; -export const JobStepListResult: msRest.CompositeMapper = { - serializedName: "JobStepListResult", +export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "RecoverableManagedDatabaseListResult", type: { name: "Composite", - className: "JobStepListResult", + className: "RecoverableManagedDatabaseListResult", modelProperties: { value: { readOnly: true, @@ -9583,7 +12629,7 @@ export const JobStepListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "JobStep" + className: "RecoverableManagedDatabase" } } } @@ -9599,11 +12645,11 @@ export const JobStepListResult: msRest.CompositeMapper = { } }; -export const JobTargetGroupListResult: msRest.CompositeMapper = { - serializedName: "JobTargetGroupListResult", +export const ReplicationLinksListResult: msRest.CompositeMapper = { + serializedName: "ReplicationLinksListResult", type: { name: "Composite", - className: "JobTargetGroupListResult", + className: "ReplicationLinksListResult", modelProperties: { value: { readOnly: true, @@ -9613,7 +12659,7 @@ export const JobTargetGroupListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "JobTargetGroup" + className: "ReplicationLink" } } } @@ -9629,11 +12675,11 @@ export const JobTargetGroupListResult: msRest.CompositeMapper = { } }; -export const JobVersionListResult: msRest.CompositeMapper = { - serializedName: "JobVersionListResult", +export const RestorableDroppedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "RestorableDroppedDatabaseListResult", type: { name: "Composite", - className: "JobVersionListResult", + className: "RestorableDroppedDatabaseListResult", modelProperties: { value: { readOnly: true, @@ -9643,7 +12689,7 @@ export const JobVersionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "JobVersion" + className: "RestorableDroppedDatabase" } } } @@ -9659,11 +12705,11 @@ export const JobVersionListResult: msRest.CompositeMapper = { } }; -export const LongTermRetentionBackupListResult: msRest.CompositeMapper = { - serializedName: "LongTermRetentionBackupListResult", +export const RestorableDroppedManagedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "RestorableDroppedManagedDatabaseListResult", type: { name: "Composite", - className: "LongTermRetentionBackupListResult", + className: "RestorableDroppedManagedDatabaseListResult", modelProperties: { value: { readOnly: true, @@ -9673,7 +12719,7 @@ export const LongTermRetentionBackupListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionBackup" + className: "RestorableDroppedManagedDatabase" } } } @@ -9689,11 +12735,11 @@ export const LongTermRetentionBackupListResult: msRest.CompositeMapper = { } }; -export const ManagedBackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = { - serializedName: "ManagedBackupShortTermRetentionPolicyListResult", +export const RestorePointListResult: msRest.CompositeMapper = { + serializedName: "RestorePointListResult", type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicyListResult", + className: "RestorePointListResult", modelProperties: { value: { readOnly: true, @@ -9703,7 +12749,7 @@ export const ManagedBackupShortTermRetentionPolicyListResult: msRest.CompositeMa element: { type: { name: "Composite", - className: "ManagedBackupShortTermRetentionPolicy" + className: "RestorePoint" } } } @@ -9719,11 +12765,11 @@ export const ManagedBackupShortTermRetentionPolicyListResult: msRest.CompositeMa } }; -export const ServerDnsAliasListResult: msRest.CompositeMapper = { - serializedName: "ServerDnsAliasListResult", +export const AdministratorListResult: msRest.CompositeMapper = { + serializedName: "AdministratorListResult", type: { name: "Composite", - className: "ServerDnsAliasListResult", + className: "AdministratorListResult", modelProperties: { value: { readOnly: true, @@ -9733,7 +12779,7 @@ export const ServerDnsAliasListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerDnsAlias" + className: "ServerAzureADAdministrator" } } } @@ -9749,11 +12795,11 @@ export const ServerDnsAliasListResult: msRest.CompositeMapper = { } }; -export const LogicalServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "LogicalServerSecurityAlertPolicyListResult", +export const AzureADOnlyAuthListResult: msRest.CompositeMapper = { + serializedName: "AzureADOnlyAuthListResult", type: { name: "Composite", - className: "LogicalServerSecurityAlertPolicyListResult", + className: "AzureADOnlyAuthListResult", modelProperties: { value: { readOnly: true, @@ -9763,7 +12809,7 @@ export const LogicalServerSecurityAlertPolicyListResult: msRest.CompositeMapper element: { type: { name: "Composite", - className: "ServerSecurityAlertPolicy" + className: "ServerAzureADOnlyAuthentication" } } } @@ -9779,11 +12825,11 @@ export const LogicalServerSecurityAlertPolicyListResult: msRest.CompositeMapper } }; -export const RestorableDroppedManagedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RestorableDroppedManagedDatabaseListResult", +export const ServerDevOpsAuditSettingsListResult: msRest.CompositeMapper = { + serializedName: "ServerDevOpsAuditSettingsListResult", type: { name: "Composite", - className: "RestorableDroppedManagedDatabaseListResult", + className: "ServerDevOpsAuditSettingsListResult", modelProperties: { value: { readOnly: true, @@ -9793,7 +12839,7 @@ export const RestorableDroppedManagedDatabaseListResult: msRest.CompositeMapper element: { type: { name: "Composite", - className: "RestorableDroppedManagedDatabase" + className: "ServerDevOpsAuditingSettings" } } } @@ -9809,11 +12855,11 @@ export const RestorableDroppedManagedDatabaseListResult: msRest.CompositeMapper } }; -export const RestorePointListResult: msRest.CompositeMapper = { - serializedName: "RestorePointListResult", +export const ServerDnsAliasListResult: msRest.CompositeMapper = { + serializedName: "ServerDnsAliasListResult", type: { name: "Composite", - className: "RestorePointListResult", + className: "ServerDnsAliasListResult", modelProperties: { value: { readOnly: true, @@ -9823,20 +12869,27 @@ export const RestorePointListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" + className: "ServerDnsAlias" } } } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const ManagedDatabaseSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseSecurityAlertPolicyListResult", +export const ServerKeyListResult: msRest.CompositeMapper = { + serializedName: "ServerKeyListResult", type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicyListResult", + className: "ServerKeyListResult", modelProperties: { value: { readOnly: true, @@ -9846,7 +12899,7 @@ export const ManagedDatabaseSecurityAlertPolicyListResult: msRest.CompositeMappe element: { type: { name: "Composite", - className: "ManagedDatabaseSecurityAlertPolicy" + className: "ServerKey" } } } @@ -9862,11 +12915,11 @@ export const ManagedDatabaseSecurityAlertPolicyListResult: msRest.CompositeMappe } }; -export const ManagedServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "ManagedServerSecurityAlertPolicyListResult", +export const ServerOperationListResult: msRest.CompositeMapper = { + serializedName: "ServerOperationListResult", type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicyListResult", + className: "ServerOperationListResult", modelProperties: { value: { readOnly: true, @@ -9876,7 +12929,7 @@ export const ManagedServerSecurityAlertPolicyListResult: msRest.CompositeMapper element: { type: { name: "Composite", - className: "ManagedServerSecurityAlertPolicy" + className: "ServerOperation" } } } @@ -9892,11 +12945,11 @@ export const ManagedServerSecurityAlertPolicyListResult: msRest.CompositeMapper } }; -export const SensitivityLabelListResult: msRest.CompositeMapper = { - serializedName: "SensitivityLabelListResult", +export const LogicalServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { + serializedName: "LogicalServerSecurityAlertPolicyListResult", type: { name: "Composite", - className: "SensitivityLabelListResult", + className: "LogicalServerSecurityAlertPolicyListResult", modelProperties: { value: { readOnly: true, @@ -9906,7 +12959,7 @@ export const SensitivityLabelListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SensitivityLabel" + className: "ServerSecurityAlertPolicy" } } } @@ -9922,11 +12975,11 @@ export const SensitivityLabelListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceAdministratorListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceAdministratorListResult", +export const ServerTrustGroupListResult: msRest.CompositeMapper = { + serializedName: "ServerTrustGroupListResult", type: { name: "Composite", - className: "ManagedInstanceAdministratorListResult", + className: "ServerTrustGroupListResult", modelProperties: { value: { readOnly: true, @@ -9936,7 +12989,7 @@ export const ManagedInstanceAdministratorListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstanceAdministrator" + className: "ServerTrustGroup" } } } @@ -9952,11 +13005,11 @@ export const ManagedInstanceAdministratorListResult: msRest.CompositeMapper = { } }; -export const DatabaseOperationListResult: msRest.CompositeMapper = { - serializedName: "DatabaseOperationListResult", +export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentListResult", type: { name: "Composite", - className: "DatabaseOperationListResult", + className: "ServerVulnerabilityAssessmentListResult", modelProperties: { value: { readOnly: true, @@ -9966,7 +13019,7 @@ export const DatabaseOperationListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "DatabaseOperation" + className: "ServerVulnerabilityAssessment" } } } @@ -9982,11 +13035,11 @@ export const DatabaseOperationListResult: msRest.CompositeMapper = { } }; -export const ElasticPoolOperationListResult: msRest.CompositeMapper = { - serializedName: "ElasticPoolOperationListResult", +export const ServerListResult: msRest.CompositeMapper = { + serializedName: "ServerListResult", type: { name: "Composite", - className: "ElasticPoolOperationListResult", + className: "ServerListResult", modelProperties: { value: { readOnly: true, @@ -9996,7 +13049,7 @@ export const ElasticPoolOperationListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ElasticPoolOperation" + className: "Server" } } } @@ -10012,11 +13065,11 @@ export const ElasticPoolOperationListResult: msRest.CompositeMapper = { } }; -export const VulnerabilityAssessmentScanRecordListResult: msRest.CompositeMapper = { - serializedName: "VulnerabilityAssessmentScanRecordListResult", +export const SubscriptionUsageListResult: msRest.CompositeMapper = { + serializedName: "SubscriptionUsageListResult", type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecordListResult", + className: "SubscriptionUsageListResult", modelProperties: { value: { readOnly: true, @@ -10026,7 +13079,7 @@ export const VulnerabilityAssessmentScanRecordListResult: msRest.CompositeMapper element: { type: { name: "Composite", - className: "VulnerabilityAssessmentScanRecord" + className: "SubscriptionUsage" } } } @@ -10042,11 +13095,11 @@ export const VulnerabilityAssessmentScanRecordListResult: msRest.CompositeMapper } }; -export const InstanceFailoverGroupListResult: msRest.CompositeMapper = { - serializedName: "InstanceFailoverGroupListResult", +export const SyncAgentListResult: msRest.CompositeMapper = { + serializedName: "SyncAgentListResult", type: { name: "Composite", - className: "InstanceFailoverGroupListResult", + className: "SyncAgentListResult", modelProperties: { value: { readOnly: true, @@ -10056,7 +13109,7 @@ export const InstanceFailoverGroupListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceFailoverGroup" + className: "SyncAgent" } } } @@ -10072,11 +13125,11 @@ export const InstanceFailoverGroupListResult: msRest.CompositeMapper = { } }; -export const BackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = { - serializedName: "BackupShortTermRetentionPolicyListResult", +export const SyncAgentLinkedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "SyncAgentLinkedDatabaseListResult", type: { name: "Composite", - className: "BackupShortTermRetentionPolicyListResult", + className: "SyncAgentLinkedDatabaseListResult", modelProperties: { value: { readOnly: true, @@ -10086,7 +13139,7 @@ export const BackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = element: { type: { name: "Composite", - className: "BackupShortTermRetentionPolicy" + className: "SyncAgentLinkedDatabase" } } } @@ -10102,11 +13155,11 @@ export const BackupShortTermRetentionPolicyListResult: msRest.CompositeMapper = } }; -export const ManagedInstanceKeyListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceKeyListResult", +export const SyncDatabaseIdListResult: msRest.CompositeMapper = { + serializedName: "SyncDatabaseIdListResult", type: { name: "Composite", - className: "ManagedInstanceKeyListResult", + className: "SyncDatabaseIdListResult", modelProperties: { value: { readOnly: true, @@ -10116,7 +13169,7 @@ export const ManagedInstanceKeyListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstanceKey" + className: "SyncDatabaseIdProperties" } } } @@ -10132,11 +13185,11 @@ export const ManagedInstanceKeyListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceEncryptionProtectorListResult", +export const SyncFullSchemaPropertiesListResult: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaPropertiesListResult", type: { name: "Composite", - className: "ManagedInstanceEncryptionProtectorListResult", + className: "SyncFullSchemaPropertiesListResult", modelProperties: { value: { readOnly: true, @@ -10146,7 +13199,7 @@ export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMappe element: { type: { name: "Composite", - className: "ManagedInstanceEncryptionProtector" + className: "SyncFullSchemaProperties" } } } @@ -10162,11 +13215,11 @@ export const ManagedInstanceEncryptionProtectorListResult: msRest.CompositeMappe } }; -export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "RecoverableManagedDatabaseListResult", +export const SyncGroupLogListResult: msRest.CompositeMapper = { + serializedName: "SyncGroupLogListResult", type: { name: "Composite", - className: "RecoverableManagedDatabaseListResult", + className: "SyncGroupLogListResult", modelProperties: { value: { readOnly: true, @@ -10176,7 +13229,7 @@ export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RecoverableManagedDatabase" + className: "SyncGroupLogProperties" } } } @@ -10192,11 +13245,11 @@ export const RecoverableManagedDatabaseListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceVulnerabilityAssessmentListResult", +export const SyncGroupListResult: msRest.CompositeMapper = { + serializedName: "SyncGroupListResult", type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessmentListResult", + className: "SyncGroupListResult", modelProperties: { value: { readOnly: true, @@ -10206,7 +13259,7 @@ export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeM element: { type: { name: "Composite", - className: "ManagedInstanceVulnerabilityAssessment" + className: "SyncGroup" } } } @@ -10222,11 +13275,11 @@ export const ManagedInstanceVulnerabilityAssessmentListResult: msRest.CompositeM } }; -export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessmentListResult", +export const SyncMemberListResult: msRest.CompositeMapper = { + serializedName: "SyncMemberListResult", type: { name: "Composite", - className: "ServerVulnerabilityAssessmentListResult", + className: "SyncMemberListResult", modelProperties: { value: { readOnly: true, @@ -10236,7 +13289,7 @@ export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ServerVulnerabilityAssessment" + className: "SyncMember" } } } @@ -10252,11 +13305,11 @@ export const ServerVulnerabilityAssessmentListResult: msRest.CompositeMapper = { } }; -export const InstancePoolListResult: msRest.CompositeMapper = { - serializedName: "InstancePoolListResult", +export const TimeZoneListResult: msRest.CompositeMapper = { + serializedName: "TimeZoneListResult", type: { name: "Composite", - className: "InstancePoolListResult", + className: "TimeZoneListResult", modelProperties: { value: { readOnly: true, @@ -10266,7 +13319,7 @@ export const InstancePoolListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "InstancePool" + className: "TimeZone" } } } @@ -10282,11 +13335,11 @@ export const InstancePoolListResult: msRest.CompositeMapper = { } }; -export const UsageListResult: msRest.CompositeMapper = { - serializedName: "UsageListResult", +export const LogicalDatabaseTransparentDataEncryptionListResult: msRest.CompositeMapper = { + serializedName: "LogicalDatabaseTransparentDataEncryptionListResult", type: { name: "Composite", - className: "UsageListResult", + className: "LogicalDatabaseTransparentDataEncryptionListResult", modelProperties: { value: { readOnly: true, @@ -10296,7 +13349,7 @@ export const UsageListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" + className: "LogicalDatabaseTransparentDataEncryption" } } } @@ -10312,11 +13365,11 @@ export const UsageListResult: msRest.CompositeMapper = { } }; -export const ManagedInstanceListResult: msRest.CompositeMapper = { - serializedName: "ManagedInstanceListResult", +export const VirtualClusterListResult: msRest.CompositeMapper = { + serializedName: "VirtualClusterListResult", type: { name: "Composite", - className: "ManagedInstanceListResult", + className: "VirtualClusterListResult", modelProperties: { value: { readOnly: true, @@ -10326,7 +13379,7 @@ export const ManagedInstanceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedInstance" + className: "VirtualCluster" } } } @@ -10342,11 +13395,11 @@ export const ManagedInstanceListResult: msRest.CompositeMapper = { } }; -export const ManagedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseListResult", +export const VirtualNetworkRuleListResult: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRuleListResult", type: { name: "Composite", - className: "ManagedDatabaseListResult", + className: "VirtualNetworkRuleListResult", modelProperties: { value: { readOnly: true, @@ -10356,7 +13409,7 @@ export const ManagedDatabaseListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ManagedDatabase" + className: "VirtualNetworkRule" } } } @@ -10372,11 +13425,11 @@ export const ManagedDatabaseListResult: msRest.CompositeMapper = { } }; -export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionListResult", +export const WorkloadClassifierListResult: msRest.CompositeMapper = { + serializedName: "WorkloadClassifierListResult", type: { name: "Composite", - className: "PrivateEndpointConnectionListResult", + className: "WorkloadClassifierListResult", modelProperties: { value: { readOnly: true, @@ -10386,7 +13439,7 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" + className: "WorkloadClassifier" } } } @@ -10402,11 +13455,11 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", +export const WorkloadGroupListResult: msRest.CompositeMapper = { + serializedName: "WorkloadGroupListResult", type: { name: "Composite", - className: "PrivateLinkResourceListResult", + className: "WorkloadGroupListResult", modelProperties: { value: { readOnly: true, @@ -10416,7 +13469,7 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" + className: "WorkloadGroup" } } } diff --git a/sdk/sql/arm-sql/src/models/operationsHealthOperationsMappers.ts b/sdk/sql/arm-sql/src/models/operationsHealthOperationsMappers.ts new file mode 100644 index 000000000000..aa4c3f5ceb9a --- /dev/null +++ b/sdk/sql/arm-sql/src/models/operationsHealthOperationsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OperationsHealthListResult, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/operationsMappers.ts b/sdk/sql/arm-sql/src/models/operationsMappers.ts index 689688180be7..938d3e665a23 100644 --- a/sdk/sql/arm-sql/src/models/operationsMappers.ts +++ b/sdk/sql/arm-sql/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/sql/arm-sql/src/models/outboundFirewallRulesMappers.ts b/sdk/sql/arm-sql/src/models/outboundFirewallRulesMappers.ts new file mode 100644 index 000000000000..f7be78a83b59 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/outboundFirewallRulesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + OutboundFirewallRuleListResult, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 85f7ca30cdca..dc56c2bd3aed 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,19 +19,7 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const administratorName0: msRest.OperationURLParameter = { - parameterPath: "administratorName", - mapper: { - required: true, - isConstant: true, - serializedName: "administratorName", - defaultValue: 'activeDirectory', - type: { - name: "String" - } - } -}; -export const administratorName1: msRest.OperationURLParameter = { +export const administratorName: msRest.OperationURLParameter = { parameterPath: "administratorName", mapper: { required: true, @@ -44,61 +31,45 @@ export const administratorName1: msRest.OperationURLParameter = { } } }; -export const apiVersion0: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", +export const advisorName: msRest.OperationURLParameter = { + parameterPath: "advisorName", mapper: { required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2014-04-01', + serializedName: "advisorName", type: { name: "String" } } }; -export const apiVersion1: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2015-05-01-preview', - type: { - name: "String" - } - } -}; -export const apiVersion2: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", +export const aggregationFunction: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "aggregationFunction" + ], mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2017-10-01-preview', + serializedName: "aggregationFunction", type: { name: "String" } } }; -export const apiVersion3: msRest.OperationQueryParameter = { +export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2018-06-01-preview', type: { name: "String" } } }; -export const apiVersion4: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", +export const authenticationName: msRest.OperationURLParameter = { + parameterPath: "authenticationName", mapper: { required: true, isConstant: true, - serializedName: "api-version", - defaultValue: '2017-03-01-preview', + serializedName: "authenticationName", + defaultValue: 'Default', type: { name: "String" } @@ -140,47 +111,55 @@ export const blobAuditingPolicyName: msRest.OperationURLParameter = { } } }; -export const columnName: msRest.OperationURLParameter = { - parameterPath: "columnName", +export const column: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "column" + ], mapper: { - required: true, - serializedName: "columnName", + serializedName: "column", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } + }, + collectionFormat: msRest.QueryCollectionFormat.Multi }; -export const communicationLinkName: msRest.OperationURLParameter = { - parameterPath: "communicationLinkName", +export const columnName: msRest.OperationURLParameter = { + parameterPath: "columnName", mapper: { required: true, - serializedName: "communicationLinkName", + serializedName: "columnName", type: { name: "String" } } }; -export const connectionPolicyName: msRest.OperationURLParameter = { - parameterPath: "connectionPolicyName", +export const continuationToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "continuationToken" + ], mapper: { - required: true, - isConstant: true, - serializedName: "connectionPolicyName", - defaultValue: 'default', + serializedName: "continuationToken", type: { name: "String" } } }; -export const continuationToken: msRest.OperationQueryParameter = { +export const count: msRest.OperationQueryParameter = { parameterPath: [ "options", - "continuationToken" + "count" ], mapper: { - serializedName: "continuationToken", + serializedName: "$count", type: { - name: "String" + name: "Boolean" } } }; @@ -228,6 +207,18 @@ export const databaseName: msRest.OperationURLParameter = { } } }; +export const databases: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "databases" + ], + mapper: { + serializedName: "databases", + type: { + name: "String" + } + } +}; export const databaseState: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -240,23 +231,33 @@ export const databaseState: msRest.OperationQueryParameter = { } } }; -export const dataMaskingPolicyName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingPolicyName", +export const dataWarehouseUserActivityName: msRest.OperationURLParameter = { + parameterPath: "dataWarehouseUserActivityName", mapper: { required: true, isConstant: true, - serializedName: "dataMaskingPolicyName", - defaultValue: 'Default', + serializedName: "dataWarehouseUserActivityName", + defaultValue: 'current', type: { name: "String" } } }; -export const dataMaskingRuleName: msRest.OperationURLParameter = { - parameterPath: "dataMaskingRuleName", +export const deletedServerName: msRest.OperationURLParameter = { + parameterPath: "deletedServerName", mapper: { required: true, - serializedName: "dataMaskingRuleName", + serializedName: "deletedServerName", + type: { + name: "String" + } + } +}; +export const devOpsAuditingSettingsName: msRest.OperationURLParameter = { + parameterPath: "devOpsAuditingSettingsName", + mapper: { + required: true, + serializedName: "devOpsAuditingSettingsName", type: { name: "String" } @@ -294,7 +295,19 @@ export const encryptionProtectorName: msRest.OperationURLParameter = { } } }; -export const endTime: msRest.OperationQueryParameter = { +export const endTime0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "endTime" + ], + mapper: { + serializedName: "endTime", + type: { + name: "String" + } + } +}; +export const endTime1: msRest.OperationQueryParameter = { parameterPath: "endTime", mapper: { required: true, @@ -328,15 +341,15 @@ export const endTimeMin: msRest.OperationQueryParameter = { } } }; -export const expandChildren: msRest.OperationQueryParameter = { +export const expand: msRest.OperationQueryParameter = { parameterPath: [ "options", - "expandChildren" + "expand" ], mapper: { - serializedName: "expandChildren", + serializedName: "$expand", type: { - name: "Boolean" + name: "String" } } }; @@ -344,9 +357,7 @@ export const extensionName: msRest.OperationURLParameter = { parameterPath: "extensionName", mapper: { required: true, - isConstant: true, serializedName: "extensionName", - defaultValue: 'import', type: { name: "String" } @@ -362,17 +373,7 @@ export const failoverGroupName: msRest.OperationURLParameter = { } } }; -export const filter0: msRest.OperationQueryParameter = { - parameterPath: "filter", - mapper: { - required: true, - serializedName: "$filter", - type: { - name: "String" - } - } -}; -export const filter1: msRest.OperationQueryParameter = { +export const filter: msRest.OperationQueryParameter = { parameterPath: [ "options", "filter" @@ -394,18 +395,6 @@ export const firewallRuleName: msRest.OperationURLParameter = { } } }; -export const geoBackupPolicyName: msRest.OperationURLParameter = { - parameterPath: "geoBackupPolicyName", - mapper: { - required: true, - isConstant: true, - serializedName: "geoBackupPolicyName", - defaultValue: 'Default', - type: { - name: "String" - } - } -}; export const groupName: msRest.OperationURLParameter = { parameterPath: "groupName", mapper: { @@ -450,6 +439,18 @@ export const instancePoolName: msRest.OperationURLParameter = { } } }; +export const interval: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "interval" + ], + mapper: { + serializedName: "interval", + type: { + name: "String" + } + } +}; export const isActive: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -512,16 +513,6 @@ export const keyName: msRest.OperationURLParameter = { } } }; -export const linkId: msRest.OperationURLParameter = { - parameterPath: "linkId", - mapper: { - required: true, - serializedName: "linkId", - type: { - name: "String" - } - } -}; export const locationName: msRest.OperationURLParameter = { parameterPath: "locationName", mapper: { @@ -552,6 +543,26 @@ export const longTermRetentionServerName: msRest.OperationURLParameter = { } } }; +export const maintenanceWindowName: msRest.OperationQueryParameter = { + parameterPath: "maintenanceWindowName", + mapper: { + required: true, + serializedName: "maintenanceWindowName", + type: { + name: "String" + } + } +}; +export const maintenanceWindowOptionsName: msRest.OperationQueryParameter = { + parameterPath: "maintenanceWindowOptionsName", + mapper: { + required: true, + serializedName: "maintenanceWindowOptionsName", + type: { + name: "String" + } + } +}; export const managedInstanceName: msRest.OperationURLParameter = { parameterPath: "managedInstanceName", mapper: { @@ -573,6 +584,30 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const numberOfQueries: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "numberOfQueries" + ], + mapper: { + serializedName: "numberOfQueries", + type: { + name: "Number" + } + } +}; +export const observationMetric: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "observationMetric" + ], + mapper: { + serializedName: "observationMetric", + type: { + name: "String" + } + } +}; export const onlyLatestPerDatabase: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -595,6 +630,34 @@ export const operationId: msRest.OperationURLParameter = { } } }; +export const orderBy: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderBy" + ], + mapper: { + serializedName: "orderBy", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: msRest.QueryCollectionFormat.Multi +}; +export const outboundRuleFqdn: msRest.OperationURLParameter = { + parameterPath: "outboundRuleFqdn", + mapper: { + required: true, + serializedName: "outboundRuleFqdn", + type: { + name: "String" + } + } +}; export const policyName: msRest.OperationURLParameter = { parameterPath: "policyName", mapper: { @@ -617,11 +680,21 @@ export const privateEndpointConnectionName: msRest.OperationURLParameter = { } } }; -export const recommendedElasticPoolName: msRest.OperationURLParameter = { - parameterPath: "recommendedElasticPoolName", +export const queryId: msRest.OperationURLParameter = { + parameterPath: "queryId", + mapper: { + required: true, + serializedName: "queryId", + type: { + name: "String" + } + } +}; +export const recommendedActionName: msRest.OperationURLParameter = { + parameterPath: "recommendedActionName", mapper: { required: true, - serializedName: "recommendedElasticPoolName", + serializedName: "recommendedActionName", type: { name: "String" } @@ -637,6 +710,16 @@ export const recoverableDatabaseName: msRest.OperationURLParameter = { } } }; +export const replicationLinkName: msRest.OperationURLParameter = { + parameterPath: "replicationLinkName", + mapper: { + required: true, + serializedName: "replicationLinkName", + type: { + name: "String" + } + } +}; export const replicaType: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -669,16 +752,6 @@ export const restorableDroppedDatabaseId: msRest.OperationURLParameter = { } } }; -export const restorableDroppededDatabaseId: msRest.OperationURLParameter = { - parameterPath: "restorableDroppededDatabaseId", - mapper: { - required: true, - serializedName: "restorableDroppededDatabaseId", - type: { - name: "String" - } - } -}; export const restoreDetailsName: msRest.OperationURLParameter = { parameterPath: "restoreDetailsName", mapper: { @@ -721,6 +794,24 @@ export const scanId: msRest.OperationURLParameter = { } } }; +export const schema: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "schema" + ], + mapper: { + serializedName: "schema", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: msRest.QueryCollectionFormat.Multi +}; export const schemaName: msRest.OperationURLParameter = { parameterPath: "schemaName", mapper: { @@ -759,11 +850,13 @@ export const sensitivityLabelSource0: msRest.OperationURLParameter = { parameterPath: "sensitivityLabelSource", mapper: { required: true, - isConstant: true, serializedName: "sensitivityLabelSource", - defaultValue: 'recommended', type: { - name: "String" + name: "Enum", + allowedValues: [ + "current", + "recommended" + ] } } }; @@ -771,13 +864,11 @@ export const sensitivityLabelSource1: msRest.OperationURLParameter = { parameterPath: "sensitivityLabelSource", mapper: { required: true, + isConstant: true, serializedName: "sensitivityLabelSource", + defaultValue: 'current', type: { - name: "Enum", - allowedValues: [ - "current", - "recommended" - ] + name: "String" } } }; @@ -787,7 +878,7 @@ export const sensitivityLabelSource2: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "sensitivityLabelSource", - defaultValue: 'current', + defaultValue: 'recommended', type: { name: "String" } @@ -803,35 +894,37 @@ export const serverName: msRest.OperationURLParameter = { } } }; -export const serviceObjectiveName: msRest.OperationURLParameter = { - parameterPath: "serviceObjectiveName", +export const serverTrustGroupName: msRest.OperationURLParameter = { + parameterPath: "serverTrustGroupName", mapper: { required: true, - serializedName: "serviceObjectiveName", + serializedName: "serverTrustGroupName", type: { name: "String" } } }; -export const serviceTierAdvisorName: msRest.OperationURLParameter = { - parameterPath: "serviceTierAdvisorName", +export const skip: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skip" + ], mapper: { - required: true, - serializedName: "serviceTierAdvisorName", + serializedName: "$skip", type: { - name: "String" + name: "Number" } } }; -export const skip: msRest.OperationQueryParameter = { +export const skiptoken: msRest.OperationQueryParameter = { parameterPath: [ "options", - "skip" + "skiptoken" ], mapper: { - serializedName: "$skip", + serializedName: "$skiptoken", type: { - name: "Number" + name: "String" } } }; @@ -847,7 +940,19 @@ export const skipToken: msRest.OperationQueryParameter = { } } }; -export const startTime: msRest.OperationQueryParameter = { +export const startTime0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "startTime" + ], + mapper: { + serializedName: "startTime", + type: { + name: "String" + } + } +}; +export const startTime1: msRest.OperationQueryParameter = { parameterPath: "startTime", mapper: { required: true, @@ -907,6 +1012,24 @@ export const syncMemberName: msRest.OperationURLParameter = { } } }; +export const table: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "table" + ], + mapper: { + serializedName: "table", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + collectionFormat: msRest.QueryCollectionFormat.Multi +}; export const tableName: msRest.OperationURLParameter = { parameterPath: "tableName", mapper: { @@ -937,30 +1060,40 @@ export const targetId: msRest.OperationURLParameter = { } } }; -export const top: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "top" - ], +export const tdeName: msRest.OperationURLParameter = { + parameterPath: "tdeName", mapper: { - serializedName: "$top", + required: true, + isConstant: true, + serializedName: "tdeName", + defaultValue: 'current', type: { - name: "Number" + name: "String" } } }; -export const transparentDataEncryptionName: msRest.OperationURLParameter = { - parameterPath: "transparentDataEncryptionName", +export const timeZoneId: msRest.OperationURLParameter = { + parameterPath: "timeZoneId", mapper: { required: true, - isConstant: true, - serializedName: "transparentDataEncryptionName", - defaultValue: 'current', + serializedName: "timeZoneId", type: { name: "String" } } }; +export const top: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + type: { + name: "Number" + } + } +}; export const type: msRest.OperationQueryParameter = { parameterPath: "type", mapper: { @@ -1013,3 +1146,23 @@ export const vulnerabilityAssessmentName: msRest.OperationURLParameter = { } } }; +export const workloadClassifierName: msRest.OperationURLParameter = { + parameterPath: "workloadClassifierName", + mapper: { + required: true, + serializedName: "workloadClassifierName", + type: { + name: "String" + } + } +}; +export const workloadGroupName: msRest.OperationURLParameter = { + parameterPath: "workloadGroupName", + mapper: { + required: true, + serializedName: "workloadGroupName", + type: { + name: "String" + } + } +}; diff --git a/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts b/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts index 6afd01cf22af..46498337b391 100644 --- a/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/sql/arm-sql/src/models/privateEndpointConnectionsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, PrivateEndpointConnectionListResult, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts b/sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts index 296ecc5ac9a4..e4a6ba3b5e2b 100644 --- a/sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts +++ b/sdk/sql/arm-sql/src/models/privateLinkResourcesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/recommendedElasticPoolsMappers.ts b/sdk/sql/arm-sql/src/models/recommendedElasticPoolsMappers.ts deleted file mode 100644 index 0eee5fddc7c8..000000000000 --- a/sdk/sql/arm-sql/src/models/recommendedElasticPoolsMappers.ts +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolListMetricsResult, - RecommendedElasticPoolListResult, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/recommendedSensitivityLabelsMappers.ts b/sdk/sql/arm-sql/src/models/recommendedSensitivityLabelsMappers.ts new file mode 100644 index 000000000000..fdf5691063b1 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/recommendedSensitivityLabelsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecommendedSensitivityLabelUpdateList, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/recoverableDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/recoverableDatabasesMappers.ts deleted file mode 100644 index 9677584090a7..000000000000 --- a/sdk/sql/arm-sql/src/models/recoverableDatabasesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableDatabaseListResult, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts index 1ddfda89c4cf..3abbe6fd35b3 100644 --- a/sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/recoverableManagedDatabasesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, RecoverableManagedDatabaseListResult, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/replicationLinksMappers.ts b/sdk/sql/arm-sql/src/models/replicationLinksMappers.ts index 11f8b42a5b3b..067a0ea0852c 100644 --- a/sdk/sql/arm-sql/src/models/replicationLinksMappers.ts +++ b/sdk/sql/arm-sql/src/models/replicationLinksMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, - ReplicationLinkListResult, + ReplicationLinksListResult, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts index b74820bd914f..4ebee593c09c 100644 --- a/sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/restorableDroppedDatabasesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedDatabaseListResult, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts b/sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts index cdc3365f6cf9..381abf58de90 100644 --- a/sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/restorableDroppedManagedDatabasesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorableDroppedManagedDatabaseListResult, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/restorePointsMappers.ts b/sdk/sql/arm-sql/src/models/restorePointsMappers.ts index 1dc3fc0e9ba9..25e1976c76ff 100644 --- a/sdk/sql/arm-sql/src/models/restorePointsMappers.ts +++ b/sdk/sql/arm-sql/src/models/restorePointsMappers.ts @@ -1,15 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, @@ -17,17 +17,20 @@ export { Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -37,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -56,54 +59,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, RestorePointListResult, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -112,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts b/sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts index 87d6022ba880..87e08f76f3db 100644 --- a/sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts +++ b/sdk/sql/arm-sql/src/models/sensitivityLabelsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,94 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, SensitivityLabelListResult, + SensitivityLabelUpdate, + SensitivityLabelUpdateList, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverAdvisorsMappers.ts b/sdk/sql/arm-sql/src/models/serverAdvisorsMappers.ts new file mode 100644 index 000000000000..1d10d36bb56c --- /dev/null +++ b/sdk/sql/arm-sql/src/models/serverAdvisorsMappers.ts @@ -0,0 +1,170 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts b/sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverAutomaticTuningOperationsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts b/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts index f9ecf612a004..922f5f4c90d7 100644 --- a/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverAzureADAdministratorsMappers.ts @@ -1,32 +1,36 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + AdministratorListResult, + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +40,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +59,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, - ServerAdministratorListResult, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverAzureADOnlyAuthenticationsMappers.ts b/sdk/sql/arm-sql/src/models/serverAzureADOnlyAuthenticationsMappers.ts new file mode 100644 index 000000000000..b67f4a858762 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/serverAzureADOnlyAuthenticationsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + AzureADOnlyAuthListResult, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts index 2c08a5a5d576..c9fb1b76e6f1 100644 --- a/sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverBlobAuditingPoliciesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, ServerBlobAuditingPolicyListResult, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverCommunicationLinksMappers.ts b/sdk/sql/arm-sql/src/models/serverCommunicationLinksMappers.ts deleted file mode 100644 index 8fee97fe4555..000000000000 --- a/sdk/sql/arm-sql/src/models/serverCommunicationLinksMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerCommunicationLinkListResult, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverConnectionPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/serverConnectionPoliciesMappers.ts deleted file mode 100644 index 7979989c60d3..000000000000 --- a/sdk/sql/arm-sql/src/models/serverConnectionPoliciesMappers.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverDevOpsAuditSettingsMappers.ts b/sdk/sql/arm-sql/src/models/serverDevOpsAuditSettingsMappers.ts new file mode 100644 index 000000000000..8a2858a55344 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/serverDevOpsAuditSettingsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDevOpsAuditSettingsListResult, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts b/sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts index 2df18ff0e2c2..83c6bc206700 100644 --- a/sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverDnsAliasesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,55 +58,94 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, ServerDnsAliasAcquisition, ServerDnsAliasListResult, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -112,13 +154,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverKeysMappers.ts b/sdk/sql/arm-sql/src/models/serverKeysMappers.ts index 83ddf2f8f7b2..b2461a7685a3 100644 --- a/sdk/sql/arm-sql/src/models/serverKeysMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverKeysMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, ServerKeyListResult, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverOperationsMappers.ts b/sdk/sql/arm-sql/src/models/serverOperationsMappers.ts new file mode 100644 index 000000000000..fdecc709f392 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/serverOperationsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerOperationListResult, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts b/sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts index ffc361e9b674..ad1ec3789fe1 100644 --- a/sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverSecurityAlertPoliciesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LogicalServerSecurityAlertPolicyListResult, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverTrustGroupsMappers.ts b/sdk/sql/arm-sql/src/models/serverTrustGroupsMappers.ts new file mode 100644 index 000000000000..ddba4b7f7142 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/serverTrustGroupsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerTrustGroupListResult, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverUsagesMappers.ts b/sdk/sql/arm-sql/src/models/serverUsagesMappers.ts deleted file mode 100644 index 518a73b015ba..000000000000 --- a/sdk/sql/arm-sql/src/models/serverUsagesMappers.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - CloudError, - ServerUsage, - ServerUsageListResult -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts b/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts index 752ff0c23f91..3c281555a525 100644 --- a/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/serverVulnerabilityAssessmentsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,54 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, ServerVulnerabilityAssessmentListResult, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serversMappers.ts b/sdk/sql/arm-sql/src/models/serversMappers.ts index 30808fc774b5..25f01ec39ec9 100644 --- a/sdk/sql/arm-sql/src/models/serversMappers.ts +++ b/sdk/sql/arm-sql/src/models/serversMappers.ts @@ -1,15 +1,15 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CheckNameAvailabilityRequest, @@ -18,17 +18,20 @@ export { Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -38,8 +41,9 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + ImportNewDatabaseDefinition, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -57,55 +61,95 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + NetworkIsolationSettings, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, ServerListResult, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerUpdate, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -114,13 +158,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serviceObjectivesMappers.ts b/sdk/sql/arm-sql/src/models/serviceObjectivesMappers.ts deleted file mode 100644 index 9f3c7f50b3ec..000000000000 --- a/sdk/sql/arm-sql/src/models/serviceObjectivesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceObjectiveListResult, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/serviceTierAdvisorsMappers.ts b/sdk/sql/arm-sql/src/models/serviceTierAdvisorsMappers.ts deleted file mode 100644 index 894adb3d60dd..000000000000 --- a/sdk/sql/arm-sql/src/models/serviceTierAdvisorsMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - ServiceTierAdvisorListResult, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/sqlAgentMappers.ts b/sdk/sql/arm-sql/src/models/sqlAgentMappers.ts new file mode 100644 index 000000000000..1d10d36bb56c --- /dev/null +++ b/sdk/sql/arm-sql/src/models/sqlAgentMappers.ts @@ -0,0 +1,170 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts b/sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts index 00869dab7501..5385ec0a8240 100644 --- a/sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts +++ b/sdk/sql/arm-sql/src/models/subscriptionUsagesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SubscriptionUsageListResult, SyncAgent, @@ -111,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/syncAgentsMappers.ts b/sdk/sql/arm-sql/src/models/syncAgentsMappers.ts index b4b302816e20..3b0f1b0a2406 100644 --- a/sdk/sql/arm-sql/src/models/syncAgentsMappers.ts +++ b/sdk/sql/arm-sql/src/models/syncAgentsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentKeyProperties, @@ -113,13 +155,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/syncGroupsMappers.ts b/sdk/sql/arm-sql/src/models/syncGroupsMappers.ts index 2df7178b4a32..45747b6e8808 100644 --- a/sdk/sql/arm-sql/src/models/syncGroupsMappers.ts +++ b/sdk/sql/arm-sql/src/models/syncGroupsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -119,13 +161,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/syncMembersMappers.ts b/sdk/sql/arm-sql/src/models/syncMembersMappers.ts index 340117c02ee4..8536d9ef049b 100644 --- a/sdk/sql/arm-sql/src/models/syncMembersMappers.ts +++ b/sdk/sql/arm-sql/src/models/syncMembersMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -115,13 +157,19 @@ export { SyncGroupSchemaTableColumn, SyncMember, SyncMemberListResult, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts b/sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts index 7979989c60d3..1d10d36bb56c 100644 --- a/sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts +++ b/sdk/sql/arm-sql/src/models/tdeCertificatesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +152,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/timeZonesMappers.ts b/sdk/sql/arm-sql/src/models/timeZonesMappers.ts new file mode 100644 index 000000000000..ffe5f81bdcc6 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/timeZonesMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TimeZoneListResult, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/transparentDataEncryptionActivitiesMappers.ts b/sdk/sql/arm-sql/src/models/transparentDataEncryptionActivitiesMappers.ts deleted file mode 100644 index 27d7b720ae1f..000000000000 --- a/sdk/sql/arm-sql/src/models/transparentDataEncryptionActivitiesMappers.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - AutomaticTuningOptions, - AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, - BackupShortTermRetentionPolicy, - BaseResource, - CloudError, - Database, - DatabaseAutomaticTuning, - DatabaseBlobAuditingPolicy, - DatabaseOperation, - DatabaseSecurityAlertPolicy, - DatabaseVulnerabilityAssessment, - DatabaseVulnerabilityAssessmentRuleBaseline, - DatabaseVulnerabilityAssessmentRuleBaselineItem, - DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, - ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, - ElasticPoolOperation, - ElasticPoolPerDatabaseSettings, - EncryptionProtector, - ExtendedDatabaseBlobAuditingPolicy, - ExtendedServerBlobAuditingPolicy, - FailoverGroup, - FailoverGroupReadOnlyEndpoint, - FailoverGroupReadWriteEndpoint, - FirewallRule, - GeoBackupPolicy, - ImportExportResponse, - InstanceFailoverGroup, - InstanceFailoverGroupReadOnlyEndpoint, - InstanceFailoverGroupReadWriteEndpoint, - InstancePool, - Job, - JobAgent, - JobCredential, - JobExecution, - JobExecutionTarget, - JobSchedule, - JobStep, - JobStepAction, - JobStepExecutionOptions, - JobStepOutput, - JobTarget, - JobTargetGroup, - JobVersion, - LongTermRetentionBackup, - ManagedBackupShortTermRetentionPolicy, - ManagedDatabase, - ManagedDatabaseRestoreDetailsResult, - ManagedDatabaseSecurityAlertPolicy, - ManagedInstance, - ManagedInstanceAdministrator, - ManagedInstanceEncryptionProtector, - ManagedInstanceKey, - ManagedInstancePairInfo, - ManagedInstanceVulnerabilityAssessment, - ManagedServerSecurityAlertPolicy, - OperationImpact, - PartnerInfo, - PartnerRegionInfo, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceProperties, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, - RecoverableManagedDatabase, - ReplicationLink, - Resource, - ResourceIdentity, - RestorableDroppedDatabase, - RestorableDroppedManagedDatabase, - RestorePoint, - SensitivityLabel, - Server, - ServerAutomaticTuning, - ServerAzureADAdministrator, - ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, - ServerDnsAlias, - ServerKey, - ServerSecurityAlertPolicy, - ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, - Sku, - SloUsageMetric, - SubscriptionUsage, - SyncAgent, - SyncAgentLinkedDatabase, - SyncGroup, - SyncGroupSchema, - SyncGroupSchemaTable, - SyncGroupSchemaTableColumn, - SyncMember, - TdeCertificate, - TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, - TransparentDataEncryptionActivityListResult, - VirtualCluster, - VirtualNetworkRule, - VulnerabilityAssessmentRecurringScansProperties, - VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts b/sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts index 7979989c60d3..a69378d79f8e 100644 --- a/sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts +++ b/sdk/sql/arm-sql/src/models/transparentDataEncryptionsMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,93 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, + LogicalDatabaseTransparentDataEncryptionListResult, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,13 +153,19 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/usagesMappers.ts b/sdk/sql/arm-sql/src/models/usagesMappers.ts deleted file mode 100644 index 5e7352c44b40..000000000000 --- a/sdk/sql/arm-sql/src/models/usagesMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - CloudError, - Name, - Usage, - UsageListResult -} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/virtualClustersMappers.ts b/sdk/sql/arm-sql/src/models/virtualClustersMappers.ts index 90ecde2829f0..a07b4bf0beaa 100644 --- a/sdk/sql/arm-sql/src/models/virtualClustersMappers.ts +++ b/sdk/sql/arm-sql/src/models/virtualClustersMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,15 +152,21 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualClusterListResult, VirtualClusterUpdate, VirtualNetworkRule, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts b/sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts index cdf3c431e362..5e231b4c208a 100644 --- a/sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts +++ b/sdk/sql/arm-sql/src/models/virtualNetworkRulesMappers.ts @@ -1,32 +1,35 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + Advisor, AutomaticTuningOptions, AutomaticTuningServerOptions, - BackupLongTermRetentionPolicy, BackupShortTermRetentionPolicy, BaseResource, CloudError, Database, DatabaseAutomaticTuning, DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, DatabaseOperation, + DatabaseSchema, DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, DatabaseVulnerabilityAssessment, DatabaseVulnerabilityAssessmentRuleBaseline, DatabaseVulnerabilityAssessmentRuleBaselineItem, DatabaseVulnerabilityAssessmentScansExport, - DataMaskingPolicy, - DataMaskingRule, + DataWarehouseUserActivities, + DeletedServer, ElasticPool, - ElasticPoolActivity, - ElasticPoolDatabaseActivity, ElasticPoolOperation, ElasticPoolPerDatabaseSettings, EncryptionProtector, @@ -36,8 +39,8 @@ export { FailoverGroupReadOnlyEndpoint, FailoverGroupReadWriteEndpoint, FirewallRule, - GeoBackupPolicy, - ImportExportResponse, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, InstanceFailoverGroup, InstanceFailoverGroupReadOnlyEndpoint, InstanceFailoverGroupReadWriteEndpoint, @@ -55,53 +58,92 @@ export { JobTarget, JobTargetGroup, JobVersion, + LogicalDatabaseTransparentDataEncryption, LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, ManagedBackupShortTermRetentionPolicy, ManagedDatabase, ManagedDatabaseRestoreDetailsResult, ManagedDatabaseSecurityAlertPolicy, ManagedInstance, ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, ManagedInstanceVulnerabilityAssessment, ManagedServerSecurityAlertPolicy, - OperationImpact, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, PartnerInfo, PartnerRegionInfo, PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkResourceProperties, PrivateLinkServiceConnectionStateProperty, ProxyResource, - RecommendedElasticPool, - RecommendedElasticPoolMetric, - RecommendedIndex, - RecoverableDatabase, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, RecoverableManagedDatabase, ReplicationLink, Resource, - ResourceIdentity, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, RestorableDroppedDatabase, RestorableDroppedManagedDatabase, RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, SensitivityLabel, + SensitivityLabelUpdate, Server, ServerAutomaticTuning, ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, ServerBlobAuditingPolicy, - ServerCommunicationLink, - ServerConnectionPolicy, + ServerDevOpsAuditingSettings, ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, ServerSecurityAlertPolicy, + ServerTrustGroup, ServerVulnerabilityAssessment, - ServiceObjective, - ServiceTierAdvisor, Sku, - SloUsageMetric, + SqlAgentConfiguration, SubscriptionUsage, SyncAgent, SyncAgentLinkedDatabase, @@ -110,14 +152,20 @@ export { SyncGroupSchemaTable, SyncGroupSchemaTableColumn, SyncMember, + SystemData, TdeCertificate, + TimeZone, TrackedResource, - TransparentDataEncryption, - TransparentDataEncryptionActivity, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, VirtualCluster, VirtualNetworkRule, VirtualNetworkRuleListResult, VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentScanError, - VulnerabilityAssessmentScanRecord + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup } from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/workloadClassifiersMappers.ts b/sdk/sql/arm-sql/src/models/workloadClassifiersMappers.ts new file mode 100644 index 000000000000..baf90c3005d5 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/workloadClassifiersMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadClassifierListResult, + WorkloadGroup +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/models/workloadGroupsMappers.ts b/sdk/sql/arm-sql/src/models/workloadGroupsMappers.ts new file mode 100644 index 000000000000..aef36929efb8 --- /dev/null +++ b/sdk/sql/arm-sql/src/models/workloadGroupsMappers.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + Advisor, + AutomaticTuningOptions, + AutomaticTuningServerOptions, + BackupShortTermRetentionPolicy, + BaseResource, + CloudError, + Database, + DatabaseAutomaticTuning, + DatabaseBlobAuditingPolicy, + DatabaseColumn, + DatabaseExtensions, + DatabaseOperation, + DatabaseSchema, + DatabaseSecurityAlertPolicy, + DatabaseTable, + DatabaseUsage, + DatabaseVulnerabilityAssessment, + DatabaseVulnerabilityAssessmentRuleBaseline, + DatabaseVulnerabilityAssessmentRuleBaselineItem, + DatabaseVulnerabilityAssessmentScansExport, + DataWarehouseUserActivities, + DeletedServer, + ElasticPool, + ElasticPoolOperation, + ElasticPoolPerDatabaseSettings, + EncryptionProtector, + ExtendedDatabaseBlobAuditingPolicy, + ExtendedServerBlobAuditingPolicy, + FailoverGroup, + FailoverGroupReadOnlyEndpoint, + FailoverGroupReadWriteEndpoint, + FirewallRule, + ImportExportExtensionsOperationResult, + ImportExportOperationResult, + InstanceFailoverGroup, + InstanceFailoverGroupReadOnlyEndpoint, + InstanceFailoverGroupReadWriteEndpoint, + InstancePool, + Job, + JobAgent, + JobCredential, + JobExecution, + JobExecutionTarget, + JobSchedule, + JobStep, + JobStepAction, + JobStepExecutionOptions, + JobStepOutput, + JobTarget, + JobTargetGroup, + JobVersion, + LogicalDatabaseTransparentDataEncryption, + LongTermRetentionBackup, + LongTermRetentionBackupOperationResult, + LongTermRetentionPolicy, + MaintenanceWindowOptions, + MaintenanceWindows, + MaintenanceWindowTimeRange, + ManagedBackupShortTermRetentionPolicy, + ManagedDatabase, + ManagedDatabaseRestoreDetailsResult, + ManagedDatabaseSecurityAlertPolicy, + ManagedInstance, + ManagedInstanceAdministrator, + ManagedInstanceAzureADOnlyAuthentication, + ManagedInstanceEncryptionProtector, + ManagedInstanceExternalAdministrator, + ManagedInstanceKey, + ManagedInstanceLongTermRetentionBackup, + ManagedInstanceLongTermRetentionPolicy, + ManagedInstanceOperation, + ManagedInstanceOperationParametersPair, + ManagedInstanceOperationSteps, + ManagedInstancePairInfo, + ManagedInstancePecProperty, + ManagedInstancePrivateEndpointConnection, + ManagedInstancePrivateEndpointConnectionProperties, + ManagedInstancePrivateEndpointProperty, + ManagedInstancePrivateLink, + ManagedInstancePrivateLinkProperties, + ManagedInstancePrivateLinkServiceConnectionStateProperty, + ManagedInstanceQuery, + ManagedInstanceVulnerabilityAssessment, + ManagedServerSecurityAlertPolicy, + ManagedTransparentDataEncryption, + OperationsHealth, + OutboundFirewallRule, + PartnerInfo, + PartnerRegionInfo, + PrivateEndpointConnection, + PrivateEndpointConnectionProperties, + PrivateEndpointConnectionRequestStatus, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + ProxyResourceWithWritableName, + QueryMetricInterval, + QueryMetricProperties, + QueryStatistics, + RecommendedAction, + RecommendedActionErrorInfo, + RecommendedActionImpactRecord, + RecommendedActionImplementationInfo, + RecommendedActionMetricInfo, + RecommendedActionStateInfo, + RecommendedSensitivityLabelUpdate, + RecoverableManagedDatabase, + ReplicationLink, + Resource, + ResourceIdentityWithUserAssignedIdentities, + ResourceWithWritableName, + RestorableDroppedDatabase, + RestorableDroppedManagedDatabase, + RestorePoint, + SecurityEvent, + SecurityEventSqlInjectionAdditionalProperties, + SensitivityLabel, + SensitivityLabelUpdate, + Server, + ServerAutomaticTuning, + ServerAzureADAdministrator, + ServerAzureADOnlyAuthentication, + ServerBlobAuditingPolicy, + ServerDevOpsAuditingSettings, + ServerDnsAlias, + ServerExternalAdministrator, + ServerInfo, + ServerKey, + ServerOperation, + ServerPrivateEndpointConnection, + ServerSecurityAlertPolicy, + ServerTrustGroup, + ServerVulnerabilityAssessment, + Sku, + SqlAgentConfiguration, + SubscriptionUsage, + SyncAgent, + SyncAgentLinkedDatabase, + SyncGroup, + SyncGroupSchema, + SyncGroupSchemaTable, + SyncGroupSchemaTableColumn, + SyncMember, + SystemData, + TdeCertificate, + TimeZone, + TrackedResource, + UpdateManagedInstanceDnsServersOperation, + UpsertManagedServerOperationParameters, + UpsertManagedServerOperationStep, + UserIdentity, + VirtualCluster, + VirtualNetworkRule, + VulnerabilityAssessmentRecurringScansProperties, + VulnerabilityAssessmentScanError, + VulnerabilityAssessmentScanRecord, + WorkloadClassifier, + WorkloadGroup, + WorkloadGroupListResult +} from "../models/mappers"; diff --git a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts index a91d73b39445..a6236b582198 100644 --- a/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/backupShortTermRetentionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -223,7 +222,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -249,7 +248,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -276,7 +275,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -311,7 +310,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -342,6 +341,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/capabilities.ts b/sdk/sql/arm-sql/src/operations/capabilities.ts index 56cbe7ea343b..c9bf89e71b49 100644 --- a/sdk/sql/arm-sql/src/operations/capabilities.ts +++ b/sdk/sql/arm-sql/src/operations/capabilities.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -66,7 +65,7 @@ const listByLocationOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.include, - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts b/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts deleted file mode 100644 index 730fb4fa3c41..000000000000 --- a/sdk/sql/arm-sql/src/operations/dataMaskingRules.ts +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/dataMaskingRulesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DataMaskingRules. */ -export class DataMaskingRules { - private readonly client: SqlManagementClientContext; - - /** - * Create a DataMaskingRules. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Creates or updates a database data masking rule. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param dataMaskingRuleName The name of the data masking rule. - * @param parameters The required parameters for creating or updating a data masking rule. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param dataMaskingRuleName The name of the data masking rule. - * @param parameters The required parameters for creating or updating a data masking rule. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param dataMaskingRuleName The name of the data masking rule. - * @param parameters The required parameters for creating or updating a data masking rule. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - dataMaskingRuleName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of database data masking rules. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules/{dataMaskingRuleName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.dataMaskingPolicyName, - Parameters.dataMaskingRuleName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DataMaskingRule, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DataMaskingRule - }, - 201: { - bodyMapper: Mappers.DataMaskingRule - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}/rules", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.dataMaskingPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DataMaskingRuleListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts new file mode 100644 index 000000000000..50a82af14161 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/dataWarehouseUserActivitiesOperations.ts @@ -0,0 +1,212 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataWarehouseUserActivitiesOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DataWarehouseUserActivitiesOperations. */ +export class DataWarehouseUserActivitiesOperations { + private readonly client: SqlManagementClientContext; + + /** + * Create a DataWarehouseUserActivitiesOperations. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * 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 [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * List the user activities of a data warehouse which includes running and suspended queries + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.dataWarehouseUserActivityName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataWarehouseUserActivities + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataWarehouseUserActivitiesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataWarehouseUserActivitiesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts similarity index 59% rename from sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts rename to sdk/sql/arm-sql/src/operations/databaseAdvisors.ts index 661201b459fb..d70a909584bd 100644 --- a/sdk/sql/arm-sql/src/operations/geoBackupPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAdvisors.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,16 +9,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; -import * as Mappers from "../models/geoBackupPoliciesMappers"; +import * as Mappers from "../models/databaseAdvisorsMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a GeoBackupPolicies. */ -export class GeoBackupPolicies { +/** Class representing a DatabaseAdvisors. */ +export class DatabaseAdvisors { private readonly client: SqlManagementClientContext; /** - * Create a GeoBackupPolicies. + * Create a DatabaseAdvisors. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -27,158 +26,167 @@ export class GeoBackupPolicies { } /** - * Updates a database geo backup policy. + * Gets a list of database advisors. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters The required parameters for creating or updating the geo backup policy. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabaseAdvisorsListByDatabaseOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters The required parameters for creating or updating the geo backup policy. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param parameters The required parameters for creating or updating the geo backup policy. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: Models.DatabaseAdvisorsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabaseAdvisorsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, - parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + listByDatabaseOperationSpec, + callback) as Promise; } /** - * Gets a geo backup policy. + * Gets a database advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, + advisorName, options }, getOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Returns a list of geo backup policies. + * Updates a database advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param parameters The requested advisor resource state. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, parameters: Models.Advisor, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param parameters The requested advisor resource state. * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, parameters: Models.Advisor, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param parameters The requested advisor resource state. * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, parameters: Models.Advisor, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, parameters: Models.Advisor, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, + advisorName, + parameters, options }, - listByDatabaseOperationSpec, - callback) as Promise; + updateOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.geoBackupPolicyName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.GeoBackupPolicy, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicy - }, - 201: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Advisor" + } + } + } + } }, default: { bodyMapper: Mappers.CloudError @@ -189,23 +197,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.geoBackupPolicyName + Parameters.advisorName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicy + bodyMapper: Mappers.Advisor }, default: { bodyMapper: Mappers.CloudError @@ -214,24 +222,32 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies", +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.advisorName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Advisor, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.GeoBackupPolicyListResult + bodyMapper: Mappers.Advisor }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts index c8538356092a..61f5c74a218b 100644 --- a/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseAutomaticTuningOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -121,7 +120,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -147,7 +146,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts index aa9330f4a0d5..98212993d433 100644 --- a/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/databaseBlobAuditingPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -189,7 +188,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -216,7 +215,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -252,7 +251,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -275,6 +274,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/databaseColumns.ts b/sdk/sql/arm-sql/src/operations/databaseColumns.ts new file mode 100644 index 000000000000..87c325247f76 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseColumns.ts @@ -0,0 +1,365 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databaseColumnsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DatabaseColumns. */ +export class DatabaseColumns { + private readonly client: SqlManagementClientContext; + + /** + * Create a DatabaseColumns. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * List database columns + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabaseColumnsListByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: Models.DatabaseColumnsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabaseColumnsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * List database columns + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param [options] The optional parameters + * @returns Promise + */ + listByTable(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options?: Models.DatabaseColumnsListByTableOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param callback The callback + */ + listByTable(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param options The optional parameters + * @param callback The callback + */ + listByTable(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options: Models.DatabaseColumnsListByTableOptionalParams, callback: msRest.ServiceCallback): void; + listByTable(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options?: Models.DatabaseColumnsListByTableOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + tableName, + options + }, + listByTableOperationSpec, + callback) as Promise; + } + + /** + * Get database column + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + tableName, + columnName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List database columns + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: Models.DatabaseColumnsListByDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: Models.DatabaseColumnsListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.DatabaseColumnsListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * List database columns + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByTableNext(nextPageLink: string, options?: Models.DatabaseColumnsListByTableNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByTableNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByTableNext(nextPageLink: string, options: Models.DatabaseColumnsListByTableNextOptionalParams, callback: msRest.ServiceCallback): void; + listByTableNext(nextPageLink: string, options?: Models.DatabaseColumnsListByTableNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByTableNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/columns", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.schema, + Parameters.table, + Parameters.column, + Parameters.orderBy, + Parameters.skiptoken, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByTableOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumn + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.schema, + Parameters.table, + Parameters.column, + Parameters.orderBy, + Parameters.skiptoken, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByTableNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts new file mode 100644 index 000000000000..0ca01a2eefbe --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseExtensionsOperations.ts @@ -0,0 +1,291 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databaseExtensionsOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DatabaseExtensionsOperations. */ +export class DatabaseExtensionsOperations { + private readonly client: SqlManagementClientContext; + + /** + * Create a DatabaseExtensionsOperations. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * 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 this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param extensionName + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param extensionName + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param extensionName + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + extensionName, + options + }, + getOperationSpec, + callback); + } + + /** + * Perform a database extension operation, like 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. + * @param databaseName The name of the database. + * @param extensionName + * @param parameters The database import request parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, parameters: Models.DatabaseExtensions, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,extensionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Perform a database extension operation, like 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. + * @param databaseName The name of the database. + * @param extensionName + * @param parameters The database import request parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, extensionName: string, parameters: Models.DatabaseExtensions, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + databaseName, + extensionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * List database extension. This will return an empty list as it is not supported. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.extensionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ImportExportExtensionsOperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.extensionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DatabaseExtensions, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ImportExportExtensionsOperationResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ImportExportExtensionsOperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseOperations.ts b/sdk/sql/arm-sql/src/operations/databaseOperations.ts index 73da08119974..56cb804730c7 100644 --- a/sdk/sql/arm-sql/src/operations/databaseOperations.ts +++ b/sdk/sql/arm-sql/src/operations/databaseOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -150,7 +149,7 @@ const cancelOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -174,7 +173,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -197,6 +196,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts new file mode 100644 index 000000000000..0b2dd82bbacc --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseRecommendedActions.ts @@ -0,0 +1,271 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databaseRecommendedActionsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DatabaseRecommendedActions. */ +export class DatabaseRecommendedActions { + private readonly client: SqlManagementClientContext; + + /** + * Create a DatabaseRecommendedActions. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets list of Database Recommended Actions. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseAdvisor(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param callback The callback + */ + listByDatabaseAdvisor(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseAdvisor(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseAdvisor(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + advisorName, + options + }, + listByDatabaseAdvisorOperationSpec, + callback) as Promise; + } + + /** + * Gets a database recommended action. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param recommendedActionName The name of Database Recommended Action. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param recommendedActionName The name of Database Recommended Action. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param recommendedActionName The name of Database Recommended Action. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + advisorName, + recommendedActionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates a database recommended action. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param recommendedActionName The name of Database Recommended Action. + * @param parameters The requested recommended action resource state. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, parameters: Models.RecommendedAction, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param recommendedActionName The name of Database Recommended Action. + * @param parameters The requested recommended action resource state. + * @param callback The callback + */ + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, parameters: Models.RecommendedAction, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param advisorName The name of the Database Advisor. + * @param recommendedActionName The name of Database Recommended Action. + * @param parameters The requested recommended action resource state. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, parameters: Models.RecommendedAction, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serverName: string, databaseName: string, advisorName: string, recommendedActionName: string, parameters: Models.RecommendedAction, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + advisorName, + recommendedActionName, + parameters, + options + }, + updateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByDatabaseAdvisorOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}/recommendedActions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.advisorName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecommendedAction" + } + } + } + } + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}/recommendedActions/{recommendedActionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.advisorName, + Parameters.recommendedActionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecommendedAction + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}/recommendedActions/{recommendedActionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.advisorName, + Parameters.recommendedActionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.RecommendedAction, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.RecommendedAction + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseSchemas.ts b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts new file mode 100644 index 000000000000..e5b0b181fda5 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSchemas.ts @@ -0,0 +1,218 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databaseSchemasMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DatabaseSchemas. */ +export class DatabaseSchemas { + private readonly client: SqlManagementClientContext; + + /** + * Create a DatabaseSchemas. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * List 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. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabaseSchemasListByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: Models.DatabaseSchemasListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabaseSchemasListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Get 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. + * @param schemaName The name of the schema. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List database schemas + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: Models.DatabaseSchemasListByDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: Models.DatabaseSchemasListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.DatabaseSchemasListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSchemaListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSchema + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSchemaListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts new file mode 100644 index 000000000000..28b577fbadd8 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseSecurityAlertPolicies.ts @@ -0,0 +1,292 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databaseSecurityAlertPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DatabaseSecurityAlertPolicies. */ +export class DatabaseSecurityAlertPolicies { + private readonly client: SqlManagementClientContext; + + /** + * Create a DatabaseSecurityAlertPolicies. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a database's security alert policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a database's security alert policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param parameters The database security alert policy. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param parameters The database security alert policy. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param parameters The database security alert policy. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database for which the security alert policy is defined. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of database's security alert policies. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.securityAlertPolicyName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSecurityAlertPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.securityAlertPolicyName0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DatabaseSecurityAlertPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DatabaseSecurityAlertPolicy + }, + 201: { + bodyMapper: Mappers.DatabaseSecurityAlertPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSecurityAlertListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSecurityAlertListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseTables.ts b/sdk/sql/arm-sql/src/operations/databaseTables.ts new file mode 100644 index 000000000000..6cdbd4550f1d --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/databaseTables.ts @@ -0,0 +1,228 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/databaseTablesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DatabaseTables. */ +export class DatabaseTables { + private readonly client: SqlManagementClientContext; + + /** + * Create a DatabaseTables. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * List database tables + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param [options] The optional parameters + * @returns Promise + */ + listBySchema(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options?: Models.DatabaseTablesListBySchemaOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param callback The callback + */ + listBySchema(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param options The optional parameters + * @param callback The callback + */ + listBySchema(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options: Models.DatabaseTablesListBySchemaOptionalParams, callback: msRest.ServiceCallback): void; + listBySchema(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, options?: Models.DatabaseTablesListBySchemaOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + options + }, + listBySchemaOperationSpec, + callback) as Promise; + } + + /** + * Get database table + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, schemaName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + schemaName, + tableName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List database tables + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySchemaNext(nextPageLink: string, options?: Models.DatabaseTablesListBySchemaNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySchemaNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySchemaNext(nextPageLink: string, options: Models.DatabaseTablesListBySchemaNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySchemaNext(nextPageLink: string, options?: Models.DatabaseTablesListBySchemaNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySchemaNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listBySchemaOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseTable + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySchemaNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/databaseThreatDetectionPolicies.ts b/sdk/sql/arm-sql/src/operations/databaseThreatDetectionPolicies.ts deleted file mode 100644 index 13565e880d9b..000000000000 --- a/sdk/sql/arm-sql/src/operations/databaseThreatDetectionPolicies.ts +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/databaseThreatDetectionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a DatabaseThreatDetectionPolicies. */ -export class DatabaseThreatDetectionPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a DatabaseThreatDetectionPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a database's threat detection policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which database Threat Detection policy is - * defined. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which database Threat Detection policy is - * defined. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which database Threat Detection policy is - * defined. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates a database's threat detection policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which database Threat Detection policy is - * defined. - * @param parameters The database Threat Detection policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which database Threat Detection policy is - * defined. - * @param parameters The database Threat Detection policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which database Threat Detection policy is - * defined. - * @param parameters The database Threat Detection policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.securityAlertPolicyName0 - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.securityAlertPolicyName0 - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseSecurityAlertPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, - 201: { - bodyMapper: Mappers.DatabaseSecurityAlertPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/databaseUsages.ts b/sdk/sql/arm-sql/src/operations/databaseUsages.ts index a7146aee6cb0..2379191e5799 100644 --- a/sdk/sql/arm-sql/src/operations/databaseUsages.ts +++ b/sdk/sql/arm-sql/src/operations/databaseUsages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,7 +26,7 @@ export class DatabaseUsages { } /** - * Returns database usages. + * Gets database usages. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -64,6 +63,34 @@ export class DatabaseUsages { listByDatabaseOperationSpec, callback) as Promise; } + + /** + * Gets database usages. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -72,13 +99,37 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/usages", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseUsageListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index 12157deacbb5..2dc2a3bacd34 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -214,7 +213,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -243,7 +242,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -279,7 +278,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts index 20c44d8e1471..80fe72d571b8 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessmentScans.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,6 +26,21 @@ export class DatabaseVulnerabilityAssessmentScans { this.client = client; } + /** + * Executes a Vulnerability Assessment database scan. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param [options] The optional parameters + * @returns Promise + */ + initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginInitiateScan(resourceGroupName,serverName,databaseName,scanId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Lists the vulnerability assessment scans of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -109,21 +123,6 @@ export class DatabaseVulnerabilityAssessmentScans { callback) as Promise; } - /** - * Executes a Vulnerability Assessment database scan. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginInitiateScan(resourceGroupName,serverName,databaseName,scanId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - /** * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -232,7 +231,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -260,7 +259,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -288,7 +287,7 @@ const exportMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -319,7 +318,7 @@ const beginInitiateScanOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -341,6 +340,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts index 3ed1a774ce50..1cc0c84aa27b 100644 --- a/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/databaseVulnerabilityAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -231,7 +230,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -258,7 +257,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -295,7 +294,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -319,7 +318,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -342,6 +341,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/databases.ts b/sdk/sql/arm-sql/src/operations/databases.ts index 846dfc51b1bd..d9f6526359ac 100644 --- a/sdk/sql/arm-sql/src/operations/databases.ts +++ b/sdk/sql/arm-sql/src/operations/databases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,133 +26,6 @@ export class Databases { this.client = client; } - /** - * Imports a bacpac into a new database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The required parameters for importing a Bacpac into a database. - * @param [options] The optional parameters - * @returns Promise - */ - importMethod(resourceGroupName: string, serverName: string, parameters: Models.ImportRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginImportMethod(resourceGroupName,serverName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Creates an import operation that imports a bacpac into an existing database. The existing - * database must be empty. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to import into - * @param parameters The required parameters for importing a Bacpac into a database. - * @param [options] The optional parameters - * @returns Promise - */ - createImportOperation(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ImportExtensionRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateImportOperation(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Exports a database to a bacpac. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to be exported. - * @param parameters The required parameters for exporting a database. - * @param [options] The optional parameters - * @returns Promise - */ - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExportRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginExportMethod(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Returns database metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param [options] The optional parameters - * @returns Promise - */ - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The optional parameters - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - filter, - options - }, - listMetricsOperationSpec, - callback) as Promise; - } - - /** - * Returns database metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param options The optional parameters - * @param callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listMetricDefinitionsOperationSpec, - callback) as Promise; - } - /** * Gets a list of databases. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -339,6 +211,55 @@ export class Databases { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Failovers a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database to failover. + * @param [options] The optional parameters + * @returns Promise + */ + failover(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabasesFailoverOptionalParams): Promise { + return this.beginFailover(resourceGroupName,serverName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a list of inaccessible databases in a logical server + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + listInaccessibleByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param callback The callback + */ + listInaccessibleByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listInaccessibleByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInaccessibleByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listInaccessibleByServerOperationSpec, + callback) as Promise; + } + /** * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -397,52 +318,46 @@ export class Databases { } /** - * Failovers a database. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - failover(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabasesFailoverOptionalParams): Promise { - return this.beginFailover(resourceGroupName,serverName,databaseName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + importMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ImportExistingDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { + return this.beginImportMethod(resourceGroupName,serverName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** - * Imports a bacpac into a new database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param parameters The required parameters for importing a Bacpac into a database. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - beginImportMethod(resourceGroupName: string, serverName: string, parameters: Models.ImportRequest, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - beginImportMethodOperationSpec, - options); + exportMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExportDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { + return this.beginExportMethod(resourceGroupName,serverName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** - * Creates an import operation that imports a bacpac into an existing database. The existing - * database must be empty. + * Creates a new database or updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to import into - * @param parameters The required parameters for importing a Bacpac into a database. + * @param databaseName The name of the database. + * @param parameters The requested database resource state. * @param [options] The optional parameters * @returns Promise */ - beginCreateImportOperation(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ImportExtensionRequest, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.Database, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -451,35 +366,33 @@ export class Databases { parameters, options }, - beginCreateImportOperationOperationSpec, + beginCreateOrUpdateOperationSpec, options); } /** - * Exports a database to a bacpac. + * Deletes the database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be exported. - * @param parameters The required parameters for exporting a database. + * @param databaseName The name of the database. * @param [options] The optional parameters * @returns Promise */ - beginExportMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExportRequest, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, databaseName, - parameters, options }, - beginExportMethodOperationSpec, + beginDeleteMethodOperationSpec, options); } /** - * Creates a new database or updates an existing database. + * Updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -488,7 +401,7 @@ export class Databases { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.Database, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -497,20 +410,20 @@ export class Databases { parameters, options }, - beginCreateOrUpdateOperationSpec, + beginUpdateOperationSpec, options); } /** - * Deletes the database. + * Pauses a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. + * @param databaseName The name of the database to be paused. * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + beginPause(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -518,43 +431,41 @@ export class Databases { databaseName, options }, - beginDeleteMethodOperationSpec, + beginPauseOperationSpec, options); } /** - * Updates an existing database. + * Resumes a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters The requested database resource state. + * @param databaseName The name of the database to be resumed. * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseUpdate, options?: msRest.RequestOptionsBase): Promise { + beginResume(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, databaseName, - parameters, options }, - beginUpdateOperationSpec, + beginResumeOperationSpec, options); } /** - * Pauses a database. + * Failovers a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be paused. + * @param databaseName The name of the database to failover. * @param [options] The optional parameters * @returns Promise */ - beginPause(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + beginFailover(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabasesBeginFailoverOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -562,20 +473,20 @@ export class Databases { databaseName, options }, - beginPauseOperationSpec, + beginFailoverOperationSpec, options); } /** - * Resumes a database. + * Upgrades a data warehouse. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be resumed. + * @param databaseName The name of the database to be upgraded. * @param [options] The optional parameters * @returns Promise */ - beginResume(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + beginUpgradeDataWarehouse(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -583,49 +494,53 @@ export class Databases { databaseName, options }, - beginResumeOperationSpec, + beginUpgradeDataWarehouseOperationSpec, options); } /** - * Upgrades a data warehouse. + * Imports a bacpac into a new database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to be upgraded. + * @param databaseName The name of the database. + * @param parameters The database import request parameters. * @param [options] The optional parameters * @returns Promise */ - beginUpgradeDataWarehouse(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + beginImportMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ImportExistingDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, databaseName, + parameters, options }, - beginUpgradeDataWarehouseOperationSpec, + beginImportMethodOperationSpec, options); } /** - * Failovers a database. + * Exports a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database to failover. + * @param databaseName The name of the database. + * @param parameters The database export request parameters. * @param [options] The optional parameters * @returns Promise */ - beginFailover(resourceGroupName: string, serverName: string, databaseName: string, options?: Models.DatabasesBeginFailoverOptionalParams): Promise { + beginExportMethod(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExportDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, databaseName, + parameters, options }, - beginFailoverOperationSpec, + beginExportMethodOperationSpec, options); } @@ -684,55 +599,55 @@ export class Databases { listByElasticPoolNextOperationSpec, callback) as Promise; } + + /** + * Gets a list of inaccessible databases in a logical server + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInaccessibleByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInaccessibleByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInaccessibleByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInaccessibleByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInaccessibleByServerNextOperationSpec, + callback) as Promise; + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listMetricsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metrics", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0, - Parameters.filter0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { +const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metricDefinitions", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.MetricDefinitionListResult + bodyMapper: Mappers.DatabaseListResult }, default: { bodyMapper: Mappers.CloudError @@ -741,23 +656,24 @@ const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, + Parameters.databaseName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.DatabaseListResult + bodyMapper: Mappers.Database }, default: { bodyMapper: Mappers.CloudError @@ -766,24 +682,24 @@ const listByServerOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const listByElasticPoolOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName, + Parameters.elasticPoolName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.DatabaseListResult }, default: { bodyMapper: Mappers.CloudError @@ -792,17 +708,16 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByElasticPoolOperationSpec: msRest.OperationSpec = { +const listInaccessibleByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, - Parameters.elasticPoolName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -828,7 +743,7 @@ const renameOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -849,16 +764,17 @@ const renameOperationSpec: msRest.OperationSpec = { serializer }; -const beginImportMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -866,13 +782,16 @@ const beginImportMethodOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.ImportRequest, + ...Mappers.Database, required: true } }, responses: { 200: { - bodyMapper: Mappers.ImportExportResponse + bodyMapper: Mappers.Database + }, + 201: { + bodyMapper: Mappers.Database }, 202: {}, default: { @@ -882,34 +801,25 @@ const beginImportMethodOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateImportOperationOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extensions/{extensionName}", +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.extensionName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ImportExtensionRequest, - required: true - } - }, responses: { - 201: { - bodyMapper: Mappers.ImportExportResponse - }, + 200: {}, 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -917,17 +827,17 @@ const beginCreateImportOperationOperationSpec: msRest.OperationSpec = { serializer }; -const beginExportMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.databaseName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -935,13 +845,13 @@ const beginExportMethodOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.ExportRequest, + ...Mappers.DatabaseUpdate, required: true } }, responses: { 200: { - bodyMapper: Mappers.ImportExportResponse + bodyMapper: Mappers.Database }, 202: {}, default: { @@ -951,9 +861,9 @@ const beginExportMethodOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", +const beginPauseOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -961,25 +871,15 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.Database, - required: true - } - }, responses: { 200: { bodyMapper: Mappers.Database }, - 201: { - bodyMapper: Mappers.Database - }, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -988,9 +888,9 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", +const beginResumeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -998,15 +898,16 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, + 200: { + bodyMapper: Mappers.Database + }, 202: {}, - 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -1014,9 +915,9 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}", +const beginFailoverOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -1024,22 +925,14 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.replicaType, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DatabaseUpdate, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.Database - }, + 200: {}, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -1048,9 +941,9 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const beginPauseOperationSpec: msRest.OperationSpec = { +const beginUpgradeDataWarehouseOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -1058,15 +951,13 @@ const beginPauseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: Mappers.Database - }, + 200: {}, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -1075,9 +966,9 @@ const beginPauseOperationSpec: msRest.OperationSpec = { serializer }; -const beginResumeOperationSpec: msRest.OperationSpec = { +const beginImportMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/import", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -1085,14 +976,21 @@ const beginResumeOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ImportExistingDatabaseDefinition, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.Database + bodyMapper: Mappers.ImportExportOperationResult }, 202: {}, default: { @@ -1102,9 +1000,9 @@ const beginResumeOperationSpec: msRest.OperationSpec = { serializer }; -const beginUpgradeDataWarehouseOperationSpec: msRest.OperationSpec = { +const beginExportMethodOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/upgradeDataWarehouse", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -1112,13 +1010,22 @@ const beginUpgradeDataWarehouseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ExportDatabaseDefinition, + required: true + } + }, responses: { - 200: {}, + 200: { + bodyMapper: Mappers.ImportExportOperationResult + }, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -1127,25 +1034,23 @@ const beginUpgradeDataWarehouseOperationSpec: msRest.OperationSpec = { serializer }; -const beginFailoverOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover", +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.subscriptionId + Parameters.nextPageLink ], queryParameters: [ - Parameters.replicaType, - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, - 202: {}, + 200: { + bodyMapper: Mappers.DatabaseListResult + }, default: { bodyMapper: Mappers.CloudError } @@ -1153,13 +1058,16 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerNextOperationSpec: msRest.OperationSpec = { +const listByElasticPoolNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1174,13 +1082,16 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByElasticPoolNextOperationSpec: msRest.OperationSpec = { +const listInaccessibleByServerNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/deletedServers.ts b/sdk/sql/arm-sql/src/operations/deletedServers.ts new file mode 100644 index 000000000000..1becd62a6250 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/deletedServers.ts @@ -0,0 +1,346 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/deletedServersMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a DeletedServers. */ +export class DeletedServers { + private readonly client: SqlManagementClientContext; + + /** + * Create a DeletedServers. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of all deleted servers in a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a 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 optional parameters + * @returns Promise + */ + get(locationName: string, deletedServerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The name of the region where the resource is located. + * @param deletedServerName The name of the deleted server. + * @param callback The callback + */ + get(locationName: string, deletedServerName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The name of the region where the resource is located. + * @param deletedServerName The name of the deleted server. + * @param options The optional parameters + * @param callback The callback + */ + get(locationName: string, deletedServerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(locationName: string, deletedServerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + deletedServerName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of deleted servers for a location. + * @param locationName The name of the region where the resource is located. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(locationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The name of the region where the resource is located. + * @param callback The callback + */ + listByLocation(locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The name of the region where the resource is located. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + + /** + * Recovers 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 optional parameters + * @returns Promise + */ + recover(locationName: string, deletedServerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRecover(locationName,deletedServerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Recovers 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 optional parameters + * @returns Promise + */ + beginRecover(locationName: string, deletedServerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + locationName, + deletedServerName, + options + }, + beginRecoverOperationSpec, + options); + } + + /** + * Gets a list of all deleted servers in a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of deleted servers for a location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/deletedServers", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedServerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}", + urlParameters: [ + Parameters.locationName, + Parameters.deletedServerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedServer + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers", + urlParameters: [ + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedServerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRecoverOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}/recover", + urlParameters: [ + Parameters.locationName, + Parameters.deletedServerName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedServer + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedServerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeletedServerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts deleted file mode 100644 index 41b02ce1dc7a..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolActivities.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/elasticPoolActivitiesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ElasticPoolActivities. */ -export class ElasticPoolActivities { - private readonly client: SqlManagementClientContext; - - /** - * Create a ElasticPoolActivities. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Returns elastic pool activities. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param [options] The optional parameters - * @returns Promise - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool for which to get the current activity. - * @param options The optional parameters - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listByElasticPoolOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByElasticPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolActivityListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts b/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts deleted file mode 100644 index 12a137296830..000000000000 --- a/sdk/sql/arm-sql/src/operations/elasticPoolDatabaseActivities.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/elasticPoolDatabaseActivitiesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ElasticPoolDatabaseActivities. */ -export class ElasticPoolDatabaseActivities { - private readonly client: SqlManagementClientContext; - - /** - * Create a ElasticPoolDatabaseActivities. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Returns activity on databases inside of an elastic pool. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param [options] The optional parameters - * @returns Promise - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The optional parameters - * @param callback The callback - */ - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listByElasticPoolOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByElasticPoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ElasticPoolDatabaseActivityListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts index 049f74e667db..62d0fe377f98 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPoolOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -150,7 +149,7 @@ const cancelOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -174,7 +173,7 @@ const listByElasticPoolOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -197,6 +196,9 @@ const listByElasticPoolNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/elasticPools.ts b/sdk/sql/arm-sql/src/operations/elasticPools.ts index 44ed8f424f87..4d6952b3a2d9 100644 --- a/sdk/sql/arm-sql/src/operations/elasticPools.ts +++ b/sdk/sql/arm-sql/src/operations/elasticPools.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,88 +26,6 @@ export class ElasticPools { this.client = client; } - /** - * Returns elastic pool metrics. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param [options] The optional parameters - * @returns Promise - */ - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param filter An OData filter expression that describes a subset of metrics to return. - * @param options The optional parameters - * @param callback The callback - */ - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - filter, - options - }, - listMetricsOperationSpec, - callback) as Promise; - } - - /** - * Returns elastic pool metric definitions. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param [options] The optional parameters - * @returns Promise - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param elasticPoolName The name of the elastic pool. - * @param options The optional parameters - * @param callback The callback - */ - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - elasticPoolName, - options - }, - listMetricDefinitionsOperationSpec, - callback) as Promise; - } - /** * Gets all elastic pools in a server. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -335,7 +252,7 @@ export class ElasticPools { * @param [options] The optional parameters * @returns Promise */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByServerNext(nextPageLink: string, options?: Models.ElasticPoolsListByServerNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -346,8 +263,8 @@ export class ElasticPools { * @param options The optional parameters * @param callback The callback */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options: Models.ElasticPoolsListByServerNextOptionalParams, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: Models.ElasticPoolsListByServerNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -360,59 +277,6 @@ export class ElasticPools { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listMetricsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metrics", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0, - Parameters.filter0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MetricListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.elasticPoolName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.MetricDefinitionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools", @@ -423,7 +287,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { ], queryParameters: [ Parameters.skip, - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -449,7 +313,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -475,7 +339,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -512,7 +376,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -538,7 +402,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -572,7 +436,7 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -594,6 +458,10 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.skip, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts index bc5c040d3f2c..c16574c4ac72 100644 --- a/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/encryptionProtectors.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,19 +26,6 @@ export class EncryptionProtectors { this.client = client; } - /** - * Revalidates an existing encryption protector. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - revalidate(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginRevalidate(resourceGroupName,serverName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - /** * Gets a list of server encryption protectors * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -130,37 +116,50 @@ export class EncryptionProtectors { * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param [options] The optional parameters + * @returns Promise + */ + revalidate(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRevalidate(resourceGroupName,serverName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates an existing encryption protector. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The requested encryption protector resource state. + * @param [options] The optional parameters * @returns Promise */ - beginRevalidate(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.EncryptionProtector, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, + parameters, options }, - beginRevalidateOperationSpec, + beginCreateOrUpdateOperationSpec, options); } /** - * 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 serverName The name of the server. - * @param parameters The requested encryption protector resource state. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.EncryptionProtector, options?: msRest.RequestOptionsBase): Promise { + beginRevalidate(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, - parameters, options }, - beginCreateOrUpdateOperationSpec, + beginRevalidateOperationSpec, options); } @@ -204,7 +203,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -230,7 +229,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -246,9 +245,9 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const beginRevalidateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -256,13 +255,22 @@ const beginRevalidateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.EncryptionProtector, + required: true + } + }, responses: { - 200: {}, + 200: { + bodyMapper: Mappers.EncryptionProtector + }, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -271,9 +279,9 @@ const beginRevalidateOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}", +const beginRevalidateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, @@ -281,22 +289,13 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.EncryptionProtector, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.EncryptionProtector - }, + 200: {}, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -312,6 +311,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts index 4e0fc83f296f..971b3027b9d4 100644 --- a/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -107,6 +106,73 @@ export class ExtendedDatabaseBlobAuditingPolicies { createOrUpdateOperationSpec, callback) as Promise; } + + /** + * Lists extended auditing settings of a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists extended auditing settings of a database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -122,7 +188,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -149,7 +215,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -174,3 +240,53 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtendedDatabaseBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts index 20f1bd98df01..0073f37d4af7 100644 --- a/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/extendedServerBlobAuditingPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -76,6 +75,41 @@ export class ExtendedServerBlobAuditingPolicies { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Lists extended auditing settings of a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + /** * Creates or updates an extended server's blob auditing policy. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -96,6 +130,34 @@ export class ExtendedServerBlobAuditingPolicies { beginCreateOrUpdateOperationSpec, options); } + + /** + * Lists extended auditing settings of a server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -110,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -126,6 +188,31 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}", @@ -136,7 +223,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -159,3 +246,27 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtendedServerBlobAuditingPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index 6d848d2f2018..9ad2c1bbecd5 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -325,7 +324,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -350,7 +349,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -376,7 +375,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -413,7 +412,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -439,7 +438,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -473,7 +472,7 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -500,7 +499,7 @@ const beginForceFailoverAllowDataLossOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -524,6 +523,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/firewallRules.ts b/sdk/sql/arm-sql/src/operations/firewallRules.ts index af4cf9ddac0c..9d593cb47c4d 100644 --- a/sdk/sql/arm-sql/src/operations/firewallRules.ts +++ b/sdk/sql/arm-sql/src/operations/firewallRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -26,6 +25,45 @@ export class FirewallRules { this.client = client; } + /** + * Gets a firewall rule. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param firewallRuleName The name of the firewall rule. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + firewallRuleName, + options + }, + getOperationSpec, + callback) as Promise; + } + /** * Creates or updates a firewall rule. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -109,93 +147,147 @@ export class 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 optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param firewallRuleName The name of the firewall rule. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, firewallRuleName: string, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param firewallRuleName The name of the firewall rule. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, - firewallRuleName, options }, - getOperationSpec, - callback) as Promise; + listByServerOperationSpec, + callback) as Promise; } /** - * Returns a list of firewall rules. + * 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 * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + replace(resourceGroupName: string, serverName: string, parameters: Models.FirewallRuleList, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param parameters * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + replace(resourceGroupName: string, serverName: string, parameters: Models.FirewallRuleList, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param parameters * @param options The optional parameters * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + replace(resourceGroupName: string, serverName: string, parameters: Models.FirewallRuleList, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + replace(resourceGroupName: string, serverName: string, parameters: Models.FirewallRuleList, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, + parameters, options }, - listByServerOperationSpec, - callback) as Promise; + replaceOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of firewall rules. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.firewallRuleName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.FirewallRule + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.firewallRuleName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -225,13 +317,13 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.firewallRuleName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -246,24 +338,23 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.firewallRuleName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.FirewallRule + bodyMapper: Mappers.FirewallRuleListResult }, default: { bodyMapper: Mappers.CloudError @@ -272,16 +363,48 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", +const replaceOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.FirewallRuleList, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.FirewallRule + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index d044e4c4439f..e8b4965160bb 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -1,96 +1,116 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ -export * from "./recoverableDatabases"; -export * from "./restorableDroppedDatabases"; -export * from "./servers"; -export * from "./serverConnectionPolicies"; -export * from "./databaseThreatDetectionPolicies"; -export * from "./dataMaskingPolicies"; -export * from "./dataMaskingRules"; -export * from "./firewallRules"; -export * from "./geoBackupPolicies"; -export * from "./databases"; -export * from "./elasticPools"; -export * from "./recommendedElasticPools"; -export * from "./replicationLinks"; -export * from "./serverAzureADAdministrators"; -export * from "./serverCommunicationLinks"; -export * from "./serviceObjectives"; -export * from "./elasticPoolActivities"; -export * from "./elasticPoolDatabaseActivities"; -export * from "./serviceTierAdvisors"; -export * from "./transparentDataEncryptions"; -export * from "./transparentDataEncryptionActivities"; -export * from "./serverUsages"; -export * from "./databaseUsages"; -export * from "./databaseAutomaticTuningOperations"; -export * from "./encryptionProtectors"; -export * from "./failoverGroups"; -export * from "./operations"; -export * from "./serverKeys"; -export * from "./syncAgents"; -export * from "./syncGroups"; -export * from "./syncMembers"; -export * from "./subscriptionUsages"; -export * from "./virtualClusters"; -export * from "./virtualNetworkRules"; +export * from "./backupShortTermRetentionPolicies"; export * from "./extendedDatabaseBlobAuditingPolicies"; export * from "./extendedServerBlobAuditingPolicies"; export * from "./serverBlobAuditingPolicies"; export * from "./databaseBlobAuditingPolicies"; +export * from "./dataWarehouseUserActivitiesOperations"; +export * from "./databaseAdvisors"; +export * from "./databaseAutomaticTuningOperations"; +export * from "./databaseColumns"; +export * from "./databaseExtensionsOperations"; +export * from "./databaseOperations"; +export * from "./databaseRecommendedActions"; +export * from "./databaseSchemas"; +export * from "./databaseSecurityAlertPolicies"; +export * from "./databaseTables"; +export * from "./databaseUsages"; export * from "./databaseVulnerabilityAssessmentRuleBaselines"; +export * from "./databaseVulnerabilityAssessmentScans"; export * from "./databaseVulnerabilityAssessments"; +export * from "./databases"; +export * from "./deletedServers"; +export * from "./elasticPoolOperations"; +export * from "./elasticPools"; +export * from "./encryptionProtectors"; +export * from "./failoverGroups"; +export * from "./firewallRules"; +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 "./capabilities"; export * from "./longTermRetentionBackups"; -export * from "./backupLongTermRetentionPolicies"; +export * from "./longTermRetentionManagedInstanceBackups"; +export * from "./longTermRetentionPolicies"; +export * from "./maintenanceWindowOptionsOperations"; +export * from "./maintenanceWindowsOperations"; export * from "./managedBackupShortTermRetentionPolicies"; -export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; -export * from "./serverAutomaticTuningOperations"; -export * from "./serverDnsAliases"; -export * from "./serverSecurityAlertPolicies"; -export * from "./restorableDroppedManagedDatabases"; -export * from "./restorePoints"; +export * from "./managedDatabaseColumns"; +export * from "./managedDatabaseQueries"; +export * from "./managedDatabaseRestoreDetails"; +export * from "./managedDatabaseSchemas"; export * from "./managedDatabaseSecurityAlertPolicies"; -export * from "./managedServerSecurityAlertPolicies"; -export * from "./sensitivityLabels"; -export * from "./managedInstanceAdministrators"; -export * from "./databaseOperations"; -export * from "./elasticPoolOperations"; -export * from "./capabilities"; -export * from "./databaseVulnerabilityAssessmentScans"; +export * from "./managedDatabaseSecurityEvents"; +export * from "./managedDatabaseSensitivityLabels"; +export * from "./managedDatabaseRecommendedSensitivityLabels"; +export * from "./managedDatabaseTables"; +export * from "./managedDatabaseTransparentDataEncryption"; export * from "./managedDatabaseVulnerabilityAssessmentRuleBaselines"; export * from "./managedDatabaseVulnerabilityAssessmentScans"; export * from "./managedDatabaseVulnerabilityAssessments"; -export * from "./instanceFailoverGroups"; -export * from "./backupShortTermRetentionPolicies"; -export * from "./tdeCertificates"; -export * from "./managedInstanceTdeCertificates"; -export * from "./managedInstanceKeys"; +export * from "./managedDatabases"; +export * from "./managedInstanceAdministrators"; +export * from "./managedInstanceAzureADOnlyAuthentications"; export * from "./managedInstanceEncryptionProtectors"; -export * from "./recoverableManagedDatabases"; +export * from "./managedInstanceKeys"; +export * from "./managedInstanceLongTermRetentionPolicies"; +export * from "./managedInstanceOperations"; +export * from "./managedInstancePrivateEndpointConnections"; +export * from "./managedInstancePrivateLinkResources"; +export * from "./managedInstanceTdeCertificates"; export * from "./managedInstanceVulnerabilityAssessments"; -export * from "./serverVulnerabilityAssessments"; -export * from "./managedDatabaseSensitivityLabels"; -export * from "./instancePools"; -export * from "./usages"; export * from "./managedInstances"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./managedDatabases"; +export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies"; +export * from "./managedServerSecurityAlertPolicies"; +export * from "./operations"; +export * from "./operationsHealthOperations"; +export * from "./outboundFirewallRules"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./recoverableManagedDatabases"; +export * from "./replicationLinks"; +export * from "./restorableDroppedDatabases"; +export * from "./restorableDroppedManagedDatabases"; +export * from "./restorePoints"; +export * from "./sensitivityLabels"; +export * from "./recommendedSensitivityLabels"; +export * from "./serverAdvisors"; +export * from "./serverAutomaticTuningOperations"; +export * from "./serverAzureADAdministrators"; +export * from "./serverAzureADOnlyAuthentications"; +export * from "./serverDevOpsAuditSettings"; +export * from "./serverDnsAliases"; +export * from "./serverKeys"; +export * from "./serverOperations"; +export * from "./serverSecurityAlertPolicies"; +export * from "./serverTrustGroups"; +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 "./transparentDataEncryptions"; +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 be0ae243f7f4..fa4c25449253 100644 --- a/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/instanceFailoverGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -287,7 +286,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -312,7 +311,7 @@ const listByLocationOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -338,7 +337,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -375,7 +374,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -401,7 +400,7 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -428,7 +427,7 @@ const beginForceFailoverAllowDataLossOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -452,6 +451,9 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index 530623321b35..16c30a316d8b 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -287,7 +286,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -311,7 +310,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -334,7 +333,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -359,7 +358,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -395,7 +394,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -420,7 +419,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -451,6 +450,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -472,6 +474,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobAgents.ts b/sdk/sql/arm-sql/src/operations/jobAgents.ts index 1b7ce4550a4f..c0fd979601d9 100644 --- a/sdk/sql/arm-sql/src/operations/jobAgents.ts +++ b/sdk/sql/arm-sql/src/operations/jobAgents.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -252,7 +251,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -278,7 +277,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -304,7 +303,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -341,7 +340,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -367,7 +366,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -398,6 +397,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobCredentials.ts b/sdk/sql/arm-sql/src/operations/jobCredentials.ts index caf6404ca3cb..f4718edb26fb 100644 --- a/sdk/sql/arm-sql/src/operations/jobCredentials.ts +++ b/sdk/sql/arm-sql/src/operations/jobCredentials.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -239,7 +238,7 @@ const listByAgentOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -293,7 +292,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +329,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -352,6 +351,9 @@ const listByAgentNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobExecutions.ts b/sdk/sql/arm-sql/src/operations/jobExecutions.ts index 70719de8f48d..823113eb6716 100644 --- a/sdk/sql/arm-sql/src/operations/jobExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobExecutions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -288,7 +287,7 @@ export class JobExecutions { * @param [options] The optional parameters * @returns Promise */ - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByAgentNext(nextPageLink: string, options?: Models.JobExecutionsListByAgentNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -299,8 +298,8 @@ export class JobExecutions { * @param options The optional parameters * @param callback The callback */ - listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options: Models.JobExecutionsListByAgentNextOptionalParams, callback: msRest.ServiceCallback): void; + listByAgentNext(nextPageLink: string, options?: Models.JobExecutionsListByAgentNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -316,7 +315,7 @@ export class JobExecutions { * @param [options] The optional parameters * @returns Promise */ - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByJobNext(nextPageLink: string, options?: Models.JobExecutionsListByJobNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -327,8 +326,8 @@ export class JobExecutions { * @param options The optional parameters * @param callback The callback */ - listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByJobNext(nextPageLink: string, options: Models.JobExecutionsListByJobNextOptionalParams, callback: msRest.ServiceCallback): void; + listByJobNext(nextPageLink: string, options?: Models.JobExecutionsListByJobNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -358,7 +357,7 @@ const listByAgentOperationSpec: msRest.OperationSpec = { Parameters.isActive, Parameters.skip, Parameters.top, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +385,7 @@ const cancelOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -418,7 +417,7 @@ const listByJobOperationSpec: msRest.OperationSpec = { Parameters.isActive, Parameters.skip, Parameters.top, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -446,7 +445,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -473,7 +472,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -502,7 +501,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -529,6 +528,16 @@ const listByAgentNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.skip, + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -550,6 +559,16 @@ const listByJobNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.skip, + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts index ccf641ff4a81..0e3c0c31906e 100644 --- a/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobStepExecutions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -130,7 +129,7 @@ export class JobStepExecutions { * @param [options] The optional parameters * @returns Promise */ - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByJobExecutionNext(nextPageLink: string, options?: Models.JobStepExecutionsListByJobExecutionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -141,8 +140,8 @@ export class JobStepExecutions { * @param options The optional parameters * @param callback The callback */ - listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByJobExecutionNext(nextPageLink: string, options: Models.JobStepExecutionsListByJobExecutionNextOptionalParams, callback: msRest.ServiceCallback): void; + listByJobExecutionNext(nextPageLink: string, options?: Models.JobStepExecutionsListByJobExecutionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -174,7 +173,7 @@ const listByJobExecutionOperationSpec: msRest.OperationSpec = { Parameters.isActive, Parameters.skip, Parameters.top, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -203,7 +202,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -226,6 +225,16 @@ const listByJobExecutionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.skip, + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobSteps.ts b/sdk/sql/arm-sql/src/operations/jobSteps.ts index bc44e2296009..9ee6ebc7d8c7 100644 --- a/sdk/sql/arm-sql/src/operations/jobSteps.ts +++ b/sdk/sql/arm-sql/src/operations/jobSteps.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -383,7 +382,7 @@ const listByVersionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -412,7 +411,7 @@ const getByVersionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -439,7 +438,7 @@ const listByJobOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -467,7 +466,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -495,7 +494,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -533,7 +532,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -555,6 +554,9 @@ const listByVersionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -576,6 +578,9 @@ const listByJobNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts index 0a54d2027c5d..a8f4d3eb0ff0 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetExecutions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -185,7 +184,7 @@ export class JobTargetExecutions { * @param [options] The optional parameters * @returns Promise */ - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByJobExecutionNext(nextPageLink: string, options?: Models.JobTargetExecutionsListByJobExecutionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -196,8 +195,8 @@ export class JobTargetExecutions { * @param options The optional parameters * @param callback The callback */ - listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByJobExecutionNext(nextPageLink: string, options: Models.JobTargetExecutionsListByJobExecutionNextOptionalParams, callback: msRest.ServiceCallback): void; + listByJobExecutionNext(nextPageLink: string, options?: Models.JobTargetExecutionsListByJobExecutionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -213,7 +212,7 @@ export class JobTargetExecutions { * @param [options] The optional parameters * @returns Promise */ - listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByStepNext(nextPageLink: string, options?: Models.JobTargetExecutionsListByStepNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -224,8 +223,8 @@ export class JobTargetExecutions { * @param options The optional parameters * @param callback The callback */ - listByStepNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByStepNext(nextPageLink: string, options: Models.JobTargetExecutionsListByStepNextOptionalParams, callback: msRest.ServiceCallback): void; + listByStepNext(nextPageLink: string, options?: Models.JobTargetExecutionsListByStepNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -257,7 +256,7 @@ const listByJobExecutionOperationSpec: msRest.OperationSpec = { Parameters.isActive, Parameters.skip, Parameters.top, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -293,7 +292,7 @@ const listByStepOperationSpec: msRest.OperationSpec = { Parameters.isActive, Parameters.skip, Parameters.top, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -323,7 +322,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -346,6 +345,16 @@ const listByJobExecutionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.skip, + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -367,6 +376,16 @@ const listByStepNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.createTimeMin, + Parameters.createTimeMax, + Parameters.endTimeMin, + Parameters.endTimeMax, + Parameters.isActive, + Parameters.skip, + Parameters.top, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts index c2f1291e0923..1cdb35c62e6e 100644 --- a/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts +++ b/sdk/sql/arm-sql/src/operations/jobTargetGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -239,7 +238,7 @@ const listByAgentOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -293,7 +292,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +329,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -352,6 +351,9 @@ const listByAgentNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobVersions.ts b/sdk/sql/arm-sql/src/operations/jobVersions.ts index 22c8f459d997..43e214090b59 100644 --- a/sdk/sql/arm-sql/src/operations/jobVersions.ts +++ b/sdk/sql/arm-sql/src/operations/jobVersions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -158,7 +157,7 @@ const listByJobOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -186,7 +185,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -209,6 +208,9 @@ const listByJobNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/jobs.ts b/sdk/sql/arm-sql/src/operations/jobs.ts index e59fdf513162..a1960019cb9c 100644 --- a/sdk/sql/arm-sql/src/operations/jobs.ts +++ b/sdk/sql/arm-sql/src/operations/jobs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -239,7 +238,7 @@ const listByAgentOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -293,7 +292,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -330,7 +329,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -352,6 +351,9 @@ const listByAgentNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts index 6bc0a26893ad..c3b01bd79a44 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,31 +26,55 @@ export class LongTermRetentionBackups { this.client = client; } + /** + * Copy an existing long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param parameters The parameters needed for long term retention copy request + * @param [options] The optional parameters + * @returns Promise + */ + copy(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.CopyLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCopy(locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * 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 optional parameters + * @returns Promise + */ + update(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.UpdateLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 optional parameters - * @returns Promise + * @returns Promise */ - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; + get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param callback The callback */ - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, callback: msRest.ServiceCallback): void; + get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database @@ -59,25 +82,22 @@ export class LongTermRetentionBackups { * @param options The optional parameters * @param callback The callback */ - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, options }, - getByResourceGroupOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** * Deletes a long term retention backup. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database @@ -85,147 +105,166 @@ export class LongTermRetentionBackups { * @param [options] The optional parameters * @returns Promise */ - deleteByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteByResourceGroup(resourceGroupName,locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,options) + deleteMethod(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * Lists all long term retention backups for a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams): Promise; + listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param callback The callback */ - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, callback: msRest.ServiceCallback): void; + listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The optional parameters * @param callback The callback */ - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, options }, - listByResourceGroupDatabaseOperationSpec, - callback) as Promise; + listByDatabaseOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given location. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams): Promise; + listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param callback The callback */ - listByResourceGroupLocation(resourceGroupName: string, locationName: string, callback: msRest.ServiceCallback): void; + listByLocation(locationName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param options The optional parameters * @param callback The callback */ - listByResourceGroupLocation(resourceGroupName: string, locationName: string, options: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByLocation(locationName: string, options: Models.LongTermRetentionBackupsListByLocationOptionalParams, callback: msRest.ServiceCallback): void; + listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, locationName, options }, - listByResourceGroupLocationOperationSpec, - callback) as Promise; + listByLocationOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given server. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams): Promise; + listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param callback The callback */ - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, callback: msRest.ServiceCallback): void; + listByServer(locationName: string, longTermRetentionServerName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param options The optional parameters * @param callback The callback */ - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByServerOptionalParams, callback: msRest.ServiceCallback): void; + listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, locationName, longTermRetentionServerName, options }, - listByResourceGroupServerOperationSpec, - callback) as Promise; + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Copy an existing long term retention backup to a different server. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain 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 optional parameters + * @returns Promise + */ + copyByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.CopyLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCopyByResourceGroup(resourceGroupName,locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * 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 optional parameters + * @returns Promise + */ + updateByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.UpdateLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateByResourceGroup(resourceGroupName,locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as 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 optional parameters - * @returns Promise + * @returns Promise */ - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; + getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param backupName The backup name. * @param callback The callback */ - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, callback: msRest.ServiceCallback): void; + getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, callback: msRest.ServiceCallback): void; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database. * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database @@ -233,22 +272,25 @@ export class LongTermRetentionBackups { * @param options The optional parameters * @param callback The callback */ - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, options }, - getOperationSpec, - callback) as Promise; + getByResourceGroupOperationSpec, + callback) as Promise; } /** * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database @@ -256,119 +298,238 @@ export class LongTermRetentionBackups { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,options) + deleteByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteByResourceGroup(resourceGroupName,locationName,longTermRetentionServerName,longTermRetentionDatabaseName,backupName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * Lists all long term retention backups for a database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams): Promise; + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams): Promise; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param callback The callback */ - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, callback: msRest.ServiceCallback): void; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database * @param options The optional parameters * @param callback The callback */ - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, options }, - listByDatabaseOperationSpec, - callback) as Promise; + listByResourceGroupDatabaseOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams): Promise; + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams): Promise; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param callback The callback */ - listByLocation(locationName: string, callback: msRest.ServiceCallback): void; + listByResourceGroupLocation(resourceGroupName: string, locationName: string, callback: msRest.ServiceCallback): void; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param options The optional parameters * @param callback The callback */ - listByLocation(locationName: string, options: Models.LongTermRetentionBackupsListByLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, locationName, options }, - listByLocationOperationSpec, - callback) as Promise; + listByResourceGroupLocationOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given server. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams): Promise; + listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams): Promise; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param callback The callback */ - listByServer(locationName: string, longTermRetentionServerName: string, callback: msRest.ServiceCallback): void; + listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, callback: msRest.ServiceCallback): void; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param options The optional parameters * @param callback The callback */ - listByServer(locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByServerOptionalParams, callback: msRest.ServiceCallback): void; - listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupServer(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, + locationName, + longTermRetentionServerName, + options + }, + listByResourceGroupServerOperationSpec, + callback) as Promise; + } + + /** + * Copy an existing long term retention backup. + * @param locationName The location of the database. + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param parameters The parameters needed for long term retention copy request + * @param [options] The optional parameters + * @returns Promise + */ + beginCopy(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.CopyLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options + }, + beginCopyOperationSpec, + options); + } + + /** + * 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 optional parameters + * @returns Promise + */ + beginUpdate(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.UpdateLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database + * @param longTermRetentionServerName The name of the server + * @param longTermRetentionDatabaseName The name of the database + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + locationName, + longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * 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 optional parameters + * @returns Promise + */ + beginCopyByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.CopyLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, locationName, longTermRetentionServerName, + longTermRetentionDatabaseName, + backupName, + parameters, options }, - listByServerOperationSpec, - callback) as Promise; + beginCopyByResourceGroupOperationSpec, + options); } /** - * 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 optional parameters * @returns Promise */ - beginDeleteByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + beginUpdateByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, parameters: Models.UpdateLongTermRetentionBackupParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -376,14 +537,17 @@ export class LongTermRetentionBackups { longTermRetentionServerName, longTermRetentionDatabaseName, backupName, + parameters, options }, - beginDeleteByResourceGroupOperationSpec, + beginUpdateByResourceGroupOperationSpec, options); } /** * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. * @param locationName The location of the database * @param longTermRetentionServerName The name of the server * @param longTermRetentionDatabaseName The name of the database @@ -391,16 +555,17 @@ export class LongTermRetentionBackups { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteByResourceGroup(resourceGroupName: string, locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { + resourceGroupName, locationName, longTermRetentionServerName, longTermRetentionDatabaseName, backupName, options }, - beginDeleteMethodOperationSpec, + beginDeleteByResourceGroupOperationSpec, options); } @@ -408,178 +573,177 @@ export class LongTermRetentionBackups { * Lists all long term retention backups for a database. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options: Models.LongTermRetentionBackupsListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByResourceGroupDatabaseNextOperationSpec, - callback) as Promise; + listByDatabaseNextOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given location. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByLocationNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByLocationNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByLocationNext(nextPageLink: string, options: Models.LongTermRetentionBackupsListByLocationNextOptionalParams, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByLocationNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByResourceGroupLocationNextOperationSpec, - callback) as Promise; + listByLocationNextOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given server. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByServerNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByServerNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options: Models.LongTermRetentionBackupsListByServerNextOptionalParams, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByServerNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByResourceGroupServerNextOperationSpec, - callback) as Promise; + listByServerNextOperationSpec, + callback) as Promise; } /** * Lists all long term retention backups for a database. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupDatabaseNext(nextPageLink: string, options: Models.LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByResourceGroupDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByDatabaseNextOperationSpec, - callback) as Promise; + listByResourceGroupDatabaseNextOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given location. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupLocationNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupLocationNext(nextPageLink: string, options: Models.LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupLocationNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByResourceGroupLocationNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByLocationNextOperationSpec, - callback) as Promise; + listByResourceGroupLocationNextOperationSpec, + callback) as Promise; } /** * Lists the long term retention backups for a given server. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupServerNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupServerNext(nextPageLink: string, options: Models.LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupServerNext(nextPageLink: string, options?: Models.LongTermRetentionBackupsListByResourceGroupServerNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByServerNextOperationSpec, - callback) as Promise; + listByResourceGroupServerNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getByResourceGroupOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", urlParameters: [ - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, @@ -587,7 +751,7 @@ const getByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -603,11 +767,10 @@ const getByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupDatabaseOperationSpec: msRest.OperationSpec = { +const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", urlParameters: [ - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, @@ -616,7 +779,7 @@ const listByResourceGroupDatabaseOperationSpec: msRest.OperationSpec = { queryParameters: [ Parameters.onlyLatestPerDatabase, Parameters.databaseState, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -632,18 +795,17 @@ const listByResourceGroupDatabaseOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupLocationOperationSpec: msRest.OperationSpec = { +const listByLocationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", urlParameters: [ - Parameters.resourceGroupName, Parameters.locationName, Parameters.subscriptionId ], queryParameters: [ Parameters.onlyLatestPerDatabase, Parameters.databaseState, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -659,11 +821,10 @@ const listByResourceGroupLocationOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupServerOperationSpec: msRest.OperationSpec = { +const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", urlParameters: [ - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.subscriptionId @@ -671,7 +832,7 @@ const listByResourceGroupServerOperationSpec: msRest.OperationSpec = { queryParameters: [ Parameters.onlyLatestPerDatabase, Parameters.databaseState, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -687,10 +848,11 @@ const listByResourceGroupServerOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const getByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", urlParameters: [ + Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, @@ -698,7 +860,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -714,10 +876,11 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByDatabaseOperationSpec: msRest.OperationSpec = { +const listByResourceGroupDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups", urlParameters: [ + Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, @@ -726,7 +889,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { queryParameters: [ Parameters.onlyLatestPerDatabase, Parameters.databaseState, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -742,17 +905,18 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { serializer }; -const listByLocationOperationSpec: msRest.OperationSpec = { +const listByResourceGroupLocationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionBackups", urlParameters: [ + Parameters.resourceGroupName, Parameters.locationName, Parameters.subscriptionId ], queryParameters: [ Parameters.onlyLatestPerDatabase, Parameters.databaseState, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -768,10 +932,11 @@ const listByLocationOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerOperationSpec: msRest.OperationSpec = { +const listByResourceGroupServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionBackups", urlParameters: [ + Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.subscriptionId @@ -779,7 +944,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { queryParameters: [ Parameters.onlyLatestPerDatabase, Parameters.databaseState, - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -795,11 +960,10 @@ const listByServerOperationSpec: msRest.OperationSpec = { serializer }; -const beginDeleteByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", +const beginCopyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", urlParameters: [ - Parameters.resourceGroupName, Parameters.locationName, Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName, @@ -807,13 +971,57 @@ const beginDeleteByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CopyLongTermRetentionBackupParameters, + required: true + } + }, responses: { - 200: {}, + 200: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + urlParameters: [ + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.UpdateLongTermRetentionBackupParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -833,7 +1041,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -848,13 +1056,117 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupDatabaseNextOperationSpec: msRest.OperationSpec = { +const beginCopyByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/copy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CopyLongTermRetentionBackupParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}/update", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.UpdateLongTermRetentionBackupParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionBackupOperationResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.longTermRetentionServerName, + Parameters.longTermRetentionDatabaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -869,13 +1181,18 @@ const listByResourceGroupDatabaseNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupLocationNextOperationSpec: msRest.OperationSpec = { +const listByLocationNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -890,13 +1207,18 @@ const listByResourceGroupLocationNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupServerNextOperationSpec: msRest.OperationSpec = { +const listByServerNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -911,13 +1233,18 @@ const listByResourceGroupServerNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByDatabaseNextOperationSpec: msRest.OperationSpec = { +const listByResourceGroupDatabaseNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -932,13 +1259,18 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByLocationNextOperationSpec: msRest.OperationSpec = { +const listByResourceGroupLocationNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -953,13 +1285,18 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerNextOperationSpec: msRest.OperationSpec = { +const listByResourceGroupServerNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts new file mode 100644 index 000000000000..a4ff760b2f05 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionManagedInstanceBackups.ts @@ -0,0 +1,1010 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/longTermRetentionManagedInstanceBackupsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a LongTermRetentionManagedInstanceBackups. */ +export class LongTermRetentionManagedInstanceBackups { + private readonly client: SqlManagementClientContext; + + /** + * Create a LongTermRetentionManagedInstanceBackups. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a long term retention backup for a managed database. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param callback The callback + */ + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param options The optional parameters + * @param callback The callback + */ + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(locationName,managedInstanceName,databaseName,backupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Lists all long term retention backups for a managed database. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams): Promise; + /** + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param callback The callback + */ + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for a given managed instance. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstance(locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams): Promise; + /** + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByInstance(locationName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByInstance(locationName: string, managedInstanceName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams, callback: msRest.ServiceCallback): void; + listByInstance(locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + managedInstanceName, + options + }, + listByInstanceOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for managed databases in a given location. + * @param locationName The location of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams): Promise; + /** + * @param locationName The location of the database. + * @param callback The callback + */ + listByLocation(locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The location of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(locationName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams, callback: msRest.ServiceCallback): void; + listByLocation(locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + + /** + * Gets a long term retention backup for a managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param callback The callback + */ + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param options The optional parameters + * @param callback The callback + */ + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + getByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteByResourceGroup(resourceGroupName,locationName,managedInstanceName,databaseName,backupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Lists all long term retention backups for a managed database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param callback The callback + */ + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabase(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + options + }, + listByResourceGroupDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for a given managed instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupInstance(resourceGroupName: string, locationName: string, managedInstanceName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + managedInstanceName, + options + }, + listByResourceGroupInstanceOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for managed databases in a given location. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param callback The callback + */ + listByResourceGroupLocation(resourceGroupName: string, locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupLocation(resourceGroupName: string, locationName: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + options + }, + listByResourceGroupLocationOperationSpec, + callback) as Promise; + } + + /** + * Deletes a long term retention backup. + * @param locationName The location of the database. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Deletes a long term retention backup. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The location of the database + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database. + * @param backupName The backup name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteByResourceGroup(resourceGroupName: string, locationName: string, managedInstanceName: string, databaseName: string, backupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + locationName, + managedInstanceName, + databaseName, + backupName, + options + }, + beginDeleteByResourceGroupOperationSpec, + options); + } + + /** + * Lists all long term retention backups for a managed database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for a given managed instance. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByInstanceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByInstanceNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for managed databases in a given location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByLocationNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all long term retention backups for a managed database. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupDatabaseNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupDatabaseNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for a given managed instance. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupInstanceNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupInstanceNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupInstanceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupInstanceNextOperationSpec, + callback) as Promise; + } + + /** + * Lists the long term retention backups for managed databases in a given location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByResourceGroupLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupLocationNext(nextPageLink: string, options: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupLocationNext(nextPageLink: string, options?: Models.LongTermRetentionManagedInstanceBackupsListByResourceGroupLocationNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupLocationNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstanceBackups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.backupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.onlyLatestPerDatabase, + Parameters.databaseState, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionBackupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/backupLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts similarity index 64% rename from sdk/sql/arm-sql/src/operations/backupLongTermRetentionPolicies.ts rename to sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index 015a8db7ac5e..52655694d620 100644 --- a/sdk/sql/arm-sql/src/operations/backupLongTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -11,16 +10,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; -import * as Mappers from "../models/backupLongTermRetentionPoliciesMappers"; +import * as Mappers from "../models/longTermRetentionPoliciesMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a BackupLongTermRetentionPolicies. */ -export class BackupLongTermRetentionPolicies { +/** Class representing a LongTermRetentionPolicies. */ +export class LongTermRetentionPolicies { private readonly client: SqlManagementClientContext; /** - * Create a BackupLongTermRetentionPolicies. + * Create a LongTermRetentionPolicies. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -34,9 +33,9 @@ export class BackupLongTermRetentionPolicies { * @param serverName The name of the server. * @param databaseName The name of the database. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -44,7 +43,7 @@ export class BackupLongTermRetentionPolicies { * @param databaseName The name of the database. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -53,8 +52,8 @@ export class BackupLongTermRetentionPolicies { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -63,7 +62,7 @@ export class BackupLongTermRetentionPolicies { options }, getOperationSpec, - callback) as Promise; + callback) as Promise; } /** @@ -74,11 +73,11 @@ export class BackupLongTermRetentionPolicies { * @param databaseName The name of the database. * @param parameters The long term retention policy info. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.LongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -88,9 +87,9 @@ export class BackupLongTermRetentionPolicies { * @param serverName The name of the server. * @param databaseName The name of the database. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -98,7 +97,7 @@ export class BackupLongTermRetentionPolicies { * @param databaseName The name of the database. * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -107,8 +106,8 @@ export class BackupLongTermRetentionPolicies { * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -117,7 +116,7 @@ export class BackupLongTermRetentionPolicies { options }, listByDatabaseOperationSpec, - callback) as Promise; + callback) as Promise; } /** @@ -130,7 +129,7 @@ export class BackupLongTermRetentionPolicies { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.BackupLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.LongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -142,6 +141,34 @@ export class BackupLongTermRetentionPolicies { beginCreateOrUpdateOperationSpec, options); } + + /** + * Gets a database's long term retention policy. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -157,14 +184,14 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.BackupLongTermRetentionPolicy + bodyMapper: Mappers.LongTermRetentionPolicy }, default: { bodyMapper: Mappers.CloudError @@ -183,14 +210,14 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.BackupLongTermRetentionPolicy + bodyMapper: Mappers.LongTermRetentionPolicyListResult }, default: { bodyMapper: Mappers.CloudError @@ -210,7 +237,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -218,13 +245,13 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.BackupLongTermRetentionPolicy, + ...Mappers.LongTermRetentionPolicy, required: true } }, responses: { 200: { - bodyMapper: Mappers.BackupLongTermRetentionPolicy + bodyMapper: Mappers.LongTermRetentionPolicy }, 202: {}, default: { @@ -233,3 +260,27 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LongTermRetentionPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts new file mode 100644 index 000000000000..6f3c23b69e69 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowOptionsOperations.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/maintenanceWindowOptionsOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a MaintenanceWindowOptionsOperations. */ +export class MaintenanceWindowOptionsOperations { + private readonly client: SqlManagementClientContext; + + /** + * Create a MaintenanceWindowOptionsOperations. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of available maintenance windows. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database to get maintenance windows options for. + * @param maintenanceWindowOptionsName Maintenance window options name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowOptionsName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database to get maintenance windows options for. + * @param maintenanceWindowOptionsName Maintenance window options name. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowOptionsName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database to get maintenance windows options for. + * @param maintenanceWindowOptionsName Maintenance window options name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowOptionsName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowOptionsName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + maintenanceWindowOptionsName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindowOptions/current", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.maintenanceWindowOptionsName, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MaintenanceWindowOptions + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts similarity index 57% rename from sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts rename to sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts index 66ddab401ec4..f4d90a5b0420 100644 --- a/sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/maintenanceWindowsOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,16 +9,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; -import * as Mappers from "../models/dataMaskingPoliciesMappers"; +import * as Mappers from "../models/maintenanceWindowsOperationsMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a DataMaskingPolicies. */ -export class DataMaskingPolicies { +/** Class representing a MaintenanceWindowsOperations. */ +export class MaintenanceWindowsOperations { private readonly client: SqlManagementClientContext; /** - * Create a DataMaskingPolicies. + * Create a MaintenanceWindowsOperations. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -27,116 +26,117 @@ export class DataMaskingPolicies { } /** - * Creates or updates a database data masking policy + * Gets maintenance windows settings 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 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 databaseName The name of the database to get maintenance windows for. + * @param maintenanceWindowName Maintenance window name. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters Parameters for creating or updating a data masking policy. + * @param databaseName The name of the database to get maintenance windows for. + * @param maintenanceWindowName Maintenance window name. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param parameters Parameters for creating or updating a data masking policy. + * @param databaseName The name of the database to get maintenance windows for. + * @param maintenanceWindowName Maintenance window name. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, - parameters, + maintenanceWindowName, options }, - createOrUpdateOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** - * Gets a database data masking policy. + * Sets maintenance windows settings 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 serverName The name of the server. - * @param databaseName The name of the database. + * @param databaseName The name of the database to set maintenance windows for. + * @param maintenanceWindowName Maintenance window name. + * @param parameters * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. + * @param databaseName The name of the database to set maintenance windows for. + * @param maintenanceWindowName Maintenance window name. + * @param parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database. + * @param databaseName The name of the database to set maintenance windows for. + * @param maintenanceWindowName Maintenance window name. + * @param parameters * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, maintenanceWindowName: string, parameters: Models.MaintenanceWindows, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, + maintenanceWindowName, + parameters, options }, - getOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec, + callback); } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.dataMaskingPolicyName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.maintenanceWindowName, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.DataMaskingPolicy, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.DataMaskingPolicy + bodyMapper: Mappers.MaintenanceWindows }, default: { bodyMapper: Mappers.CloudError @@ -145,26 +145,31 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}", +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.dataMaskingPolicyName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.maintenanceWindowName, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.MaintenanceWindows, + required: true + } + }, responses: { - 200: { - bodyMapper: Mappers.DataMaskingPolicy - }, + 200: {}, default: { bodyMapper: Mappers.CloudError } diff --git a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts index 825d783a4032..a940d262577a 100644 --- a/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedBackupShortTermRetentionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -223,7 +222,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -249,7 +248,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -276,7 +275,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -311,7 +310,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -342,6 +341,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts new file mode 100644 index 000000000000..7167e9af6f25 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseColumns.ts @@ -0,0 +1,365 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseColumnsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseColumns. */ +export class ManagedDatabaseColumns { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseColumns. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * List managed database 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseColumnsListByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: Models.ManagedDatabaseColumnsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseColumnsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * List managed database 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param [options] The optional parameters + * @returns Promise + */ + listByTable(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options?: Models.ManagedDatabaseColumnsListByTableOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param callback The callback + */ + listByTable(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param options The optional parameters + * @param callback The callback + */ + listByTable(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options: Models.ManagedDatabaseColumnsListByTableOptionalParams, callback: msRest.ServiceCallback): void; + listByTable(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options?: Models.ManagedDatabaseColumnsListByTableOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + tableName, + options + }, + listByTableOperationSpec, + callback) as Promise; + } + + /** + * Get managed database 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param columnName The name of the column. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, columnName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + tableName, + columnName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List managed database columns + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseColumnsListByDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: Models.ManagedDatabaseColumnsListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseColumnsListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } + + /** + * List managed database columns + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByTableNext(nextPageLink: string, options?: Models.ManagedDatabaseColumnsListByTableNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByTableNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByTableNext(nextPageLink: string, options: Models.ManagedDatabaseColumnsListByTableNextOptionalParams, callback: msRest.ServiceCallback): void; + listByTableNext(nextPageLink: string, options?: Models.ManagedDatabaseColumnsListByTableNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByTableNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/columns", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.schema, + Parameters.table, + Parameters.column, + Parameters.orderBy, + Parameters.skiptoken, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByTableOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.columnName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumn + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.schema, + Parameters.table, + Parameters.column, + Parameters.orderBy, + Parameters.skiptoken, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByTableNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseColumnListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts new file mode 100644 index 000000000000..dc5668e95b5f --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseQueries.ts @@ -0,0 +1,227 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseQueriesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseQueries. */ +export class ManagedDatabaseQueries { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseQueries. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Get query by query id. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param queryId + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param queryId + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param queryId + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + queryId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Get query execution statistics by query id. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param queryId + * @param [options] The optional parameters + * @returns Promise + */ + listByQuery(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options?: Models.ManagedDatabaseQueriesListByQueryOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param queryId + * @param callback The callback + */ + listByQuery(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param queryId + * @param options The optional parameters + * @param callback The callback + */ + listByQuery(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options: Models.ManagedDatabaseQueriesListByQueryOptionalParams, callback: msRest.ServiceCallback): void; + listByQuery(resourceGroupName: string, managedInstanceName: string, databaseName: string, queryId: string, options?: Models.ManagedDatabaseQueriesListByQueryOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + queryId, + options + }, + listByQueryOperationSpec, + callback) as Promise; + } + + /** + * Get query execution statistics by query id. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByQueryNext(nextPageLink: string, options?: Models.ManagedDatabaseQueriesListByQueryNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByQueryNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByQueryNext(nextPageLink: string, options: Models.ManagedDatabaseQueriesListByQueryNextOptionalParams, callback: msRest.ServiceCallback): void; + listByQueryNext(nextPageLink: string, options?: Models.ManagedDatabaseQueriesListByQueryNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByQueryNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.queryId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceQuery + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByQueryOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/queries/{queryId}/statistics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.queryId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.interval, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceQueryStatistics + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByQueryNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.startTime0, + Parameters.endTime0, + Parameters.interval, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceQueryStatistics + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts new file mode 100644 index 000000000000..ece6e371a1fc --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRecommendedSensitivityLabels.ts @@ -0,0 +1,103 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseRecommendedSensitivityLabelsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseRecommendedSensitivityLabels. */ +export class ManagedDatabaseRecommendedSensitivityLabels { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseRecommendedSensitivityLabels. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Update recommended sensitivity labels states 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 + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters + * @param callback The callback + */ + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + updateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.RecommendedSensitivityLabelUpdateList, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index 1ff1a97ed81b..174ae82fe0b3 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -79,7 +78,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts new file mode 100644 index 000000000000..56a3155fe3ef --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSchemas.ts @@ -0,0 +1,218 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseSchemasMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseSchemas. */ +export class ManagedDatabaseSchemas { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseSchemas. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * List managed 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSchemasListByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: Models.ManagedDatabaseSchemasListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSchemasListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Get managed 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 managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List managed database schemas + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSchemasListByDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: Models.ManagedDatabaseSchemasListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSchemasListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSchemaListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSchema + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseSchemaListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts index a35978ff4977..c19af0887ca7 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityAlertPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -198,7 +197,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +224,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -261,7 +260,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -284,6 +283,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts new file mode 100644 index 000000000000..3ea5d7a2f41d --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSecurityEvents.ts @@ -0,0 +1,157 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseSecurityEventsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseSecurityEvents. */ +export class ManagedDatabaseSecurityEvents { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseSecurityEvents. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of security events. + * @param resourceGroupName The name of the resource group that contains the 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 events are + * retrieved. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSecurityEventsListByDatabaseOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security events are + * retrieved. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security events are + * retrieved. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: Models.ManagedDatabaseSecurityEventsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: Models.ManagedDatabaseSecurityEventsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of security events. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: Models.ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSecurityEventsListByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityEvents", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.skip, + Parameters.top, + Parameters.skiptoken, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityEventCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.skip, + Parameters.top, + Parameters.skiptoken, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityEventCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts index 78a062d17bb6..10f3e4c8f90c 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseSensitivityLabels.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -332,6 +331,49 @@ export class ManagedDatabaseSensitivityLabels { callback) as 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 + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters + * @param callback The callback + */ + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + updateOperationSpec, + callback); + } + /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -377,7 +419,7 @@ export class ManagedDatabaseSensitivityLabels { * @param [options] The optional parameters * @returns Promise */ - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listCurrentByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -388,8 +430,8 @@ export class ManagedDatabaseSensitivityLabels { * @param options The optional parameters * @param callback The callback */ - listCurrentByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCurrentByDatabaseNext(nextPageLink: string, options: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listCurrentByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListCurrentByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -405,7 +447,7 @@ export class ManagedDatabaseSensitivityLabels { * @param [options] The optional parameters * @returns Promise */ - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listRecommendedByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -416,8 +458,8 @@ export class ManagedDatabaseSensitivityLabels { * @param options The optional parameters * @param callback The callback */ - listRecommendedByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRecommendedByDatabaseNext(nextPageLink: string, options: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listRecommendedByDatabaseNext(nextPageLink: string, options?: Models.ManagedDatabaseSensitivityLabelsListRecommendedByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -440,11 +482,11 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource1, + Parameters.sensitivityLabelSource0, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -470,11 +512,11 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2, + Parameters.sensitivityLabelSource1, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -510,11 +552,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2, + Parameters.sensitivityLabelSource1, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -538,11 +580,11 @@ const disableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource0, + Parameters.sensitivityLabelSource2, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -566,11 +608,11 @@ const enableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource0, + Parameters.sensitivityLabelSource2, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -594,8 +636,10 @@ const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.filter1, - Parameters.apiVersion3 + Parameters.skipToken, + Parameters.count, + Parameters.filter, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -611,6 +655,37 @@ const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { serializer }; +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/currentSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SensitivityLabelUpdateList, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/recommendedSensitivityLabels", @@ -621,10 +696,10 @@ const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.includeDisabledRecommendations, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion3 + Parameters.includeDisabledRecommendations, + Parameters.filter, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -647,6 +722,12 @@ const listCurrentByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.skipToken, + Parameters.count, + Parameters.filter, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -668,6 +749,12 @@ const listRecommendedByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.skipToken, + Parameters.includeDisabledRecommendations, + Parameters.filter, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts new file mode 100644 index 000000000000..6fe742c995e2 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTables.ts @@ -0,0 +1,228 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseTablesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseTables. */ +export class ManagedDatabaseTables { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseTables. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * List managed database tables + * @param resourceGroupName The name of the resource group that contains the 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 schemaName The name of the schema. + * @param [options] The optional parameters + * @returns Promise + */ + listBySchema(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options?: Models.ManagedDatabaseTablesListBySchemaOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param callback The callback + */ + listBySchema(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param options The optional parameters + * @param callback The callback + */ + listBySchema(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options: Models.ManagedDatabaseTablesListBySchemaOptionalParams, callback: msRest.ServiceCallback): void; + listBySchema(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, options?: Models.ManagedDatabaseTablesListBySchemaOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + options + }, + listBySchemaOperationSpec, + callback) as Promise; + } + + /** + * Get managed database table + * @param resourceGroupName The name of the resource group that contains the 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 schemaName The name of the schema. + * @param tableName The name of the table. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param schemaName The name of the schema. + * @param tableName The name of the table. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, schemaName: string, tableName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + schemaName, + tableName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * List managed database tables + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySchemaNext(nextPageLink: string, options?: Models.ManagedDatabaseTablesListBySchemaNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySchemaNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySchemaNext(nextPageLink: string, options: Models.ManagedDatabaseTablesListBySchemaNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySchemaNext(nextPageLink: string, options?: Models.ManagedDatabaseTablesListBySchemaNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySchemaNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listBySchemaOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.schemaName, + Parameters.tableName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseTable + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySchemaNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatabaseTableListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts new file mode 100644 index 000000000000..76e1d547bad8 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseTransparentDataEncryption.ts @@ -0,0 +1,301 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedDatabaseTransparentDataEncryptionMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedDatabaseTransparentDataEncryption. */ +export class ManagedDatabaseTransparentDataEncryption { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedDatabaseTransparentDataEncryption. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a managed database's transparent data encryption. + * @param resourceGroupName The name of the resource group that contains the 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 optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the transparent data encryption + * is defined. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the transparent data encryption + * is defined. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates a database's transparent data encryption configuration. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param parameters The database transparent data encryption. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedTransparentDataEncryption, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param parameters The database transparent data encryption. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedTransparentDataEncryption, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the security alert policy is + * defined. + * @param parameters The database transparent data encryption. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedTransparentDataEncryption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedTransparentDataEncryption, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of managed database's 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 optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the transparent data encryption + * is defined. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the managed database for which the transparent data encryption + * is defined. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of managed database's transparent data encryptions. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.tdeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedTransparentDataEncryption + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.tdeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedTransparentDataEncryption, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedTransparentDataEncryption + }, + 201: { + bodyMapper: Mappers.ManagedTransparentDataEncryption + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedTransparentDataEncryptionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index 2cff3b673b3f..b93de07a4e5f 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -215,7 +214,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -244,7 +243,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -280,7 +279,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts index 9cdc67c4f9f3..dc8cf45dfb83 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,133 +27,133 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { } /** - * Lists the vulnerability assessment scans 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. * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginInitiateScan(resourceGroupName,managedInstanceName,databaseName,scanId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** + * Convert an existing scan result to a human readable format. If already exists nothing happens * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. + * @param databaseName The name of the scanned database. + * @param scanId The vulnerability assessment scan Id. + * @param [options] The optional parameters + * @returns Promise + */ + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the scanned database. + * @param scanId The vulnerability assessment scan Id. * @param callback The callback */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the database. + * @param databaseName The name of the scanned database. + * @param scanId The vulnerability assessment scan Id. * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, + scanId, options }, - listByDatabaseOperationSpec, - callback) as Promise; + exportMethodOperationSpec, + callback) as Promise; } /** - * Gets a vulnerability assessment scan record of a database. + * 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 scanId The vulnerability assessment scan Id of the scan to retrieve. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param callback The callback */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, managedInstanceName, databaseName, - scanId, options }, - getOperationSpec, - callback) as Promise; + listByDatabaseOperationSpec, + callback) as Promise; } /** - * 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. * @param databaseName The name of the database. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param [options] The optional parameters - * @returns Promise - */ - initiateScan(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginInitiateScan(resourceGroupName,managedInstanceName,databaseName,scanId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Convert an existing scan result to a human readable format. If already exists nothing happens - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. - * @param scanId The vulnerability assessment scan Id. - * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. - * @param scanId The vulnerability assessment scan Id. + * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param callback The callback */ - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. - * @param databaseName The name of the scanned database. - * @param scanId The vulnerability assessment scan Id. + * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The optional parameters * @param callback The callback */ - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -163,8 +162,8 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { scanId, options }, - exportMethodOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** @@ -221,25 +220,29 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", +const exportMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, Parameters.databaseName, Parameters.vulnerabilityAssessmentName, + Parameters.scanId, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + }, + 201: { + bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport }, default: { bodyMapper: Mappers.CloudError @@ -248,26 +251,25 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, Parameters.databaseName, Parameters.vulnerabilityAssessmentName, - Parameters.scanId, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult }, default: { bodyMapper: Mappers.CloudError @@ -276,9 +278,9 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const exportMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}/export", +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, @@ -288,17 +290,14 @@ const exportMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport - }, - 201: { - bodyMapper: Mappers.DatabaseVulnerabilityAssessmentScansExport + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord }, default: { bodyMapper: Mappers.CloudError @@ -319,7 +318,7 @@ const beginInitiateScanOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -341,6 +340,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts index 7880f42b6616..3d6c06d80d51 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseVulnerabilityAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -228,7 +227,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -255,7 +254,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -292,7 +291,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +315,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -339,6 +338,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index 08b45ce8abbc..958843ccf113 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -160,6 +159,41 @@ export class ManagedDatabases { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Gets a list of inaccessible managed databases in a managed instance + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listInaccessibleByInstanceOperationSpec, + callback) as Promise; + } + /** * Creates a new database or updates an existing database. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -277,6 +311,34 @@ export class ManagedDatabases { listByInstanceNextOperationSpec, callback) as Promise; } + + /** + * Gets a list of inaccessible managed databases in a managed instance + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInaccessibleByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInaccessibleByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInaccessibleByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInaccessibleByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInaccessibleByInstanceNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -290,7 +352,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +378,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -332,6 +394,31 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; +const listInaccessibleByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/inaccessibleManagedDatabases", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", @@ -342,7 +429,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -379,7 +466,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -405,7 +492,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -439,7 +526,7 @@ const beginCompleteRestoreOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -468,6 +555,33 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedDatabaseListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listInaccessibleByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts index 6dea07f57bbc..8cd5d531c6ba 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAdministrators.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -204,7 +203,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -226,11 +225,11 @@ const getOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, - Parameters.administratorName1, + Parameters.administratorName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -252,11 +251,11 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, - Parameters.administratorName1, + Parameters.administratorName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -289,11 +288,11 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.managedInstanceName, - Parameters.administratorName1, + Parameters.administratorName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -315,6 +314,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts new file mode 100644 index 000000000000..22b5bb359511 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstanceAzureADOnlyAuthentications.ts @@ -0,0 +1,337 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedInstanceAzureADOnlyAuthenticationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedInstanceAzureADOnlyAuthentications. */ +export class ManagedInstanceAzureADOnlyAuthentications { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedInstanceAzureADOnlyAuthentications. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a specific Azure Active Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Sets Server Active Directory only authentication property or updates an existing server Active + * Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param parameters The required parameters for creating or updating an Active Directory only + * authentication property. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedInstanceAzureADOnlyAuthentication, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing server Active Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,managedInstanceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByInstanceOperationSpec, + callback) as Promise; + } + + /** + * Sets Server Active Directory only authentication property or updates an existing server Active + * Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param parameters The required parameters for creating or updating an Active Directory only + * authentication property. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.ManagedInstanceAzureADOnlyAuthentication, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes an existing server Active Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of server Azure Active Directory only authentications. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.authenticationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthentication + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.authenticationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedInstanceAzureADOnlyAuthentication, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthentication + }, + 201: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthentication + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.authenticationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceAzureADOnlyAuthListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts index 1a5461fe6288..79d4594f36ba 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceEncryptionProtectors.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -204,7 +203,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -230,7 +229,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -256,7 +255,7 @@ const beginRevalidateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -281,7 +280,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -312,6 +311,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts index 36bd7ef28283..fb0767d3e2b4 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceKeys.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -180,7 +179,7 @@ export class ManagedInstanceKeys { * @param [options] The optional parameters * @returns Promise */ - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByInstanceNext(nextPageLink: string, options?: Models.ManagedInstanceKeysListByInstanceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -191,8 +190,8 @@ export class ManagedInstanceKeys { * @param options The optional parameters * @param callback The callback */ - listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByInstanceNext(nextPageLink: string, options: Models.ManagedInstanceKeysListByInstanceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: Models.ManagedInstanceKeysListByInstanceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -214,8 +213,8 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.filter1, - Parameters.apiVersion2 + Parameters.filter, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -267,7 +266,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -304,7 +303,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -327,6 +326,10 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.filter, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts new file mode 100644 index 000000000000..ec7c5a4368d8 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstanceLongTermRetentionPolicies.ts @@ -0,0 +1,286 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedInstanceLongTermRetentionPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedInstanceLongTermRetentionPolicies. */ +export class ManagedInstanceLongTermRetentionPolicies { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedInstanceLongTermRetentionPolicies. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Sets a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters The long term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedInstanceLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,databaseName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Sets a managed database's long term retention policy. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param databaseName The name of the database. + * @param parameters The long term retention policy info. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.ManagedInstanceLongTermRetentionPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + databaseName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Gets a database's long term retention policy. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.databaseName, + Parameters.policyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedInstanceLongTermRetentionPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicy + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceLongTermRetentionPolicyListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts new file mode 100644 index 000000000000..ac3eaeb4ce56 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstanceOperations.ts @@ -0,0 +1,269 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedInstanceOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedInstanceOperations. */ +export class ManagedInstanceOperations { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedInstanceOperations. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of operations performed on the managed instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByManagedInstanceOperationSpec, + callback) as Promise; + } + + /** + * Gets a management operation on a managed instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param operationId + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Cancels the asynchronous operation on the managed instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param operationId + * @param [options] The optional parameters + * @returns Promise + */ + cancel(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param operationId + * @param callback The callback + */ + cancel(resourceGroupName: string, managedInstanceName: string, operationId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param operationId + * @param options The optional parameters + * @param callback The callback + */ + cancel(resourceGroupName: string, managedInstanceName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + cancel(resourceGroupName: string, managedInstanceName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + operationId, + options + }, + cancelOperationSpec, + callback); + } + + /** + * Gets a list of operations performed on the managed instance. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByManagedInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByManagedInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByManagedInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByManagedInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceOperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceOperation + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const cancelOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}/cancel", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByManagedInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceOperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts new file mode 100644 index 000000000000..730e11029c7e --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateEndpointConnections.ts @@ -0,0 +1,341 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedInstancePrivateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedInstancePrivateEndpointConnections. */ +export class ManagedInstancePrivateEndpointConnections { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedInstancePrivateEndpointConnections. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a private endpoint connection. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param privateEndpointConnectionName + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, parameters: Models.ManagedInstancePrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,managedInstanceName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param privateEndpointConnectionName + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,managedInstanceName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByManagedInstanceOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param privateEndpointConnectionName + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, parameters: Models.ManagedInstancePrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + privateEndpointConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param privateEndpointConnectionName + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, managedInstanceName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets all private endpoint connections on a server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByManagedInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByManagedInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByManagedInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.privateEndpointConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByManagedInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.privateEndpointConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedInstancePrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateEndpointConnection + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.privateEndpointConnectionName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByManagedInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts new file mode 100644 index 000000000000..f2c2d98036cf --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/managedInstancePrivateLinkResources.ts @@ -0,0 +1,206 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/managedInstancePrivateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ManagedInstancePrivateLinkResources. */ +export class ManagedInstancePrivateLinkResources { + private readonly client: SqlManagementClientContext; + + /** + * Create a ManagedInstancePrivateLinkResources. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets the private link resources for SQL server. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByManagedInstanceOperationSpec, + callback) as Promise; + } + + /** + * Gets a private link resource for SQL server. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param groupName The name of the private link resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param groupName The name of the private link resource. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, groupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param groupName The name of the private link resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + groupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources for SQL server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByManagedInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByManagedInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByManagedInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByManagedInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByManagedInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateLinkResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateLinkListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateLinkResources/{groupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.groupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateLink + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByManagedInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstancePrivateLinkListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts index 3f394c1ad151..dbd2c7c6cb5f 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceTdeCertificates.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -74,7 +73,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts index 11ac9da5bce2..60a27c16c75d 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstanceVulnerabilityAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -223,7 +222,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -249,7 +248,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -285,7 +284,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -308,7 +307,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -331,6 +330,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedInstances.ts b/sdk/sql/arm-sql/src/operations/managedInstances.ts index 9187f0f06a0d..da4196326b8f 100644 --- a/sdk/sql/arm-sql/src/operations/managedInstances.ts +++ b/sdk/sql/arm-sql/src/operations/managedInstances.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -35,7 +34,7 @@ export class ManagedInstances { * @param [options] The optional parameters * @returns Promise */ - listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: msRest.RequestOptionsBase): Promise; + listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: Models.ManagedInstancesListByInstancePoolOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -50,8 +49,8 @@ export class ManagedInstances { * @param options The optional parameters * @param callback The callback */ - listByInstancePool(resourceGroupName: string, instancePoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByInstancePool(resourceGroupName: string, instancePoolName: string, options: Models.ManagedInstancesListByInstancePoolOptionalParams, callback: msRest.ServiceCallback): void; + listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: Models.ManagedInstancesListByInstancePoolOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -62,6 +61,30 @@ export class ManagedInstances { callback) as Promise; } + /** + * Gets a list of all managed instances in the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.ManagedInstancesListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.ManagedInstancesListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.ManagedInstancesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets a list of managed instances in a resource group. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -69,7 +92,7 @@ export class ManagedInstances { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroup(resourceGroupName: string, options?: Models.ManagedInstancesListByResourceGroupOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -82,8 +105,8 @@ export class ManagedInstances { * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.ManagedInstancesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.ManagedInstancesListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -101,7 +124,7 @@ export class ManagedInstances { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstancesGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -116,8 +139,8 @@ export class ManagedInstances { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, options: Models.ManagedInstancesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstancesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -170,27 +193,51 @@ export class ManagedInstances { } /** - * Gets a list of all managed instances in the subscription. + * Get top resource consuming queries of a managed instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - list(options?: msRest.RequestOptionsBase): Promise; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstancesListByManagedInstanceOptionalParams): Promise; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. * @param options The optional parameters * @param callback The callback */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options: Models.ManagedInstancesListByManagedInstanceOptionalParams, callback: msRest.ServiceCallback): void; + listByManagedInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstancesListByManagedInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, + managedInstanceName, options }, - listOperationSpec, - callback) as Promise; + listByManagedInstanceOperationSpec, + callback) as Promise; + } + + /** + * Failovers a managed instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance to failover. + * @param [options] The optional parameters + * @returns Promise + */ + failover(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstancesFailoverOptionalParams): Promise { + return this.beginFailover(resourceGroupName,managedInstanceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -254,13 +301,32 @@ export class ManagedInstances { options); } + /** + * Failovers a managed instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance to failover. + * @param [options] The optional parameters + * @returns Promise + */ + beginFailover(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstancesBeginFailoverOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + managedInstanceName, + options + }, + beginFailoverOperationSpec, + options); + } + /** * Gets a list of all managed instances in an instance pool. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listByInstancePoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByInstancePoolNext(nextPageLink: string, options?: Models.ManagedInstancesListByInstancePoolNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -271,8 +337,8 @@ export class ManagedInstances { * @param options The optional parameters * @param callback The callback */ - listByInstancePoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstancePoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByInstancePoolNext(nextPageLink: string, options: Models.ManagedInstancesListByInstancePoolNextOptionalParams, callback: msRest.ServiceCallback): void; + listByInstancePoolNext(nextPageLink: string, options?: Models.ManagedInstancesListByInstancePoolNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -282,13 +348,41 @@ export class ManagedInstances { callback) as Promise; } + /** + * Gets a list of all managed instances in the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ManagedInstancesListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.ManagedInstancesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ManagedInstancesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + /** * Gets a list of managed instances in a resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.ManagedInstancesListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -299,8 +393,8 @@ export class ManagedInstances { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.ManagedInstancesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.ManagedInstancesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -311,31 +405,31 @@ export class ManagedInstances { } /** - * Gets a list of all managed instances in the subscription. + * Get top resource consuming queries of a managed instance. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByManagedInstanceNext(nextPageLink: string, options?: Models.ManagedInstancesListByManagedInstanceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByManagedInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByManagedInstanceNext(nextPageLink: string, options: Models.ManagedInstancesListByManagedInstanceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByManagedInstanceNext(nextPageLink: string, options?: Models.ManagedInstancesListByManagedInstanceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listNextOperationSpec, - callback) as Promise; + listByManagedInstanceNextOperationSpec, + callback) as Promise; } } @@ -350,7 +444,32 @@ const listByInstancePoolOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.expand, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ManagedInstanceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -374,7 +493,8 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -399,7 +519,8 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -415,21 +536,30 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const listByManagedInstanceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/topqueries", urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.numberOfQueries, + Parameters.databases, + Parameters.startTime0, + Parameters.endTime0, + Parameters.interval, + Parameters.aggregationFunction, + Parameters.observationMetric, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ManagedInstanceListResult + bodyMapper: Mappers.TopQueriesListResult }, default: { bodyMapper: Mappers.CloudError @@ -447,7 +577,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -483,7 +613,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -508,7 +638,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -532,6 +662,31 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const beginFailoverOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.replicaType, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listByInstancePoolNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -539,6 +694,10 @@ const listByInstancePoolNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -553,13 +712,17 @@ const listByInstancePoolNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { +const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -574,13 +737,17 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { serializer }; -const listNextOperationSpec: msRest.OperationSpec = { +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -594,3 +761,34 @@ const listNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByManagedInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.numberOfQueries, + Parameters.databases, + Parameters.startTime0, + Parameters.endTime0, + Parameters.interval, + Parameters.aggregationFunction, + Parameters.observationMetric, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TopQueriesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts index f6b8abddc545..63f9b0c3d9d4 100644 --- a/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -68,12 +67,12 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { } /** - * Sets a database's long term retention policy. + * Sets 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 managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId - * @param parameters The long term retention policy info. + * @param parameters The short term retention policy info. * @param [options] The optional parameters * @returns * Promise @@ -84,12 +83,12 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { } /** - * Sets a database's long term retention policy. + * Sets 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 managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId - * @param parameters The long term retention policy info. + * @param parameters The short term retention policy info. * @param [options] The optional parameters * @returns * Promise @@ -140,12 +139,12 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { } /** - * Sets a database's long term retention policy. + * Sets 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 managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId - * @param parameters The long term retention policy info. + * @param parameters The short term retention policy info. * @param [options] The optional parameters * @returns Promise */ @@ -163,12 +162,12 @@ export class ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies { } /** - * Sets a database's long term retention policy. + * Sets 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 managedInstanceName The name of the managed instance. * @param restorableDroppedDatabaseId - * @param parameters The long term retention policy info. + * @param parameters The short term retention policy info. * @param [options] The optional parameters * @returns Promise */ @@ -228,7 +227,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -254,7 +253,7 @@ const listByRestorableDroppedDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -281,7 +280,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -316,7 +315,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -347,6 +346,9 @@ const listByRestorableDroppedDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts index 0c58ca809417..0e5a9f12dafe 100644 --- a/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/managedServerSecurityAlertPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -173,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -198,7 +197,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -224,7 +223,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -255,6 +254,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/operations.ts b/sdk/sql/arm-sql/src/operations/operations.ts index 21acf86ad037..20f728506bb6 100644 --- a/sdk/sql/arm-sql/src/operations/operations.ts +++ b/sdk/sql/arm-sql/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Sql/operations", queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts b/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts new file mode 100644 index 000000000000..614c746aeba5 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/operationsHealthOperations.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsHealthOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a OperationsHealthOperations. */ +export class OperationsHealthOperations { + private readonly client: SqlManagementClientContext; + + /** + * Create a OperationsHealthOperations. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a service operation health status. + * @param locationName The name of the region where the resource is located. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(locationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName The name of the region where the resource is located. + * @param callback The callback + */ + listByLocation(locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName The name of the region where the resource is located. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + + /** + * Gets a service operation health status. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/operationsHealth", + urlParameters: [ + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationsHealthListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationsHealthListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts similarity index 51% rename from sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts rename to sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts index e334e3dba6e2..83bfef20c9b8 100644 --- a/sdk/sql/arm-sql/src/operations/serverCommunicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/outboundFirewallRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -11,16 +10,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; -import * as Mappers from "../models/serverCommunicationLinksMappers"; +import * as Mappers from "../models/outboundFirewallRulesMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a ServerCommunicationLinks. */ -export class ServerCommunicationLinks { +/** Class representing a OutboundFirewallRules. */ +export class OutboundFirewallRules { private readonly client: SqlManagementClientContext; /** - * Create a ServerCommunicationLinks. + * Create a OutboundFirewallRules. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -28,114 +27,88 @@ export class ServerCommunicationLinks { } /** - * Deletes a server communication link. + * Gets an outbound 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 communicationLinkName The name of the server communication link. + * @param outboundRuleFqdn * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. + * @param outboundRuleFqdn * @param callback The callback */ - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. + * @param outboundRuleFqdn * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, - communicationLinkName, + outboundRuleFqdn, options }, - deleteMethodOperationSpec, - callback); + getOperationSpec, + callback) as Promise; } /** - * Returns a server communication link. + * Create a outbound firewall rule with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. + * @param outboundRuleFqdn * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, communicationLinkName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param options The optional parameters - * @param callback The callback + * @returns Promise */ - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - communicationLinkName, - options - }, - getOperationSpec, - callback) as Promise; + createOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,outboundRuleFqdn,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** - * Creates a server communication link. + * Deletes a outbound firewall rule with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param outboundRuleFqdn * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: Models.ServerCommunicationLink, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,communicationLinkName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + deleteMethod(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serverName,outboundRuleFqdn,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** - * Gets a list of server communication links. + * 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 optional parameters - * @returns Promise + * @returns Promise */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -143,8 +116,8 @@ export class ServerCommunicationLinks { * @param options The optional parameters * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -152,52 +125,101 @@ export class ServerCommunicationLinks { options }, listByServerOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Creates a server communication link. + * Create a outbound firewall rule with a given name. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param communicationLinkName The name of the server communication link. - * @param parameters The required parameters for creating a server communication link. + * @param outboundRuleFqdn * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, communicationLinkName: string, parameters: Models.ServerCommunicationLink, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, - communicationLinkName, - parameters, + outboundRuleFqdn, options }, beginCreateOrUpdateOperationSpec, options); } + + /** + * Deletes a outbound firewall rule with a given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param outboundRuleFqdn + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, serverName: string, outboundRuleFqdn: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + outboundRuleFqdn, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets all outbound firewall rules on a server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.outboundRuleFqdn, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, + 200: { + bodyMapper: Mappers.OutboundFirewallRule + }, default: { bodyMapper: Mappers.CloudError } @@ -205,24 +227,23 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLink + bodyMapper: Mappers.OutboundFirewallRuleListResult }, default: { bodyMapper: Mappers.CloudError @@ -231,24 +252,36 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.outboundRuleFqdn, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.OutboundFirewallRule, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.ServerCommunicationLinkListResult + bodyMapper: Mappers.OutboundFirewallRule + }, + 201: { + bodyMapper: Mappers.OutboundFirewallRule }, + 202: {}, default: { bodyMapper: Mappers.CloudError } @@ -256,33 +289,49 @@ const listByServerOperationSpec: msRest.OperationSpec = { serializer }; -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}", +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.communicationLinkName + Parameters.outboundRuleFqdn, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerCommunicationLink, - required: true + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError } }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { - 201: { - bodyMapper: Mappers.ServerCommunicationLink + 200: { + bodyMapper: Mappers.OutboundFirewallRuleListResult }, - 202: {}, default: { bodyMapper: Mappers.CloudError } diff --git a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts index f2a129d2a609..1f7d66f533e8 100644 --- a/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts +++ b/sdk/sql/arm-sql/src/operations/privateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -215,7 +214,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -240,7 +239,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -300,7 +299,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -323,6 +322,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts index ff5ec78a08f5..2aabd4e1c055 100644 --- a/sdk/sql/arm-sql/src/operations/privateLinkResources.ts +++ b/sdk/sql/arm-sql/src/operations/privateLinkResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -140,7 +139,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -166,7 +165,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -189,6 +188,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts new file mode 100644 index 000000000000..c951579fe813 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/recommendedSensitivityLabels.ts @@ -0,0 +1,103 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/recommendedSensitivityLabelsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a RecommendedSensitivityLabels. */ +export class RecommendedSensitivityLabels { + private readonly client: SqlManagementClientContext; + + /** + * Create a RecommendedSensitivityLabels. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Update recommended sensitivity labels states 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 serverName The name of the server. + * @param databaseName The name of the database. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param parameters + * @param callback The callback + */ + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.RecommendedSensitivityLabelUpdateList, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + parameters, + options + }, + updateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.RecommendedSensitivityLabelUpdateList, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts deleted file mode 100644 index 698f705aec79..000000000000 --- a/sdk/sql/arm-sql/src/operations/recoverableDatabases.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/recoverableDatabasesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a RecoverableDatabases. */ -export class RecoverableDatabases { - private readonly client: SqlManagementClientContext; - - /** - * Create a RecoverableDatabases. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a recoverable database, which is a resource representing a database's geo backup - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of recoverable databases - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecoverableDatabase - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RecoverableDatabaseListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts index a36cefea4644..f292a475b814 100644 --- a/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/recoverableManagedDatabases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -140,7 +139,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -166,7 +165,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -189,6 +188,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/replicationLinks.ts b/sdk/sql/arm-sql/src/operations/replicationLinks.ts index 2e3b76a6773e..3ccf80a75267 100644 --- a/sdk/sql/arm-sql/src/operations/replicationLinks.ts +++ b/sdk/sql/arm-sql/src/operations/replicationLinks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,7 +8,6 @@ */ import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/replicationLinksMappers"; import * as Parameters from "../models/parameters"; @@ -28,85 +26,81 @@ export class ReplicationLinks { } /** - * Deletes a database replication link. Cannot be done during failover. + * Gets a list of replication links on database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. + * @param serverName The name of the server containing the replication link. + * @param databaseName The name of the database containing the replication link. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. + * @param serverName The name of the server containing the replication link. + * @param databaseName The name of the database containing the replication link. * @param callback The callback */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be dropped. - * @param linkId The ID of the replication link to be deleted. + * @param serverName The name of the server containing the replication link. + * @param databaseName The name of the database containing the replication link. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, - linkId, options }, - deleteMethodOperationSpec, - callback); + listByDatabaseOperationSpec, + callback) as Promise; } /** - * Gets a database replication link. + * Gets a replication link. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to get the link for. - * @param linkId The replication link ID to be retrieved. + * @param serverName The name of the server containing the replication link. + * @param databaseName The name of the database containing the replication link. + * @param replicationLinkName The name of the replication link. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, replicationLinkName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to get the link for. - * @param linkId The replication link ID to be retrieved. + * @param serverName The name of the server containing the replication link. + * @param databaseName The name of the database containing the replication link. + * @param replicationLinkName The name of the replication link. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, replicationLinkName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to get the link for. - * @param linkId The replication link ID to be retrieved. + * @param serverName The name of the server containing the replication link. + * @param databaseName The name of the database containing the replication link. + * @param replicationLinkName The name of the replication link. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, replicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, replicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, - linkId, + replicationLinkName, options }, getOperationSpec, @@ -114,146 +108,118 @@ export class ReplicationLinks { } /** - * Sets which replica database is primary by failing over from the current primary replica - * database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param [options] The optional parameters - * @returns Promise - */ - failover(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginFailover(resourceGroupName,serverName,databaseName,linkId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Sets which replica database is primary by failing over from the current primary replica - * database. This operation might result in data loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. - * @param [options] The optional parameters - * @returns Promise - */ - failoverAllowDataLoss(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginFailoverAllowDataLoss(resourceGroupName,serverName,databaseName,linkId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Lists a database's replication links. + * Gets a list of replication links. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to retrieve links for. + * @param serverName The name of the server containing the replication link. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to retrieve links for. + * @param serverName The name of the server containing the replication link. * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database to retrieve links for. + * @param serverName The name of the server containing the replication link. * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, - databaseName, options }, - listByDatabaseOperationSpec, - callback) as Promise; + listByServerOperationSpec, + callback) as Promise; } /** - * Sets which replica database is primary by failing over from the current primary replica - * database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * Gets a list of replication links on database. + * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - beginFailover(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( { - resourceGroupName, - serverName, - databaseName, - linkId, + nextPageLink, options }, - beginFailoverOperationSpec, - options); + listByDatabaseNextOperationSpec, + callback) as Promise; } /** - * Sets which replica database is primary by failing over from the current primary replica - * database. This operation might result in data loss. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database that has the replication link to be failed over. - * @param linkId The ID of the replication link to be failed over. + * Gets a list of replication links. + * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - beginFailoverAllowDataLoss(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( { - resourceGroupName, - serverName, - databaseName, - linkId, + nextPageLink, options }, - beginFailoverAllowDataLossOperationSpec, - options); + listByServerNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.linkId + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.ReplicationLinksListResult + }, default: { bodyMapper: Mappers.CloudError } @@ -263,16 +229,16 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{replicationLinkName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.linkId + Parameters.replicationLinkName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -288,24 +254,23 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByDatabaseOperationSpec: msRest.OperationSpec = { +const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/replicationLinks", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.databaseName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ReplicationLinkListResult + bodyMapper: Mappers.ReplicationLinksListResult }, default: { bodyMapper: Mappers.CloudError @@ -314,25 +279,23 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { serializer }; -const beginFailoverOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover", +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.linkId + Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.ReplicationLinksListResult + }, default: { bodyMapper: Mappers.CloudError } @@ -340,25 +303,23 @@ const beginFailoverOperationSpec: msRest.OperationSpec = { serializer }; -const beginFailoverAllowDataLossOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss", +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.linkId + Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.ReplicationLinksListResult + }, default: { bodyMapper: Mappers.CloudError } diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts index 8cead12893dd..a4ffe827144f 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedDatabases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,96 +26,146 @@ export class RestorableDroppedDatabases { } /** - * Gets a deleted database that can be restored + * Gets a list of restorable dropped databases. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param restorableDroppededDatabaseId The id of the deleted database in the form of - * databaseName,deletionTimeInFileTimeFormat * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param restorableDroppededDatabaseId The id of the deleted database in the form of - * databaseName,deletionTimeInFileTimeFormat * @param callback The callback */ - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param restorableDroppededDatabaseId The id of the deleted database in the form of - * databaseName,deletionTimeInFileTimeFormat * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, - restorableDroppededDatabaseId, options }, - getOperationSpec, - callback) as Promise; + listByServerOperationSpec, + callback) as Promise; } /** - * Gets a list of deleted databases that can be restored + * Gets a restorable dropped 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 restorableDroppedDatabaseId * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param restorableDroppedDatabaseId * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, restorableDroppedDatabaseId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param restorableDroppedDatabaseId * @param options The optional parameters * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, restorableDroppedDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, restorableDroppedDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, + restorableDroppedDatabaseId, options }, - listByServerOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of restorable dropped databases. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDroppedDatabaseListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppededDatabaseId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.restorableDroppededDatabaseId + Parameters.restorableDroppedDatabaseId, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -132,16 +181,15 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerOperationSpec: msRest.OperationSpec = { +const listByServerNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases", + baseUrl: "https://management.azure.com", + path: "{nextLink}", urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName + Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts index 616f9c58900d..917df87c8980 100644 --- a/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/restorableDroppedManagedDatabases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -140,7 +139,7 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -166,7 +165,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -189,6 +188,9 @@ const listByInstanceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/restorePoints.ts b/sdk/sql/arm-sql/src/operations/restorePoints.ts index d3cbf393d7c6..f7b3c5cd2c1f 100644 --- a/sdk/sql/arm-sql/src/operations/restorePoints.ts +++ b/sdk/sql/arm-sql/src/operations/restorePoints.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -189,6 +188,34 @@ export class RestorePoints { beginCreateOperationSpec, options); } + + /** + * Gets a list of database restore points. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -203,7 +230,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -230,7 +257,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -257,7 +284,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -281,7 +308,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -307,3 +334,27 @@ const beginCreateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorePointListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts index 32d4584c6a05..6cc756092e08 100644 --- a/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts +++ b/sdk/sql/arm-sql/src/operations/sensitivityLabels.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -65,6 +64,49 @@ export class SensitivityLabels { callback) as 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 serverName The name of the server. + * @param databaseName The name of the database. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param parameters + * @param callback The callback + */ + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.SensitivityLabelUpdateList, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + parameters, + options + }, + updateOperationSpec, + callback); + } + /** * Gets the sensitivity labels of a given database * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -377,7 +419,7 @@ export class SensitivityLabels { * @param [options] The optional parameters * @returns Promise */ - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listCurrentByDatabaseNext(nextPageLink: string, options?: Models.SensitivityLabelsListCurrentByDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -388,8 +430,8 @@ export class SensitivityLabels { * @param options The optional parameters * @param callback The callback */ - listCurrentByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listCurrentByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listCurrentByDatabaseNext(nextPageLink: string, options: Models.SensitivityLabelsListCurrentByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listCurrentByDatabaseNext(nextPageLink: string, options?: Models.SensitivityLabelsListCurrentByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -405,7 +447,7 @@ export class SensitivityLabels { * @param [options] The optional parameters * @returns Promise */ - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listRecommendedByDatabaseNext(nextPageLink: string, options?: Models.SensitivityLabelsListRecommendedByDatabaseNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -416,8 +458,8 @@ export class SensitivityLabels { * @param options The optional parameters * @param callback The callback */ - listRecommendedByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRecommendedByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRecommendedByDatabaseNext(nextPageLink: string, options: Models.SensitivityLabelsListRecommendedByDatabaseNextOptionalParams, callback: msRest.ServiceCallback): void; + listRecommendedByDatabaseNext(nextPageLink: string, options?: Models.SensitivityLabelsListRecommendedByDatabaseNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -440,8 +482,10 @@ const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.filter1, - Parameters.apiVersion4 + Parameters.skipToken, + Parameters.count, + Parameters.filter, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -457,6 +501,37 @@ const listCurrentByDatabaseOperationSpec: msRest.OperationSpec = { serializer }; +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/currentSensitivityLabels", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SensitivityLabelUpdateList, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/recommendedSensitivityLabels", @@ -467,10 +542,10 @@ const listRecommendedByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.includeDisabledRecommendations, Parameters.skipToken, - Parameters.filter1, - Parameters.apiVersion4 + Parameters.includeDisabledRecommendations, + Parameters.filter, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -496,11 +571,11 @@ const enableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource0, + Parameters.sensitivityLabelSource2, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -524,11 +599,11 @@ const disableRecommendationOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource0, + Parameters.sensitivityLabelSource2, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -552,11 +627,11 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource1, + Parameters.sensitivityLabelSource0, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -582,11 +657,11 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2, + Parameters.sensitivityLabelSource1, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -622,11 +697,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.schemaName, Parameters.tableName, Parameters.columnName, - Parameters.sensitivityLabelSource2, + Parameters.sensitivityLabelSource1, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -647,6 +722,12 @@ const listCurrentByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.skipToken, + Parameters.count, + Parameters.filter, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -668,6 +749,12 @@ const listRecommendedByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.skipToken, + Parameters.includeDisabledRecommendations, + Parameters.filter, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/recommendedElasticPools.ts b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts similarity index 51% rename from sdk/sql/arm-sql/src/operations/recommendedElasticPools.ts rename to sdk/sql/arm-sql/src/operations/serverAdvisors.ts index a2eb82653e0e..3ff544725d97 100644 --- a/sdk/sql/arm-sql/src/operations/recommendedElasticPools.ts +++ b/sdk/sql/arm-sql/src/operations/serverAdvisors.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,16 +9,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; -import * as Mappers from "../models/recommendedElasticPoolsMappers"; +import * as Mappers from "../models/serverAdvisorsMappers"; import * as Parameters from "../models/parameters"; import { SqlManagementClientContext } from "../sqlManagementClientContext"; -/** Class representing a RecommendedElasticPools. */ -export class RecommendedElasticPools { +/** Class representing a ServerAdvisors. */ +export class ServerAdvisors { private readonly client: SqlManagementClientContext; /** - * Create a RecommendedElasticPools. + * Create a ServerAdvisors. * @param {SqlManagementClientContext} client Reference to the service client. */ constructor(client: SqlManagementClientContext) { @@ -27,139 +26,154 @@ export class RecommendedElasticPools { } /** - * Gets a recommended elastic pool. + * Gets a list of server advisors. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; + listByServer(resourceGroupName: string, serverName: string, options?: Models.ServerAdvisorsListByServerOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options: Models.ServerAdvisorsListByServerOptionalParams, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: Models.ServerAdvisorsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, - recommendedElasticPoolName, options }, - getOperationSpec, - callback) as Promise; + listByServerOperationSpec, + callback) as Promise; } /** - * Returns recommended elastic pools. + * Gets a server advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param advisorName The name of the Server Advisor. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, advisorName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param advisorName The name of the Server Advisor. * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, advisorName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. + * @param advisorName The name of the Server Advisor. * @param options The optional parameters * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, advisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, advisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, + advisorName, options }, - listByServerOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** - * Returns recommended elastic pool metrics. + * Updates a server advisor. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. + * @param advisorName The name of the Server Advisor. + * @param parameters The requested advisor resource state. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, serverName: string, advisorName: string, parameters: Models.Advisor, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. + * @param advisorName The name of the Server Advisor. + * @param parameters The requested advisor resource state. * @param callback The callback */ - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serverName: string, advisorName: string, parameters: Models.Advisor, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param recommendedElasticPoolName The name of the recommended elastic pool to be retrieved. + * @param advisorName The name of the Server Advisor. + * @param parameters The requested advisor resource state. * @param options The optional parameters * @param callback The callback */ - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serverName: string, advisorName: string, parameters: Models.Advisor, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serverName: string, advisorName: string, parameters: Models.Advisor, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, - recommendedElasticPoolName, + advisorName, + parameters, options }, - listMetricsOperationSpec, - callback) as Promise; + updateOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.recommendedElasticPoolName + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.RecommendedElasticPool + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Advisor" + } + } + } + } }, default: { bodyMapper: Mappers.CloudError @@ -168,23 +182,24 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.advisorName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.RecommendedElasticPoolListResult + bodyMapper: Mappers.Advisor }, default: { bodyMapper: Mappers.CloudError @@ -193,24 +208,31 @@ const listByServerOperationSpec: msRest.OperationSpec = { serializer }; -const listMetricsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/metrics", +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.recommendedElasticPoolName + Parameters.advisorName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.Advisor, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.RecommendedElasticPoolListMetricsResult + bodyMapper: Mappers.Advisor }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts index b473a84bcf2e..162c618f3c8f 100644 --- a/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts +++ b/sdk/sql/arm-sql/src/operations/serverAutomaticTuningOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -112,7 +111,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -137,7 +136,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts index f80129644663..fdc8ae03ead7 100644 --- a/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts +++ b/sdk/sql/arm-sql/src/operations/serverAzureADAdministrators.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,36 +27,7 @@ export class ServerAzureADAdministrators { } /** - * Creates a new Server Active Directory Administrator or updates an existing server Active - * Directory Administrator. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param properties The required parameters for creating or updating an Active Directory - * Administrator. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, properties: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,serverName,properties,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes an existing server Active Directory Administrator. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,serverName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Returns an server Administrator. + * Gets a Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -92,7 +62,34 @@ export class ServerAzureADAdministrators { } /** - * Returns a list of server Administrators. + * Creates or updates an existing Azure Active Directory administrator. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The requested Azure Active Directory administrator Resource state. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the Azure Active Directory administrator with the given name. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serverName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a list of 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. @@ -106,7 +103,7 @@ export class ServerAzureADAdministrators { * @param serverName The name of the server. * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -114,8 +111,8 @@ export class ServerAzureADAdministrators { * @param options The optional parameters * @param callback The callback */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -127,22 +124,20 @@ export class ServerAzureADAdministrators { } /** - * Creates a new Server Active Directory Administrator or updates an existing server Active - * Directory Administrator. + * Creates or updates an existing Azure Active Directory administrator. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param properties The required parameters for creating or updating an Active Directory - * Administrator. + * @param parameters The requested Azure Active Directory administrator Resource state. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, serverName: string, properties: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerAzureADAdministrator, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serverName, - properties, + parameters, options }, beginCreateOrUpdateOperationSpec, @@ -150,7 +145,7 @@ export class ServerAzureADAdministrators { } /** - * Deletes an existing server Active Directory Administrator. + * Deletes the Azure Active Directory administrator with the given name. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -167,6 +162,34 @@ export class ServerAzureADAdministrators { beginDeleteMethodOperationSpec, options); } + + /** + * Gets a list of Azure Active Directory administrators in a server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -175,13 +198,13 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName0 + Parameters.administratorName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -201,19 +224,19 @@ const listByServerOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serverName + Parameters.serverName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ServerAdministratorListResult + bodyMapper: Mappers.AdministratorListResult }, default: { bodyMapper: Mappers.CloudError @@ -226,19 +249,19 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName0 + Parameters.administratorName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], requestBody: { - parameterPath: "properties", + parameterPath: "parameters", mapper: { ...Mappers.ServerAzureADAdministrator, required: true @@ -251,9 +274,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ServerAzureADAdministrator }, - 202: { - bodyMapper: Mappers.ServerAzureADAdministrator - }, + 202: {}, default: { bodyMapper: Mappers.CloudError } @@ -265,26 +286,44 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, - Parameters.administratorName0 + Parameters.administratorName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ServerAzureADAdministrator - }, - 202: { - bodyMapper: Mappers.ServerAzureADAdministrator - }, - 204: { - bodyMapper: Mappers.ServerAzureADAdministrator + bodyMapper: Mappers.AdministratorListResult }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts new file mode 100644 index 000000000000..012f73087596 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverAzureADOnlyAuthentications.ts @@ -0,0 +1,337 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serverAzureADOnlyAuthenticationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ServerAzureADOnlyAuthentications. */ +export class ServerAzureADOnlyAuthentications { + private readonly client: SqlManagementClientContext; + + /** + * Create a ServerAzureADOnlyAuthentications. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a specific Azure Active Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Sets Server Active Directory only authentication property or updates an existing server Active + * Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The required parameters for creating or updating an Active Directory only + * authentication property. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerAzureADOnlyAuthentication, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing server Active Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serverName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets a list of server 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 optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Sets Server Active Directory only authentication property or updates an existing server Active + * Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The required parameters for creating or updating an Active Directory only + * authentication property. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerAzureADOnlyAuthentication, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes an existing server Active Directory only authentication property. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of server Azure Active Directory only authentications. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.authenticationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerAzureADOnlyAuthentication + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.authenticationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ServerAzureADOnlyAuthentication, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServerAzureADOnlyAuthentication + }, + 201: { + bodyMapper: Mappers.ServerAzureADOnlyAuthentication + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.authenticationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AzureADOnlyAuthListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts index 31cd942591a6..a00793931534 100644 --- a/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverBlobAuditingPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -173,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -198,7 +197,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -224,7 +223,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -255,6 +254,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts b/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts deleted file mode 100644 index 8cd96ee36a74..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverConnectionPolicies.ts +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverConnectionPoliciesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerConnectionPolicies. */ -export class ServerConnectionPolicies { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerConnectionPolicies. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Creates or updates the server's connection policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The required parameters for updating a secure connection policy. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The required parameters for updating a secure connection policy. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param parameters The required parameters for updating a secure connection policy. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Gets the server's secure connection policy. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.connectionPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ServerConnectionPolicy, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ServerConnectionPolicy - }, - 201: { - bodyMapper: Mappers.ServerConnectionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.connectionPolicyName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerConnectionPolicy - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts new file mode 100644 index 000000000000..a9cf94d5900f --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverDevOpsAuditSettings.ts @@ -0,0 +1,284 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serverDevOpsAuditSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ServerDevOpsAuditSettings. */ +export class ServerDevOpsAuditSettings { + private readonly client: SqlManagementClientContext; + + /** + * Create a ServerDevOpsAuditSettings. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a server's DevOps audit settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param devOpsAuditingSettingsName The name of the devops audit settings. This should always be + * 'default'. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param devOpsAuditingSettingsName The name of the devops audit settings. This should always be + * 'default'. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param devOpsAuditingSettingsName The name of the devops audit settings. This should always be + * 'default'. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + devOpsAuditingSettingsName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a server's DevOps audit settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param devOpsAuditingSettingsName The name of the devops audit settings. This should always be + * 'default'. + * @param parameters Properties of DevOps audit settings + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, parameters: Models.ServerDevOpsAuditingSettings, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,devOpsAuditingSettingsName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Lists DevOps audit settings of a server. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a server's DevOps audit settings. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param devOpsAuditingSettingsName The name of the devops audit settings. This should always be + * 'default'. + * @param parameters Properties of DevOps audit settings + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serverName: string, devOpsAuditingSettingsName: string, parameters: Models.ServerDevOpsAuditingSettings, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + devOpsAuditingSettingsName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Lists DevOps audit settings of a server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings/{devOpsAuditingSettingsName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.devOpsAuditingSettingsName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerDevOpsAuditingSettings + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerDevOpsAuditSettingsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings/{devOpsAuditingSettingsName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.devOpsAuditingSettingsName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ServerDevOpsAuditingSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServerDevOpsAuditingSettings + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerDevOpsAuditSettingsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts index fdd12166a26f..4c05011af283 100644 --- a/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts +++ b/sdk/sql/arm-sql/src/operations/serverDnsAliases.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -32,7 +31,7 @@ export class ServerDnsAliases { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. + * @param dnsAliasName The name of the server dns alias. * @param [options] The optional parameters * @returns Promise */ @@ -41,7 +40,7 @@ export class ServerDnsAliases { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. + * @param dnsAliasName The name of the server dns alias. * @param callback The callback */ get(resourceGroupName: string, serverName: string, dnsAliasName: string, callback: msRest.ServiceCallback): void; @@ -49,7 +48,7 @@ export class ServerDnsAliases { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. + * @param dnsAliasName The name of the server dns alias. * @param options The optional parameters * @param callback The callback */ @@ -67,11 +66,11 @@ export class ServerDnsAliases { } /** - * Creates a server dns alias. + * Creates a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. + * @param dnsAliasName The name of the server dns alias. * @param [options] The optional parameters * @returns Promise */ @@ -85,7 +84,7 @@ export class ServerDnsAliases { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. + * @param dnsAliasName The name of the server dns alias. * @param [options] The optional parameters * @returns Promise */ @@ -137,19 +136,19 @@ export class ServerDnsAliases { * @param dnsAliasName The name of the server dns alias. * @param parameters * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: Models.ServerDnsAliasAcquisition, options?: msRest.RequestOptionsBase): Promise { + acquire(resourceGroupName: string, serverName: string, dnsAliasName: string, parameters: Models.ServerDnsAliasAcquisition, options?: msRest.RequestOptionsBase): Promise { return this.beginAcquire(resourceGroupName,serverName,dnsAliasName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** - * Creates a server dns alias. + * Creates a server DNS alias. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. + * @param dnsAliasName The name of the server dns alias. * @param [options] The optional parameters * @returns Promise */ @@ -170,7 +169,7 @@ export class ServerDnsAliases { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server that the alias is pointing to. - * @param dnsAliasName The name of the server DNS alias. + * @param dnsAliasName The name of the server dns alias. * @param [options] The optional parameters * @returns Promise */ @@ -250,7 +249,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -275,7 +274,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -301,7 +300,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -331,7 +330,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -357,7 +356,7 @@ const beginAcquireOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -370,7 +369,9 @@ const beginAcquireOperationSpec: msRest.OperationSpec = { } }, responses: { - 200: {}, + 200: { + bodyMapper: Mappers.ServerDnsAlias + }, 202: {}, default: { bodyMapper: Mappers.CloudError @@ -386,6 +387,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/serverKeys.ts b/sdk/sql/arm-sql/src/operations/serverKeys.ts index b53497dcea66..27f0a24cc325 100644 --- a/sdk/sql/arm-sql/src/operations/serverKeys.ts +++ b/sdk/sql/arm-sql/src/operations/serverKeys.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,9 +107,8 @@ export class ServerKeys { * @param serverName The name of the server. * @param keyName The name of the server key to be operated on (updated or created). The key name * is required to be in the format of 'vault_key_version'. For example, if the keyId is - * https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901, then - * the server key name should be formatted as: - * YourVaultName_YourKeyName_01234567890123456789012345678901 + * https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then the server key name + * should be formatted as: YourVaultName_YourKeyName_YourKeyVersion * @param parameters The requested server key resource state. * @param [options] The optional parameters * @returns Promise @@ -141,9 +139,8 @@ export class ServerKeys { * @param serverName The name of the server. * @param keyName The name of the server key to be operated on (updated or created). The key name * is required to be in the format of 'vault_key_version'. For example, if the keyId is - * https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901, then - * the server key name should be formatted as: - * YourVaultName_YourKeyName_01234567890123456789012345678901 + * https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then the server key name + * should be formatted as: YourVaultName_YourKeyName_YourKeyVersion * @param parameters The requested server key resource state. * @param [options] The optional parameters * @returns Promise @@ -222,7 +219,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -248,7 +245,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -274,7 +271,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -311,7 +308,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -334,6 +331,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/serverOperations.ts b/sdk/sql/arm-sql/src/operations/serverOperations.ts new file mode 100644 index 000000000000..421f5ecfae46 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverOperations.ts @@ -0,0 +1,141 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serverOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ServerOperations. */ +export class ServerOperations { + private readonly client: SqlManagementClientContext; + + /** + * Create a ServerOperations. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of operations performed 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 [options] The optional parameters + * @returns Promise + */ + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param options The optional parameters + * @param callback The callback + */ + listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + options + }, + listByServerOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of operations performed on the server. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServerNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByServerOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/operations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerOperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByServerNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerOperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts index 56e479b9f51e..4973fb743558 100644 --- a/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/serverSecurityAlertPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -173,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -198,7 +197,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -224,7 +223,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -255,6 +254,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts new file mode 100644 index 000000000000..7e500be03d79 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/serverTrustGroups.ts @@ -0,0 +1,455 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/serverTrustGroupsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a ServerTrustGroups. */ +export class ServerTrustGroups { + private readonly client: SqlManagementClientContext; + + /** + * Create a ServerTrustGroups. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets 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 serverTrustGroupName The name of the server trust group. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The name of the region where the resource is located. + * @param serverTrustGroupName The name of the server trust group. + * @param callback The callback + */ + get(resourceGroupName: string, locationName: string, serverTrustGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The name of the region where the resource is located. + * @param serverTrustGroupName The name of the server trust group. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + serverTrustGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates 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 serverTrustGroupName The name of the server trust group. + * @param parameters The server trust group parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, locationName: string, serverTrustGroupName: string, parameters: Models.ServerTrustGroup, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,locationName,serverTrustGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes 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 serverTrustGroupName The name of the server trust group. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,locationName,serverTrustGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The name of the region where the resource is located. + * @param callback The callback + */ + listByLocation(resourceGroupName: string, locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param locationName The name of the region where the resource is located. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(resourceGroupName: string, locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + locationName, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + + /** + * Gets a server trust groups by instance name. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + listByInstanceOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a 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 serverTrustGroupName The name of the server trust group. + * @param parameters The server trust group parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, locationName: string, serverTrustGroupName: string, parameters: Models.ServerTrustGroup, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + locationName, + serverTrustGroupName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes 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 serverTrustGroupName The name of the server trust group. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, locationName: string, serverTrustGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + locationName, + serverTrustGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists a server trust group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a server trust groups by instance name. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByInstanceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.serverTrustGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/serverTrustGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.serverTrustGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ServerTrustGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroup + }, + 201: { + bodyMapper: Mappers.ServerTrustGroup + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.locationName, + Parameters.serverTrustGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByInstanceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ServerTrustGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/serverUsages.ts b/sdk/sql/arm-sql/src/operations/serverUsages.ts deleted file mode 100644 index ca3991457707..000000000000 --- a/sdk/sql/arm-sql/src/operations/serverUsages.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serverUsagesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServerUsages. */ -export class ServerUsages { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServerUsages. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Returns server usages. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/usages", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServerUsageListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts index 09f92258465f..fba59325a4a6 100644 --- a/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts +++ b/sdk/sql/arm-sql/src/operations/serverVulnerabilityAssessments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -211,7 +210,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -237,7 +236,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -273,7 +272,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -296,7 +295,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -319,6 +318,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts index 734cb28282b2..7fa7f54862cb 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,58 +26,6 @@ export class Servers { this.client = client; } - /** - * Determines whether a resource can be created with the specified name. - * @param parameters The parameters to request for name availability. - * @param [options] The optional parameters - * @returns Promise - */ - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param parameters The parameters to request for name availability. - * @param callback The callback - */ - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, callback: msRest.ServiceCallback): void; - /** - * @param parameters The parameters to request for name availability. - * @param options The optional parameters - * @param callback The callback - */ - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - parameters, - options - }, - checkNameAvailabilityOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of all servers in the subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Gets a list of servers in a resource groups. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -86,7 +33,7 @@ export class Servers { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroup(resourceGroupName: string, options?: Models.ServersListByResourceGroupOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -99,8 +46,8 @@ export class Servers { * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options: Models.ServersListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.ServersListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -118,7 +65,7 @@ export class Servers { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, options?: Models.ServersGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. @@ -133,8 +80,8 @@ export class Servers { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options: Models.ServersGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, options?: Models.ServersGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -186,6 +133,72 @@ export class Servers { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Gets a list of all servers in the subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: Models.ServersListOptionalParams): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: Models.ServersListOptionalParams, callback: msRest.ServiceCallback): void; + list(options?: Models.ServersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Imports a bacpac into a new database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The database import request parameters. + * @param [options] The optional parameters + * @returns Promise + */ + importDatabase(resourceGroupName: string, serverName: string, parameters: Models.ImportNewDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { + return this.beginImportDatabase(resourceGroupName,serverName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Determines whether a resource can be created with the specified name. + * @param parameters The name availability request parameters. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param parameters The name availability request parameters. + * @param callback The callback + */ + checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, callback: msRest.ServiceCallback): void; + /** + * @param parameters The name availability request parameters. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + parameters, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + /** * Creates or updates a server. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -248,86 +261,102 @@ export class Servers { } /** - * Gets a list of all servers in the subscription. + * Imports a bacpac into a new database. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param parameters The database import request parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginImportDatabase(resourceGroupName: string, serverName: string, parameters: Models.ImportNewDatabaseDefinition, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + parameters, + options + }, + beginImportDatabaseOperationSpec, + options); + } + + /** + * Gets a list of servers in a resource groups. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.ServersListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.ServersListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.ServersListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listNextOperationSpec, - callback) as Promise; + listByResourceGroupNextOperationSpec, + callback) as Promise; } /** - * Gets a list of servers in a resource groups. + * Gets a list of all servers in the subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ServersListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ServersListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ServersListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + listNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability", +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers", urlParameters: [ + Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.CheckNameAvailabilityRequest, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResponse + bodyMapper: Mappers.ServerListResult }, default: { bodyMapper: Mappers.CloudError @@ -336,21 +365,24 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/servers", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ServerListResult + bodyMapper: Mappers.Server }, default: { bodyMapper: Mappers.CloudError @@ -359,15 +391,15 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/servers", urlParameters: [ - Parameters.resourceGroupName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.expand, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -383,23 +415,28 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability", urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CheckNameAvailabilityRequest, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.Server + bodyMapper: Mappers.CheckNameAvailabilityResponse }, default: { bodyMapper: Mappers.CloudError @@ -417,7 +454,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -453,7 +490,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -478,7 +515,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -502,13 +539,50 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const listNextOperationSpec: msRest.OperationSpec = { +const beginImportDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/import", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ImportNewDatabaseDefinition, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ImportExportOperationResult + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -523,13 +597,17 @@ const listNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { +const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts b/sdk/sql/arm-sql/src/operations/serviceObjectives.ts deleted file mode 100644 index d10a6be2ddd5..000000000000 --- a/sdk/sql/arm-sql/src/operations/serviceObjectives.ts +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serviceObjectivesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServiceObjectives. */ -export class ServiceObjectives { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServiceObjectives. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a database service objective. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param serviceObjectiveName The name of the service objective to retrieve. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - serviceObjectiveName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Returns database service objectives. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param options The optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives/{serviceObjectiveName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.serviceObjectiveName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceObjective - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceObjectiveListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/serviceTierAdvisors.ts b/sdk/sql/arm-sql/src/operations/serviceTierAdvisors.ts deleted file mode 100644 index ab2ce84c5fa4..000000000000 --- a/sdk/sql/arm-sql/src/operations/serviceTierAdvisors.ts +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/serviceTierAdvisorsMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a ServiceTierAdvisors. */ -export class ServiceTierAdvisors { - private readonly client: SqlManagementClientContext; - - /** - * Create a ServiceTierAdvisors. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets a service tier advisor. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param serviceTierAdvisorName The name of service tier advisor. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param serviceTierAdvisorName The name of service tier advisor. - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param serviceTierAdvisorName The name of service tier advisor. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - serviceTierAdvisorName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Returns service tier advisors for specified database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of database. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByDatabaseOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors/{serviceTierAdvisorName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.serviceTierAdvisorName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceTierAdvisor - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByDatabaseOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ServiceTierAdvisorListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/sqlAgent.ts b/sdk/sql/arm-sql/src/operations/sqlAgent.ts new file mode 100644 index 000000000000..0a4eaf54806d --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/sqlAgent.ts @@ -0,0 +1,160 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sqlAgentMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a SqlAgent. */ +export class SqlAgent { + private readonly client: SqlManagementClientContext; + + /** + * Create a SqlAgent. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets current instance sql agent 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 managedInstanceName The name of the managed instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Puts new sql agent configuration to instance. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.SqlAgentConfiguration, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.SqlAgentConfiguration, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param managedInstanceName The name of the managed instance. + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.SqlAgentConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, managedInstanceName: string, parameters: Models.SqlAgentConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + managedInstanceName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/sqlAgent/current", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlAgentConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/sqlAgent/current", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.managedInstanceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SqlAgentConfiguration, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SqlAgentConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts index 34dc34fce3ad..2dcf2a200758 100644 --- a/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts +++ b/sdk/sql/arm-sql/src/operations/subscriptionUsages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -125,7 +124,7 @@ const listByLocationOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -150,7 +149,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -173,6 +172,9 @@ const listByLocationNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/syncAgents.ts b/sdk/sql/arm-sql/src/operations/syncAgents.ts index 5cbc4360dda4..1fbdea7322bf 100644 --- a/sdk/sql/arm-sql/src/operations/syncAgents.ts +++ b/sdk/sql/arm-sql/src/operations/syncAgents.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -321,7 +320,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -346,7 +345,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -372,7 +371,7 @@ const generateKeyOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -398,7 +397,7 @@ const listLinkedDatabasesOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -424,7 +423,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -461,7 +460,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -484,6 +483,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -505,6 +507,9 @@ const listLinkedDatabasesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/syncGroups.ts b/sdk/sql/arm-sql/src/operations/syncGroups.ts index 5824e0f64925..53d42a0ee8c1 100644 --- a/sdk/sql/arm-sql/src/operations/syncGroups.ts +++ b/sdk/sql/arm-sql/src/operations/syncGroups.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -541,25 +540,40 @@ export class SyncGroups { /** * Gets a collection of sync group logs. * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param type The types of logs to retrieve. Possible values include: 'All', 'Error', 'Warning', + * 'Success' * @param [options] The optional parameters * @returns Promise */ - listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listLogsNext(nextPageLink: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param type The types of logs to retrieve. Possible values include: 'All', 'Error', 'Warning', + * 'Success' * @param callback The callback */ - listLogsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listLogsNext(nextPageLink: string, startTime: string, endTime: string, type: Models.Type, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param startTime Get logs generated after this time. + * @param endTime Get logs generated before this time. + * @param type The types of logs to retrieve. Possible values include: 'All', 'Error', 'Warning', + * 'Success' * @param options The optional parameters * @param callback The callback */ - listLogsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listLogsNext(nextPageLink: string, startTime: string, endTime: string, type: Models.Type, options: Models.SyncGroupsListLogsNextOptionalParams, callback: msRest.ServiceCallback): void; + listLogsNext(nextPageLink: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, + startTime, + endTime, + type, options }, listLogsNextOperationSpec, @@ -605,7 +619,7 @@ const listSyncDatabaseIdsOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -632,7 +646,7 @@ const listHubSchemasOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -659,11 +673,11 @@ const listLogsOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.startTime, - Parameters.endTime, + Parameters.startTime1, + Parameters.endTime1, Parameters.type, Parameters.continuationToken, - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -690,7 +704,7 @@ const cancelSyncOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -715,7 +729,7 @@ const triggerSyncOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -740,7 +754,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -766,7 +780,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -793,7 +807,7 @@ const beginRefreshHubSchemaOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -819,7 +833,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -857,7 +871,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -884,7 +898,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -915,6 +929,9 @@ const listSyncDatabaseIdsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -936,6 +953,9 @@ const listHubSchemasNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -957,6 +977,13 @@ const listLogsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.startTime1, + Parameters.endTime1, + Parameters.type, + Parameters.continuationToken, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -978,6 +1005,9 @@ const listByDatabaseNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/syncMembers.ts b/sdk/sql/arm-sql/src/operations/syncMembers.ts index 76a574df56e0..44e1cb188ea4 100644 --- a/sdk/sql/arm-sql/src/operations/syncMembers.ts +++ b/sdk/sql/arm-sql/src/operations/syncMembers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -405,7 +404,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -432,7 +431,7 @@ const listBySyncGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -460,7 +459,7 @@ const listMemberSchemasOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -488,7 +487,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -527,7 +526,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -555,7 +554,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -591,7 +590,7 @@ const beginRefreshMemberSchemaOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -613,6 +612,9 @@ const listBySyncGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -634,6 +636,9 @@ const listMemberSchemasNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts index 0fef38e26455..73873901ea39 100644 --- a/sdk/sql/arm-sql/src/operations/tdeCertificates.ts +++ b/sdk/sql/arm-sql/src/operations/tdeCertificates.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -74,7 +73,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/timeZones.ts b/sdk/sql/arm-sql/src/operations/timeZones.ts new file mode 100644 index 000000000000..2638aba29f2a --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/timeZones.ts @@ -0,0 +1,190 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/timeZonesMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a TimeZones. */ +export class TimeZones { + private readonly client: SqlManagementClientContext; + + /** + * Create a TimeZones. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of managed instance time zones by location. + * @param locationName + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(locationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName + * @param callback The callback + */ + listByLocation(locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + options + }, + listByLocationOperationSpec, + callback) as Promise; + } + + /** + * Gets a managed instance time zone. + * @param locationName + * @param timeZoneId + * @param [options] The optional parameters + * @returns Promise + */ + get(locationName: string, timeZoneId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param locationName + * @param timeZoneId + * @param callback The callback + */ + get(locationName: string, timeZoneId: string, callback: msRest.ServiceCallback): void; + /** + * @param locationName + * @param timeZoneId + * @param options The optional parameters + * @param callback The callback + */ + get(locationName: string, timeZoneId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(locationName: string, timeZoneId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + locationName, + timeZoneId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of managed instance time zones by location. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByLocationNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones", + urlParameters: [ + Parameters.locationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TimeZoneListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones/{timeZoneId}", + urlParameters: [ + Parameters.locationName, + Parameters.timeZoneId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TimeZone + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByLocationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TimeZoneListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/transparentDataEncryptionActivities.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptionActivities.ts deleted file mode 100644 index 35545b94cc76..000000000000 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptionActivities.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/transparentDataEncryptionActivitiesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a TransparentDataEncryptionActivities. */ -export class TransparentDataEncryptionActivities { - private readonly client: SqlManagementClientContext; - - /** - * Create a TransparentDataEncryptionActivities. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Returns a database's transparent data encryption operation result. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the transparent data encryption applies. - * @param [options] The optional parameters - * @returns Promise - */ - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the transparent data encryption applies. - * @param callback The callback - */ - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database for which the transparent data encryption applies. - * @param options The optional parameters - * @param callback The callback - */ - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - databaseName, - options - }, - listByConfigurationOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByConfigurationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.databaseName, - Parameters.transparentDataEncryptionName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TransparentDataEncryptionActivityListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts index 29f3d63bbf1b..ad0363b4efca 100644 --- a/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts +++ b/sdk/sql/arm-sql/src/operations/transparentDataEncryptions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,39 +26,81 @@ export class TransparentDataEncryptions { } /** - * Creates or updates a database's transparent data encryption configuration. + * Gets a logical database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database for which setting the transparent data encryption - * applies. - * @param parameters The required parameters for creating or updating transparent data encryption. + * @param databaseName The name of the logical database for which the transparent data encryption + * is defined. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the logical database for which the transparent data encryption + * is defined. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the logical database for which the transparent data encryption + * is defined. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates a logical database's transparent data encryption configuration. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the logical database for which the security alert policy is + * defined. + * @param parameters The database transparent data encryption. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.LogicalDatabaseTransparentDataEncryption, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database for which setting the transparent data encryption - * applies. - * @param parameters The required parameters for creating or updating transparent data encryption. + * @param databaseName The name of the logical database for which the security alert policy is + * defined. + * @param parameters The database transparent data encryption. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.LogicalDatabaseTransparentDataEncryption, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database for which setting the transparent data encryption - * applies. - * @param parameters The required parameters for creating or updating transparent data encryption. + * @param databaseName The name of the logical database for which the security alert policy is + * defined. + * @param parameters The database transparent data encryption. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.LogicalDatabaseTransparentDataEncryption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.LogicalDatabaseTransparentDataEncryption, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,33 +114,36 @@ export class TransparentDataEncryptions { } /** - * Gets a database's transparent data encryption configuration. + * Gets a list of the logical database's transparent data encryption. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database for which the transparent data encryption applies. + * @param databaseName The name of the logical database for which the transparent data encryption + * is defined. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database for which the transparent data encryption applies. + * @param databaseName The name of the logical database for which the transparent data encryption + * is defined. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. - * @param databaseName The name of the database for which the transparent data encryption applies. + * @param databaseName The name of the logical database for which the transparent data encryption + * is defined. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -107,25 +151,80 @@ export class TransparentDataEncryptions { databaseName, options }, - getOperationSpec, - callback) as Promise; + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of the logical database's transparent data encryption. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.tdeName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LogicalDatabaseTransparentDataEncryption + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{tdeName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.transparentDataEncryptionName + Parameters.tdeName, + Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -133,17 +232,18 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.TransparentDataEncryption, + ...Mappers.LogicalDatabaseTransparentDataEncryption, required: true } }, responses: { 200: { - bodyMapper: Mappers.TransparentDataEncryption + bodyMapper: Mappers.LogicalDatabaseTransparentDataEncryption }, 201: { - bodyMapper: Mappers.TransparentDataEncryption + bodyMapper: Mappers.LogicalDatabaseTransparentDataEncryption }, + 202: {}, default: { bodyMapper: Mappers.CloudError } @@ -151,25 +251,48 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, - Parameters.transparentDataEncryptionName + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LogicalDatabaseTransparentDataEncryptionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.TransparentDataEncryption + bodyMapper: Mappers.LogicalDatabaseTransparentDataEncryptionListResult }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/sql/arm-sql/src/operations/usages.ts b/sdk/sql/arm-sql/src/operations/usages.ts deleted file mode 100644 index fc08d9576ea3..000000000000 --- a/sdk/sql/arm-sql/src/operations/usages.ts +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/usagesMappers"; -import * as Parameters from "../models/parameters"; -import { SqlManagementClientContext } from "../sqlManagementClientContext"; - -/** Class representing a Usages. */ -export class Usages { - private readonly client: SqlManagementClientContext; - - /** - * Create a Usages. - * @param {SqlManagementClientContext} client Reference to the service client. - */ - constructor(client: SqlManagementClientContext) { - this.client = client; - } - - /** - * Gets all instance pool usage 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 instancePoolName The name of the instance pool to be retrieved. - * @param [options] The optional parameters - * @returns Promise - */ - listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: Models.UsagesListByInstancePoolOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param instancePoolName The name of the instance pool to be retrieved. - * @param callback The callback - */ - listByInstancePool(resourceGroupName: string, instancePoolName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param instancePoolName The name of the instance pool to be retrieved. - * @param options The optional parameters - * @param callback The callback - */ - listByInstancePool(resourceGroupName: string, instancePoolName: string, options: Models.UsagesListByInstancePoolOptionalParams, callback: msRest.ServiceCallback): void; - listByInstancePool(resourceGroupName: string, instancePoolName: string, options?: Models.UsagesListByInstancePoolOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - instancePoolName, - options - }, - listByInstancePoolOperationSpec, - callback) as Promise; - } - - /** - * Gets all instance pool usage metrics - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByInstancePoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByInstancePoolNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByInstancePoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstancePoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByInstancePoolNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByInstancePoolOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/usages", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.instancePoolName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.expandChildren, - Parameters.apiVersion3 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.UsageListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByInstancePoolNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.UsageListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/sql/arm-sql/src/operations/virtualClusters.ts b/sdk/sql/arm-sql/src/operations/virtualClusters.ts index 8099f722f86f..77fad074c7d1 100644 --- a/sdk/sql/arm-sql/src/operations/virtualClusters.ts +++ b/sdk/sql/arm-sql/src/operations/virtualClusters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,6 +26,42 @@ export class VirtualClusters { this.client = client; } + /** + * Synchronizes the DNS server settings used by the managed instances inside the given virtual + * cluster. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param [options] The optional parameters + * @returns Promise + */ + updateDnsServers(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param callback The callback + */ + updateDnsServers(resourceGroupName: string, virtualClusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param virtualClusterName The name of the virtual cluster. + * @param options The optional parameters + * @param callback The callback + */ + updateDnsServers(resourceGroupName: string, virtualClusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateDnsServers(resourceGroupName: string, virtualClusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + virtualClusterName, + options + }, + updateDnsServersOperationSpec, + callback) as Promise; + } + /** * Gets a list of all virtualClusters in the subscription. * @param [options] The optional parameters @@ -135,7 +170,7 @@ export class VirtualClusters { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. - * @param parameters The requested managed instance resource state. + * @param parameters The requested virtual cluster resource state. * @param [options] The optional parameters * @returns Promise */ @@ -168,7 +203,7 @@ export class VirtualClusters { * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param virtualClusterName The name of the virtual cluster. - * @param parameters The requested managed instance resource state. + * @param parameters The requested virtual cluster resource state. * @param [options] The optional parameters * @returns Promise */ @@ -243,6 +278,31 @@ export class VirtualClusters { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const updateDnsServersOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}/updateManagedInstanceDnsServers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.virtualClusterName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UpdateManagedInstanceDnsServersOperation + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Sql/virtualClusters", @@ -250,7 +310,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -274,7 +334,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -299,7 +359,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -324,7 +384,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -349,7 +409,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -380,6 +440,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -401,6 +464,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts index bc25e2b3fb62..0e6ef6897018 100644 --- a/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts +++ b/sdk/sql/arm-sql/src/operations/virtualNetworkRules.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -215,7 +214,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -240,7 +239,7 @@ const listByServerOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -303,7 +302,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -326,6 +325,9 @@ const listByServerNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts new file mode 100644 index 000000000000..94423667b8b7 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/workloadClassifiers.ts @@ -0,0 +1,389 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/workloadClassifiersMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a WorkloadClassifiers. */ +export class WorkloadClassifiers { + private readonly client: SqlManagementClientContext; + + /** + * Create a WorkloadClassifiers. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets a workload classifier + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value 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 classifier + * from. + * @param workloadClassifierName The name of the workload classifier. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group from which to receive the classifier + * from. + * @param workloadClassifierName The name of the workload classifier. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group from which to receive the classifier + * from. + * @param workloadClassifierName The name of the workload classifier. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + workloadClassifierName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a workload classifier. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value 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 classifier + * from. + * @param workloadClassifierName The name of the workload classifier to create/update. + * @param parameters The properties of the workload classifier. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, parameters: Models.WorkloadClassifier, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,workloadGroupName,workloadClassifierName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a workload classifier. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value 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 classifier + * from. + * @param workloadClassifierName The name of the workload classifier to delete. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serverName,databaseName,workloadGroupName,workloadClassifierName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByWorkloadGroup(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group from which to receive the classifiers + * from. + * @param callback The callback + */ + listByWorkloadGroup(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group from which to receive the classifiers + * from. + * @param options The optional parameters + * @param callback The callback + */ + listByWorkloadGroup(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByWorkloadGroup(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + options + }, + listByWorkloadGroupOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a workload classifier. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value 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 classifier + * from. + * @param workloadClassifierName The name of the workload classifier to create/update. + * @param parameters The properties of the workload classifier. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, parameters: Models.WorkloadClassifier, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + workloadClassifierName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a workload classifier. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value 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 classifier + * from. + * @param workloadClassifierName The name of the workload classifier to delete. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, workloadClassifierName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + workloadClassifierName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets the list of workload classifiers for a workload group + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByWorkloadGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByWorkloadGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByWorkloadGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByWorkloadGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByWorkloadGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.workloadGroupName, + Parameters.workloadClassifierName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifier + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByWorkloadGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.workloadGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifierListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.workloadGroupName, + Parameters.workloadClassifierName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WorkloadClassifier, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifier + }, + 201: { + bodyMapper: Mappers.WorkloadClassifier + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.workloadGroupName, + Parameters.workloadClassifierName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByWorkloadGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadClassifierListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/operations/workloadGroups.ts b/sdk/sql/arm-sql/src/operations/workloadGroups.ts new file mode 100644 index 000000000000..f7a29782a677 --- /dev/null +++ b/sdk/sql/arm-sql/src/operations/workloadGroups.ts @@ -0,0 +1,361 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/workloadGroupsMappers"; +import * as Parameters from "../models/parameters"; +import { SqlManagementClientContext } from "../sqlManagementClientContext"; + +/** Class representing a WorkloadGroups. */ +export class WorkloadGroups { + private readonly client: SqlManagementClientContext; + + /** + * Create a WorkloadGroups. + * @param {SqlManagementClientContext} client Reference to the service client. + */ + constructor(client: SqlManagementClientContext) { + this.client = client; + } + + /** + * Gets 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. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group. + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param workloadGroupName The name of the workload group. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates 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. + * @param parameters The requested workload group state. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, parameters: Models.WorkloadGroup, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serverName,databaseName,workloadGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes 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 to delete. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serverName,databaseName,workloadGroupName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * 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 optional parameters + * @returns Promise + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serverName, + databaseName, + options + }, + listByDatabaseOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates 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. + * @param parameters The requested workload group state. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, parameters: Models.WorkloadGroup, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes 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 to delete. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, serverName: string, databaseName: string, workloadGroupName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serverName, + databaseName, + workloadGroupName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets the list of workload groups + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByDatabaseNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.workloadGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.workloadGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.WorkloadGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroup + }, + 201: { + bodyMapper: Mappers.WorkloadGroup + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serverName, + Parameters.databaseName, + Parameters.workloadGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByDatabaseNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadGroupListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 0f4a0b9b9b6f..d7c9b23d74c1 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,92 +16,113 @@ import { SqlManagementClientContext } from "./sqlManagementClientContext"; class SqlManagementClient extends SqlManagementClientContext { // Operation groups - recoverableDatabases: operations.RecoverableDatabases; - restorableDroppedDatabases: operations.RestorableDroppedDatabases; - servers: operations.Servers; - serverConnectionPolicies: operations.ServerConnectionPolicies; - databaseThreatDetectionPolicies: operations.DatabaseThreatDetectionPolicies; - dataMaskingPolicies: operations.DataMaskingPolicies; - dataMaskingRules: operations.DataMaskingRules; - firewallRules: operations.FirewallRules; - geoBackupPolicies: operations.GeoBackupPolicies; - databases: operations.Databases; - elasticPools: operations.ElasticPools; - recommendedElasticPools: operations.RecommendedElasticPools; - replicationLinks: operations.ReplicationLinks; - serverAzureADAdministrators: operations.ServerAzureADAdministrators; - serverCommunicationLinks: operations.ServerCommunicationLinks; - serviceObjectives: operations.ServiceObjectives; - elasticPoolActivities: operations.ElasticPoolActivities; - elasticPoolDatabaseActivities: operations.ElasticPoolDatabaseActivities; - serviceTierAdvisors: operations.ServiceTierAdvisors; - transparentDataEncryptions: operations.TransparentDataEncryptions; - transparentDataEncryptionActivities: operations.TransparentDataEncryptionActivities; - serverUsages: operations.ServerUsages; - databaseUsages: operations.DatabaseUsages; - databaseAutomaticTuning: operations.DatabaseAutomaticTuningOperations; - encryptionProtectors: operations.EncryptionProtectors; - failoverGroups: operations.FailoverGroups; - operations: operations.Operations; - serverKeys: operations.ServerKeys; - syncAgents: operations.SyncAgents; - syncGroups: operations.SyncGroups; - syncMembers: operations.SyncMembers; - subscriptionUsages: operations.SubscriptionUsages; - virtualClusters: operations.VirtualClusters; - virtualNetworkRules: operations.VirtualNetworkRules; + backupShortTermRetentionPolicies: operations.BackupShortTermRetentionPolicies; extendedDatabaseBlobAuditingPolicies: operations.ExtendedDatabaseBlobAuditingPolicies; extendedServerBlobAuditingPolicies: operations.ExtendedServerBlobAuditingPolicies; serverBlobAuditingPolicies: operations.ServerBlobAuditingPolicies; databaseBlobAuditingPolicies: operations.DatabaseBlobAuditingPolicies; + dataWarehouseUserActivities: operations.DataWarehouseUserActivitiesOperations; + databaseAdvisors: operations.DatabaseAdvisors; + databaseAutomaticTuning: operations.DatabaseAutomaticTuningOperations; + databaseColumns: operations.DatabaseColumns; + databaseExtensions: operations.DatabaseExtensionsOperations; + databaseOperations: operations.DatabaseOperations; + databaseRecommendedActions: operations.DatabaseRecommendedActions; + databaseSchemas: operations.DatabaseSchemas; + databaseSecurityAlertPolicies: operations.DatabaseSecurityAlertPolicies; + databaseTables: operations.DatabaseTables; + databaseUsages: operations.DatabaseUsages; databaseVulnerabilityAssessmentRuleBaselines: operations.DatabaseVulnerabilityAssessmentRuleBaselines; + databaseVulnerabilityAssessmentScans: operations.DatabaseVulnerabilityAssessmentScans; databaseVulnerabilityAssessments: operations.DatabaseVulnerabilityAssessments; + databases: operations.Databases; + deletedServers: operations.DeletedServers; + elasticPoolOperations: operations.ElasticPoolOperations; + elasticPools: operations.ElasticPools; + encryptionProtectors: operations.EncryptionProtectors; + failoverGroups: operations.FailoverGroups; + firewallRules: operations.FirewallRules; + instanceFailoverGroups: operations.InstanceFailoverGroups; + instancePools: operations.InstancePools; jobAgents: operations.JobAgents; jobCredentials: operations.JobCredentials; jobExecutions: operations.JobExecutions; - jobs: operations.Jobs; jobStepExecutions: operations.JobStepExecutions; jobSteps: operations.JobSteps; jobTargetExecutions: operations.JobTargetExecutions; jobTargetGroups: operations.JobTargetGroups; jobVersions: operations.JobVersions; + jobs: operations.Jobs; + capabilities: operations.Capabilities; longTermRetentionBackups: operations.LongTermRetentionBackups; - backupLongTermRetentionPolicies: operations.BackupLongTermRetentionPolicies; + longTermRetentionManagedInstanceBackups: operations.LongTermRetentionManagedInstanceBackups; + longTermRetentionPolicies: operations.LongTermRetentionPolicies; + maintenanceWindowOptions: operations.MaintenanceWindowOptionsOperations; + maintenanceWindows: operations.MaintenanceWindowsOperations; managedBackupShortTermRetentionPolicies: operations.ManagedBackupShortTermRetentionPolicies; - managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; - serverAutomaticTuning: operations.ServerAutomaticTuningOperations; - serverDnsAliases: operations.ServerDnsAliases; - serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; - restorableDroppedManagedDatabases: operations.RestorableDroppedManagedDatabases; - restorePoints: operations.RestorePoints; + managedDatabaseColumns: operations.ManagedDatabaseColumns; + managedDatabaseQueries: operations.ManagedDatabaseQueries; + managedDatabaseRestoreDetails: operations.ManagedDatabaseRestoreDetails; + managedDatabaseSchemas: operations.ManagedDatabaseSchemas; managedDatabaseSecurityAlertPolicies: operations.ManagedDatabaseSecurityAlertPolicies; - managedServerSecurityAlertPolicies: operations.ManagedServerSecurityAlertPolicies; - sensitivityLabels: operations.SensitivityLabels; - managedInstanceAdministrators: operations.ManagedInstanceAdministrators; - databaseOperations: operations.DatabaseOperations; - elasticPoolOperations: operations.ElasticPoolOperations; - capabilities: operations.Capabilities; - databaseVulnerabilityAssessmentScans: operations.DatabaseVulnerabilityAssessmentScans; + managedDatabaseSecurityEvents: operations.ManagedDatabaseSecurityEvents; + managedDatabaseSensitivityLabels: operations.ManagedDatabaseSensitivityLabels; + managedDatabaseRecommendedSensitivityLabels: operations.ManagedDatabaseRecommendedSensitivityLabels; + managedDatabaseTables: operations.ManagedDatabaseTables; + managedDatabaseTransparentDataEncryption: operations.ManagedDatabaseTransparentDataEncryption; managedDatabaseVulnerabilityAssessmentRuleBaselines: operations.ManagedDatabaseVulnerabilityAssessmentRuleBaselines; managedDatabaseVulnerabilityAssessmentScans: operations.ManagedDatabaseVulnerabilityAssessmentScans; managedDatabaseVulnerabilityAssessments: operations.ManagedDatabaseVulnerabilityAssessments; - instanceFailoverGroups: operations.InstanceFailoverGroups; - backupShortTermRetentionPolicies: operations.BackupShortTermRetentionPolicies; - tdeCertificates: operations.TdeCertificates; - managedInstanceTdeCertificates: operations.ManagedInstanceTdeCertificates; - managedInstanceKeys: operations.ManagedInstanceKeys; + managedDatabases: operations.ManagedDatabases; + managedInstanceAdministrators: operations.ManagedInstanceAdministrators; + managedInstanceAzureADOnlyAuthentications: operations.ManagedInstanceAzureADOnlyAuthentications; managedInstanceEncryptionProtectors: operations.ManagedInstanceEncryptionProtectors; - recoverableManagedDatabases: operations.RecoverableManagedDatabases; + managedInstanceKeys: operations.ManagedInstanceKeys; + managedInstanceLongTermRetentionPolicies: operations.ManagedInstanceLongTermRetentionPolicies; + managedInstanceOperations: operations.ManagedInstanceOperations; + managedInstancePrivateEndpointConnections: operations.ManagedInstancePrivateEndpointConnections; + managedInstancePrivateLinkResources: operations.ManagedInstancePrivateLinkResources; + managedInstanceTdeCertificates: operations.ManagedInstanceTdeCertificates; managedInstanceVulnerabilityAssessments: operations.ManagedInstanceVulnerabilityAssessments; - serverVulnerabilityAssessments: operations.ServerVulnerabilityAssessments; - managedDatabaseSensitivityLabels: operations.ManagedDatabaseSensitivityLabels; - instancePools: operations.InstancePools; - usages: operations.Usages; managedInstances: operations.ManagedInstances; - managedDatabaseRestoreDetails: operations.ManagedDatabaseRestoreDetails; - managedDatabases: operations.ManagedDatabases; + managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies: operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies; + managedServerSecurityAlertPolicies: operations.ManagedServerSecurityAlertPolicies; + operations: operations.Operations; + operationsHealth: operations.OperationsHealthOperations; + outboundFirewallRules: operations.OutboundFirewallRules; privateEndpointConnections: operations.PrivateEndpointConnections; privateLinkResources: operations.PrivateLinkResources; + recoverableManagedDatabases: operations.RecoverableManagedDatabases; + replicationLinks: operations.ReplicationLinks; + restorableDroppedDatabases: operations.RestorableDroppedDatabases; + restorableDroppedManagedDatabases: operations.RestorableDroppedManagedDatabases; + restorePoints: operations.RestorePoints; + sensitivityLabels: operations.SensitivityLabels; + recommendedSensitivityLabels: operations.RecommendedSensitivityLabels; + serverAdvisors: operations.ServerAdvisors; + serverAutomaticTuning: operations.ServerAutomaticTuningOperations; + serverAzureADAdministrators: operations.ServerAzureADAdministrators; + serverAzureADOnlyAuthentications: operations.ServerAzureADOnlyAuthentications; + serverDevOpsAuditSettings: operations.ServerDevOpsAuditSettings; + serverDnsAliases: operations.ServerDnsAliases; + serverKeys: operations.ServerKeys; + serverOperations: operations.ServerOperations; + serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; + serverTrustGroups: operations.ServerTrustGroups; + serverVulnerabilityAssessments: operations.ServerVulnerabilityAssessments; + servers: operations.Servers; + sqlAgent: operations.SqlAgent; + subscriptionUsages: operations.SubscriptionUsages; + syncAgents: operations.SyncAgents; + syncGroups: operations.SyncGroups; + syncMembers: operations.SyncMembers; + tdeCertificates: operations.TdeCertificates; + timeZones: operations.TimeZones; + transparentDataEncryptions: operations.TransparentDataEncryptions; + virtualClusters: operations.VirtualClusters; + virtualNetworkRules: operations.VirtualNetworkRules; + workloadClassifiers: operations.WorkloadClassifiers; + workloadGroups: operations.WorkloadGroups; /** * Initializes a new instance of the SqlManagementClient class. @@ -112,92 +132,113 @@ class SqlManagementClient extends SqlManagementClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.SqlManagementClientOptions) { super(credentials, subscriptionId, options); - this.recoverableDatabases = new operations.RecoverableDatabases(this); - this.restorableDroppedDatabases = new operations.RestorableDroppedDatabases(this); - this.servers = new operations.Servers(this); - this.serverConnectionPolicies = new operations.ServerConnectionPolicies(this); - this.databaseThreatDetectionPolicies = new operations.DatabaseThreatDetectionPolicies(this); - this.dataMaskingPolicies = new operations.DataMaskingPolicies(this); - this.dataMaskingRules = new operations.DataMaskingRules(this); - this.firewallRules = new operations.FirewallRules(this); - this.geoBackupPolicies = new operations.GeoBackupPolicies(this); - this.databases = new operations.Databases(this); - this.elasticPools = new operations.ElasticPools(this); - this.recommendedElasticPools = new operations.RecommendedElasticPools(this); - this.replicationLinks = new operations.ReplicationLinks(this); - this.serverAzureADAdministrators = new operations.ServerAzureADAdministrators(this); - this.serverCommunicationLinks = new operations.ServerCommunicationLinks(this); - this.serviceObjectives = new operations.ServiceObjectives(this); - this.elasticPoolActivities = new operations.ElasticPoolActivities(this); - this.elasticPoolDatabaseActivities = new operations.ElasticPoolDatabaseActivities(this); - this.serviceTierAdvisors = new operations.ServiceTierAdvisors(this); - this.transparentDataEncryptions = new operations.TransparentDataEncryptions(this); - this.transparentDataEncryptionActivities = new operations.TransparentDataEncryptionActivities(this); - this.serverUsages = new operations.ServerUsages(this); - this.databaseUsages = new operations.DatabaseUsages(this); - this.databaseAutomaticTuning = new operations.DatabaseAutomaticTuningOperations(this); - this.encryptionProtectors = new operations.EncryptionProtectors(this); - this.failoverGroups = new operations.FailoverGroups(this); - this.operations = new operations.Operations(this); - this.serverKeys = new operations.ServerKeys(this); - this.syncAgents = new operations.SyncAgents(this); - this.syncGroups = new operations.SyncGroups(this); - this.syncMembers = new operations.SyncMembers(this); - this.subscriptionUsages = new operations.SubscriptionUsages(this); - this.virtualClusters = new operations.VirtualClusters(this); - this.virtualNetworkRules = new operations.VirtualNetworkRules(this); + this.backupShortTermRetentionPolicies = new operations.BackupShortTermRetentionPolicies(this); this.extendedDatabaseBlobAuditingPolicies = new operations.ExtendedDatabaseBlobAuditingPolicies(this); this.extendedServerBlobAuditingPolicies = new operations.ExtendedServerBlobAuditingPolicies(this); this.serverBlobAuditingPolicies = new operations.ServerBlobAuditingPolicies(this); this.databaseBlobAuditingPolicies = new operations.DatabaseBlobAuditingPolicies(this); + this.dataWarehouseUserActivities = new operations.DataWarehouseUserActivitiesOperations(this); + this.databaseAdvisors = new operations.DatabaseAdvisors(this); + this.databaseAutomaticTuning = new operations.DatabaseAutomaticTuningOperations(this); + this.databaseColumns = new operations.DatabaseColumns(this); + this.databaseExtensions = new operations.DatabaseExtensionsOperations(this); + this.databaseOperations = new operations.DatabaseOperations(this); + this.databaseRecommendedActions = new operations.DatabaseRecommendedActions(this); + this.databaseSchemas = new operations.DatabaseSchemas(this); + this.databaseSecurityAlertPolicies = new operations.DatabaseSecurityAlertPolicies(this); + this.databaseTables = new operations.DatabaseTables(this); + this.databaseUsages = new operations.DatabaseUsages(this); this.databaseVulnerabilityAssessmentRuleBaselines = new operations.DatabaseVulnerabilityAssessmentRuleBaselines(this); + this.databaseVulnerabilityAssessmentScans = new operations.DatabaseVulnerabilityAssessmentScans(this); this.databaseVulnerabilityAssessments = new operations.DatabaseVulnerabilityAssessments(this); + this.databases = new operations.Databases(this); + this.deletedServers = new operations.DeletedServers(this); + this.elasticPoolOperations = new operations.ElasticPoolOperations(this); + this.elasticPools = new operations.ElasticPools(this); + this.encryptionProtectors = new operations.EncryptionProtectors(this); + this.failoverGroups = new operations.FailoverGroups(this); + this.firewallRules = new operations.FirewallRules(this); + this.instanceFailoverGroups = new operations.InstanceFailoverGroups(this); + this.instancePools = new operations.InstancePools(this); this.jobAgents = new operations.JobAgents(this); this.jobCredentials = new operations.JobCredentials(this); this.jobExecutions = new operations.JobExecutions(this); - this.jobs = new operations.Jobs(this); this.jobStepExecutions = new operations.JobStepExecutions(this); this.jobSteps = new operations.JobSteps(this); this.jobTargetExecutions = new operations.JobTargetExecutions(this); this.jobTargetGroups = new operations.JobTargetGroups(this); this.jobVersions = new operations.JobVersions(this); + this.jobs = new operations.Jobs(this); + this.capabilities = new operations.Capabilities(this); this.longTermRetentionBackups = new operations.LongTermRetentionBackups(this); - this.backupLongTermRetentionPolicies = new operations.BackupLongTermRetentionPolicies(this); + this.longTermRetentionManagedInstanceBackups = new operations.LongTermRetentionManagedInstanceBackups(this); + this.longTermRetentionPolicies = new operations.LongTermRetentionPolicies(this); + this.maintenanceWindowOptions = new operations.MaintenanceWindowOptionsOperations(this); + this.maintenanceWindows = new operations.MaintenanceWindowsOperations(this); this.managedBackupShortTermRetentionPolicies = new operations.ManagedBackupShortTermRetentionPolicies(this); - this.managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies(this); - this.serverAutomaticTuning = new operations.ServerAutomaticTuningOperations(this); - this.serverDnsAliases = new operations.ServerDnsAliases(this); - this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); - this.restorableDroppedManagedDatabases = new operations.RestorableDroppedManagedDatabases(this); - this.restorePoints = new operations.RestorePoints(this); + this.managedDatabaseColumns = new operations.ManagedDatabaseColumns(this); + this.managedDatabaseQueries = new operations.ManagedDatabaseQueries(this); + this.managedDatabaseRestoreDetails = new operations.ManagedDatabaseRestoreDetails(this); + this.managedDatabaseSchemas = new operations.ManagedDatabaseSchemas(this); this.managedDatabaseSecurityAlertPolicies = new operations.ManagedDatabaseSecurityAlertPolicies(this); - this.managedServerSecurityAlertPolicies = new operations.ManagedServerSecurityAlertPolicies(this); - this.sensitivityLabels = new operations.SensitivityLabels(this); - this.managedInstanceAdministrators = new operations.ManagedInstanceAdministrators(this); - this.databaseOperations = new operations.DatabaseOperations(this); - this.elasticPoolOperations = new operations.ElasticPoolOperations(this); - this.capabilities = new operations.Capabilities(this); - this.databaseVulnerabilityAssessmentScans = new operations.DatabaseVulnerabilityAssessmentScans(this); + this.managedDatabaseSecurityEvents = new operations.ManagedDatabaseSecurityEvents(this); + this.managedDatabaseSensitivityLabels = new operations.ManagedDatabaseSensitivityLabels(this); + this.managedDatabaseRecommendedSensitivityLabels = new operations.ManagedDatabaseRecommendedSensitivityLabels(this); + this.managedDatabaseTables = new operations.ManagedDatabaseTables(this); + this.managedDatabaseTransparentDataEncryption = new operations.ManagedDatabaseTransparentDataEncryption(this); this.managedDatabaseVulnerabilityAssessmentRuleBaselines = new operations.ManagedDatabaseVulnerabilityAssessmentRuleBaselines(this); this.managedDatabaseVulnerabilityAssessmentScans = new operations.ManagedDatabaseVulnerabilityAssessmentScans(this); this.managedDatabaseVulnerabilityAssessments = new operations.ManagedDatabaseVulnerabilityAssessments(this); - this.instanceFailoverGroups = new operations.InstanceFailoverGroups(this); - this.backupShortTermRetentionPolicies = new operations.BackupShortTermRetentionPolicies(this); - this.tdeCertificates = new operations.TdeCertificates(this); - this.managedInstanceTdeCertificates = new operations.ManagedInstanceTdeCertificates(this); - this.managedInstanceKeys = new operations.ManagedInstanceKeys(this); + this.managedDatabases = new operations.ManagedDatabases(this); + this.managedInstanceAdministrators = new operations.ManagedInstanceAdministrators(this); + this.managedInstanceAzureADOnlyAuthentications = new operations.ManagedInstanceAzureADOnlyAuthentications(this); this.managedInstanceEncryptionProtectors = new operations.ManagedInstanceEncryptionProtectors(this); - this.recoverableManagedDatabases = new operations.RecoverableManagedDatabases(this); + this.managedInstanceKeys = new operations.ManagedInstanceKeys(this); + this.managedInstanceLongTermRetentionPolicies = new operations.ManagedInstanceLongTermRetentionPolicies(this); + this.managedInstanceOperations = new operations.ManagedInstanceOperations(this); + this.managedInstancePrivateEndpointConnections = new operations.ManagedInstancePrivateEndpointConnections(this); + this.managedInstancePrivateLinkResources = new operations.ManagedInstancePrivateLinkResources(this); + this.managedInstanceTdeCertificates = new operations.ManagedInstanceTdeCertificates(this); this.managedInstanceVulnerabilityAssessments = new operations.ManagedInstanceVulnerabilityAssessments(this); - this.serverVulnerabilityAssessments = new operations.ServerVulnerabilityAssessments(this); - this.managedDatabaseSensitivityLabels = new operations.ManagedDatabaseSensitivityLabels(this); - this.instancePools = new operations.InstancePools(this); - this.usages = new operations.Usages(this); this.managedInstances = new operations.ManagedInstances(this); - this.managedDatabaseRestoreDetails = new operations.ManagedDatabaseRestoreDetails(this); - this.managedDatabases = new operations.ManagedDatabases(this); + this.managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new operations.ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies(this); + this.managedServerSecurityAlertPolicies = new operations.ManagedServerSecurityAlertPolicies(this); + this.operations = new operations.Operations(this); + this.operationsHealth = new operations.OperationsHealthOperations(this); + this.outboundFirewallRules = new operations.OutboundFirewallRules(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); this.privateLinkResources = new operations.PrivateLinkResources(this); + this.recoverableManagedDatabases = new operations.RecoverableManagedDatabases(this); + this.replicationLinks = new operations.ReplicationLinks(this); + this.restorableDroppedDatabases = new operations.RestorableDroppedDatabases(this); + this.restorableDroppedManagedDatabases = new operations.RestorableDroppedManagedDatabases(this); + this.restorePoints = new operations.RestorePoints(this); + this.sensitivityLabels = new operations.SensitivityLabels(this); + this.recommendedSensitivityLabels = new operations.RecommendedSensitivityLabels(this); + this.serverAdvisors = new operations.ServerAdvisors(this); + this.serverAutomaticTuning = new operations.ServerAutomaticTuningOperations(this); + this.serverAzureADAdministrators = new operations.ServerAzureADAdministrators(this); + this.serverAzureADOnlyAuthentications = new operations.ServerAzureADOnlyAuthentications(this); + this.serverDevOpsAuditSettings = new operations.ServerDevOpsAuditSettings(this); + this.serverDnsAliases = new operations.ServerDnsAliases(this); + this.serverKeys = new operations.ServerKeys(this); + this.serverOperations = new operations.ServerOperations(this); + this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); + this.serverTrustGroups = new operations.ServerTrustGroups(this); + this.serverVulnerabilityAssessments = new operations.ServerVulnerabilityAssessments(this); + this.servers = new operations.Servers(this); + this.sqlAgent = new operations.SqlAgent(this); + this.subscriptionUsages = new operations.SubscriptionUsages(this); + this.syncAgents = new operations.SyncAgents(this); + this.syncGroups = new operations.SyncGroups(this); + this.syncMembers = new operations.SyncMembers(this); + this.tdeCertificates = new operations.TdeCertificates(this); + this.timeZones = new operations.TimeZones(this); + this.transparentDataEncryptions = new operations.TransparentDataEncryptions(this); + this.virtualClusters = new operations.VirtualClusters(this); + this.virtualNetworkRules = new operations.VirtualNetworkRules(this); + this.workloadClassifiers = new operations.WorkloadClassifiers(this); + this.workloadGroups = new operations.WorkloadGroups(this); } } diff --git a/sdk/sql/arm-sql/src/sqlManagementClientContext.ts b/sdk/sql/arm-sql/src/sqlManagementClientContext.ts index f189156ca9d6..8f9953a699f6 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClientContext.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,6 +16,7 @@ const packageVersion = "7.0.2"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; + apiVersion?: string; subscriptionId: string; /** @@ -43,6 +43,7 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); + this.apiVersion = '2021-02-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -57,23 +58,4 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } - - /** - * NOTE: This is an override added manually to workaround bug Azure/ms-rest-js/issues/395 - * When this library is regenerated, this override needs to be brought back - * This override adds the header "Accept: application/json" to every request - */ - sendRequest(options: msRest.RequestPrepareOptions | msRest.WebResourceLike) { - if(!options.headers) { - options.headers = {accept: "application/json"}; - } else { - if (options.headers.set) { - options.headers.set("accept", "application/json"); - } else { - (options.headers as {[key: string]: any})["accept"] = "application/json" - } - } - - return super.sendRequest(options); - } -} \ No newline at end of file +}