diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
index 45b2f76d7d3b..2b7ab1bf71fc 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperations.cs
@@ -51,7 +51,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
public SqlManagementClient Client { get; private set; }
///
- /// Gets a vulnerability assessment scan record of a database.
+ /// Lists the vulnerability assessment scans of a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -63,9 +63,6 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
///
/// The name of the database.
///
- ///
- /// The vulnerability assessment scan Id of the scan to retrieve.
- ///
///
/// Headers that will be added to request.
///
@@ -87,7 +84,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -101,10 +98,6 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
{
throw new ValidationException(ValidationRules.CannotBeNull, "databaseName");
}
- if (scanId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "scanId");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -122,19 +115,17 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
tracingParameters.Add("serverName", serverName);
tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
- tracingParameters.Add("scanId", scanId);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
_url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
_url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
- _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (apiVersion != null)
@@ -234,7 +225,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
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"))
@@ -247,7 +238,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
_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)
{
@@ -267,7 +258,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
}
///
- /// Executes a Vulnerability Assessment database scan.
+ /// Gets a vulnerability assessment scan record of a database.
///
///
/// The name of the resource group that contains the resource. You can obtain
@@ -283,32 +274,6 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
/// 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.
- ///
- ///
- /// 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.
- ///
- ///
/// Headers that will be added to request.
///
///
@@ -329,7 +294,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -343,6 +308,10 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
{
throw new ValidationException(ValidationRules.CannotBeNull, "databaseName");
}
+ if (scanId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "scanId");
+ }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
@@ -360,17 +329,19 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
tracingParameters.Add("serverName", serverName);
tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("vulnerabilityAssessmentName", vulnerabilityAssessmentName);
+ tracingParameters.Add("scanId", scanId);
tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", 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/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName));
_url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
_url = _url.Replace("{vulnerabilityAssessmentName}", System.Uri.EscapeDataString(vulnerabilityAssessmentName));
+ _url = _url.Replace("{scanId}", System.Uri.EscapeDataString(scanId));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (apiVersion != null)
@@ -470,7 +441,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
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"))
@@ -483,7 +454,7 @@ internal DatabaseVulnerabilityAssessmentScansOperations(SqlManagementClient clie
_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)
{
@@ -502,6 +473,35 @@ 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
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
index 381d5182556c..e583bfef5abd 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/DatabaseVulnerabilityAssessmentScansOperationsExtensions.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Sql
public static partial class DatabaseVulnerabilityAssessmentScansOperationsExtensions
{
///
- /// Gets a vulnerability assessment scan record of a database.
+ /// Lists the vulnerability assessment scans of a database.
///
///
/// The operations group for this extension method.
@@ -37,16 +37,13 @@ public static partial class DatabaseVulnerabilityAssessmentScansOperationsExtens
///
/// 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.
@@ -61,22 +58,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.
@@ -94,13 +88,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.
@@ -121,13 +115,16 @@ 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;
+ }
}
///
- /// Lists the vulnerability assessment scans of a database.
+ /// Executes a Vulnerability Assessment database scan.
///
///
/// The operations group for this extension method.
@@ -142,13 +139,16 @@ public static void InitiateScan(this IDatabaseVulnerabilityAssessmentScansOperat
///
/// 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.
@@ -163,15 +163,15 @@ 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();
}
///
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
index 478f2e565823..b311a0ba7e0e 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/IDatabaseVulnerabilityAssessmentScansOperations.cs
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.Sql
public partial interface IDatabaseVulnerabilityAssessmentScansOperations
{
///
- /// Gets a vulnerability assessment scan record of a database.
+ /// Lists the vulnerability assessment scans of a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -37,9 +37,6 @@ public partial interface IDatabaseVulnerabilityAssessmentScansOperations
///
/// The name of the database.
///
- ///
- /// The vulnerability assessment scan Id of the scan to retrieve.
- ///
///
/// The headers that will be added to request.
///
@@ -55,9 +52,9 @@ public partial interface IDatabaseVulnerabilityAssessmentScansOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Executes a Vulnerability Assessment database scan.
+ /// Gets a vulnerability assessment scan record of a database.
///
///
/// The name of the resource group that contains the resource. You can
@@ -82,12 +79,15 @@ public partial interface IDatabaseVulnerabilityAssessmentScansOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task InitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Lists the vulnerability assessment scans of a database.
+ /// Executes a Vulnerability Assessment database scan.
///
///
/// The name of the resource group that contains the resource. You can
@@ -100,6 +100,9 @@ public partial interface IDatabaseVulnerabilityAssessmentScansOperations
///
/// The name of the database.
///
+ ///
+ /// The vulnerability assessment scan Id of the scan to retrieve.
+ ///
///
/// The headers that will be added to request.
///
@@ -109,13 +112,10 @@ public partial interface IDatabaseVulnerabilityAssessmentScansOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task InitiateScanWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string scanId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Convert an existing scan result to a human readable format. If
/// already exists nothing happens
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs
index cccaa096f7eb..70c8f1a004ab 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs
@@ -110,12 +110,12 @@ public DatabaseBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to an object
/// like a table, view, or stored procedure, or an entire database or
- /// schema. For the latter cases, the forms DATABASE::<db_name>
- /// and SCHEMA::<schema_name> are used, respectively.
+ /// schema. For the latter cases, the forms DATABASE::{db_name} and
+ /// SCHEMA::{schema_name} are used, respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -138,10 +138,11 @@ public DatabaseBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
@@ -265,14 +266,13 @@ public DatabaseBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY
- /// <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to
/// an object like a table, view, or stored procedure, or an entire
/// database or schema. For the latter cases, the forms
- /// DATABASE::<db_name> and
- /// SCHEMA::<schema_name> are used, respectively.
+ /// DATABASE::{db_name} and SCHEMA::{schema_name} are used,
+ /// respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -308,10 +308,11 @@ public DatabaseBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs
index 149baac1267f..5456e858383b 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedDatabaseBlobAuditingPolicy.cs
@@ -113,12 +113,12 @@ public ExtendedDatabaseBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to an object
/// like a table, view, or stored procedure, or an entire database or
- /// schema. For the latter cases, the forms DATABASE::<db_name>
- /// and SCHEMA::<schema_name> are used, respectively.
+ /// schema. For the latter cases, the forms DATABASE::{db_name} and
+ /// SCHEMA::{schema_name} are used, respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -141,10 +141,11 @@ public ExtendedDatabaseBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
@@ -269,14 +270,13 @@ public ExtendedDatabaseBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY
- /// <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to
/// an object like a table, view, or stored procedure, or an entire
/// database or schema. For the latter cases, the forms
- /// DATABASE::<db_name> and
- /// SCHEMA::<schema_name> are used, respectively.
+ /// DATABASE::{db_name} and SCHEMA::{schema_name} are used,
+ /// respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -312,10 +312,11 @@ public ExtendedDatabaseBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedServerBlobAuditingPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedServerBlobAuditingPolicy.cs
index d766938c8583..fac30be4dd28 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedServerBlobAuditingPolicy.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ExtendedServerBlobAuditingPolicy.cs
@@ -113,12 +113,12 @@ public ExtendedServerBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to an object
/// like a table, view, or stored procedure, or an entire database or
- /// schema. For the latter cases, the forms DATABASE::<db_name>
- /// and SCHEMA::<schema_name> are used, respectively.
+ /// schema. For the latter cases, the forms DATABASE::{db_name} and
+ /// SCHEMA::{schema_name} are used, respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -141,10 +141,11 @@ public ExtendedServerBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
@@ -269,14 +270,13 @@ public ExtendedServerBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY
- /// <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to
/// an object like a table, view, or stored procedure, or an entire
/// database or schema. For the latter cases, the forms
- /// DATABASE::<db_name> and
- /// SCHEMA::<schema_name> are used, respectively.
+ /// DATABASE::{db_name} and SCHEMA::{schema_name} are used,
+ /// respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -312,10 +312,11 @@ public ExtendedServerBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs
index 44c4a2e7fdcb..e7402eac96a5 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstance.cs
@@ -153,10 +153,10 @@ public ManagedInstance()
public int? StorageSizeInGB { get; set; }
///
- /// Gets collation of the managed instance.
+ /// Gets or sets collation of the managed instance.
///
[JsonProperty(PropertyName = "properties.collation")]
- public string Collation { get; private set; }
+ public string Collation { get; set; }
///
/// Gets the Dns Zone that the managed instance is in.
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs
index 6fcfb1a9c28c..596e60b293f6 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ManagedInstanceUpdate.cs
@@ -139,10 +139,10 @@ public ManagedInstanceUpdate()
public int? StorageSizeInGB { get; set; }
///
- /// Gets collation of the managed instance.
+ /// Gets or sets collation of the managed instance.
///
[JsonProperty(PropertyName = "properties.collation")]
- public string Collation { get; private set; }
+ public string Collation { get; set; }
///
/// Gets the Dns Zone that the managed instance is in.
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerBlobAuditingPolicy.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerBlobAuditingPolicy.cs
index 0a0548c3b8ad..5a9223c65605 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerBlobAuditingPolicy.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/Models/ServerBlobAuditingPolicy.cs
@@ -109,12 +109,12 @@ public ServerBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to an object
/// like a table, view, or stored procedure, or an entire database or
- /// schema. For the latter cases, the forms DATABASE::<db_name>
- /// and SCHEMA::<schema_name> are used, respectively.
+ /// schema. For the latter cases, the forms DATABASE::{db_name} and
+ /// SCHEMA::{schema_name} are used, respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -137,10 +137,11 @@ public ServerBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
@@ -257,14 +258,13 @@ public ServerBlobAuditingPolicy()
/// REFERENCES
///
/// The general form for defining an action to be audited is:
- /// <action> ON <object> BY
- /// <principal>
+ /// {action} ON {object} BY {principal}
///
/// Note that <object> in the above format can refer to
/// an object like a table, view, or stored procedure, or an entire
/// database or schema. For the latter cases, the forms
- /// DATABASE::<db_name> and
- /// SCHEMA::<schema_name> are used, respectively.
+ /// DATABASE::{db_name} and SCHEMA::{schema_name} are used,
+ /// respectively.
///
/// For example:
/// SELECT on dbo.myTable by public
@@ -300,10 +300,11 @@ public ServerBlobAuditingPolicy()
/// 'SQLSecurityAuditEvents' diagnostic logs category on the database
/// should be also created.
/// Note that for server level audit you should use the 'master'
- /// database as <databaseName>.
+ /// database as {databaseName}.
+ ///
/// Diagnostic Settings URI format:
/// PUT
- /// https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Sql/servers/<serverName>/databases/<databaseName>/providers/microsoft.insights/diagnosticSettings/<settingsName>?api-version=2017-05-01-preview
+ /// https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
///
/// For more information, see [Diagnostic Settings REST
/// API](https://go.microsoft.com/fwlink/?linkid=2033207)
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs
index e187d310c4bb..7ac43dc8ff9f 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SdkInfo_SqlManagementClient.cs
@@ -95,5 +95,16 @@ public static IEnumerable> ApiInfo_SqlManagementCl
}.AsEnumerable();
}
}
+ // BEGIN: Code Generation Metadata Section
+ public static readonly String AutoRestVersion = "latest";
+ public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
+ public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\psGit\\azure-sdk-for-net\\src\\SDKs";
+ public static readonly String GithubForkName = "Azure";
+ public static readonly String GithubBranchName = "master";
+ public static readonly String GithubCommidId = "916ff2e6e2e722c8b6ca8c77149f6b2ab358332a";
+ public static readonly String CodeGenerationErrors = "";
+ public static readonly String GithubRepoName = "azure-rest-api-specs";
+ // END: Code Generation Metadata Section
}
}
+
diff --git a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs
index 0a1ae0f9a256..e90d010d5d0f 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs
+++ b/src/SDKs/SqlManagement/Management.Sql/Generated/SqlManagementClient.cs
@@ -422,19 +422,6 @@ public partial class SqlManagementClient : ServiceClient, I
///
public virtual IManagedInstanceEncryptionProtectorsOperations ManagedInstanceEncryptionProtectors { get; private set; }
- ///
- /// Initializes a new instance of the SqlManagementClient class.
- ///
- ///
- /// HttpClient to be used
- ///
- ///
- /// True: will dispose the provided httpClient on calling SqlManagementClient.Dispose(). False: will not dispose provided httpClient
- protected SqlManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
- {
- Initialize();
- }
-
///
/// Initializes a new instance of the SqlManagementClient class.
///
@@ -530,33 +517,6 @@ public SqlManagementClient(ServiceClientCredentials credentials, params Delegati
}
}
- ///
- /// Initializes a new instance of the SqlManagementClient class.
- ///
- ///
- /// Required. Credentials needed for the client to connect to Azure.
- ///
- ///
- /// HttpClient to be used
- ///
- ///
- /// True: will dispose the provided httpClient on calling SqlManagementClient.Dispose(). False: will not dispose provided httpClient
- ///
- /// Thrown when a required parameter is null
- ///
- public SqlManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
- {
- if (credentials == null)
- {
- throw new System.ArgumentNullException("credentials");
- }
- Credentials = credentials;
- if (Credentials != null)
- {
- Credentials.InitializeServiceClient(this);
- }
- }
-
///
/// Initializes a new instance of the SqlManagementClient class.
///
diff --git a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj
index 15f665163ab3..c5db211a42a8 100644
--- a/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj
+++ b/src/SDKs/SqlManagement/Management.Sql/Microsoft.Azure.Management.Sql.csproj
@@ -13,6 +13,7 @@
diff --git a/src/SDKs/_metadata/sql_resource-manager.txt b/src/SDKs/_metadata/sql_resource-manager.txt
index 754f8885adea..75f0b7d27363 100644
--- a/src/SDKs/_metadata/sql_resource-manager.txt
+++ b/src/SDKs/_metadata/sql_resource-manager.txt
@@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Vs\azure-sdk-for-net\src\SDKs
-2018-10-09 12:46:34 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\psGit\azure-sdk-for-net\src\SDKs
+2018-11-09 11:35:31 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
-Commit: 057f369f689d1476fe70b05a4b4ab4fd3e3d542a
+Commit: 916ff2e6e2e722c8b6ca8c77149f6b2ab358332a
AutoRest information
Requested version: latest
Bootstrapper version: autorest@2.0.4283