diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs
index b4519b7cbb98..dc43a012367e 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs
@@ -103,7 +103,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -367,7 +367,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -579,7 +579,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -800,7 +800,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/CapabilitiesOperations.cs
index 72cf135164d9..40283bad0a1b 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/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 = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperations.cs
index 4c469aa37322..41a64b324d20 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseAutomaticTuningOperations.cs
@@ -102,7 +102,7 @@ internal DatabaseAutomaticTuningOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -313,7 +313,7 @@ internal DatabaseAutomaticTuningOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs
index 4637ddb70005..3b6ca4f05a6c 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseBlobAuditingPoliciesOperations.cs
@@ -103,7 +103,7 @@ internal DatabaseBlobAuditingPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -321,7 +321,7 @@ internal DatabaseBlobAuditingPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -552,7 +552,7 @@ internal DatabaseBlobAuditingPoliciesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperations.cs
index ebedc7aca5bd..b276a6a2afea 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseOperations.cs
@@ -102,7 +102,7 @@ internal DatabaseOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -290,7 +290,7 @@ internal DatabaseOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
index 6af06a2cb7b1..542549f9a3db 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
@@ -116,7 +116,7 @@ internal DatabaseVulnerabilityAssessmentRuleBaselinesOperations(SqlManagementCli
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal DatabaseVulnerabilityAssessmentRuleBaselinesOperations(SqlManagementCli
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -579,7 +579,7 @@ internal DatabaseVulnerabilityAssessmentRuleBaselinesOperations(SqlManagementCli
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
index 2b7ab1bf71fc..3cbc1a6b496c 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
@@ -50,6 +50,35 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
///
public SqlManagementClient Client { get; private set; }
+ ///
+ /// Executes a Vulnerability Assessment database scan.
+ ///
+ ///
+ /// 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 name of the database.
+ ///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task InitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginInitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Lists the vulnerability assessment scans of a database.
///
@@ -103,7 +132,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -317,7 +346,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -473,35 +502,6 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
return _result;
}
- ///
- /// Executes a Vulnerability Assessment database scan.
- ///
- ///
- /// 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 name of the database.
- ///
- ///
- /// The vulnerability assessment scan Id of the scan to retrieve.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task InitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginInitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
///
/// Convert an existing scan result to a human readable format. If already
/// exists nothing happens
@@ -563,7 +563,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -794,7 +794,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
index e583bfef5abd..b4eb4b2cad53 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Sql
public static partial class DatabaseVulnerabilityAssessmentScansOperationsExtensions
{
///
- /// Lists the vulnerability assessment scans of a database.
+ /// Executes a Vulnerability Assessment database scan.
///
///
/// The operations group for this extension method.
@@ -37,13 +37,16 @@ public static partial class DatabaseVulnerabilityAssessmentScansOperationsExtens
///
/// The name of the database.
///
- public static IPage ListByDatabase(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName)
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
+ public static void InitiateScan(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
{
- return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
+ operations.InitiateScanAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
}
///
- /// Lists the vulnerability assessment scans of a database.
+ /// Executes a Vulnerability Assessment database scan.
///
///
/// The operations group for this extension method.
@@ -58,19 +61,19 @@ public static IPage ListByDatabase(this IData
///
/// The name of the database.
///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
///
/// The cancellation token.
///
- public static async Task> ListByDatabaseAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task InitiateScanAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.InitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Gets a vulnerability assessment scan record of a database.
+ /// Lists the vulnerability assessment scans of a database.
///
///
/// The operations group for this extension method.
@@ -85,16 +88,13 @@ public static IPage ListByDatabase(this IData
///
/// The name of the database.
///
- ///
- /// The vulnerability assessment scan Id of the scan to retrieve.
- ///
- public static VulnerabilityAssessmentScanRecord Get(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
+ public static IPage ListByDatabase(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName)
{
- return operations.GetAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
+ return operations.ListByDatabaseAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult();
}
///
- /// Gets a vulnerability assessment scan record of a database.
+ /// Lists the vulnerability assessment scans of a database.
///
///
/// The operations group for this extension method.
@@ -109,22 +109,19 @@ public static VulnerabilityAssessmentScanRecord Get(this IDatabaseVulnerabilityA
///
/// The name of the database.
///
- ///
- /// The vulnerability assessment scan Id of the scan to retrieve.
- ///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByDatabaseAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByDatabaseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Executes a Vulnerability Assessment database scan.
+ /// Gets a vulnerability assessment scan record of a database.
///
///
/// The operations group for this extension method.
@@ -142,13 +139,13 @@ public static VulnerabilityAssessmentScanRecord Get(this IDatabaseVulnerabilityA
///
/// The vulnerability assessment scan Id of the scan to retrieve.
///
- public static void InitiateScan(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
+ public static VulnerabilityAssessmentScanRecord Get(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId)
{
- operations.InitiateScanAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, serverName, databaseName, scanId).GetAwaiter().GetResult();
}
///
- /// Executes a Vulnerability Assessment database scan.
+ /// Gets a vulnerability assessment scan record of a database.
///
///
/// The operations group for this extension method.
@@ -169,9 +166,12 @@ public static void InitiateScan(this IDatabaseVulnerabilityAssessmentScansOperat
///
/// The cancellation token.
///
- public static async Task InitiateScanAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDatabaseVulnerabilityAssessmentScansOperations operations, string resourceGroupName, string serverName, string databaseName, string scanId, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.InitiateScanWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, scanId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
index 1b1ced93379f..fca14544f781 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/DatabaseVulnerabilityAssessmentsOperations.cs
@@ -103,7 +103,7 @@ internal DatabaseVulnerabilityAssessmentsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -317,7 +317,7 @@ internal DatabaseVulnerabilityAssessmentsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -546,7 +546,7 @@ internal DatabaseVulnerabilityAssessmentsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -735,7 +735,7 @@ internal DatabaseVulnerabilityAssessmentsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperations.cs
index 313d1a22cc51..53cf0d0f1586 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolOperations.cs
@@ -101,7 +101,7 @@ internal ElasticPoolOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -288,7 +288,7 @@ internal ElasticPoolOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperations.cs
index 4ca474cdc783..785f56f27acb 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ElasticPoolsOperations.cs
@@ -518,7 +518,7 @@ internal ElasticPoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -725,7 +725,7 @@ internal ElasticPoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1050,7 +1050,7 @@ internal ElasticPoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1276,7 +1276,7 @@ internal ElasticPoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1469,7 +1469,7 @@ internal ElasticPoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1677,7 +1677,7 @@ internal ElasticPoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperations.cs
index ccf56854ff71..5e8b79108b11 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperations.cs
@@ -50,29 +50,6 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
///
public SqlManagementClient Client { get; private set; }
- ///
- /// Revalidates an existing encryption protector.
- ///
- ///
- /// 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.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task RevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginRevalidateWithHttpMessagesAsync(resourceGroupName, serverName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
///
/// Gets a list of server encryption protectors
///
@@ -118,7 +95,7 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -314,7 +291,7 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string encryptionProtectorName = "current";
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -503,6 +480,32 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
/// The name of the server.
///
///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task RevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginRevalidateWithHttpMessagesAsync(resourceGroupName, serverName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Updates an existing encryption protector.
+ ///
+ ///
+ /// 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 requested encryption protector resource state.
+ ///
+ ///
/// Headers that will be added to request.
///
///
@@ -511,6 +514,9 @@ internal EncryptionProtectorsOperations(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
///
@@ -520,7 +526,7 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginRevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, EncryptionProtector parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -530,12 +536,20 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
}
+ 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");
}
string encryptionProtectorName = "current";
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -546,13 +560,14 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
tracingParameters.Add("encryptionProtectorName", encryptionProtectorName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginRevalidate", 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
_url = _url.Replace("{encryptionProtectorName}", System.Uri.EscapeDataString(encryptionProtectorName));
@@ -569,7 +584,7 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -600,6 +615,12 @@ internal EncryptionProtectorsOperations(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)
{
@@ -655,13 +676,31 @@ internal EncryptionProtectorsOperations(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);
@@ -670,7 +709,7 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
}
///
- /// Updates an existing encryption protector.
+ /// Revalidates an existing encryption protector.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -679,9 +718,6 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
///
/// The name of the server.
///
- ///
- /// The requested encryption protector resource state.
- ///
///
/// Headers that will be added to request.
///
@@ -691,9 +727,6 @@ internal EncryptionProtectorsOperations(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
///
@@ -703,7 +736,7 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, EncryptionProtector parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginRevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -713,20 +746,12 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "serverName");
}
- 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");
}
string encryptionProtectorName = "current";
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -737,14 +762,13 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("serverName", serverName);
tracingParameters.Add("encryptionProtectorName", encryptionProtectorName);
- tracingParameters.Add("parameters", parameters);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginRevalidate", 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}/encryptionProtector/{encryptionProtectorName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}/revalidate").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
_url = _url.Replace("{encryptionProtectorName}", System.Uri.EscapeDataString(encryptionProtectorName));
@@ -761,7 +785,7 @@ internal EncryptionProtectorsOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -792,12 +816,6 @@ internal EncryptionProtectorsOperations(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)
{
@@ -853,31 +871,13 @@ internal EncryptionProtectorsOperations(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);
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperationsExtensions.cs
index 2c36752cae66..a5410bcc1a5f 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/EncryptionProtectorsOperationsExtensions.cs
@@ -21,45 +21,6 @@ namespace Microsoft.Azure.Management.Sql
///
public static partial class EncryptionProtectorsOperationsExtensions
{
- ///
- /// Revalidates an existing encryption protector.
- ///
- ///
- /// 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 void Revalidate(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName)
- {
- operations.RevalidateAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
- }
-
- ///
- /// Revalidates an existing encryption protector.
- ///
- ///
- /// 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 RevalidateAsync(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.RevalidateWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
///
/// Gets a list of server encryption protectors
///
@@ -205,9 +166,9 @@ public static EncryptionProtector CreateOrUpdate(this IEncryptionProtectorsOpera
///
/// The name of the server.
///
- public static void BeginRevalidate(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName)
+ public static void Revalidate(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName)
{
- operations.BeginRevalidateAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
+ operations.RevalidateAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
}
///
@@ -226,9 +187,9 @@ public static void BeginRevalidate(this IEncryptionProtectorsOperations operatio
///
/// The cancellation token.
///
- public static async Task BeginRevalidateAsync(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task RevalidateAsync(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.BeginRevalidateWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.RevalidateWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -279,6 +240,45 @@ public static EncryptionProtector BeginCreateOrUpdate(this IEncryptionProtectors
}
}
+ ///
+ /// Revalidates an existing encryption protector.
+ ///
+ ///
+ /// 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 void BeginRevalidate(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName)
+ {
+ operations.BeginRevalidateAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Revalidates an existing encryption protector.
+ ///
+ ///
+ /// 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 BeginRevalidateAsync(this IEncryptionProtectorsOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginRevalidateWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
///
/// Gets a list of server encryption protectors
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs
index 31b9feff5f68..fa780931433a 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedDatabaseBlobAuditingPoliciesOperations.cs
@@ -103,7 +103,7 @@ internal ExtendedDatabaseBlobAuditingPoliciesOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -321,7 +321,7 @@ internal ExtendedDatabaseBlobAuditingPoliciesOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -552,7 +552,7 @@ internal ExtendedDatabaseBlobAuditingPoliciesOperations(SqlManagementClient clie
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs
index f82314c69e2e..3b32da5af6af 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ExtendedServerBlobAuditingPoliciesOperations.cs
@@ -96,7 +96,7 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -319,7 +319,7 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -526,7 +526,7 @@ internal ExtendedServerBlobAuditingPoliciesOperations(SqlManagementClient client
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperations.cs
index 38be0bb5beea..372f4ff81444 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/FailoverGroupsOperations.cs
@@ -102,7 +102,7 @@ internal FailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -383,7 +383,7 @@ internal FailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -649,7 +649,7 @@ internal FailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -875,7 +875,7 @@ internal FailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1068,7 +1068,7 @@ internal FailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1279,7 +1279,7 @@ internal FailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1484,7 +1484,7 @@ internal FailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IEncryptionProtectorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IEncryptionProtectorsOperations.cs
index 954fcdf64391..039c28d94133 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IEncryptionProtectorsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IEncryptionProtectorsOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.Sql
public partial interface IEncryptionProtectorsOperations
{
///
- /// Revalidates an existing encryption protector.
+ /// Gets a list of server encryption protectors
///
///
/// The name of the resource group that contains the resource. You can
@@ -43,12 +43,15 @@ public partial interface IEncryptionProtectorsOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task RevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of server encryption protectors
+ /// Gets a server encryption protector.
///
///
/// The name of the resource group that contains the resource. You can
@@ -73,9 +76,9 @@ public partial interface IEncryptionProtectorsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a server encryption protector.
+ /// Updates an existing encryption protector.
///
///
/// The name of the resource group that contains the resource. You can
@@ -85,6 +88,9 @@ public partial interface IEncryptionProtectorsOperations
///
/// The name of the server.
///
+ ///
+ /// The requested encryption protector resource state.
+ ///
///
/// The headers that will be added to request.
///
@@ -100,9 +106,9 @@ public partial interface IEncryptionProtectorsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, EncryptionProtector parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing encryption protector.
+ /// Revalidates an existing encryption protector.
///
///
/// The name of the resource group that contains the resource. You can
@@ -112,9 +118,6 @@ public partial interface IEncryptionProtectorsOperations
///
/// The name of the server.
///
- ///
- /// The requested encryption protector resource state.
- ///
///
/// The headers that will be added to request.
///
@@ -124,15 +127,12 @@ public partial interface IEncryptionProtectorsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, EncryptionProtector parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task RevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Revalidates an existing encryption protector.
+ /// Updates an existing encryption protector.
///
///
/// The name of the resource group that contains the resource. You can
@@ -142,6 +142,9 @@ public partial interface IEncryptionProtectorsOperations
///
/// The name of the server.
///
+ ///
+ /// The requested encryption protector resource state.
+ ///
///
/// The headers that will be added to request.
///
@@ -151,12 +154,15 @@ public partial interface IEncryptionProtectorsOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task BeginRevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, EncryptionProtector parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates an existing encryption protector.
+ /// Revalidates an existing encryption protector.
///
///
/// The name of the resource group that contains the resource. You can
@@ -166,9 +172,6 @@ public partial interface IEncryptionProtectorsOperations
///
/// The name of the server.
///
- ///
- /// The requested encryption protector resource state.
- ///
///
/// The headers that will be added to request.
///
@@ -178,13 +181,10 @@ public partial interface IEncryptionProtectorsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, EncryptionProtector parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task BeginRevalidateWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets a list of server encryption protectors
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceOperations.cs
index 59ad2243810f..ba0f47d7a840 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstanceOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.Sql
public partial interface IManagedInstanceOperations
{
///
- /// Cancels the asynchronous operation on the managed instance.
+ /// Gets a list of operations performed on the managed instance.
///
///
/// The name of the resource group that contains the resource. You can
@@ -34,8 +34,6 @@ public partial interface IManagedInstanceOperations
///
/// The name of the managed instance.
///
- ///
- ///
///
/// The headers that will be added to request.
///
@@ -45,12 +43,15 @@ public partial interface IManagedInstanceOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task CancelWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of operations performed on the managed instance.
+ /// Gets a management operation on a managed instance.
///
///
/// The name of the resource group that contains the resource. You can
@@ -60,6 +61,8 @@ public partial interface IManagedInstanceOperations
///
/// The name of the managed instance.
///
+ ///
+ ///
///
/// The headers that will be added to request.
///
@@ -75,9 +78,9 @@ public partial interface IManagedInstanceOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a management operation on a managed instance.
+ /// Cancels the asynchronous operation on the managed instance.
///
///
/// The name of the resource group that contains the resource. You can
@@ -98,13 +101,10 @@ public partial interface IManagedInstanceOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task CancelWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets a list of operations performed on the managed instance.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs
index 22d58340a52f..36420cc7522b 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IManagedInstancesOperations.cs
@@ -34,6 +34,31 @@ public partial interface IManagedInstancesOperations
///
/// The instance pool name.
///
+ ///
+ /// The child resources to include in the response.
+ ///
+ ///
+ /// 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>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets a list of all managed instances in the subscription.
+ ///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The headers that will be added to request.
///
@@ -49,7 +74,7 @@ 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>> ListWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets a list of managed instances in a resource group.
///
@@ -58,6 +83,9 @@ public partial interface IManagedInstancesOperations
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The headers that will be added to request.
///
@@ -73,7 +101,7 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets a managed instance.
///
@@ -85,6 +113,9 @@ public partial interface IManagedInstancesOperations
///
/// The name of the managed instance.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The headers that will be added to request.
///
@@ -100,7 +131,7 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates or updates a managed instance.
///
@@ -266,25 +297,6 @@ public partial interface IManagedInstancesOperations
///
Task FailoverWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string replicaType = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of all managed instances in the subscription.
- ///
- ///
- /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// Creates or updates a managed instance.
///
///
@@ -419,7 +431,7 @@ public partial interface IManagedInstancesOperations
///
Task>> ListByInstancePoolNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of managed instances in a resource group.
+ /// Gets a list of all managed instances in the subscription.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -439,9 +451,9 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Get top resource consuming queries of a managed instance.
+ /// Gets a list of managed instances in a resource group.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -461,9 +473,9 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByManagedInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets a list of all managed instances in the subscription.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -483,6 +495,6 @@ public partial interface IManagedInstancesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByManagedInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerKeysOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerKeysOperations.cs
index a64b4dbeb517..d5d088798d8f 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerKeysOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerKeysOperations.cs
@@ -95,9 +95,9 @@ public partial interface IServerKeysOperations
/// The name of the server key to be operated on (updated or created).
/// The key name is required to be in the format of
/// 'vault_key_version'. For example, if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion,
/// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
@@ -160,9 +160,9 @@ public partial interface IServerKeysOperations
/// The name of the server key to be operated on (updated or created).
/// The key name is required to be in the format of
/// 'vault_key_version'. For example, if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion,
/// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerOperations.cs
new file mode 100644
index 000000000000..e71dd1acac1b
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServerOperations.cs
@@ -0,0 +1,76 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ServerOperations operations.
+ ///
+ public partial interface IServerOperations
+ {
+ ///
+ /// Gets a list of operations performed on the 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.
+ ///
+ ///
+ /// 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>> ListByServerWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets a list of operations performed on the 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>> ListByServerNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServersOperations.cs
index 591f10e968ab..af2e8ec99076 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServersOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IServersOperations.cs
@@ -31,6 +31,9 @@ public partial interface IServersOperations
/// obtain this value from the Azure Resource Manager API or the
/// portal.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The headers that will be added to request.
///
@@ -46,7 +49,7 @@ public partial interface IServersOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets a server.
///
@@ -58,6 +61,9 @@ public partial interface IServersOperations
///
/// The name of the server.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The headers that will be added to request.
///
@@ -73,7 +79,7 @@ public partial interface IServersOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates or updates a server.
///
@@ -161,6 +167,9 @@ public partial interface IServersOperations
///
/// Gets a list of all servers in the subscription.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The headers that will be added to request.
///
@@ -176,13 +185,20 @@ public partial interface IServersOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Determines whether a resource can be created with the specified
- /// name.
+ /// Imports a bacpac into a new 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 server.
+ ///
///
- /// The name availability request parameters.
+ /// The database import request parameters.
///
///
/// The headers that will be added to request.
@@ -199,20 +215,13 @@ public partial interface IServersOperations
///
/// Thrown when a required parameter is null
///
- Task> CheckNameAvailabilityWithHttpMessagesAsync(CheckNameAvailabilityRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Imports a bacpac into a new database.
+ /// Determines whether a resource can be created with the specified
+ /// name.
///
- ///
- /// 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 database import request parameters.
+ /// The name availability request parameters.
///
///
/// The headers that will be added to request.
@@ -229,7 +238,7 @@ public partial interface IServersOperations
///
/// Thrown when a required parameter is null
///
- Task> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CheckNameAvailabilityWithHttpMessagesAsync(CheckNameAvailabilityRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates or updates a server.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperations.cs
index 2596e4085a07..ae4cccd2ccf7 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstanceFailoverGroupsOperations.cs
@@ -102,7 +102,7 @@ internal InstanceFailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -354,7 +354,7 @@ internal InstanceFailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -621,7 +621,7 @@ internal InstanceFailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -847,7 +847,7 @@ internal InstanceFailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1034,7 +1034,7 @@ internal InstanceFailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1239,7 +1239,7 @@ internal InstanceFailoverGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperations.cs
index c8d461ed5c3a..4c0cfa698ef0 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/InstancePoolsOperations.cs
@@ -95,7 +95,7 @@ internal InstancePoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -358,7 +358,7 @@ internal InstancePoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -536,7 +536,7 @@ internal InstancePoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -738,7 +738,7 @@ internal InstancePoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -955,7 +955,7 @@ internal InstancePoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1139,7 +1139,7 @@ internal InstancePoolsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperations.cs
index 1dd2de8a0187..b705f6364948 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobAgentsOperations.cs
@@ -95,7 +95,7 @@ internal JobAgentsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -297,7 +297,7 @@ internal JobAgentsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -596,7 +596,7 @@ internal JobAgentsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -822,7 +822,7 @@ internal JobAgentsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1015,7 +1015,7 @@ internal JobAgentsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperations.cs
index e030fd0a0227..e88edc8fd0fd 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobCredentialsOperations.cs
@@ -102,7 +102,7 @@ internal JobCredentialsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -313,7 +313,7 @@ internal JobCredentialsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -537,7 +537,7 @@ internal JobCredentialsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -772,7 +772,7 @@ internal JobCredentialsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperations.cs
index ce9b96d7b30f..ea15030d5d0f 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobExecutionsOperations.cs
@@ -127,7 +127,7 @@ internal JobExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -373,7 +373,7 @@ internal JobExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -624,7 +624,7 @@ internal JobExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -875,7 +875,7 @@ internal JobExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1122,7 +1122,7 @@ internal JobExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1338,7 +1338,7 @@ internal JobExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperations.cs
index 9af657b8e146..e21049039d3b 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepExecutionsOperations.cs
@@ -137,7 +137,7 @@ internal JobStepExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -397,7 +397,7 @@ internal JobStepExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperations.cs
index 1bc81f5513c0..55a738edddc3 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobStepsOperations.cs
@@ -112,7 +112,7 @@ internal JobStepsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -337,7 +337,7 @@ internal JobStepsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -554,7 +554,7 @@ internal JobStepsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -774,7 +774,7 @@ internal JobStepsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1008,7 +1008,7 @@ internal JobStepsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1252,7 +1252,7 @@ internal JobStepsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperations.cs
index d4817fd08a08..7f41f5ea1977 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetExecutionsOperations.cs
@@ -137,7 +137,7 @@ internal JobTargetExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -422,7 +422,7 @@ internal JobTargetExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -687,7 +687,7 @@ internal JobTargetExecutionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperations.cs
index 38240af52680..f0be5c699526 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobTargetGroupsOperations.cs
@@ -102,7 +102,7 @@ internal JobTargetGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -313,7 +313,7 @@ internal JobTargetGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -537,7 +537,7 @@ internal JobTargetGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -772,7 +772,7 @@ internal JobTargetGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperations.cs
index 95c25514ce53..673c8084e64c 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobVersionsOperations.cs
@@ -109,7 +109,7 @@ internal JobVersionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -325,7 +325,7 @@ internal JobVersionsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperations.cs
index c332ef3b62ae..858e343249a0 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/JobsOperations.cs
@@ -102,7 +102,7 @@ internal JobsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -313,7 +313,7 @@ internal JobsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -533,7 +533,7 @@ internal JobsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -768,7 +768,7 @@ internal JobsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs
index 67eb9ce02161..45b7097649d1 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/LongTermRetentionManagedInstanceBackupsOperations.cs
@@ -108,7 +108,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -348,7 +348,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -561,7 +561,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -766,7 +766,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -990,7 +990,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1244,7 +1244,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1467,7 +1467,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1682,7 +1682,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1897,7 +1897,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2096,7 +2096,7 @@ internal LongTermRetentionManagedInstanceBackupsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs
index e61053122762..7c7674f8fa19 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedBackupShortTermRetentionPoliciesOperations.cs
@@ -103,7 +103,7 @@ internal ManagedBackupShortTermRetentionPoliciesOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -367,7 +367,7 @@ internal ManagedBackupShortTermRetentionPoliciesOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -579,7 +579,7 @@ internal ManagedBackupShortTermRetentionPoliciesOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -800,7 +800,7 @@ internal ManagedBackupShortTermRetentionPoliciesOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
index 2cd4ac21902c..b20fe3978d23 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseRestoreDetailsOperations.cs
@@ -103,7 +103,7 @@ internal ManagedDatabaseRestoreDetailsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string restoreDetailsName = "Default";
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs
index 5bbbf04b9705..6d3c3007cdaf 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseSecurityAlertPoliciesOperations.cs
@@ -104,7 +104,7 @@ internal ManagedDatabaseSecurityAlertPoliciesOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string securityAlertPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -323,7 +323,7 @@ internal ManagedDatabaseSecurityAlertPoliciesOperations(SqlManagementClient clie
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string securityAlertPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -555,7 +555,7 @@ internal ManagedDatabaseSecurityAlertPoliciesOperations(SqlManagementClient clie
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
index b0a6e8a3a629..2d8c85830d39 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations.cs
@@ -116,7 +116,7 @@ internal ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations(SqlManage
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -351,7 +351,7 @@ internal ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations(SqlManage
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -579,7 +579,7 @@ internal ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations(SqlManage
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs
index eb9d3a9926a4..7ed1452e8248 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabaseVulnerabilityAssessmentsOperations.cs
@@ -103,7 +103,7 @@ internal ManagedDatabaseVulnerabilityAssessmentsOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -317,7 +317,7 @@ internal ManagedDatabaseVulnerabilityAssessmentsOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -546,7 +546,7 @@ internal ManagedDatabaseVulnerabilityAssessmentsOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -734,7 +734,7 @@ internal ManagedDatabaseVulnerabilityAssessmentsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs
index de5e314814e1..997ff334f622 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedDatabasesOperations.cs
@@ -95,7 +95,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -297,7 +297,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -607,7 +607,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -820,7 +820,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1046,7 +1046,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1239,7 +1239,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1458,7 +1458,7 @@ internal ManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperations.cs
index 9fe6d8dd7098..71684b717e0c 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAdministratorsOperations.cs
@@ -95,7 +95,7 @@ internal ManagedInstanceAdministratorsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -291,7 +291,7 @@ internal ManagedInstanceAdministratorsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string administratorName = "ActiveDirectory";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -549,7 +549,7 @@ internal ManagedInstanceAdministratorsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string administratorName = "ActiveDirectory";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -769,7 +769,7 @@ internal ManagedInstanceAdministratorsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string administratorName = "ActiveDirectory";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs
index 563938213255..7da840e355be 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthenticationsOperations.cs
@@ -96,7 +96,7 @@ internal ManagedInstanceAzureADOnlyAuthenticationsOperations(SqlManagementClient
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string authenticationName = "Default";
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -344,7 +344,7 @@ internal ManagedInstanceAzureADOnlyAuthenticationsOperations(SqlManagementClient
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -553,7 +553,7 @@ internal ManagedInstanceAzureADOnlyAuthenticationsOperations(SqlManagementClient
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string authenticationName = "Default";
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -773,7 +773,7 @@ internal ManagedInstanceAzureADOnlyAuthenticationsOperations(SqlManagementClient
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string authenticationName = "Default";
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs
index d09262756457..8af5672a8c21 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceEncryptionProtectorsOperations.cs
@@ -118,7 +118,7 @@ internal ManagedInstanceEncryptionProtectorsOperations(SqlManagementClient clien
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -314,7 +314,7 @@ internal ManagedInstanceEncryptionProtectorsOperations(SqlManagementClient clien
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string encryptionProtectorName = "current";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -535,7 +535,7 @@ internal ManagedInstanceEncryptionProtectorsOperations(SqlManagementClient clien
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string encryptionProtectorName = "current";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -726,7 +726,7 @@ internal ManagedInstanceEncryptionProtectorsOperations(SqlManagementClient clien
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string encryptionProtectorName = "current";
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperations.cs
index b56d54762d3f..cca7b967eff4 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceKeysOperations.cs
@@ -98,7 +98,7 @@ internal ManagedInstanceKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -305,7 +305,7 @@ internal ManagedInstanceKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -577,7 +577,7 @@ internal ManagedInstanceKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -803,7 +803,7 @@ internal ManagedInstanceKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs
index 4d53c404517e..3506f35e001c 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceLongTermRetentionPoliciesOperations.cs
@@ -103,7 +103,7 @@ internal ManagedInstanceLongTermRetentionPoliciesOperations(SqlManagementClient
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -338,7 +338,7 @@ internal ManagedInstanceLongTermRetentionPoliciesOperations(SqlManagementClient
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -550,7 +550,7 @@ internal ManagedInstanceLongTermRetentionPoliciesOperations(SqlManagementClient
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperations.cs
index a142ed7b6254..12555ad20da9 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperations.cs
@@ -51,7 +51,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
public SqlManagementClient Client { get; private set; }
///
- /// Cancels the asynchronous operation on the managed instance.
+ /// Gets a list of operations performed on the managed instance.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -60,8 +60,6 @@ internal ManagedInstanceOperations(SqlManagementClient client)
///
/// The name of the managed instance.
///
- ///
- ///
///
/// Headers that will be added to request.
///
@@ -71,6 +69,9 @@ internal ManagedInstanceOperations(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
///
@@ -80,7 +81,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task CancelWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -94,7 +95,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2019-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -104,17 +105,15 @@ internal ManagedInstanceOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("managedInstanceName", managedInstanceName);
- tracingParameters.Add("operationId", operationId);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Cancel", tracingParameters);
+ 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}/operations/{operationId}/cancel").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
- _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(operationId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (apiVersion != null)
@@ -128,7 +127,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -214,13 +213,31 @@ internal ManagedInstanceOperations(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);
@@ -229,7 +246,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
}
///
- /// Gets a list of operations performed on the managed instance.
+ /// Gets a management operation on a managed instance.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -238,6 +255,8 @@ internal ManagedInstanceOperations(SqlManagementClient client)
///
/// The name of the managed instance.
///
+ ///
+ ///
///
/// Headers that will be added to request.
///
@@ -259,7 +278,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -273,7 +292,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2019-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -283,15 +302,17 @@ internal ManagedInstanceOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("managedInstanceName", managedInstanceName);
+ tracingParameters.Add("operationId", operationId);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByManagedInstance", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/operations").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
+ _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(operationId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (apiVersion != null)
@@ -391,7 +412,7 @@ internal ManagedInstanceOperations(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"))
@@ -404,7 +425,7 @@ internal ManagedInstanceOperations(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)
{
@@ -424,7 +445,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
}
///
- /// Gets a management operation on a managed instance.
+ /// Cancels the asynchronous operation on the managed instance.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -444,9 +465,6 @@ internal ManagedInstanceOperations(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
///
@@ -456,7 +474,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task CancelWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -470,7 +488,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2019-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -483,11 +501,11 @@ internal ManagedInstanceOperations(SqlManagementClient client)
tracingParameters.Add("operationId", operationId);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Cancel", 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}/operations/{operationId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}/cancel").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
_url = _url.Replace("{operationId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(operationId, Client.SerializationSettings).Trim('"')));
@@ -504,7 +522,7 @@ internal ManagedInstanceOperations(SqlManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -590,31 +608,13 @@ internal ManagedInstanceOperations(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);
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperationsExtensions.cs
index 7598f83f77db..a7ed94f3e074 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceOperationsExtensions.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Sql
public static partial class ManagedInstanceOperationsExtensions
{
///
- /// Cancels the asynchronous operation on the managed instance.
+ /// Gets a list of operations performed on the managed instance.
///
///
/// The operations group for this extension method.
@@ -34,15 +34,13 @@ public static partial class ManagedInstanceOperationsExtensions
///
/// The name of the managed instance.
///
- ///
- ///
- public static void Cancel(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId)
+ public static IPage ListByManagedInstance(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName)
{
- operations.CancelAsync(resourceGroupName, managedInstanceName, operationId).GetAwaiter().GetResult();
+ return operations.ListByManagedInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
}
///
- /// Cancels the asynchronous operation on the managed instance.
+ /// Gets a list of operations performed on the managed instance.
///
///
/// The operations group for this extension method.
@@ -54,18 +52,19 @@ public static void Cancel(this IManagedInstanceOperations operations, string res
///
/// The name of the managed instance.
///
- ///
- ///
///
/// The cancellation token.
///
- public static async Task CancelAsync(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByManagedInstanceAsync(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.CancelWithHttpMessagesAsync(resourceGroupName, managedInstanceName, operationId, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.ListByManagedInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
- /// Gets a list of operations performed on the managed instance.
+ /// Gets a management operation on a managed instance.
///
///
/// The operations group for this extension method.
@@ -77,13 +76,15 @@ public static void Cancel(this IManagedInstanceOperations operations, string res
///
/// The name of the managed instance.
///
- public static IPage ListByManagedInstance(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName)
+ ///
+ ///
+ public static ManagedInstanceOperation Get(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId)
{
- return operations.ListByManagedInstanceAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, managedInstanceName, operationId).GetAwaiter().GetResult();
}
///
- /// Gets a list of operations performed on the managed instance.
+ /// Gets a management operation on a managed instance.
///
///
/// The operations group for this extension method.
@@ -95,19 +96,21 @@ public static IPage ListByManagedInstance(this IManage
///
/// The name of the managed instance.
///
+ ///
+ ///
///
/// The cancellation token.
///
- public static async Task> ListByManagedInstanceAsync(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByManagedInstanceWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, operationId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Gets a management operation on a managed instance.
+ /// Cancels the asynchronous operation on the managed instance.
///
///
/// The operations group for this extension method.
@@ -121,13 +124,13 @@ public static IPage ListByManagedInstance(this IManage
///
///
///
- public static ManagedInstanceOperation Get(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId)
+ public static void Cancel(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId)
{
- return operations.GetAsync(resourceGroupName, managedInstanceName, operationId).GetAwaiter().GetResult();
+ operations.CancelAsync(resourceGroupName, managedInstanceName, operationId).GetAwaiter().GetResult();
}
///
- /// Gets a management operation on a managed instance.
+ /// Cancels the asynchronous operation on the managed instance.
///
///
/// The operations group for this extension method.
@@ -144,12 +147,9 @@ public static ManagedInstanceOperation Get(this IManagedInstanceOperations opera
///
/// The cancellation token.
///
- public static async Task GetAsync(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task CancelAsync(this IManagedInstanceOperations operations, string resourceGroupName, string managedInstanceName, System.Guid operationId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, operationId, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.CancelWithHttpMessagesAsync(resourceGroupName, managedInstanceName, operationId, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperations.cs
index 35957338cd6d..3f4dd2a6c424 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceTdeCertificatesOperations.cs
@@ -129,7 +129,7 @@ internal ManagedInstanceTdeCertificatesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs
index 4a276e802c64..2954c6cbdf32 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstanceVulnerabilityAssessmentsOperations.cs
@@ -97,7 +97,7 @@ internal ManagedInstanceVulnerabilityAssessmentsOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -307,7 +307,7 @@ internal ManagedInstanceVulnerabilityAssessmentsOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -528,7 +528,7 @@ internal ManagedInstanceVulnerabilityAssessmentsOperations(SqlManagementClient c
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -708,7 +708,7 @@ internal ManagedInstanceVulnerabilityAssessmentsOperations(SqlManagementClient c
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs
index 3bc76e76b740..b2b25a5ff195 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperations.cs
@@ -60,6 +60,9 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// The instance pool name.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// Headers that will be added to request.
///
@@ -81,7 +84,7 @@ 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>> ListByInstancePoolWithHttpMessagesAsync(string resourceGroupName, string instancePoolName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -95,7 +98,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -105,6 +108,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("instancePoolName", instancePoolName);
+ tracingParameters.Add("expand", expand);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListByInstancePool", tracingParameters);
@@ -116,6 +120,194 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_url = _url.Replace("{instancePoolName}", System.Uri.EscapeDataString(instancePoolName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (expand != null)
+ {
+ _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
+ }
+ 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;
+ }
+
+ ///
+ /// Gets a list of all managed instances in the subscription.
+ ///
+ ///
+ /// The child resources to include in the response.
+ ///
+ ///
+ /// 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>> ListWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ string apiVersion = "2020-11-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("expand", expand);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ 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}/providers/Microsoft.Sql/managedInstances").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (expand != null)
+ {
+ _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
+ }
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
@@ -252,6 +444,9 @@ internal ManagedInstancesOperations(SqlManagementClient client)
/// 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 child resources to include in the response.
+ ///
///
/// Headers that will be added to request.
///
@@ -273,7 +468,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -283,7 +478,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -292,6 +487,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("expand", expand);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
@@ -302,6 +498,10 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (expand != null)
+ {
+ _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
+ }
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
@@ -441,6 +641,9 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// The name of the managed instance.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// Headers that will be added to request.
///
@@ -462,7 +665,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -476,7 +679,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -486,6 +689,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("managedInstanceName", managedInstanceName);
+ tracingParameters.Add("expand", expand);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
@@ -497,6 +701,10 @@ internal ManagedInstancesOperations(SqlManagementClient client)
_url = _url.Replace("{managedInstanceName}", System.Uri.EscapeDataString(managedInstanceName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (expand != null)
+ {
+ _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
+ }
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
@@ -771,7 +979,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -983,182 +1191,6 @@ internal ManagedInstancesOperations(SqlManagementClient client)
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.
- ///
- ///
- /// 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>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- 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("apiVersion", apiVersion);
- tracingParameters.Add("cancellationToken", cancellationToken);
- 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}/providers/Microsoft.Sql/managedInstances").ToString();
- _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;
- }
-
///
/// Creates or updates a managed instance.
///
@@ -1215,7 +1247,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1432,7 +1464,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1616,7 +1648,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1819,7 +1851,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2130,7 +2162,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Gets a list of managed instances in a resource group.
+ /// Gets a list of all managed instances in the subscription.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -2156,7 +2188,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -2171,7 +2203,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -2303,7 +2335,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Get top resource consuming queries of a managed instance.
+ /// Gets a list of managed instances in a resource group.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -2329,7 +2361,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByManagedInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -2344,7 +2376,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByManagedInstanceNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -2443,7 +2475,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"))
@@ -2456,7 +2488,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)
{
@@ -2476,7 +2508,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
}
///
- /// Gets a list of all managed instances in the subscription.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The NextLink from the previous successful call to List operation.
@@ -2502,7 +2534,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListNextWithHttpMessagesAsync(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)
{
@@ -2517,7 +2549,7 @@ internal ManagedInstancesOperations(SqlManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("nextPageLink", nextPageLink);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByManagedInstanceNext", tracingParameters);
}
// Construct URL
string _url = "{nextLink}";
@@ -2616,7 +2648,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"))
@@ -2629,7 +2661,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.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs
index c4370ab74b84..76789c27981b 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedInstancesOperationsExtensions.cs
@@ -34,9 +34,12 @@ public static partial class ManagedInstancesOperationsExtensions
///
/// The instance pool name.
///
- public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName)
+ ///
+ /// The child resources to include in the response.
+ ///
+ public static IPage ListByInstancePool(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, string expand = default(string))
{
- return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName).GetAwaiter().GetResult();
+ return operations.ListByInstancePoolAsync(resourceGroupName, instancePoolName, expand).GetAwaiter().GetResult();
}
///
@@ -52,12 +55,49 @@ public static IPage ListByInstancePool(this IManagedInstancesOp
///
/// The instance pool name.
///
+ ///
+ /// The child resources to include in the response.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, expand, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets a list of all managed instances in the subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The child resources to include in the response.
+ ///
+ public static IPage List(this IManagedInstancesOperations operations, string expand = default(string))
+ {
+ return operations.ListAsync(expand).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of all managed instances in the subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The cancellation token.
///
- public static async Task> ListByInstancePoolAsync(this IManagedInstancesOperations operations, string resourceGroupName, string instancePoolName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync(this IManagedInstancesOperations operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByInstancePoolWithHttpMessagesAsync(resourceGroupName, instancePoolName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -73,9 +113,12 @@ 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.
///
- public static IPage ListByResourceGroup(this IManagedInstancesOperations operations, string resourceGroupName)
+ ///
+ /// The child resources to include in the response.
+ ///
+ public static IPage ListByResourceGroup(this IManagedInstancesOperations operations, string resourceGroupName, string expand = default(string))
{
- return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult();
+ return operations.ListByResourceGroupAsync(resourceGroupName, expand).GetAwaiter().GetResult();
}
///
@@ -88,12 +131,15 @@ public static IPage ListByResourceGroup(this IManagedInstancesO
/// 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 child resources to include in the response.
+ ///
///
/// The cancellation token.
///
- public static async Task> ListByResourceGroupAsync(this IManagedInstancesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByResourceGroupAsync(this IManagedInstancesOperations operations, string resourceGroupName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, expand, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -112,9 +158,12 @@ public static IPage ListByResourceGroup(this IManagedInstancesO
///
/// The name of the managed instance.
///
- public static ManagedInstance Get(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName)
+ ///
+ /// The child resources to include in the response.
+ ///
+ public static ManagedInstance Get(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string expand = default(string))
{
- return operations.GetAsync(resourceGroupName, managedInstanceName).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, managedInstanceName, expand).GetAwaiter().GetResult();
}
///
@@ -130,12 +179,15 @@ public static ManagedInstance Get(this IManagedInstancesOperations operations, s
///
/// The name of the managed instance.
///
+ ///
+ /// The child resources to include in the response.
+ ///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IManagedInstancesOperations operations, string resourceGroupName, string managedInstanceName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, expand, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -415,34 +467,6 @@ public static ManagedInstance Update(this IManagedInstancesOperations operations
(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;
- }
- }
-
///
/// Creates or updates a managed instance.
///
@@ -660,7 +684,7 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc
}
///
- /// Gets a list of managed instances in a resource group.
+ /// Gets a list of all managed instances in the subscription.
///
///
/// The operations group for this extension method.
@@ -668,13 +692,13 @@ public static IPage ListByInstancePoolNext(this IManagedInstanc
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink)
+ public static IPage ListNext(this IManagedInstancesOperations operations, string nextPageLink)
{
- return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult();
+ return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}
///
- /// Gets a list of managed instances in a resource group.
+ /// Gets a list of all managed instances in the subscription.
///
///
/// The operations group for this extension method.
@@ -685,16 +709,16 @@ public static IPage ListByResourceGroupNext(this IManagedInstan
///
/// The cancellation token.
///
- public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Get top resource consuming queries of a managed instance.
+ /// Gets a list of managed instances in a resource group.
///
///
/// The operations group for this extension method.
@@ -702,13 +726,13 @@ public static IPage ListByResourceGroupNext(this IManagedInstan
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListByManagedInstanceNext(this IManagedInstancesOperations operations, string nextPageLink)
+ public static IPage ListByResourceGroupNext(this IManagedInstancesOperations operations, string nextPageLink)
{
- return operations.ListByManagedInstanceNextAsync(nextPageLink).GetAwaiter().GetResult();
+ return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult();
}
///
- /// Get top resource consuming queries of a managed instance.
+ /// Gets a list of managed instances in a resource group.
///
///
/// The operations group for this extension method.
@@ -719,16 +743,16 @@ public static IPage ListByManagedInstanceNext(this IManagedInstances
///
/// The cancellation token.
///
- public static async Task> ListByManagedInstanceNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByResourceGroupNextAsync(this IManagedInstancesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListByManagedInstanceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Gets a list of all managed instances in the subscription.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The operations group for this extension method.
@@ -736,13 +760,13 @@ public static IPage ListByManagedInstanceNext(this IManagedInstances
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListNext(this IManagedInstancesOperations operations, string nextPageLink)
+ public static IPage ListByManagedInstanceNext(this IManagedInstancesOperations operations, string nextPageLink)
{
- return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
+ return operations.ListByManagedInstanceNextAsync(nextPageLink).GetAwaiter().GetResult();
}
///
- /// Gets a list of all managed instances in the subscription.
+ /// Get top resource consuming queries of a managed instance.
///
///
/// The operations group for this extension method.
@@ -753,9 +777,9 @@ public static IPage ListNext(this IManagedInstancesOperations o
///
/// The cancellation token.
///
- public static async Task> ListNextAsync(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.ListNextWithHttpMessagesAsync(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.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
index 08ce3af3a3b7..5cd85ae32b0a 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations.cs
@@ -102,7 +102,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -257,7 +257,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -269,7 +269,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// The headers that will be added to request.
@@ -285,7 +285,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -297,7 +297,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// The headers that will be added to request.
@@ -363,7 +363,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -516,7 +516,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -528,7 +528,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// Headers that will be added to request.
@@ -574,7 +574,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -736,7 +736,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -748,7 +748,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// Headers that will be added to request.
@@ -794,7 +794,7 @@ internal ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperati
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string policyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs
index 0f5a61659b21..ea1bc714908d 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperationsExtensions.cs
@@ -68,7 +68,7 @@ public static ManagedBackupShortTermRetentionPolicy Get(this IManagedRestorableD
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -83,7 +83,7 @@ public static ManagedBackupShortTermRetentionPolicy Get(this IManagedRestorableD
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
public static ManagedBackupShortTermRetentionPolicy CreateOrUpdate(this IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedBackupShortTermRetentionPolicy parameters)
{
@@ -91,7 +91,7 @@ public static ManagedBackupShortTermRetentionPolicy CreateOrUpdate(this IManaged
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -106,7 +106,7 @@ public static ManagedBackupShortTermRetentionPolicy CreateOrUpdate(this IManaged
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// The cancellation token.
@@ -120,7 +120,7 @@ public static ManagedBackupShortTermRetentionPolicy CreateOrUpdate(this IManaged
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -135,7 +135,7 @@ public static ManagedBackupShortTermRetentionPolicy CreateOrUpdate(this IManaged
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
public static ManagedBackupShortTermRetentionPolicy Update(this IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedBackupShortTermRetentionPolicy parameters)
{
@@ -143,7 +143,7 @@ public static ManagedBackupShortTermRetentionPolicy Update(this IManagedRestorab
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -158,7 +158,7 @@ public static ManagedBackupShortTermRetentionPolicy Update(this IManagedRestorab
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// The cancellation token.
@@ -218,7 +218,7 @@ public static IPage ListByRestorableDropp
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -233,7 +233,7 @@ public static IPage ListByRestorableDropp
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
public static ManagedBackupShortTermRetentionPolicy BeginCreateOrUpdate(this IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedBackupShortTermRetentionPolicy parameters)
{
@@ -241,7 +241,7 @@ public static ManagedBackupShortTermRetentionPolicy BeginCreateOrUpdate(this IMa
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -256,7 +256,7 @@ public static ManagedBackupShortTermRetentionPolicy BeginCreateOrUpdate(this IMa
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// The cancellation token.
@@ -270,7 +270,7 @@ public static ManagedBackupShortTermRetentionPolicy BeginCreateOrUpdate(this IMa
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -285,7 +285,7 @@ public static ManagedBackupShortTermRetentionPolicy BeginCreateOrUpdate(this IMa
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
public static ManagedBackupShortTermRetentionPolicy BeginUpdate(this IManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations operations, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, ManagedBackupShortTermRetentionPolicy parameters)
{
@@ -293,7 +293,7 @@ public static ManagedBackupShortTermRetentionPolicy BeginUpdate(this IManagedRes
}
///
- /// Sets a database's long term retention policy.
+ /// Sets a database's short term retention policy.
///
///
/// The operations group for this extension method.
@@ -308,7 +308,7 @@ public static ManagedBackupShortTermRetentionPolicy BeginUpdate(this IManagedRes
///
///
///
- /// The long term retention policy info.
+ /// The short term retention policy info.
///
///
/// The cancellation token.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs
index 5b323e6642f7..c70f55efcb2a 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ManagedServerSecurityAlertPoliciesOperations.cs
@@ -96,7 +96,7 @@ internal ManagedServerSecurityAlertPoliciesOperations(SqlManagementClient client
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string securityAlertPolicyName = "Default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -319,7 +319,7 @@ internal ManagedServerSecurityAlertPoliciesOperations(SqlManagementClient client
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -526,7 +526,7 @@ internal ManagedServerSecurityAlertPoliciesOperations(SqlManagementClient client
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string securityAlertPolicyName = "Default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs
new file mode 100644
index 000000000000..46fed52dc35b
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/AdministratorType.cs
@@ -0,0 +1,21 @@
+//
+// 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 AdministratorType.
+ ///
+ public static class AdministratorType
+ {
+ public const string ActiveDirectory = "ActiveDirectory";
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs
index ea9fe3a5d1a5..60bf35bb1bc9 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/EncryptionProtector.cs
@@ -46,7 +46,9 @@ public EncryptionProtector()
/// The name of the server key.
/// The URI of the server key.
/// Thumbprint of the server key.
- public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string))
+ /// Key auto rotation opt-in flag.
+ /// Either true or false.
+ public EncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?))
: base(id, name, type)
{
Kind = kind;
@@ -56,6 +58,7 @@ public EncryptionProtector()
ServerKeyType = serverKeyType;
Uri = uri;
Thumbprint = thumbprint;
+ AutoRotationEnabled = autoRotationEnabled;
CustomInit();
}
@@ -109,6 +112,12 @@ public EncryptionProtector()
[JsonProperty(PropertyName = "properties.thumbprint")]
public string Thumbprint { get; private set; }
+ ///
+ /// Gets or sets key auto rotation opt-in flag. Either true or false.
+ ///
+ [JsonProperty(PropertyName = "properties.autoRotationEnabled")]
+ public bool? AutoRotationEnabled { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs
index 05f56db02fc0..500c206ee3af 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstance.cs
@@ -118,7 +118,13 @@ public ManagedInstance()
/// 'ZRS'
/// Whether or not the multi-az is
/// enabled.
- public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?))
+ /// The resource id of a
+ /// user assigned identity to be used by default.
+ /// A CMK URI of the key to use for
+ /// encryption.
+ /// The Azure Active Directory
+ /// administrator of the server.
+ public ManagedInstance(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentityWithUserAssignedIdentities identity = default(ResourceIdentityWithUserAssignedIdentities), Sku sku = default(Sku), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator))
: base(location, id, name, type, tags)
{
Identity = identity;
@@ -147,6 +153,9 @@ public ManagedInstance()
MinimalTlsVersion = minimalTlsVersion;
StorageAccountType = storageAccountType;
ZoneRedundant = zoneRedundant;
+ PrimaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
+ KeyId = keyId;
+ Administrators = administrators;
CustomInit();
}
@@ -160,7 +169,7 @@ public ManagedInstance()
/// instance.
///
[JsonProperty(PropertyName = "identity")]
- public ResourceIdentity Identity { get; set; }
+ public ResourceIdentityWithUserAssignedIdentities Identity { get; set; }
///
/// Gets or sets managed instance SKU. Allowed values for sku.name:
@@ -350,6 +359,26 @@ public ManagedInstance()
[JsonProperty(PropertyName = "properties.zoneRedundant")]
public bool? ZoneRedundant { get; set; }
+ ///
+ /// Gets or sets the resource id of a user assigned identity to be used
+ /// by default.
+ ///
+ [JsonProperty(PropertyName = "properties.primaryUserAssignedIdentityId")]
+ public string PrimaryUserAssignedIdentityId { get; set; }
+
+ ///
+ /// Gets or sets a CMK URI of the key to use for encryption.
+ ///
+ [JsonProperty(PropertyName = "properties.keyId")]
+ public string KeyId { get; set; }
+
+ ///
+ /// Gets or sets the Azure Active Directory administrator of the
+ /// server.
+ ///
+ [JsonProperty(PropertyName = "properties.administrators")]
+ public ManagedInstanceExternalAdministrator Administrators { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs
index 10a41136245f..1900f3a295c5 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceEncryptionProtector.cs
@@ -46,7 +46,9 @@ public ManagedInstanceEncryptionProtector()
/// key.
/// The URI of the server key.
/// Thumbprint of the server key.
- public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string))
+ /// Key auto rotation opt-in flag.
+ /// Either true or false.
+ public ManagedInstanceEncryptionProtector(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string serverKeyName = default(string), string uri = default(string), string thumbprint = default(string), bool? autoRotationEnabled = default(bool?))
: base(id, name, type)
{
Kind = kind;
@@ -54,6 +56,7 @@ public ManagedInstanceEncryptionProtector()
ServerKeyType = serverKeyType;
Uri = uri;
Thumbprint = thumbprint;
+ AutoRotationEnabled = autoRotationEnabled;
CustomInit();
}
@@ -95,6 +98,12 @@ public ManagedInstanceEncryptionProtector()
[JsonProperty(PropertyName = "properties.thumbprint")]
public string Thumbprint { get; private set; }
+ ///
+ /// Gets or sets key auto rotation opt-in flag. Either true or false.
+ ///
+ [JsonProperty(PropertyName = "properties.autoRotationEnabled")]
+ public bool? AutoRotationEnabled { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs
new file mode 100644
index 000000000000..687498eceb43
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceExternalAdministrator.cs
@@ -0,0 +1,100 @@
+//
+// 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
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of a active directory administrator.
+ ///
+ public partial class ManagedInstanceExternalAdministrator
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedInstanceExternalAdministrator class.
+ ///
+ public ManagedInstanceExternalAdministrator()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedInstanceExternalAdministrator class.
+ ///
+ /// Type of the sever administrator.
+ /// Possible values include: 'ActiveDirectory'
+ /// Principal Type of the sever
+ /// administrator. Possible values include: 'User', 'Group',
+ /// 'Application'
+ /// Login name of the server administrator.
+ /// SID (object ID) of the server
+ /// administrator.
+ /// Tenant ID of the administrator.
+ /// Azure Active Directory only
+ /// Authentication enabled.
+ public ManagedInstanceExternalAdministrator(string administratorType = default(string), string principalType = default(string), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?))
+ {
+ AdministratorType = administratorType;
+ PrincipalType = principalType;
+ Login = login;
+ Sid = sid;
+ TenantId = tenantId;
+ AzureADOnlyAuthentication = azureADOnlyAuthentication;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets type of the sever administrator. Possible values
+ /// include: 'ActiveDirectory'
+ ///
+ [JsonProperty(PropertyName = "administratorType")]
+ public string AdministratorType { get; set; }
+
+ ///
+ /// Gets or sets principal Type of the sever administrator. Possible
+ /// values include: 'User', 'Group', 'Application'
+ ///
+ [JsonProperty(PropertyName = "principalType")]
+ public string PrincipalType { get; set; }
+
+ ///
+ /// Gets or sets login name of the server administrator.
+ ///
+ [JsonProperty(PropertyName = "login")]
+ public string Login { get; set; }
+
+ ///
+ /// Gets or sets SID (object ID) of the server administrator.
+ ///
+ [JsonProperty(PropertyName = "sid")]
+ public System.Guid? Sid { get; set; }
+
+ ///
+ /// Gets or sets tenant ID of the administrator.
+ ///
+ [JsonProperty(PropertyName = "tenantId")]
+ public System.Guid? TenantId { get; set; }
+
+ ///
+ /// Gets or sets azure Active Directory only Authentication enabled.
+ ///
+ [JsonProperty(PropertyName = "azureADOnlyAuthentication")]
+ public bool? AzureADOnlyAuthentication { get; set; }
+
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs
index da6ab159a907..c813629cdbff 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceKey.cs
@@ -44,7 +44,9 @@ public ManagedInstanceKey()
/// AzureKeyVault, then the URI is required.
/// Thumbprint of the key.
/// The key creation date.
- public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?))
+ /// Key auto rotation opt-in flag.
+ /// Either true or false.
+ public ManagedInstanceKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?))
: base(id, name, type)
{
Kind = kind;
@@ -52,6 +54,7 @@ public ManagedInstanceKey()
Uri = uri;
Thumbprint = thumbprint;
CreationDate = creationDate;
+ AutoRotationEnabled = autoRotationEnabled;
CustomInit();
}
@@ -93,6 +96,12 @@ public ManagedInstanceKey()
[JsonProperty(PropertyName = "properties.creationDate")]
public System.DateTime? CreationDate { get; private set; }
+ ///
+ /// Gets key auto rotation opt-in flag. Either true or false.
+ ///
+ [JsonProperty(PropertyName = "properties.autoRotationEnabled")]
+ public bool? AutoRotationEnabled { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs
index 7345937a002c..6053e461398d 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ManagedInstanceUpdate.cs
@@ -111,8 +111,14 @@ public ManagedInstanceUpdate()
/// 'ZRS'
/// Whether or not the multi-az is
/// enabled.
+ /// The resource id of a
+ /// user assigned identity to be used by default.
+ /// A CMK URI of the key to use for
+ /// encryption.
+ /// The Azure Active Directory
+ /// administrator of the server.
/// Resource tags.
- public ManagedInstanceUpdate(Sku sku = default(Sku), ResourceIdentity identity = default(ResourceIdentity), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?), IDictionary tags = default(IDictionary))
+ public ManagedInstanceUpdate(Sku sku = default(Sku), ResourceIdentityWithUserAssignedIdentities identity = default(ResourceIdentityWithUserAssignedIdentities), string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), int? vCores = default(int?), int? storageSizeInGB = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string storageAccountType = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), IDictionary tags = default(IDictionary))
{
Sku = sku;
Identity = identity;
@@ -140,6 +146,9 @@ public ManagedInstanceUpdate()
MinimalTlsVersion = minimalTlsVersion;
StorageAccountType = storageAccountType;
ZoneRedundant = zoneRedundant;
+ PrimaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
+ KeyId = keyId;
+ Administrators = administrators;
Tags = tags;
CustomInit();
}
@@ -159,7 +168,7 @@ public ManagedInstanceUpdate()
/// Gets or sets managed instance identity
///
[JsonProperty(PropertyName = "identity")]
- public ResourceIdentity Identity { get; set; }
+ public ResourceIdentityWithUserAssignedIdentities Identity { get; set; }
///
/// Gets possible values include: 'Creating', 'Deleting', 'Updating',
@@ -342,6 +351,26 @@ public ManagedInstanceUpdate()
[JsonProperty(PropertyName = "properties.zoneRedundant")]
public bool? ZoneRedundant { get; set; }
+ ///
+ /// Gets or sets the resource id of a user assigned identity to be used
+ /// by default.
+ ///
+ [JsonProperty(PropertyName = "properties.primaryUserAssignedIdentityId")]
+ public string PrimaryUserAssignedIdentityId { get; set; }
+
+ ///
+ /// Gets or sets a CMK URI of the key to use for encryption.
+ ///
+ [JsonProperty(PropertyName = "properties.keyId")]
+ public string KeyId { get; set; }
+
+ ///
+ /// Gets or sets the Azure Active Directory administrator of the
+ /// server.
+ ///
+ [JsonProperty(PropertyName = "properties.administrators")]
+ public ManagedInstanceExternalAdministrator Administrators { get; set; }
+
///
/// Gets or sets resource tags.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs
new file mode 100644
index 000000000000..79ae75393c7c
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/PrincipalType.cs
@@ -0,0 +1,23 @@
+//
+// 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 PrincipalType.
+ ///
+ public static class PrincipalType
+ {
+ public const string User = "User";
+ public const string Group = "Group";
+ public const string Application = "Application";
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs
new file mode 100644
index 000000000000..6df0be98d2ba
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ResourceIdentityWithUserAssignedIdentities.cs
@@ -0,0 +1,89 @@
+//
+// 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
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Azure Active Directory identity configuration for a resource.
+ ///
+ public partial class ResourceIdentityWithUserAssignedIdentities
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ResourceIdentityWithUserAssignedIdentities class.
+ ///
+ public ResourceIdentityWithUserAssignedIdentities()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ResourceIdentityWithUserAssignedIdentities class.
+ ///
+ /// The resource ids of the user
+ /// assigned identities to use
+ /// The Azure Active Directory principal
+ /// id.
+ /// The identity type. Set this to 'SystemAssigned'
+ /// in order to automatically create and assign an Azure Active
+ /// Directory principal for the resource. Possible values include:
+ /// 'None', 'SystemAssigned', 'UserAssigned'
+ /// The Azure Active Directory tenant
+ /// id.
+ public ResourceIdentityWithUserAssignedIdentities(IDictionary userAssignedIdentities = default(IDictionary), System.Guid? principalId = default(System.Guid?), string type = default(string), System.Guid? tenantId = default(System.Guid?))
+ {
+ UserAssignedIdentities = userAssignedIdentities;
+ PrincipalId = principalId;
+ Type = type;
+ TenantId = tenantId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the resource ids of the user assigned identities to
+ /// use
+ ///
+ [JsonProperty(PropertyName = "userAssignedIdentities")]
+ public IDictionary UserAssignedIdentities { get; set; }
+
+ ///
+ /// Gets the Azure Active Directory principal id.
+ ///
+ [JsonProperty(PropertyName = "principalId")]
+ public System.Guid? PrincipalId { get; private set; }
+
+ ///
+ /// Gets or sets the identity type. Set this to 'SystemAssigned' in
+ /// order to automatically create and assign an Azure Active Directory
+ /// principal for the resource. Possible values include: 'None',
+ /// 'SystemAssigned', 'UserAssigned'
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ ///
+ /// Gets the Azure Active Directory tenant id.
+ ///
+ [JsonProperty(PropertyName = "tenantId")]
+ public System.Guid? TenantId { get; private set; }
+
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs
index ceb028f78c6f..bae18e863d94 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/Server.cs
@@ -59,7 +59,16 @@ public Server()
/// access is allowed for this server. Value is optional but if passed
/// in, must be 'Enabled' or 'Disabled'. Possible values include:
/// 'Enabled', 'Disabled'
- public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string))
+ /// Whether or not existing server has a
+ /// workspace created and if it allows connection from workspace.
+ /// Possible values include: 'Connected', 'Disconnected'
+ /// The resource id of a
+ /// user assigned identity to be used by default.
+ /// A CMK URI of the key to use for
+ /// encryption.
+ /// The Azure Active Directory identity of
+ /// the server.
+ public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ResourceIdentityWithUserAssignedIdentities identity = default(ResourceIdentityWithUserAssignedIdentities), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator))
: base(location, id, name, type, tags)
{
Identity = identity;
@@ -72,6 +81,10 @@ public Server()
PrivateEndpointConnections = privateEndpointConnections;
MinimalTlsVersion = minimalTlsVersion;
PublicNetworkAccess = publicNetworkAccess;
+ WorkspaceFeature = workspaceFeature;
+ PrimaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
+ KeyId = keyId;
+ Administrators = administrators;
CustomInit();
}
@@ -84,7 +97,7 @@ public Server()
/// Gets or sets the Azure Active Directory identity of the server.
///
[JsonProperty(PropertyName = "identity")]
- public ResourceIdentity Identity { get; set; }
+ public ResourceIdentityWithUserAssignedIdentities Identity { get; set; }
///
/// Gets kind of sql server. This is metadata used for the Azure portal
@@ -146,6 +159,33 @@ public Server()
[JsonProperty(PropertyName = "properties.publicNetworkAccess")]
public string PublicNetworkAccess { get; set; }
+ ///
+ /// Gets whether or not existing server has a workspace created and if
+ /// it allows connection from workspace. Possible values include:
+ /// 'Connected', 'Disconnected'
+ ///
+ [JsonProperty(PropertyName = "properties.workspaceFeature")]
+ public string WorkspaceFeature { get; private set; }
+
+ ///
+ /// Gets or sets the resource id of a user assigned identity to be used
+ /// by default.
+ ///
+ [JsonProperty(PropertyName = "properties.primaryUserAssignedIdentityId")]
+ public string PrimaryUserAssignedIdentityId { get; set; }
+
+ ///
+ /// Gets or sets a CMK URI of the key to use for encryption.
+ ///
+ [JsonProperty(PropertyName = "properties.keyId")]
+ public string KeyId { get; set; }
+
+ ///
+ /// Gets or sets the Azure Active Directory identity of the server.
+ ///
+ [JsonProperty(PropertyName = "properties.administrators")]
+ public ServerExternalAdministrator Administrators { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs
new file mode 100644
index 000000000000..8c8c94543a63
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerExternalAdministrator.cs
@@ -0,0 +1,100 @@
+//
+// 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
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of a active directory administrator.
+ ///
+ public partial class ServerExternalAdministrator
+ {
+ ///
+ /// Initializes a new instance of the ServerExternalAdministrator
+ /// class.
+ ///
+ public ServerExternalAdministrator()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ServerExternalAdministrator
+ /// class.
+ ///
+ /// Type of the sever administrator.
+ /// Possible values include: 'ActiveDirectory'
+ /// Principal Type of the sever
+ /// administrator. Possible values include: 'User', 'Group',
+ /// 'Application'
+ /// Login name of the server administrator.
+ /// SID (object ID) of the server
+ /// administrator.
+ /// Tenant ID of the administrator.
+ /// Azure Active Directory only
+ /// Authentication enabled.
+ public ServerExternalAdministrator(string administratorType = default(string), string principalType = default(string), string login = default(string), System.Guid? sid = default(System.Guid?), System.Guid? tenantId = default(System.Guid?), bool? azureADOnlyAuthentication = default(bool?))
+ {
+ AdministratorType = administratorType;
+ PrincipalType = principalType;
+ Login = login;
+ Sid = sid;
+ TenantId = tenantId;
+ AzureADOnlyAuthentication = azureADOnlyAuthentication;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets type of the sever administrator. Possible values
+ /// include: 'ActiveDirectory'
+ ///
+ [JsonProperty(PropertyName = "administratorType")]
+ public string AdministratorType { get; set; }
+
+ ///
+ /// Gets or sets principal Type of the sever administrator. Possible
+ /// values include: 'User', 'Group', 'Application'
+ ///
+ [JsonProperty(PropertyName = "principalType")]
+ public string PrincipalType { get; set; }
+
+ ///
+ /// Gets or sets login name of the server administrator.
+ ///
+ [JsonProperty(PropertyName = "login")]
+ public string Login { get; set; }
+
+ ///
+ /// Gets or sets SID (object ID) of the server administrator.
+ ///
+ [JsonProperty(PropertyName = "sid")]
+ public System.Guid? Sid { get; set; }
+
+ ///
+ /// Gets or sets tenant ID of the administrator.
+ ///
+ [JsonProperty(PropertyName = "tenantId")]
+ public System.Guid? TenantId { get; set; }
+
+ ///
+ /// Gets or sets azure Active Directory only Authentication enabled.
+ ///
+ [JsonProperty(PropertyName = "azureADOnlyAuthentication")]
+ public bool? AzureADOnlyAuthentication { get; set; }
+
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs
index 75567c92ac7e..d343d862e29f 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerKey.cs
@@ -42,10 +42,13 @@ public ServerKey()
/// used for the Azure portal experience.
/// Resource location.
/// Subregion of the server key.
- /// The URI of the server key.
+ /// The URI of the server key. If the ServerKeyType
+ /// is AzureKeyVault, then the URI is required.
/// Thumbprint of the server key.
/// The server key creation date.
- public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?))
+ /// Key auto rotation opt-in flag.
+ /// Either true or false.
+ public ServerKey(string serverKeyType, string id = default(string), string name = default(string), string type = default(string), string kind = default(string), string location = default(string), string subregion = default(string), string uri = default(string), string thumbprint = default(string), System.DateTime? creationDate = default(System.DateTime?), bool? autoRotationEnabled = default(bool?))
: base(id, name, type)
{
Kind = kind;
@@ -55,6 +58,7 @@ public ServerKey()
Uri = uri;
Thumbprint = thumbprint;
CreationDate = creationDate;
+ AutoRotationEnabled = autoRotationEnabled;
CustomInit();
}
@@ -64,11 +68,11 @@ public ServerKey()
partial void CustomInit();
///
- /// Gets or sets kind of encryption protector. This is metadata used
- /// for the Azure portal experience.
+ /// Gets kind of encryption protector. This is metadata used for the
+ /// Azure portal experience.
///
[JsonProperty(PropertyName = "kind")]
- public string Kind { get; set; }
+ public string Kind { get; private set; }
///
/// Gets resource location.
@@ -91,22 +95,29 @@ public ServerKey()
public string ServerKeyType { get; set; }
///
- /// Gets or sets the URI of the server key.
+ /// Gets or sets the URI of the server key. If the ServerKeyType is
+ /// AzureKeyVault, then the URI is required.
///
[JsonProperty(PropertyName = "properties.uri")]
public string Uri { get; set; }
///
- /// Gets or sets thumbprint of the server key.
+ /// Gets thumbprint of the server key.
///
[JsonProperty(PropertyName = "properties.thumbprint")]
- public string Thumbprint { get; set; }
+ public string Thumbprint { get; private set; }
///
- /// Gets or sets the server key creation date.
+ /// Gets the server key creation date.
///
[JsonProperty(PropertyName = "properties.creationDate")]
- public System.DateTime? CreationDate { get; set; }
+ public System.DateTime? CreationDate { get; private set; }
+
+ ///
+ /// Gets key auto rotation opt-in flag. Either true or false.
+ ///
+ [JsonProperty(PropertyName = "properties.autoRotationEnabled")]
+ public bool? AutoRotationEnabled { get; private set; }
///
/// Validate the object.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs
new file mode 100644
index 000000000000..fe17244072e8
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerOperation.cs
@@ -0,0 +1,164 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A server operation.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class ServerOperation : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the ServerOperation class.
+ ///
+ public ServerOperation()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ServerOperation class.
+ ///
+ /// Resource ID.
+ /// Resource name.
+ /// Resource type.
+ /// The name of operation.
+ /// The friendly name of
+ /// operation.
+ /// The percentage of the operation
+ /// completed.
+ /// The name of the server.
+ /// The operation start time.
+ /// The operation state. Possible values include:
+ /// 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress',
+ /// 'Cancelled'
+ /// The operation error code.
+ /// The operation error
+ /// description.
+ /// The operation error severity.
+ /// Whether or not the error is a user
+ /// error.
+ /// The estimated completion time
+ /// of the operation.
+ /// The operation description.
+ /// Whether the operation can be
+ /// cancelled.
+ public ServerOperation(string id = default(string), string name = default(string), string type = default(string), string operation = default(string), string operationFriendlyName = default(string), int? percentComplete = default(int?), string serverName = default(string), System.DateTime? startTime = default(System.DateTime?), string state = default(string), int? errorCode = default(int?), string errorDescription = default(string), int? errorSeverity = default(int?), bool? isUserError = default(bool?), System.DateTime? estimatedCompletionTime = default(System.DateTime?), string description = default(string), bool? isCancellable = default(bool?))
+ : base(id, name, type)
+ {
+ Operation = operation;
+ OperationFriendlyName = operationFriendlyName;
+ PercentComplete = percentComplete;
+ ServerName = serverName;
+ StartTime = startTime;
+ State = state;
+ ErrorCode = errorCode;
+ ErrorDescription = errorDescription;
+ ErrorSeverity = errorSeverity;
+ IsUserError = isUserError;
+ EstimatedCompletionTime = estimatedCompletionTime;
+ Description = description;
+ IsCancellable = isCancellable;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the name of operation.
+ ///
+ [JsonProperty(PropertyName = "properties.operation")]
+ public string Operation { get; private set; }
+
+ ///
+ /// Gets the friendly name of operation.
+ ///
+ [JsonProperty(PropertyName = "properties.operationFriendlyName")]
+ public string OperationFriendlyName { get; private set; }
+
+ ///
+ /// Gets the percentage of the operation completed.
+ ///
+ [JsonProperty(PropertyName = "properties.percentComplete")]
+ public int? PercentComplete { get; private set; }
+
+ ///
+ /// Gets the name of the server.
+ ///
+ [JsonProperty(PropertyName = "properties.serverName")]
+ public string ServerName { get; private set; }
+
+ ///
+ /// Gets the operation start time.
+ ///
+ [JsonProperty(PropertyName = "properties.startTime")]
+ public System.DateTime? StartTime { get; private set; }
+
+ ///
+ /// Gets the operation state. Possible values include: 'Pending',
+ /// 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress',
+ /// 'Cancelled'
+ ///
+ [JsonProperty(PropertyName = "properties.state")]
+ public string State { get; private set; }
+
+ ///
+ /// Gets the operation error code.
+ ///
+ [JsonProperty(PropertyName = "properties.errorCode")]
+ public int? ErrorCode { get; private set; }
+
+ ///
+ /// Gets the operation error description.
+ ///
+ [JsonProperty(PropertyName = "properties.errorDescription")]
+ public string ErrorDescription { get; private set; }
+
+ ///
+ /// Gets the operation error severity.
+ ///
+ [JsonProperty(PropertyName = "properties.errorSeverity")]
+ public int? ErrorSeverity { get; private set; }
+
+ ///
+ /// Gets whether or not the error is a user error.
+ ///
+ [JsonProperty(PropertyName = "properties.isUserError")]
+ public bool? IsUserError { get; private set; }
+
+ ///
+ /// Gets the estimated completion time of the operation.
+ ///
+ [JsonProperty(PropertyName = "properties.estimatedCompletionTime")]
+ public System.DateTime? EstimatedCompletionTime { get; private set; }
+
+ ///
+ /// Gets the operation description.
+ ///
+ [JsonProperty(PropertyName = "properties.description")]
+ public string Description { get; private set; }
+
+ ///
+ /// Gets whether the operation can be cancelled.
+ ///
+ [JsonProperty(PropertyName = "properties.isCancellable")]
+ public bool? IsCancellable { get; private set; }
+
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs
index cd86344ea902..8fd3609112be 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ServerUpdate.cs
@@ -34,6 +34,7 @@ public ServerUpdate()
///
/// Initializes a new instance of the ServerUpdate class.
///
+ /// Server identity
/// Administrator username for the
/// server. Once created it cannot be changed.
/// The administrator login
@@ -50,9 +51,19 @@ public ServerUpdate()
/// access is allowed for this server. Value is optional but if passed
/// in, must be 'Enabled' or 'Disabled'. Possible values include:
/// 'Enabled', 'Disabled'
+ /// Whether or not existing server has a
+ /// workspace created and if it allows connection from workspace.
+ /// Possible values include: 'Connected', 'Disconnected'
+ /// The resource id of a
+ /// user assigned identity to be used by default.
+ /// A CMK URI of the key to use for
+ /// encryption.
+ /// The Azure Active Directory identity of
+ /// the server.
/// Resource tags.
- public ServerUpdate(string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), IDictionary tags = default(IDictionary))
+ public ServerUpdate(ResourceIdentityWithUserAssignedIdentities identity = default(ResourceIdentityWithUserAssignedIdentities), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), IList privateEndpointConnections = default(IList), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), IDictionary tags = default(IDictionary))
{
+ Identity = identity;
AdministratorLogin = administratorLogin;
AdministratorLoginPassword = administratorLoginPassword;
Version = version;
@@ -61,6 +72,10 @@ public ServerUpdate()
PrivateEndpointConnections = privateEndpointConnections;
MinimalTlsVersion = minimalTlsVersion;
PublicNetworkAccess = publicNetworkAccess;
+ WorkspaceFeature = workspaceFeature;
+ PrimaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
+ KeyId = keyId;
+ Administrators = administrators;
Tags = tags;
CustomInit();
}
@@ -70,6 +85,12 @@ public ServerUpdate()
///
partial void CustomInit();
+ ///
+ /// Gets or sets server identity
+ ///
+ [JsonProperty(PropertyName = "identity")]
+ public ResourceIdentityWithUserAssignedIdentities Identity { get; set; }
+
///
/// Gets or sets administrator username for the server. Once created it
/// cannot be changed.
@@ -123,6 +144,33 @@ public ServerUpdate()
[JsonProperty(PropertyName = "properties.publicNetworkAccess")]
public string PublicNetworkAccess { get; set; }
+ ///
+ /// Gets whether or not existing server has a workspace created and if
+ /// it allows connection from workspace. Possible values include:
+ /// 'Connected', 'Disconnected'
+ ///
+ [JsonProperty(PropertyName = "properties.workspaceFeature")]
+ public string WorkspaceFeature { get; private set; }
+
+ ///
+ /// Gets or sets the resource id of a user assigned identity to be used
+ /// by default.
+ ///
+ [JsonProperty(PropertyName = "properties.primaryUserAssignedIdentityId")]
+ public string PrimaryUserAssignedIdentityId { get; set; }
+
+ ///
+ /// Gets or sets a CMK URI of the key to use for encryption.
+ ///
+ [JsonProperty(PropertyName = "properties.keyId")]
+ public string KeyId { get; set; }
+
+ ///
+ /// Gets or sets the Azure Active Directory identity of the server.
+ ///
+ [JsonProperty(PropertyName = "properties.administrators")]
+ public ServerExternalAdministrator Administrators { get; set; }
+
///
/// Gets or sets resource tags.
///
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs
index ba3c84abd60c..fa9f57608078 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/SyncGroup.cs
@@ -35,6 +35,7 @@ public SyncGroup()
/// Resource ID.
/// Resource name.
/// Resource type.
+ /// The name and capacity of the SKU.
/// Sync interval of the sync group.
/// Last sync time of the sync
/// group.
@@ -51,13 +52,18 @@ public SyncGroup()
/// values include: 'NotReady', 'Error', 'Warning', 'Progressing',
/// 'Good'
/// Sync schema of the sync group.
+ /// If conflict logging is
+ /// enabled.
+ /// Conflict logging
+ /// retention period.
/// If use private link
/// connection is enabled.
/// Private endpoint name of the sync
/// group if use private link connection is enabled.
- public SyncGroup(string id = default(string), string name = default(string), string type = default(string), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string))
+ public SyncGroup(string id = default(string), string name = default(string), string type = default(string), Sku sku = default(Sku), int? interval = default(int?), System.DateTime? lastSyncTime = default(System.DateTime?), string conflictResolutionPolicy = default(string), string syncDatabaseId = default(string), string hubDatabaseUserName = default(string), string hubDatabasePassword = default(string), string syncState = default(string), SyncGroupSchema schema = default(SyncGroupSchema), bool? enableConflictLogging = default(bool?), int? conflictLoggingRetentionInDays = default(int?), bool? usePrivateLinkConnection = default(bool?), string privateEndpointName = default(string))
: base(id, name, type)
{
+ Sku = sku;
Interval = interval;
LastSyncTime = lastSyncTime;
ConflictResolutionPolicy = conflictResolutionPolicy;
@@ -66,6 +72,8 @@ public SyncGroup()
HubDatabasePassword = hubDatabasePassword;
SyncState = syncState;
Schema = schema;
+ EnableConflictLogging = enableConflictLogging;
+ ConflictLoggingRetentionInDays = conflictLoggingRetentionInDays;
UsePrivateLinkConnection = usePrivateLinkConnection;
PrivateEndpointName = privateEndpointName;
CustomInit();
@@ -76,6 +84,12 @@ public SyncGroup()
///
partial void CustomInit();
+ ///
+ /// Gets or sets the name and capacity of the SKU.
+ ///
+ [JsonProperty(PropertyName = "sku")]
+ public Sku Sku { get; set; }
+
///
/// Gets or sets sync interval of the sync group.
///
@@ -127,6 +141,18 @@ public SyncGroup()
[JsonProperty(PropertyName = "properties.schema")]
public SyncGroupSchema Schema { get; set; }
+ ///
+ /// Gets or sets if conflict logging is enabled.
+ ///
+ [JsonProperty(PropertyName = "properties.enableConflictLogging")]
+ public bool? EnableConflictLogging { get; set; }
+
+ ///
+ /// Gets or sets conflict logging retention period.
+ ///
+ [JsonProperty(PropertyName = "properties.conflictLoggingRetentionInDays")]
+ public int? ConflictLoggingRetentionInDays { get; set; }
+
///
/// Gets or sets if use private link connection is enabled.
///
@@ -140,5 +166,18 @@ public SyncGroup()
[JsonProperty(PropertyName = "properties.privateEndpointName")]
public string PrivateEndpointName { get; private set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Sku != null)
+ {
+ Sku.Validate();
+ }
+ }
}
}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UserIdentity.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UserIdentity.cs
new file mode 100644
index 000000000000..db5b24d3ce04
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/UserIdentity.cs
@@ -0,0 +1,61 @@
+//
+// 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
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Azure Active Directory identity configuration for a resource.
+ ///
+ public partial class UserIdentity
+ {
+ ///
+ /// Initializes a new instance of the UserIdentity class.
+ ///
+ public UserIdentity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the UserIdentity class.
+ ///
+ /// The Azure Active Directory principal
+ /// id.
+ /// The Azure Active Directory client
+ /// id.
+ public UserIdentity(System.Guid? principalId = default(System.Guid?), System.Guid? clientId = default(System.Guid?))
+ {
+ PrincipalId = principalId;
+ ClientId = clientId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the Azure Active Directory principal id.
+ ///
+ [JsonProperty(PropertyName = "principalId")]
+ public System.Guid? PrincipalId { get; private set; }
+
+ ///
+ /// Gets the Azure Active Directory client id.
+ ///
+ [JsonProperty(PropertyName = "clientId")]
+ public System.Guid? ClientId { get; private set; }
+
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Operations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Operations.cs
index 3880565f9539..e579b3e14be5 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Operations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Operations.cs
@@ -70,7 +70,7 @@ internal Operations(SqlManagementClient client)
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/PrivateLinkResourcesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/PrivateLinkResourcesOperations.cs
index 8c2d1eacd2e7..c9727ebfe728 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/PrivateLinkResourcesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/PrivateLinkResourcesOperations.cs
@@ -95,7 +95,7 @@ internal PrivateLinkResourcesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -297,7 +297,7 @@ internal PrivateLinkResourcesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RecoverableManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RecoverableManagedDatabasesOperations.cs
index a2411afc748a..cb9350c22555 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RecoverableManagedDatabasesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RecoverableManagedDatabasesOperations.cs
@@ -95,7 +95,7 @@ internal RecoverableManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -296,7 +296,7 @@ internal RecoverableManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-10-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RestorableDroppedManagedDatabasesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RestorableDroppedManagedDatabasesOperations.cs
index e29929ae5374..f91949e22061 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RestorableDroppedManagedDatabasesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/RestorableDroppedManagedDatabasesOperations.cs
@@ -95,7 +95,7 @@ internal RestorableDroppedManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -296,7 +296,7 @@ internal RestorableDroppedManagedDatabasesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAutomaticTuningOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAutomaticTuningOperations.cs
index 53f679eaf559..fa3a8337a271 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAutomaticTuningOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAutomaticTuningOperations.cs
@@ -95,7 +95,7 @@ internal ServerAutomaticTuningOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -297,7 +297,7 @@ internal ServerAutomaticTuningOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAzureADOnlyAuthenticationsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAzureADOnlyAuthenticationsOperations.cs
index b0cc0491829b..b46df4661c12 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAzureADOnlyAuthenticationsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerAzureADOnlyAuthenticationsOperations.cs
@@ -96,7 +96,7 @@ internal ServerAzureADOnlyAuthenticationsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string authenticationName = "Default";
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -344,7 +344,7 @@ internal ServerAzureADOnlyAuthenticationsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -553,7 +553,7 @@ internal ServerAzureADOnlyAuthenticationsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string authenticationName = "Default";
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -773,7 +773,7 @@ internal ServerAzureADOnlyAuthenticationsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string authenticationName = "Default";
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerBlobAuditingPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerBlobAuditingPoliciesOperations.cs
index 9e3e362d7bde..07ace45490fe 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerBlobAuditingPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerBlobAuditingPoliciesOperations.cs
@@ -96,7 +96,7 @@ internal ServerBlobAuditingPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -319,7 +319,7 @@ internal ServerBlobAuditingPoliciesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -526,7 +526,7 @@ internal ServerBlobAuditingPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string blobAuditingPolicyName = "default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerDevOpsAuditSettingsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerDevOpsAuditSettingsOperations.cs
index deda3a3b4202..0023b24274bb 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerDevOpsAuditSettingsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerDevOpsAuditSettingsOperations.cs
@@ -102,7 +102,7 @@ internal ServerDevOpsAuditSettingsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -328,7 +328,7 @@ internal ServerDevOpsAuditSettingsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -541,7 +541,7 @@ internal ServerDevOpsAuditSettingsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-08-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperations.cs
index 98014ba2d2be..a483c43804b5 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperations.cs
@@ -95,7 +95,7 @@ internal ServerKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -297,7 +297,7 @@ internal ServerKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -463,9 +463,9 @@ internal ServerKeysOperations(SqlManagementClient client)
/// The name of the server key to be operated on (updated or created). The key
/// name is required to be in the format of 'vault_key_version'. For example,
/// if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
- /// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then
+ /// the server key name should be formatted as:
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
@@ -523,9 +523,9 @@ internal ServerKeysOperations(SqlManagementClient client)
/// The name of the server key to be operated on (updated or created). The key
/// name is required to be in the format of 'vault_key_version'. For example,
/// if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
- /// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then
+ /// the server key name should be formatted as:
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
@@ -577,7 +577,7 @@ internal ServerKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -803,7 +803,7 @@ internal ServerKeysOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2015-05-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperationsExtensions.cs
index 600dbf3f8eec..aaa9e6e63847 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperationsExtensions.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerKeysOperationsExtensions.cs
@@ -128,9 +128,9 @@ public static ServerKey Get(this IServerKeysOperations operations, string resour
/// The name of the server key to be operated on (updated or created). The key
/// name is required to be in the format of 'vault_key_version'. For example,
/// if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
- /// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then
+ /// the server key name should be formatted as:
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
@@ -157,9 +157,9 @@ public static ServerKey CreateOrUpdate(this IServerKeysOperations operations, st
/// The name of the server key to be operated on (updated or created). The key
/// name is required to be in the format of 'vault_key_version'. For example,
/// if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
- /// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then
+ /// the server key name should be formatted as:
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
@@ -237,9 +237,9 @@ public static void Delete(this IServerKeysOperations operations, string resource
/// The name of the server key to be operated on (updated or created). The key
/// name is required to be in the format of 'vault_key_version'. For example,
/// if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
- /// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then
+ /// the server key name should be formatted as:
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
@@ -266,9 +266,9 @@ public static ServerKey BeginCreateOrUpdate(this IServerKeysOperations operation
/// The name of the server key to be operated on (updated or created). The key
/// name is required to be in the format of 'vault_key_version'. For example,
/// if the keyId is
- /// https://YourVaultName.vault.azure.net/keys/YourKeyName/01234567890123456789012345678901,
- /// then the server key name should be formatted as:
- /// YourVaultName_YourKeyName_01234567890123456789012345678901
+ /// https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion, then
+ /// the server key name should be formatted as:
+ /// YourVaultName_YourKeyName_YourKeyVersion
///
///
/// The requested server key resource state.
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerOperations.cs
new file mode 100644
index 000000000000..eb048373e9d6
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerOperations.cs
@@ -0,0 +1,422 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ServerOperations operations.
+ ///
+ internal partial class ServerOperations : IServiceOperations, IServerOperations
+ {
+ ///
+ /// Initializes a new instance of the ServerOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal ServerOperations(SqlManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the SqlManagementClient
+ ///
+ public SqlManagementClient Client { get; private set; }
+
+ ///
+ /// Gets a list of operations performed on the 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>> ListByServerWithHttpMessagesAsync(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-11-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, "ListByServer", 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}/operations").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;
+ }
+
+ ///
+ /// Gets a list of operations performed on the 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>> ListByServerNextWithHttpMessagesAsync(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, "ListByServerNext", 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.Sql/src/Generated/ServerOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerOperationsExtensions.cs
new file mode 100644
index 000000000000..02a148ef049a
--- /dev/null
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerOperationsExtensions.cs
@@ -0,0 +1,101 @@
+//
+// 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
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for ServerOperations.
+ ///
+ public static partial class ServerOperationsExtensions
+ {
+ ///
+ /// Gets a list of operations performed on the 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 ListByServer(this IServerOperations operations, string resourceGroupName, string serverName)
+ {
+ return operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of operations performed on the 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> ListByServerAsync(this IServerOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByServerWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets a list of operations performed on the server.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListByServerNext(this IServerOperations operations, string nextPageLink)
+ {
+ return operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of operations performed on the 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> ListByServerNextAsync(this IServerOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerSecurityAlertPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerSecurityAlertPoliciesOperations.cs
index d66ce161ec76..86e4f2a779e9 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerSecurityAlertPoliciesOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerSecurityAlertPoliciesOperations.cs
@@ -96,7 +96,7 @@ internal ServerSecurityAlertPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string securityAlertPolicyName = "Default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -319,7 +319,7 @@ internal ServerSecurityAlertPoliciesOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -526,7 +526,7 @@ internal ServerSecurityAlertPoliciesOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string securityAlertPolicyName = "Default";
- string apiVersion = "2017-03-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerTrustGroupsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerTrustGroupsOperations.cs
index 9edbfc899633..87ac5f259400 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerTrustGroupsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerTrustGroupsOperations.cs
@@ -102,7 +102,7 @@ internal ServerTrustGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -354,7 +354,7 @@ internal ServerTrustGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -549,7 +549,7 @@ internal ServerTrustGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -762,7 +762,7 @@ internal ServerTrustGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -988,7 +988,7 @@ internal ServerTrustGroupsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2020-02-02-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerVulnerabilityAssessmentsOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerVulnerabilityAssessmentsOperations.cs
index d1bf7937ec97..650ccf656ca7 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerVulnerabilityAssessmentsOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServerVulnerabilityAssessmentsOperations.cs
@@ -96,7 +96,7 @@ internal ServerVulnerabilityAssessmentsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -305,7 +305,7 @@ internal ServerVulnerabilityAssessmentsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -525,7 +525,7 @@ internal ServerVulnerabilityAssessmentsOperations(SqlManagementClient client)
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string vulnerabilityAssessmentName = "default";
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -704,7 +704,7 @@ internal ServerVulnerabilityAssessmentsOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2018-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServersOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServersOperations.cs
index 6fb27c3a7ea6..ebaad2d115db 100644
--- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServersOperations.cs
+++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ServersOperations.cs
@@ -57,6 +57,9 @@ internal ServersOperations(SqlManagementClient client)
/// 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 child resources to include in the response.
+ ///
///
/// Headers that will be added to request.
///
@@ -78,7 +81,7 @@ internal ServersOperations(SqlManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -88,7 +91,7 @@ internal ServersOperations(SqlManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2019-06-01-preview";
+ string apiVersion = "2020-11-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -97,6 +100,7 @@ internal ServersOperations(SqlManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("expand", expand);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
@@ -107,6 +111,10 @@ internal ServersOperations(SqlManagementClient client)
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
+ if (expand != null)
+ {
+ _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand)));
+ }
if (apiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
@@ -246,6 +254,9 @@ internal ServersOperations(SqlManagementClient client)
///