diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt
index 56cbcbfb698f..7db8cbbd1128 100644
--- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt
@@ -4,11 +4,11 @@ Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=.
-2020-11-03 03:12:13 UTC
+2021-01-26 04:14:56 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: f89a6707f26d612eceb8402f073932e6c72eff85
+Commit: 4d91da06bf655dc1d61a420e7510778eab1609d8
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/sdk/eng/mgmt/mgmtmetadata/sql_resource-manager.txt
deleted file mode 100644
index ec140dc8494f..000000000000
--- a/sdk/eng/mgmt/mgmtmetadata/sql_resource-manager.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-Installing AutoRest version: v2
-AutoRest installed successfully.
-Commencing code generation
-Generating CSharp code
-Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=.
-2020-10-14 19:31:04 UTC
-Azure-rest-api-specs repository information
-GitHub fork: Azure
-Branch: master
-Commit: 15684354c018757e8f0fa12afc7a3864a3671145
-AutoRest information
-Requested version: v2
-Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/AzSdk.RP.props b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/AzSdk.RP.props
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/AzSdk.RP.props
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/AzSdk.RP.props
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/Microsoft.Azure.Management.Sql.sln b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/Microsoft.Azure.Management.Sql.sln
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/Microsoft.Azure.Management.Sql.sln
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/Microsoft.Azure.Management.Sql.sln
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/Sql-ReRecordAfterCRUpdate.playlist b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/Sql-ReRecordAfterCRUpdate.playlist
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/Sql-ReRecordAfterCRUpdate.playlist
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/Sql-ReRecordAfterCRUpdate.playlist
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/newtonsoftFailingTests.playlist b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/newtonsoftFailingTests.playlist
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/newtonsoftFailingTests.playlist
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/newtonsoftFailingTests.playlist
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/DatabasesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/DatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/DatabasesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/DatabasesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/DatabasesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/DatabasesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/IDatabasesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/IDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/IDatabasesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/Database.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/Database.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/Database.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/DatabaseUpdate.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/DatabaseUpdate.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/DatabaseUpdate.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/ElasticPool.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/ElasticPool.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/ElasticPool.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/ElasticPoolUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/ElasticPoolUpdate.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/Models/ElasticPoolUpdate.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/Models/ElasticPoolUpdate.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/ResourceIdHelpers.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/ResourceIdHelpers.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/ResourceIdHelpers.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/ResourceIdHelpers.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/ServiceObjectiveId.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/ServiceObjectiveId.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Customizations/ServiceObjectiveId.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Customizations/ServiceObjectiveId.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupLongTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupLongTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupLongTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupLongTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupLongTermRetentionPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/BackupShortTermRetentionPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs
similarity index 99%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs
index 7482a90147f3..72cf135164d9 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs
@@ -93,7 +93,7 @@ internal CapabilitiesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-08-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/CapabilitiesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingRulesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingRulesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingRulesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingRulesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingRulesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingRulesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DataMaskingRulesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DataMaskingRulesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseAutomaticTuningOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseAutomaticTuningOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseAutomaticTuningOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseAutomaticTuningOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseThreatDetectionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseThreatDetectionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseThreatDetectionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseThreatDetectionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseUsagesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseUsagesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseUsagesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseUsagesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseUsagesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseUsagesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseUsagesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseUsagesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs
similarity index 90%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs
index ff04bf2cb1aa..4c10ea314e72 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperations.cs
@@ -1187,7 +1187,7 @@ internal DatabasesOperations(SqlManagementClient client)
}
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -1197,11 +1197,7 @@ internal DatabasesOperations(SqlManagementClient client)
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ /// The name of the database to be paused.
///
///
/// The headers that will be added to request.
@@ -1209,15 +1205,15 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// The cancellation token.
///
- public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginPauseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -1227,7 +1223,7 @@ internal DatabasesOperations(SqlManagementClient client)
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
///
/// The headers that will be added to request.
@@ -1235,15 +1231,15 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// The cancellation token.
///
- public async Task> PauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginPauseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginResumeWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -1253,7 +1249,11 @@ internal DatabasesOperations(SqlManagementClient client)
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
///
///
/// The headers that will be added to request.
@@ -1261,13 +1261,208 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// The cancellation token.
///
- public async Task> ResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send request
- AzureOperationResponse _response = await BeginResumeWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (serverName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2020-08-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("serverName", serverName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServer", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Upgrades a data warehouse.
///
@@ -2359,7 +2554,7 @@ internal DatabasesOperations(SqlManagementClient client)
}
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -2369,11 +2564,7 @@ internal DatabasesOperations(SqlManagementClient client)
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ /// The name of the database to be paused.
///
///
/// Headers that will be added to request.
@@ -2384,6 +2575,9 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -2393,7 +2587,7 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2422,23 +2616,18 @@ internal DatabasesOperations(SqlManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
tracingParameters.Add("databaseName", databaseName);
- tracingParameters.Add("replicaType", replicaType);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
_url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
- if (replicaType != null)
- {
- _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType)));
- }
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
@@ -2536,13 +2725,31 @@ internal DatabasesOperations(SqlManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -2551,7 +2758,7 @@ internal DatabasesOperations(SqlManagementClient client)
}
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -2561,7 +2768,7 @@ internal DatabasesOperations(SqlManagementClient client)
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
///
/// Headers that will be added to request.
@@ -2584,7 +2791,7 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2615,11 +2822,11 @@ internal DatabasesOperations(SqlManagementClient client)
tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginPause", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
_url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
@@ -2755,7 +2962,7 @@ internal DatabasesOperations(SqlManagementClient client)
}
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -2765,7 +2972,11 @@ internal DatabasesOperations(SqlManagementClient client)
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
///
///
/// Headers that will be added to request.
@@ -2776,9 +2987,6 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -2788,7 +2996,7 @@ internal DatabasesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2817,18 +3025,23 @@ internal DatabasesOperations(SqlManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
tracingParameters.Add("databaseName", databaseName);
+ tracingParameters.Add("replicaType", replicaType);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginResume", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
_url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (replicaType != null)
+ {
+ _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType)));
+ }
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
@@ -2926,31 +3139,13 @@ internal DatabasesOperations(SqlManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -3487,5 +3682,178 @@ internal DatabasesOperations(SqlManagementClient client)
return _result;
}
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListInaccessibleByServerNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs
similarity index 93%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs
index 997e944ce6e0..4593e4f9f678 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/DatabasesOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabasesOperationsExtensions.cs
@@ -471,7 +471,7 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat
}
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The operations group for this extension method.
@@ -484,19 +484,15 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ /// The name of the database to be paused.
///
- public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string))
+ public static Database Pause(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult();
+ return operations.PauseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The operations group for this extension method.
@@ -509,22 +505,21 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ /// The name of the database to be paused.
///
///
/// The cancellation token.
///
- public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PauseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.PauseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The operations group for this extension method.
@@ -537,15 +532,15 @@ public static IPage ListByElasticPool(this IDatabasesOperations operat
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
- public static Database Pause(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
+ public static Database Resume(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- return operations.PauseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ return operations.ResumeAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The operations group for this extension method.
@@ -558,21 +553,21 @@ public static Database Pause(this IDatabasesOperations operations, string resour
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
///
/// The cancellation token.
///
- public static async Task PauseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task ResumeAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PauseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ResumeWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The operations group for this extension method.
@@ -585,15 +580,19 @@ public static Database Pause(this IDatabasesOperations operations, string resour
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
///
- public static Database Resume(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
+ ///
+ public static void Failover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string))
{
- return operations.ResumeAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ operations.FailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult();
}
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The operations group for this extension method.
@@ -606,14 +605,57 @@ public static Database Resume(this IDatabasesOperations operations, string resou
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
///
///
/// The cancellation token.
///
- public static async Task ResumeAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task FailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ResumeWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
+ (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ public static IPage ListInaccessibleByServer(this IDatabasesOperations operations, string resourceGroupName, string serverName)
+ {
+ return operations.ListInaccessibleByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the server.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListInaccessibleByServerAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListInaccessibleByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -923,7 +965,7 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string
}
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The operations group for this extension method.
@@ -936,19 +978,15 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ /// The name of the database to be paused.
///
- public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string))
+ public static Database BeginPause(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult();
+ return operations.BeginPauseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The operations group for this extension method.
@@ -961,22 +999,21 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ /// The name of the database to be paused.
///
///
/// The cancellation token.
///
- public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginPauseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.BeginPauseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The operations group for this extension method.
@@ -989,15 +1026,15 @@ public static Database BeginUpdate(this IDatabasesOperations operations, string
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
- public static Database BeginPause(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
+ public static Database BeginResume(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- return operations.BeginPauseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ return operations.BeginResumeAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The operations group for this extension method.
@@ -1010,21 +1047,21 @@ public static Database BeginPause(this IDatabasesOperations operations, string r
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
///
/// The cancellation token.
///
- public static async Task BeginPauseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginResumeAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginPauseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BeginResumeWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The operations group for this extension method.
@@ -1037,15 +1074,19 @@ public static Database BeginPause(this IDatabasesOperations operations, string r
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
///
- public static Database BeginResume(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName)
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
+ ///
+ public static void BeginFailover(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string))
{
- return operations.BeginResumeAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ operations.BeginFailoverAsync(resourceGroupName, serverName, databaseName, replicaType).GetAwaiter().GetResult();
}
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The operations group for this extension method.
@@ -1058,17 +1099,18 @@ public static Database BeginResume(this IDatabasesOperations operations, string
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
///
///
/// The cancellation token.
///
- public static async Task BeginResumeAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task BeginFailoverAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BeginResumeWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -1184,5 +1226,39 @@ public static IPage ListByElasticPoolNext(this IDatabasesOperations op
}
}
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListInaccessibleByServerNext(this IDatabasesOperations operations, string nextPageLink)
+ {
+ return operations.ListInaccessibleByServerNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListInaccessibleByServerNextAsync(this IDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListInaccessibleByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolActivitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolActivitiesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolActivitiesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolActivitiesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolActivitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolActivitiesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolActivitiesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolActivitiesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolDatabaseActivitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolDatabaseActivitiesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolDatabaseActivitiesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolDatabaseActivitiesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolDatabaseActivitiesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ElasticPoolsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/EncryptionProtectorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/EncryptionProtectorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/EncryptionProtectorsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/EncryptionProtectorsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FailoverGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FailoverGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FailoverGroupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FailoverGroupsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FirewallRulesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FirewallRulesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FirewallRulesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FirewallRulesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FirewallRulesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FirewallRulesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/FirewallRulesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FirewallRulesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/GeoBackupPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/GeoBackupPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/GeoBackupPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/GeoBackupPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/GeoBackupPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/GeoBackupPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/GeoBackupPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/GeoBackupPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IBackupLongTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IBackupLongTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IBackupLongTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IBackupLongTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IBackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IBackupShortTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IBackupShortTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IBackupShortTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ICapabilitiesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ICapabilitiesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDataMaskingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDataMaskingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDataMaskingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDataMaskingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDataMaskingRulesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDataMaskingRulesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDataMaskingRulesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDataMaskingRulesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseAutomaticTuningOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseAutomaticTuningOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseAutomaticTuningOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseAutomaticTuningOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseBlobAuditingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseBlobAuditingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseBlobAuditingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseThreatDetectionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseThreatDetectionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseThreatDetectionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseThreatDetectionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseUsagesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseUsagesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseUsagesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseUsagesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabaseVulnerabilityAssessmentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs
similarity index 93%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs
index a2f1f53bb08b..99538f63d604 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IDatabasesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IDatabasesOperations.cs
@@ -301,7 +301,7 @@ public partial interface IDatabasesOperations
///
Task>> ListByElasticPoolWithHttpMessagesAsync(string resourceGroupName, string serverName, string elasticPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -312,11 +312,7 @@ public partial interface IDatabasesOperations
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include:
- /// 'Primary', 'ReadableSecondary'
+ /// The name of the database to be paused.
///
///
/// The headers that will be added to request.
@@ -327,12 +323,15 @@ public partial interface IDatabasesOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> PauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -343,7 +342,7 @@ public partial interface IDatabasesOperations
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
///
/// The headers that will be added to request.
@@ -360,9 +359,9 @@ public partial interface IDatabasesOperations
///
/// Thrown when a required parameter is null
///
- Task> PauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -373,7 +372,35 @@ public partial interface IDatabasesOperations
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include:
+ /// 'Primary', 'ReadableSecondary'
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the server.
///
///
/// The headers that will be added to request.
@@ -390,7 +417,7 @@ public partial interface IDatabasesOperations
///
/// Thrown when a required parameter is null
///
- Task> ResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListInaccessibleByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Upgrades a data warehouse.
///
@@ -575,7 +602,7 @@ public partial interface IDatabasesOperations
///
Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Failovers a database.
+ /// Pauses a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -586,11 +613,7 @@ public partial interface IDatabasesOperations
/// The name of the server.
///
///
- /// The name of the database to failover.
- ///
- ///
- /// The type of replica to be failed over. Possible values include:
- /// 'Primary', 'ReadableSecondary'
+ /// The name of the database to be paused.
///
///
/// The headers that will be added to request.
@@ -601,12 +624,15 @@ public partial interface IDatabasesOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Pauses a database.
+ /// Resumes a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -617,7 +643,7 @@ public partial interface IDatabasesOperations
/// The name of the server.
///
///
- /// The name of the database to be paused.
+ /// The name of the database to be resumed.
///
///
/// The headers that will be added to request.
@@ -634,9 +660,9 @@ public partial interface IDatabasesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginPauseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Resumes a database.
+ /// Failovers a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -647,7 +673,11 @@ public partial interface IDatabasesOperations
/// The name of the server.
///
///
- /// The name of the database to be resumed.
+ /// The name of the database to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include:
+ /// 'Primary', 'ReadableSecondary'
///
///
/// The headers that will be added to request.
@@ -658,13 +688,10 @@ public partial interface IDatabasesOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> BeginResumeWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Upgrades a data warehouse.
///
@@ -736,5 +763,27 @@ public partial interface IDatabasesOperations
/// Thrown when a required parameter is null
///
Task>> ListByElasticPoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets a list of inaccessible databases in a logical server
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListInaccessibleByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolActivitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolActivitiesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolActivitiesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolActivitiesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolDatabaseActivitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolDatabaseActivitiesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolDatabaseActivitiesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolDatabaseActivitiesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IElasticPoolsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IElasticPoolsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IEncryptionProtectorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IEncryptionProtectorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IEncryptionProtectorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IEncryptionProtectorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IExtendedDatabaseBlobAuditingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IExtendedServerBlobAuditingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IFailoverGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IFailoverGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IFailoverGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IFailoverGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IFirewallRulesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IFirewallRulesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IFirewallRulesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IFirewallRulesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IGeoBackupPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IGeoBackupPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IGeoBackupPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IGeoBackupPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IImportExportOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IImportExportOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IImportExportOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IInstanceFailoverGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IInstanceFailoverGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IInstanceFailoverGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IInstanceFailoverGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IInstancePoolsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IInstancePoolsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IInstancePoolsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IInstancePoolsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobAgentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobAgentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobAgentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobAgentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobCredentialsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobCredentialsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobCredentialsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobCredentialsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobExecutionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobExecutionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobExecutionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobStepExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobStepExecutionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobStepExecutionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobStepExecutionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobStepsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobStepsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobStepsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobStepsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobTargetExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobTargetExecutionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobTargetExecutionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobTargetExecutionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobTargetGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobTargetGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobTargetGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobTargetGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobVersionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobVersionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobVersionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobVersionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IJobsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IJobsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionBackupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionBackupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ILongTermRetentionManagedInstanceBackupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedBackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedBackupShortTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedBackupShortTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedBackupShortTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs
similarity index 92%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs
index ae49842a72f4..3c30a767bee9 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseRestoreDetailsOperations.cs
@@ -27,7 +27,9 @@ public partial interface IManagedDatabaseRestoreDetailsOperations
/// Gets managed database restore details.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseSecurityAlertPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseSecurityAlertPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseSecurityAlertPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseSensitivityLabelsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseSensitivityLabelsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseSensitivityLabelsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseSensitivityLabelsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseVulnerabilityAssessmentScansOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseVulnerabilityAssessmentScansOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseVulnerabilityAssessmentScansOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseVulnerabilityAssessmentScansOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseVulnerabilityAssessmentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabaseVulnerabilityAssessmentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabaseVulnerabilityAssessmentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabasesOperations.cs
similarity index 90%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabasesOperations.cs
index 29537446582d..9cd775790857 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedDatabasesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedDatabasesOperations.cs
@@ -27,7 +27,9 @@ public partial interface IManagedDatabasesOperations
/// Gets a list of managed databases.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -52,7 +54,9 @@ public partial interface IManagedDatabasesOperations
/// Gets a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -80,7 +84,9 @@ public partial interface IManagedDatabasesOperations
/// Creates a new database or updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -111,7 +117,9 @@ public partial interface IManagedDatabasesOperations
/// Deletes a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -136,7 +144,9 @@ public partial interface IManagedDatabasesOperations
/// Updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -164,14 +174,22 @@ public partial interface IManagedDatabasesOperations
///
Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, ManagedDatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of inaccessible managed databases in a managed instance
+ /// Completes the restore operation on a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
///
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The definition for completing the restore of this managed database.
+ ///
///
/// The headers that will be added to request.
///
@@ -181,28 +199,21 @@ public partial interface IManagedDatabasesOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task CompleteRestoreWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Completes the restore operation on a managed database.
+ /// Gets a list of inaccessible managed databases in a managed instance
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
///
- ///
- /// The name of the database.
- ///
- ///
- /// The definition for completing the restore of this managed database.
- ///
///
/// The headers that will be added to request.
///
@@ -212,15 +223,20 @@ public partial interface IManagedDatabasesOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task CompleteRestoreWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListInaccessibleByInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates a new database or updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -251,7 +267,9 @@ public partial interface IManagedDatabasesOperations
/// Deletes a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -276,7 +294,9 @@ public partial interface IManagedDatabasesOperations
/// Updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
@@ -307,7 +327,9 @@ public partial interface IManagedDatabasesOperations
/// Completes the restore operation on a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
///
/// The name of the managed instance.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceAdministratorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceAdministratorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceAdministratorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceAdministratorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceAzureADOnlyAuthenticationsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceAzureADOnlyAuthenticationsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceAzureADOnlyAuthenticationsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceAzureADOnlyAuthenticationsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceEncryptionProtectorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceEncryptionProtectorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceEncryptionProtectorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceEncryptionProtectorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceKeysOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceKeysOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceKeysOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceKeysOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceLongTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceLongTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceLongTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceLongTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceTdeCertificatesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceTdeCertificatesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceTdeCertificatesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceTdeCertificatesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceVulnerabilityAssessmentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstanceVulnerabilityAssessmentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceVulnerabilityAssessmentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs
similarity index 82%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs
index c650c97d0dd5..22d58340a52f 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedInstancesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs
@@ -24,17 +24,15 @@ namespace Microsoft.Azure.Management.Sql
public partial interface IManagedInstancesOperations
{
///
- /// Failovers a managed instance.
+ /// Gets a list of all managed instances in an instance pool.
///
///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// The name of the managed instance.
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
///
- ///
- /// The type of replica to be failed over. Possible values include:
- /// 'Primary', 'ReadableSecondary'
+ ///
+ /// The instance pool name.
///
///
/// The headers that will be added to request.
@@ -45,10 +43,13 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets a list of managed instances in a resource group.
///
@@ -185,15 +186,40 @@ public partial interface IManagedInstancesOperations
///
Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
- ///
- /// The instance pool name.
+ ///
+ /// The name of the managed instance.
+ ///
+ ///
+ /// How many 'top queries' to return. Default is 5.
+ ///
+ ///
+ /// Comma separated list of databases to be included into search. All
+ /// DB's are included if this parameter is not specified.
+ ///
+ ///
+ /// Start time for observed period.
+ ///
+ ///
+ /// End time for observed period.
+ ///
+ ///
+ /// The time step to be used to summarize the metric values. Default
+ /// value is PT1H. Possible values include: 'PT1H', 'P1D'
+ ///
+ ///
+ /// Aggregation function to be used, default value is 'sum'. Possible
+ /// values include: 'avg', 'min', 'max', 'stdev', 'sum'
+ ///
+ ///
+ /// Metric to be used for ranking top queries. Default is 'cpu'.
+ /// Possible values include: 'cpu', 'io', 'logIo', 'duration', 'dtu'
///
///
/// The headers that will be added to request.
@@ -210,10 +236,22 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of all managed instances in the subscription.
+ /// Failovers a managed instance.
///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the managed instance to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include:
+ /// 'Primary', 'ReadableSecondary'
+ ///
///
/// The headers that will be added to request.
///
@@ -223,26 +261,13 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Failovers a managed instance.
+ /// Gets a list of all managed instances in the subscription.
///
- ///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// The name of the managed instance.
- ///
- ///
- /// The type of replica to be failed over. Possible values include:
- /// 'Primary', 'ReadableSecondary'
- ///
///
/// The headers that will be added to request.
///
@@ -252,10 +277,13 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates or updates a managed instance.
///
@@ -341,6 +369,56 @@ public partial interface IManagedInstancesOperations
///
Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Failovers a managed instance.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can
+ /// obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the managed instance to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include:
+ /// 'Primary', 'ReadableSecondary'
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets a list of all managed instances in an instance pool.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets a list of managed instances in a resource group.
///
///
@@ -363,7 +441,7 @@ public partial interface IManagedInstancesOperations
///
Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -383,7 +461,7 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByManagedInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets a list of all managed instances in the subscription.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedServerSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedServerSecurityAlertPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IManagedServerSecurityAlertPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedServerSecurityAlertPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IPrivateEndpointConnectionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IPrivateEndpointConnectionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IPrivateEndpointConnectionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IPrivateEndpointConnectionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IPrivateLinkResourcesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IPrivateLinkResourcesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IPrivateLinkResourcesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IPrivateLinkResourcesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRecommendedElasticPoolsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRecommendedElasticPoolsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRecommendedElasticPoolsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRecommendedElasticPoolsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRecoverableDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRecoverableDatabasesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRecoverableDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRecoverableDatabasesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRecoverableManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRecoverableManagedDatabasesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRecoverableManagedDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRecoverableManagedDatabasesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IReplicationLinksOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRestorableDroppedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRestorableDroppedDatabasesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRestorableDroppedDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRestorableDroppedDatabasesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRestorableDroppedManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRestorableDroppedManagedDatabasesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRestorableDroppedManagedDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRestorableDroppedManagedDatabasesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRestorePointsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRestorePointsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IRestorePointsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IRestorePointsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISensitivityLabelsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISensitivityLabelsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISensitivityLabelsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISensitivityLabelsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerAutomaticTuningOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerAutomaticTuningOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerAutomaticTuningOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerAutomaticTuningOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerAzureADAdministratorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerAzureADAdministratorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerAzureADAdministratorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerAzureADAdministratorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerAzureADOnlyAuthenticationsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerAzureADOnlyAuthenticationsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerAzureADOnlyAuthenticationsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerAzureADOnlyAuthenticationsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerBlobAuditingPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerBlobAuditingPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerBlobAuditingPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerCommunicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerCommunicationLinksOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerCommunicationLinksOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerCommunicationLinksOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerConnectionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerConnectionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerConnectionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerConnectionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerDevOpsAuditSettingsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerDevOpsAuditSettingsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerDevOpsAuditSettingsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerDevOpsAuditSettingsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerDnsAliasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerDnsAliasesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerDnsAliasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerDnsAliasesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerKeysOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerKeysOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerKeysOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerKeysOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerSecurityAlertPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerSecurityAlertPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerSecurityAlertPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerTrustGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerTrustGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerTrustGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerTrustGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerUsagesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerUsagesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerUsagesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerUsagesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerVulnerabilityAssessmentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServerVulnerabilityAssessmentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerVulnerabilityAssessmentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServersOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServersOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServersOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServiceObjectivesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServiceObjectivesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServiceObjectivesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServiceObjectivesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServiceTierAdvisorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServiceTierAdvisorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IServiceTierAdvisorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServiceTierAdvisorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs
index 4a8de77206cd..4696e739b40a 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISqlManagementClient.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs
@@ -417,6 +417,11 @@ public partial interface ISqlManagementClient : System.IDisposable
///
IRecoverableManagedDatabasesOperations RecoverableManagedDatabases { get; }
+ ///
+ /// Gets the IBackupShortTermRetentionPoliciesOperations.
+ ///
+ IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; }
+
///
/// Gets the IManagedInstanceVulnerabilityAssessmentsOperations.
///
@@ -503,34 +508,29 @@ public partial interface ISqlManagementClient : System.IDisposable
ISyncMembersOperations SyncMembers { get; }
///
- /// Gets the IManagedInstancesOperations.
+ /// Gets the IImportExportOperations.
///
- IManagedInstancesOperations ManagedInstances { get; }
+ IImportExportOperations ImportExport { get; }
///
- /// Gets the IBackupShortTermRetentionPoliciesOperations.
+ /// Gets the IManagedDatabasesOperations.
///
- IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; }
+ IManagedDatabasesOperations ManagedDatabases { get; }
///
/// Gets the IManagedDatabaseRestoreDetailsOperations.
///
IManagedDatabaseRestoreDetailsOperations ManagedDatabaseRestoreDetails { get; }
- ///
- /// Gets the IManagedDatabasesOperations.
- ///
- IManagedDatabasesOperations ManagedDatabases { get; }
-
///
/// Gets the IServerAzureADOnlyAuthenticationsOperations.
///
IServerAzureADOnlyAuthenticationsOperations ServerAzureADOnlyAuthentications { get; }
///
- /// Gets the IImportExportOperations.
+ /// Gets the IManagedInstancesOperations.
///
- IImportExportOperations ImportExport { get; }
+ IManagedInstancesOperations ManagedInstances { get; }
///
/// Gets the IManagedInstanceAzureADOnlyAuthenticationsOperations.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISubscriptionUsagesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISubscriptionUsagesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISubscriptionUsagesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISubscriptionUsagesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISyncAgentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISyncAgentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISyncAgentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISyncAgentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISyncGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISyncGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISyncGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISyncGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISyncMembersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISyncMembersOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ISyncMembersOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISyncMembersOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ITdeCertificatesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ITdeCertificatesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ITdeCertificatesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ITdeCertificatesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ITransparentDataEncryptionActivitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ITransparentDataEncryptionActivitiesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ITransparentDataEncryptionActivitiesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ITransparentDataEncryptionActivitiesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ITransparentDataEncryptionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ITransparentDataEncryptionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ITransparentDataEncryptionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ITransparentDataEncryptionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IUsagesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IUsagesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IUsagesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IUsagesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IVirtualClustersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IVirtualClustersOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IVirtualClustersOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IVirtualClustersOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IVirtualNetworkRulesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IVirtualNetworkRulesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IVirtualNetworkRulesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IVirtualNetworkRulesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IWorkloadClassifiersOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadClassifiersOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IWorkloadClassifiersOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IWorkloadGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/IWorkloadGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IWorkloadGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ImportExportOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ImportExportOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ImportExportOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ImportExportOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ImportExportOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstanceFailoverGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstanceFailoverGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstanceFailoverGroupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstanceFailoverGroupsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstancePoolsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstancePoolsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstancePoolsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/InstancePoolsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobAgentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobAgentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobAgentsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobAgentsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobCredentialsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobCredentialsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobCredentialsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobCredentialsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobExecutionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobExecutionsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobExecutionsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepExecutionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepExecutionsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepExecutionsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobStepsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetExecutionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetExecutionsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetExecutionsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetGroupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetGroupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobTargetGroupsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobVersionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobVersionsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobVersionsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobVersionsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/JobsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionBackupsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedBackupShortTermRetentionPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedBackupShortTermRetentionPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
similarity index 93%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
index d71aeb23cbce..2cd4ac21902c 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
@@ -54,7 +54,8 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client)
/// Gets managed database restore details.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -89,21 +90,6 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs
similarity index 89%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs
index f2278f12424e..238d1ba21e7a 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperationsExtensions.cs
@@ -28,7 +28,8 @@ public static partial class ManagedDatabaseRestoreDetailsOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -48,7 +49,8 @@ public static ManagedDatabaseRestoreDetailsResult Get(this IManagedDatabaseResto
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSensitivityLabelsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSensitivityLabelsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSensitivityLabelsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSensitivityLabelsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSensitivityLabelsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSensitivityLabelsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseSensitivityLabelsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSensitivityLabelsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs
similarity index 94%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs
index 6497306dd8b8..de5e314814e1 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs
@@ -54,7 +54,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Gets a list of managed databases.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -86,21 +87,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
@@ -263,7 +249,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Gets a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -298,21 +285,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
@@ -481,7 +453,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Creates a new database or updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -509,7 +482,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Deletes a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -534,7 +508,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -558,11 +533,41 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
+ ///
+ /// Completes the restore operation on a managed database.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the managed instance.
+ ///
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The definition for completing the restore of this managed database.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task CompleteRestoreWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginCompleteRestoreWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Gets a list of inaccessible managed databases in a managed instance
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -594,21 +599,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
@@ -767,39 +757,12 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
return _result;
}
- ///
- /// Completes the restore operation on a managed database.
- ///
- ///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// The name of the managed instance.
- ///
- ///
- /// The name of the database.
- ///
- ///
- /// The definition for completing the restore of this managed database.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task CompleteRestoreWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginCompleteRestoreWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
///
/// Creates a new database or updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -837,21 +800,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
@@ -1053,7 +1001,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Deletes a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -1085,21 +1034,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
@@ -1250,7 +1184,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Updates an existing database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -1288,21 +1223,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
@@ -1482,7 +1402,8 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
/// Completes the restore operation on a managed database.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -1517,21 +1438,6 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
- {
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
- }
if (managedInstanceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperationsExtensions.cs
similarity index 88%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperationsExtensions.cs
index 5dbeea1e0f01..a3b96cf093e7 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedDatabasesOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperationsExtensions.cs
@@ -28,7 +28,8 @@ public static partial class ManagedDatabasesOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -45,7 +46,8 @@ public static IPage ListByInstance(this IManagedDatabasesOperat
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -68,7 +70,8 @@ public static IPage ListByInstance(this IManagedDatabasesOperat
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -88,7 +91,8 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -114,7 +118,8 @@ public static ManagedDatabase Get(this IManagedDatabasesOperations operations, s
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -137,7 +142,8 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -166,7 +172,8 @@ public static ManagedDatabase CreateOrUpdate(this IManagedDatabasesOperations op
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -186,7 +193,8 @@ public static void Delete(this IManagedDatabasesOperations operations, string re
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -209,7 +217,8 @@ public static void Delete(this IManagedDatabasesOperations operations, string re
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -232,7 +241,8 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -255,92 +265,96 @@ public static ManagedDatabase Update(this IManagedDatabasesOperations operations
}
///
- /// Gets a list of inaccessible managed databases in a managed instance
+ /// Completes the restore operation on a managed database.
///
///
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
///
- public static IPage ListInaccessibleByInstance(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName)
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The definition for completing the restore of this managed database.
+ ///
+ public static void CompleteRestore(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters)
{
- return operations.ListInaccessibleByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
+ operations.CompleteRestoreAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult();
}
///
- /// Gets a list of inaccessible managed databases in a managed instance
+ /// Completes the restore operation on a managed database.
///
///
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
///
+ ///
+ /// The name of the database.
+ ///
+ ///
+ /// The definition for completing the restore of this managed database.
+ ///
///
/// The cancellation token.
///
- public static async Task> ListInaccessibleByInstanceAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CompleteRestoreAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListInaccessibleByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.CompleteRestoreWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Completes the restore operation on a managed database.
+ /// Gets a list of inaccessible managed databases in a managed instance
///
///
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
///
- ///
- /// The name of the database.
- ///
- ///
- /// The definition for completing the restore of this managed database.
- ///
- public static void CompleteRestore(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters)
+ public static IPage ListInaccessibleByInstance(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName)
{
- operations.CompleteRestoreAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult();
+ return operations.ListInaccessibleByInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
}
///
- /// Completes the restore operation on a managed database.
+ /// Gets a list of inaccessible managed databases in a managed instance
///
///
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
///
- ///
- /// The name of the database.
- ///
- ///
- /// The definition for completing the restore of this managed database.
- ///
///
/// The cancellation token.
///
- public static async Task CompleteRestoreAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CompleteDatabaseRestoreDefinition parameters, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListInaccessibleByInstanceAsync(this IManagedDatabasesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.CompleteRestoreWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.ListInaccessibleByInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
@@ -350,7 +364,8 @@ public static void CompleteRestore(this IManagedDatabasesOperations operations,
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -373,7 +388,8 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -402,7 +418,8 @@ public static ManagedDatabase BeginCreateOrUpdate(this IManagedDatabasesOperatio
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -422,7 +439,8 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -445,7 +463,8 @@ public static void BeginDelete(this IManagedDatabasesOperations operations, stri
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -468,7 +487,8 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -497,7 +517,8 @@ public static ManagedDatabase BeginUpdate(this IManagedDatabasesOperations opera
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
@@ -520,7 +541,8 @@ public static void BeginCompleteRestore(this IManagedDatabasesOperations operati
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAdministratorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAdministratorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAdministratorsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAdministratorsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceEncryptionProtectorsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceEncryptionProtectorsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceKeysOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceKeysOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceKeysOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceKeysOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceTdeCertificatesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceTdeCertificatesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceTdeCertificatesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceTdeCertificatesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs
similarity index 83%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs
index aaa3ffaac776..3bc76e76b740 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs
@@ -51,29 +51,198 @@ internal ManagedInstancesOperations(SqlManagementClient client)
public SqlManagementClient Client { get; private set; }
///
- /// Failovers a managed instance.
+ /// Gets a list of all managed instances in an instance pool.
///
///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// The name of the managed instance.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ ///
+ /// The instance pool name.
///
///
- /// The headers that will be added to request.
+ /// Headers that will be added to request.
///
///
/// The cancellation token.
///
- public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- // Send request
- AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (instancePoolName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2020-02-02-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("instancePoolName", instancePoolName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
}
///
@@ -533,15 +702,290 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
- ///
- /// The instance pool name.
+ ///
+ /// The name of the managed instance.
+ ///
+ ///
+ /// How many 'top queries' to return. Default is 5.
///
+ ///
+ /// Comma separated list of databases to be included into search. All DB's are
+ /// included if this parameter is not specified.
+ ///
+ ///
+ /// Start time for observed period.
+ ///
+ ///
+ /// End time for observed period.
+ ///
+ ///
+ /// The time step to be used to summarize the metric values. Default value is
+ /// PT1H. Possible values include: 'PT1H', 'P1D'
+ ///
+ ///
+ /// Aggregation function to be used, default value is 'sum'. Possible values
+ /// include: 'avg', 'min', 'max', 'stdev', 'sum'
+ ///
+ ///
+ /// Metric to be used for ranking top queries. Default is 'cpu'. Possible
+ /// values include: 'cpu', 'io', 'logIo', 'duration', 'dtu'
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (managedInstanceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2020-02-02-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("managedInstanceName", managedInstanceName);
+ tracingParameters.Add("numberOfQueries", numberOfQueries);
+ tracingParameters.Add("databases", databases);
+ tracingParameters.Add("startTime", startTime);
+ tracingParameters.Add("endTime", endTime);
+ tracingParameters.Add("interval", interval);
+ tracingParameters.Add("aggregationFunction", aggregationFunction);
+ tracingParameters.Add("observationMetric", observationMetric);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByManagedInstance", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/topqueries").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (numberOfQueries != null)
+ {
+ _queryParameters.Add(string.Format("numberOfQueries={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(numberOfQueries, Client.SerializationSettings).Trim('"'))));
+ }
+ if (databases != null)
+ {
+ _queryParameters.Add(string.Format("databases={0}", System.Uri.EscapeDataString(databases)));
+ }
+ if (startTime != null)
+ {
+ _queryParameters.Add(string.Format("startTime={0}", System.Uri.EscapeDataString(startTime)));
+ }
+ if (endTime != null)
+ {
+ _queryParameters.Add(string.Format("endTime={0}", System.Uri.EscapeDataString(endTime)));
+ }
+ if (interval != null)
+ {
+ _queryParameters.Add(string.Format("interval={0}", System.Uri.EscapeDataString(interval)));
+ }
+ if (aggregationFunction != null)
+ {
+ _queryParameters.Add(string.Format("aggregationFunction={0}", System.Uri.EscapeDataString(aggregationFunction)));
+ }
+ if (observationMetric != null)
+ {
+ _queryParameters.Add(string.Format("observationMetric={0}", System.Uri.EscapeDataString(observationMetric)));
+ }
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Failovers a managed instance.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the managed instance to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets a list of all managed instances in the subscription.
+ ///
///
/// Headers that will be added to request.
///
@@ -563,16 +1007,8 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (instancePoolName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "instancePoolName");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -585,17 +1021,13 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("instancePoolName", instancePoolName);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}/managedInstances").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName));
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (apiVersion != null)
@@ -728,8 +1160,18 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Gets a list of all managed instances in the subscription.
+ /// Creates or updates a managed instance.
///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the managed instance.
+ ///
+ ///
+ /// The requested managed instance resource state.
+ ///
///
/// Headers that will be added to request.
///
@@ -751,8 +1193,24 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (managedInstanceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -765,13 +1223,18 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("managedInstanceName", managedInstanceName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (apiVersion != null)
@@ -785,7 +1248,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -816,6 +1279,12 @@ internal ManagedInstancesOperations(SqlManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -836,7 +1305,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -871,7 +1340,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -884,7 +1353,25 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -904,18 +1391,15 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Failovers a managed instance.
+ /// Deletes a managed instance.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
/// The name of the managed instance.
///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
- ///
///
/// Headers that will be added to request.
///
@@ -934,36 +1418,21 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (resourceGroupName != null)
+ if (managedInstanceName == null)
{
- if (resourceGroupName.Length > 90)
- {
- throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
- }
- if (resourceGroupName.Length < 1)
- {
- throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
- }
- if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
- {
- throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
- }
+ throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
}
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (managedInstanceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
- }
- string apiVersion = "2019-06-01-preview";
+ string apiVersion = "2020-02-02-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -972,27 +1441,22 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("managedInstanceName", managedInstanceName);
- tracingParameters.Add("replicaType", replicaType);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
- if (replicaType != null)
- {
- _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType)));
- }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
@@ -1000,7 +1464,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1051,7 +1515,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1101,7 +1565,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Creates or updates a managed instance.
+ /// Updates a managed instance.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -1134,7 +1598,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstance parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1148,10 +1612,6 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
}
- if (parameters != null)
- {
- parameters.Validate();
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -1169,7 +1629,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -1189,7 +1649,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.Method = new HttpMethod("PATCH");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1246,7 +1706,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1306,24 +1766,6 @@ internal ManagedInstancesOperations(SqlManagementClient client)
throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
- // Deserialize Response
- if ((int)_statusCode == 201)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -1332,14 +1774,18 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Deletes a managed instance.
+ /// Failovers a managed instance.
///
///
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the managed instance.
+ /// The name of the managed instance to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
///
///
/// Headers that will be added to request.
@@ -1359,7 +1805,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginFailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1383,17 +1829,22 @@ internal ManagedInstancesOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("managedInstanceName", managedInstanceName);
+ tracingParameters.Add("replicaType", replicaType);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginFailover", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/failover").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (replicaType != null)
+ {
+ _queryParameters.Add(string.Format("replicaType={0}", System.Uri.EscapeDataString(replicaType)));
+ }
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
@@ -1405,7 +1856,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1456,7 +1907,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1506,17 +1957,10 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Updates a managed instance.
+ /// Gets a list of all managed instances in an instance pool.
///
- ///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
- ///
- ///
- /// The name of the managed instance.
- ///
- ///
- /// The requested managed instance resource state.
+ ///
+ /// The NextLink from the previous successful call to List operation.
///
///
/// Headers that will be added to request.
@@ -1539,25 +1983,12 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ManagedInstanceUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (managedInstanceName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "managedInstanceName");
- }
- if (parameters == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
- }
- if (Client.SubscriptionId == null)
+ if (nextPageLink == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
}
- string apiVersion = "2020-02-02-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1565,24 +1996,14 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("managedInstanceName", managedInstanceName);
- tracingParameters.Add("parameters", parameters);
- tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters);
}
// Construct URL
- var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}").ToString();
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
- _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
List _queryParameters = new List();
- if (apiVersion != null)
- {
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
- }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
@@ -1590,7 +2011,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1621,12 +2042,6 @@ internal ManagedInstancesOperations(SqlManagementClient client)
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (Client.Credentials != null)
{
@@ -1647,7 +2062,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ if ((int)_statusCode != 200)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1682,7 +2097,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -1695,7 +2110,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -1888,7 +2303,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -1914,7 +2329,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByManagedInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -1929,7 +2344,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePoolNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByManagedInstanceNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -2028,7 +2443,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -2041,7 +2456,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs
similarity index 79%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs
index 4f774c2c2835..c4370ab74b84 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedInstancesOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs
@@ -22,48 +22,45 @@ namespace Microsoft.Azure.Management.Sql
public static partial class ManagedInstancesOperationsExtensions
{
///
- /// Failovers a managed instance.
+ /// Gets a list of all managed instances in an instance pool.
///
///
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// The name of the managed instance.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ ///
+ /// The instance pool name.
///
- public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
+ public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName)
{
- operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
+ return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult();
}
///
- /// Failovers a managed instance.
+ /// Gets a list of all managed instances in an instance pool.
///
///
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
- ///
- ///
- /// The name of the managed instance.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
- ///
- /// The type of replica to be failed over. Possible values include: 'Primary',
- /// 'ReadableSecondary'
+ ///
+ /// The instance pool name.
///
///
/// The cancellation token.
///
- public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
@@ -280,7 +277,7 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations
}
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The operations group for this extension method.
@@ -289,16 +286,41 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
- ///
- /// The instance pool name.
+ ///
+ /// The name of the managed instance.
///
- public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName)
+ ///
+ /// How many 'top queries' to return. Default is 5.
+ ///
+ ///
+ /// Comma separated list of databases to be included into search. All DB's are
+ /// included if this parameter is not specified.
+ ///
+ ///
+ /// Start time for observed period.
+ ///
+ ///
+ /// End time for observed period.
+ ///
+ ///
+ /// The time step to be used to summarize the metric values. Default value is
+ /// PT1H. Possible values include: 'PT1H', 'P1D'
+ ///
+ ///
+ /// Aggregation function to be used, default value is 'sum'. Possible values
+ /// include: 'avg', 'min', 'max', 'stdev', 'sum'
+ ///
+ ///
+ /// Metric to be used for ranking top queries. Default is 'cpu'. Possible
+ /// values include: 'cpu', 'io', 'logIo', 'duration', 'dtu'
+ ///
+ public static IPage ListByManagedInstance(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string))
{
- return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult();
+ return operations.ListByManagedInstanceAsync(resourceGroupName, managedInstanceName, numberOfQueries, databases, startTime, endTime, interval, aggregationFunction, observationMetric).GetAwaiter().GetResult();
}
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The operations group for this extension method.
@@ -307,43 +329,40 @@ public static IPage ListByInstancePool(this IManagedInstancesOp
/// The name of the resource group that contains the resource. You can obtain
/// this value from the Azure Resource Manager API or the portal.
///
- ///
- /// The instance pool name.
+ ///
+ /// The name of the managed instance.
///
- ///
- /// The cancellation token.
+ ///
+ /// How many 'top queries' to return. Default is 5.
///
- public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Gets a list of all managed instances in the subscription.
- ///
- ///
- /// The operations group for this extension method.
+ ///
+ /// Comma separated list of databases to be included into search. All DB's are
+ /// included if this parameter is not specified.
///
- public static IPage List(this IManagedInstancesOperations operations)
- {
- return operations.ListAsync().GetAwaiter().GetResult();
- }
-
- ///
- /// Gets a list of all managed instances in the subscription.
- ///
- ///
- /// The operations group for this extension method.
+ ///
+ /// Start time for observed period.
+ ///
+ ///
+ /// End time for observed period.
+ ///
+ ///
+ /// The time step to be used to summarize the metric values. Default value is
+ /// PT1H. Possible values include: 'PT1H', 'P1D'
+ ///
+ ///
+ /// Aggregation function to be used, default value is 'sum'. Possible values
+ /// include: 'avg', 'min', 'max', 'stdev', 'sum'
+ ///
+ ///
+ /// Metric to be used for ranking top queries. Default is 'cpu'. Possible
+ /// values include: 'cpu', 'io', 'logIo', 'duration', 'dtu'
///
///
/// The cancellation token.
///
- public static async Task> ListAsync(this IManagedInstancesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByManagedInstanceAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, int? numberOfQueries = default(int?), string databases = default(string), string startTime = default(string), string endTime = default(string), string interval = default(string), string aggregationFunction = default(string), string observationMetric = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByManagedInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, numberOfQueries, databases, startTime, endTime, interval, aggregationFunction, observationMetric, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -356,18 +375,19 @@ public static IPage List(this IManagedInstancesOperations opera
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the managed instance.
+ /// The name of the managed instance to failover.
///
///
/// The type of replica to be failed over. Possible values include: 'Primary',
/// 'ReadableSecondary'
///
- public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
+ public static void Failover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
{
- operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
+ operations.FailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
}
///
@@ -377,10 +397,11 @@ public static IPage List(this IManagedInstancesOperations opera
/// The operations group for this extension method.
///
///
- /// The name of the resource group. The name is case insensitive.
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the managed instance.
+ /// The name of the managed instance to failover.
///
///
/// The type of replica to be failed over. Possible values include: 'Primary',
@@ -389,9 +410,37 @@ public static IPage List(this IManagedInstancesOperations opera
///
/// The cancellation token.
///
- public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task FailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.FailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Gets a list of all managed instances in the subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ public static IPage List(this IManagedInstancesOperations operations)
+ {
+ return operations.ListAsync().GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of all managed instances in the subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAsync(this IManagedInstancesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
@@ -529,6 +578,87 @@ public static ManagedInstance BeginUpdate(this IManagedInstancesOperations opera
}
}
+ ///
+ /// Failovers a managed instance.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the managed instance to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
+ ///
+ public static void BeginFailover(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string))
+ {
+ operations.BeginFailoverAsync(resourceGroupName, managedInstanceName, replicaType).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Failovers a managed instance.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group that contains the resource. You can obtain
+ /// this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the managed instance to failover.
+ ///
+ ///
+ /// The type of replica to be failed over. Possible values include: 'Primary',
+ /// 'ReadableSecondary'
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginFailoverAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string replicaType = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginFailoverWithHttpMessagesAsync(resourceGroupName, managedInstanceName, replicaType, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Gets a list of all managed instances in an instance pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink)
+ {
+ return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of all managed instances in an instance pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Gets a list of managed instances in a resource group.
///
@@ -564,7 +694,7 @@ public static IPage ListByResourceGroupNext(this IManagedInstan
}
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The operations group for this extension method.
@@ -572,13 +702,13 @@ public static IPage ListByResourceGroupNext(this IManagedInstan
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListByInstancePoolNext(this IManagedInstancesOperations operations, string nextPageLink)
+ public static IPage ListByManagedInstanceNext(this IManagedInstancesOperations operations, string nextPageLink)
{
- return operations.ListByInstancePoolNextAsync(nextPageLink).GetAwaiter().GetResult();
+ return operations.ListByManagedInstanceNextAsync(nextPageLink).GetAwaiter().GetResult();
}
///
- /// Gets a list of all managed instances in an instance pool.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The operations group for this extension method.
@@ -589,9 +719,9 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc
///
/// The cancellation token.
///
- public static async Task> ListByInstancePoolNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByManagedInstanceNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByInstancePoolNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByManagedInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedServerSecurityAlertPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperationsExtensions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/ManagedServerSecurityAlertPoliciesOperationsExtensions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperationsExtensions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs
new file mode 100644
index 000000000000..35a7da69340c
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AggregationFunctionType.cs
@@ -0,0 +1,25 @@
+//
+// 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.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+
+ ///
+ /// Defines values for AggregationFunctionType.
+ ///
+ public static class AggregationFunctionType
+ {
+ public const string Avg = "avg";
+ public const string Min = "min";
+ public const string Max = "max";
+ public const string Stdev = "stdev";
+ public const string Sum = "sum";
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutoPauseDelayTimeRange.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutoPauseDelayTimeRange.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningDisabledReason.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningDisabledReason.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningDisabledReason.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningDisabledReason.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningMode.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningMode.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningMode.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningOptionModeActual.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningOptionModeActual.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningOptionModeActual.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningOptionModeActual.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningOptionModeDesired.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningOptionModeDesired.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningOptionModeDesired.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningOptionModeDesired.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningOptions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningOptions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningOptions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningOptions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningServerMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningServerMode.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningServerMode.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningServerMode.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningServerOptions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningServerOptions.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningServerOptions.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningServerOptions.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningServerReason.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningServerReason.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/AutomaticTuningServerReason.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AutomaticTuningServerReason.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupLongTermRetentionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupLongTermRetentionPolicy.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupLongTermRetentionPolicy.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupLongTermRetentionPolicy.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BackupShortTermRetentionPolicy.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BlobAuditingPolicyState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BlobAuditingPolicyState.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/BlobAuditingPolicyState.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BlobAuditingPolicyState.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityGroup.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityGroup.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityStatus.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CapabilityStatus.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CapabilityStatus.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CatalogCollationType.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CatalogCollationType.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityReason.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CheckNameAvailabilityReason.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityReason.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CheckNameAvailabilityReason.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CheckNameAvailabilityRequest.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityRequest.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CheckNameAvailabilityRequest.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CheckNameAvailabilityResponse.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CheckNameAvailabilityResponse.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CheckNameAvailabilityResponse.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CompleteDatabaseRestoreDefinition.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateDatabaseRestorePointDefinition.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/CreateMode.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreateMode.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs
new file mode 100644
index 000000000000..f921107c3754
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/CreatedByType.cs
@@ -0,0 +1,24 @@
+//
+// 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.
+//
+
+namespace Microsoft.Azure.Management.Sql.Models
+{
+
+ ///
+ /// Defines values for CreatedByType.
+ ///
+ public static class CreatedByType
+ {
+ public const string User = "User";
+ public const string Application = "Application";
+ public const string ManagedIdentity = "ManagedIdentity";
+ public const string Key = "Key";
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingFunction.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingFunction.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingFunction.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingFunction.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingPolicy.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingPolicy.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingPolicy.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingRule.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingRule.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingRule.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingRule.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingRuleState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingRuleState.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingRuleState.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingRuleState.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingState.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DataMaskingState.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DataMaskingState.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs
similarity index 98%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs
index b71dbb2d62eb..b5e211bd6c3b 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/Database.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Database.cs
@@ -177,9 +177,8 @@ public Database()
/// is automatically paused. A value of -1 means that automatic pause
/// is disabled
/// The storage account type used to
- /// store backups for this database. Currently the only supported
- /// option is GRS (GeoRedundantStorage). Possible values include:
- /// 'GRS', 'LRS', 'ZRS'
+ /// store backups for this database. Possible values include: 'GRS',
+ /// 'LRS', 'ZRS'
/// Minimal capacity that database will
/// always have allocated, if not paused
/// The date when database was paused by user
@@ -190,7 +189,7 @@ public Database()
/// database is paused.
/// Maintenance configuration
/// id assigned to the database. This configuration defines the period
- /// when the maintenance updates will be rolled out.
+ /// when the maintenance updates will occur.
public Database(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string managedBy = default(string), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? highAvailabilityReplicaCount = default(int?), string secondaryType = default(string), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string))
: base(location, id, name, type, tags)
{
@@ -518,8 +517,7 @@ public Database()
///
/// Gets or sets the storage account type used to store backups for
- /// this database. Currently the only supported option is GRS
- /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
+ /// this database. Possible values include: 'GRS', 'LRS', 'ZRS'
///
[JsonProperty(PropertyName = "properties.storageAccountType")]
public string StorageAccountType { get; set; }
@@ -548,7 +546,7 @@ public Database()
///
/// Gets or sets maintenance configuration id assigned to the database.
/// This configuration defines the period when the maintenance updates
- /// will be rolled out.
+ /// will occur.
///
[JsonProperty(PropertyName = "properties.maintenanceConfigurationId")]
public string MaintenanceConfigurationId { get; set; }
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseAutomaticTuning.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseAutomaticTuning.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseAutomaticTuning.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseAutomaticTuning.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseBlobAuditingPolicy.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseBlobAuditingPolicy.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseBlobAuditingPolicy.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseLicenseType.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseLicenseType.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseOperation.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseOperation.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseReadScale.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseReadScale.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseSecurityAlertPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseSecurityAlertPolicy.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseSecurityAlertPolicy.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseSecurityAlertPolicy.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState1.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState1.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState1.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState2.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState2.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState2.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState3.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState3.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState3.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState4.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState4.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState4.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState5.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState5.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState5.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState6.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseState6.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseState6.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseStatus.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseStatus.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs
similarity index 98%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs
index 529241fc455e..2b47cee16a80 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUpdate.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUpdate.cs
@@ -154,9 +154,8 @@ public DatabaseUpdate()
/// is automatically paused. A value of -1 means that automatic pause
/// is disabled
/// The storage account type used to
- /// store backups for this database. Currently the only supported
- /// option is GRS (GeoRedundantStorage). Possible values include:
- /// 'GRS', 'LRS', 'ZRS'
+ /// store backups for this database. Possible values include: 'GRS',
+ /// 'LRS', 'ZRS'
/// Minimal capacity that database will
/// always have allocated, if not paused
/// The date when database was paused by user
@@ -167,7 +166,7 @@ public DatabaseUpdate()
/// database is paused.
/// Maintenance configuration
/// id assigned to the database. This configuration defines the period
- /// when the maintenance updates will be rolled out.
+ /// when the maintenance updates will occur.
/// Resource tags.
public DatabaseUpdate(Sku sku = default(Sku), string createMode = default(string), string collation = default(string), long? maxSizeBytes = default(long?), string sampleName = default(string), string elasticPoolId = default(string), string sourceDatabaseId = default(string), string status = default(string), System.Guid? databaseId = default(System.Guid?), System.DateTime? creationDate = default(System.DateTime?), string currentServiceObjectiveName = default(string), string requestedServiceObjectiveName = default(string), string defaultSecondaryLocation = default(string), string failoverGroupId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), string recoveryServicesRecoveryPointId = default(string), string longTermRetentionBackupResourceId = default(string), string recoverableDatabaseId = default(string), string restorableDroppedDatabaseId = default(string), string catalogCollation = default(string), bool? zoneRedundant = default(bool?), string licenseType = default(string), long? maxLogSizeBytes = default(long?), System.DateTime? earliestRestoreDate = default(System.DateTime?), string readScale = default(string), int? highAvailabilityReplicaCount = default(int?), string secondaryType = default(string), Sku currentSku = default(Sku), int? autoPauseDelay = default(int?), string storageAccountType = default(string), double? minCapacity = default(double?), System.DateTime? pausedDate = default(System.DateTime?), System.DateTime? resumedDate = default(System.DateTime?), string maintenanceConfigurationId = default(string), IDictionary tags = default(IDictionary))
{
@@ -466,8 +465,7 @@ public DatabaseUpdate()
///
/// Gets or sets the storage account type used to store backups for
- /// this database. Currently the only supported option is GRS
- /// (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
+ /// this database. Possible values include: 'GRS', 'LRS', 'ZRS'
///
[JsonProperty(PropertyName = "properties.storageAccountType")]
public string StorageAccountType { get; set; }
@@ -496,7 +494,7 @@ public DatabaseUpdate()
///
/// Gets or sets maintenance configuration id assigned to the database.
/// This configuration defines the period when the maintenance updates
- /// will be rolled out.
+ /// will occur.
///
[JsonProperty(PropertyName = "properties.maintenanceConfigurationId")]
public string MaintenanceConfigurationId { get; set; }
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUsage.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUsage.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseUsage.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseUsage.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessment.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessment.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessment.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaseline.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentRuleBaselineItem.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/DatabaseVulnerabilityAssessmentScansExport.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EditionCapability.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/EditionCapability.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EditionCapability.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs
similarity index 98%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs
index 566513fc3063..4ff5f68e841a 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPool.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPool.cs
@@ -69,7 +69,7 @@ public ElasticPool()
/// 'BasePrice'
/// Maintenance configuration
/// id assigned to the elastic pool. This configuration defines the
- /// period when the maintenance updates will be rolled out.
+ /// period when the maintenance updates will will occur.
public ElasticPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), string kind = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?), long? maxSizeBytes = default(long?), ElasticPoolPerDatabaseSettings perDatabaseSettings = default(ElasticPoolPerDatabaseSettings), bool? zoneRedundant = default(bool?), string licenseType = default(string), string maintenanceConfigurationId = default(string))
: base(location, id, name, type, tags)
{
@@ -159,7 +159,7 @@ public ElasticPool()
///
/// Gets or sets maintenance configuration id assigned to the elastic
/// pool. This configuration defines the period when the maintenance
- /// updates will be rolled out.
+ /// updates will will occur.
///
[JsonProperty(PropertyName = "properties.maintenanceConfigurationId")]
public string MaintenanceConfigurationId { get; set; }
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolActivity.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolActivity.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolActivity.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolDatabaseActivity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolDatabaseActivity.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolDatabaseActivity.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolDatabaseActivity.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolEdition.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEdition.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolEdition.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolEditionCapability.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolEditionCapability.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolLicenseType.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolLicenseType.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolOperation.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolOperation.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolOperation.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMaxPerformanceLevelCapability.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseMinPerformanceLevelCapability.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs
similarity index 100%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerDatabaseSettings.cs
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs
similarity index 89%
rename from sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs
rename to sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs
index 9dfae52b9858..e367fcf4c067 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.SqlManagement/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ElasticPoolPerformanceLevelCapability.cs
@@ -50,11 +50,13 @@ public ElasticPoolPerformanceLevelCapability()
/// supported per database max performance levels.
/// Whether or not zone redundancy is
/// supported for the performance level.
+ /// List of supported
+ /// maintenance configurations
/// The status of the capability. Possible values
/// include: 'Visible', 'Available', 'Default', 'Disabled'
/// The reason for the capability not being
/// available.
- public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), bool? zoneRedundant = default(bool?), CapabilityStatus? status = default(CapabilityStatus?), string reason = default(string))
+ public ElasticPoolPerformanceLevelCapability(PerformanceLevelCapability performanceLevel = default(PerformanceLevelCapability), Sku sku = default(Sku), IList supportedLicenseTypes = default(IList), int? maxDatabaseCount = default(int?), MaxSizeCapability includedMaxSize = default(MaxSizeCapability), IList supportedMaxSizes = default(IList), IList supportedPerDatabaseMaxSizes = default(IList), IList supportedPerDatabaseMaxPerformanceLevels = default(IList), bool? zoneRedundant = default(bool?), IList