diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/CapabilitiesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/CapabilitiesOperations.cs new file mode 100644 index 000000000000..e8a4332d38c4 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/CapabilitiesOperations.cs @@ -0,0 +1,239 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + 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; + + /// + /// CapabilitiesOperations operations. + /// + internal partial class CapabilitiesOperations : IServiceOperations, ICapabilitiesOperations + { + /// + /// Initializes a new instance of the CapabilitiesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal CapabilitiesOperations(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 the capabilities available for the specified location. + /// + /// + /// The location id whose capabilities are retrieved. + /// + /// + /// 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> ListByLocationWithHttpMessagesAsync(string locationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (locationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "locationId"); + } + string apiVersion = "2014-04-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("locationId", locationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByLocation", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationId}/capabilities").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{locationId}", System.Uri.EscapeDataString(locationId)); + 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; + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/CapabilitiesOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/CapabilitiesOperationsExtensions.cs new file mode 100644 index 000000000000..c181fbbc14f0 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/CapabilitiesOperationsExtensions.cs @@ -0,0 +1,59 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for CapabilitiesOperations. + /// + public static partial class CapabilitiesOperationsExtensions + { + /// + /// Gets the capabilities available for the specified location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The location id whose capabilities are retrieved. + /// + public static LocationCapabilities ListByLocation(this ICapabilitiesOperations operations, string locationId) + { + return operations.ListByLocationAsync(locationId).GetAwaiter().GetResult(); + } + + /// + /// Gets the capabilities available for the specified location. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The location id whose capabilities are retrieved. + /// + /// + /// The cancellation token. + /// + public static async Task ListByLocationAsync(this ICapabilitiesOperations operations, string locationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByLocationWithHttpMessagesAsync(locationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs new file mode 100644 index 000000000000..455d32f2da87 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperations.cs @@ -0,0 +1,499 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + 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; + + /// + /// DatabaseBlobAuditingPoliciesOperations operations. + /// + internal partial class DatabaseBlobAuditingPoliciesOperations : IServiceOperations, IDatabaseBlobAuditingPoliciesOperations + { + /// + /// Initializes a new instance of the DatabaseBlobAuditingPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabaseBlobAuditingPoliciesOperations(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 blob auditing policy associated with 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 for which database blob audit policy is defined. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + string apiVersion = "2015-05-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("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + 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}/auditingSettings/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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 blob auditing policy for 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 for which database blob audit policy will be + /// defined. + /// + /// + /// The name of the database blob auditing policy. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (databaseBlobAuditingPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseBlobAuditingPolicy"); + } + if (databaseBlobAuditingPolicy != null) + { + databaseBlobAuditingPolicy.Validate(); + } + string apiVersion = "2015-05-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("databaseName", databaseName); + tracingParameters.Add("databaseBlobAuditingPolicy", databaseBlobAuditingPolicy); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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}/auditingSettings/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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("PUT"); + _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; + if(databaseBlobAuditingPolicy != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(databaseBlobAuditingPolicy, 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) + { + 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 && (int)_statusCode != 201) + { + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs new file mode 100644 index 000000000000..23a37ccc8028 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseBlobAuditingPoliciesOperationsExtensions.cs @@ -0,0 +1,129 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DatabaseBlobAuditingPoliciesOperations. + /// + public static partial class DatabaseBlobAuditingPoliciesOperationsExtensions + { + /// + /// Gets a blob auditing policy associated with a database. + /// + /// + /// 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 name of the database for which database blob audit policy is defined. + /// + public static DatabaseBlobAuditingPolicy Get(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a blob auditing policy associated with a database. + /// + /// + /// 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 name of the database for which database blob audit policy is defined. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a blob auditing policy for a database. + /// + /// + /// 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 name of the database for which database blob audit policy will be + /// defined. + /// + /// + /// The name of the database blob auditing policy. + /// + public static DatabaseBlobAuditingPolicy CreateOrUpdate(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, databaseBlobAuditingPolicy).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a blob auditing policy for a database. + /// + /// + /// 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 name of the database for which database blob audit policy will be + /// defined. + /// + /// + /// The name of the database blob auditing policy. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDatabaseBlobAuditingPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, databaseBlobAuditingPolicy, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs new file mode 100644 index 000000000000..c317ae9c492f --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperations.cs @@ -0,0 +1,500 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + 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; + + /// + /// DatabaseThreatDetectionPoliciesOperations operations. + /// + internal partial class DatabaseThreatDetectionPoliciesOperations : IServiceOperations, IDatabaseThreatDetectionPoliciesOperations + { + /// + /// Initializes a new instance of the DatabaseThreatDetectionPoliciesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabaseThreatDetectionPoliciesOperations(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 Threat Detection policy associated with 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 for which database Threat Detection policy is + /// defined. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + string apiVersion = "2014-04-01"; + // 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("databaseName", databaseName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + 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}/securityAlertPolicies/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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 Threat Detection policy for 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 for which database Threat Detection policy is + /// defined. + /// + /// + /// The database Threat Detection policy. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (serverName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "serverName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (databaseSecurityAlertPolicy == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseSecurityAlertPolicy"); + } + if (databaseSecurityAlertPolicy != null) + { + databaseSecurityAlertPolicy.Validate(); + } + string apiVersion = "2014-04-01"; + // 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("databaseName", databaseName); + tracingParameters.Add("databaseSecurityAlertPolicy", databaseSecurityAlertPolicy); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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}/securityAlertPolicies/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + 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("PUT"); + _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; + if(databaseSecurityAlertPolicy != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(databaseSecurityAlertPolicy, 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) + { + 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 && (int)_statusCode != 201) + { + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs new file mode 100644 index 000000000000..d70c3a30a540 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabaseThreatDetectionPoliciesOperationsExtensions.cs @@ -0,0 +1,131 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DatabaseThreatDetectionPoliciesOperations. + /// + public static partial class DatabaseThreatDetectionPoliciesOperationsExtensions + { + /// + /// Gets a Threat Detection policy associated with a database. + /// + /// + /// 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 name of the database for which database Threat Detection policy is + /// defined. + /// + public static DatabaseSecurityAlertPolicy Get(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets a Threat Detection policy associated with a database. + /// + /// + /// 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 name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a Threat Detection policy for a database. + /// + /// + /// 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 name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// The database Threat Detection policy. + /// + public static DatabaseSecurityAlertPolicy CreateOrUpdate(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy) + { + return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, databaseSecurityAlertPolicy).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a Threat Detection policy for a database. + /// + /// + /// 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 name of the database for which database Threat Detection policy is + /// defined. + /// + /// + /// The database Threat Detection policy. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IDatabaseThreatDetectionPoliciesOperations operations, string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, databaseSecurityAlertPolicy, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs index 92363832961e..a3426787f194 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -199,9 +199,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -216,6 +216,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -253,11 +255,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -384,9 +394,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -401,6 +411,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -448,7 +460,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -485,7 +497,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -645,9 +657,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -662,6 +674,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -709,7 +723,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -746,7 +760,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -899,9 +913,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -916,6 +930,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -963,7 +979,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1000,7 +1016,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1129,9 +1145,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1146,6 +1162,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1183,11 +1201,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -1314,9 +1340,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1331,6 +1357,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1378,7 +1406,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1415,7 +1443,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1515,9 +1543,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1532,6 +1560,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1579,7 +1609,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1616,7 +1646,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1717,9 +1747,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1734,6 +1764,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1781,7 +1813,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1818,7 +1850,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1928,9 +1960,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1945,6 +1977,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1992,7 +2026,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2029,7 +2063,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2130,9 +2164,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -2147,6 +2181,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2194,7 +2230,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2231,7 +2267,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2262,9 +2298,9 @@ internal DatabasesOperations(SqlManagementClient client) /// The name of the database for which setting the transparent data encryption /// applies. /// - /// - /// The status of the database transparent data encryption. Possible values - /// include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// /// /// Headers that will be added to request. @@ -2287,7 +2323,7 @@ internal DatabasesOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -2305,12 +2341,11 @@ internal DatabasesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - string apiVersion = "2014-04-01"; - TransparentDataEncryption parameters = new TransparentDataEncryption(); - if (status != null) + if (parameters == null) { - parameters.Status = status; + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + string apiVersion = "2014-04-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2343,9 +2378,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2360,6 +2395,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2377,7 +2414,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -2413,7 +2450,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2450,7 +2487,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2468,7 +2505,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2569,9 +2606,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -2586,6 +2623,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2633,7 +2672,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2670,7 +2709,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2771,9 +2810,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -2788,6 +2827,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2835,7 +2876,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2872,7 +2913,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2990,9 +3031,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3007,6 +3048,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3024,7 +3067,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -3060,7 +3103,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -3097,7 +3140,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -3210,9 +3253,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3227,6 +3270,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3244,7 +3289,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -3280,7 +3325,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -3317,7 +3362,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -3424,9 +3469,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3441,6 +3486,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3478,11 +3525,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 204 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -3607,9 +3662,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3624,6 +3679,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3661,11 +3718,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 204 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -3780,9 +3845,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3797,6 +3862,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -3834,11 +3901,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -3953,9 +4028,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -3970,6 +4045,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4007,11 +4084,19 @@ internal DatabasesOperations(SqlManagementClient client) if ((int)_statusCode != 202 && (int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -4143,9 +4228,9 @@ internal DatabasesOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -4160,6 +4245,8 @@ internal DatabasesOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -4177,7 +4264,7 @@ internal DatabasesOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -4213,7 +4300,7 @@ internal DatabasesOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -4250,7 +4337,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -4268,7 +4355,7 @@ internal DatabasesOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -4287,4 +4374,3 @@ internal DatabasesOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs index a4ac85caca0e..350be3a0cf98 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/DatabasesOperationsExtensions.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -181,7 +181,7 @@ public static void DeleteReplicationLink(this IDatabasesOperations operations, s /// public static async Task DeleteReplicationLinkAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -286,7 +286,7 @@ public static void FailoverReplicationLink(this IDatabasesOperations operations, /// public static async Task FailoverReplicationLinkAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.FailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.FailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -339,7 +339,7 @@ public static void FailoverReplicationLinkAllowDataLoss(this IDatabasesOperation /// public static async Task FailoverReplicationLinkAllowDataLossAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.FailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.FailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -432,7 +432,7 @@ public static void PauseDataWarehouse(this IDatabasesOperations operations, stri /// public static async Task PauseDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.PauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.PauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -477,7 +477,7 @@ public static void ResumeDataWarehouse(this IDatabasesOperations operations, str /// public static async Task ResumeDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.ResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.ResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -628,7 +628,7 @@ public static void Delete(this IDatabasesOperations operations, string resourceG /// public static async Task DeleteAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -902,13 +902,13 @@ public static IEnumerable ListServiceTierAdvisors(this IData /// The name of the database for which setting the transparent data encryption /// applies. /// - /// - /// The status of the database transparent data encryption. Possible values - /// include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// - public static TransparentDataEncryption CreateOrUpdateTransparentDataEncryptionConfiguration(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?)) + public static TransparentDataEncryption CreateOrUpdateTransparentDataEncryptionConfiguration(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters) { - return operations.CreateOrUpdateTransparentDataEncryptionConfigurationAsync(resourceGroupName, serverName, databaseName, status).GetAwaiter().GetResult(); + return operations.CreateOrUpdateTransparentDataEncryptionConfigurationAsync(resourceGroupName, serverName, databaseName, parameters).GetAwaiter().GetResult(); } /// @@ -928,16 +928,16 @@ public static IEnumerable ListServiceTierAdvisors(this IData /// The name of the database for which setting the transparent data encryption /// applies. /// - /// - /// The status of the database transparent data encryption. Possible values - /// include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// /// /// The cancellation token. /// - public static async Task CreateOrUpdateTransparentDataEncryptionConfigurationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateTransparentDataEncryptionConfigurationAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, status, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1197,7 +1197,7 @@ public static void BeginFailoverReplicationLink(this IDatabasesOperations operat /// public static async Task BeginFailoverReplicationLinkAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginFailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginFailoverReplicationLinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1250,7 +1250,7 @@ public static void BeginFailoverReplicationLinkAllowDataLoss(this IDatabasesOper /// public static async Task BeginFailoverReplicationLinkAllowDataLossAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginFailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginFailoverReplicationLinkAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1295,7 +1295,7 @@ public static void BeginPauseDataWarehouse(this IDatabasesOperations operations, /// public static async Task BeginPauseDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginPauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginPauseDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1340,7 +1340,7 @@ public static void BeginResumeDataWarehouse(this IDatabasesOperations operations /// public static async Task BeginResumeDataWarehouseAsync(this IDatabasesOperations operations, string resourceGroupName, string serverName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.BeginResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false); + (await operations.BeginResumeDataWarehouseWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -1403,4 +1403,3 @@ public static Database BeginCreateOrUpdate(this IDatabasesOperations operations, } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs index b13ca86960b2..c32acd9fd7fe 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -160,9 +160,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -177,6 +177,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -214,11 +216,19 @@ internal ElasticPoolsOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -336,9 +346,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -353,6 +363,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -400,7 +412,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -437,7 +449,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -529,9 +541,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -546,6 +558,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -593,7 +607,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -630,7 +644,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -731,9 +745,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -748,6 +762,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -795,7 +811,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -832,7 +848,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -933,9 +949,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -950,6 +966,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -997,7 +1015,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1034,7 +1052,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1144,9 +1162,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1161,6 +1179,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1208,7 +1228,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1245,7 +1265,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1346,9 +1366,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1363,6 +1383,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1410,7 +1432,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1447,7 +1469,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1560,9 +1582,9 @@ internal ElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1577,6 +1599,8 @@ internal ElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1594,7 +1618,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -1630,7 +1654,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1667,7 +1691,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1685,7 +1709,7 @@ internal ElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1704,4 +1728,3 @@ internal ElasticPoolsOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs index 032d79fb0997..5b0f1409861c 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ElasticPoolsOperationsExtensions.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -119,7 +119,7 @@ public static void Delete(this IElasticPoolsOperations operations, string resour /// public static async Task DeleteAsync(this IElasticPoolsOperations operations, string resourceGroupName, string serverName, string elasticPoolName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, elasticPoolName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, elasticPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -466,4 +466,3 @@ public static ElasticPool BeginCreateOrUpdate(this IElasticPoolsOperations opera } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ICapabilitiesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ICapabilitiesOperations.cs new file mode 100644 index 000000000000..153262fa1851 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ICapabilitiesOperations.cs @@ -0,0 +1,49 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// CapabilitiesOperations operations. + /// + public partial interface ICapabilitiesOperations + { + /// + /// Gets the capabilities available for the specified location. + /// + /// + /// The location id whose capabilities are retrieved. + /// + /// + /// 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> ListByLocationWithHttpMessagesAsync(string locationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs new file mode 100644 index 000000000000..bc6211a41239 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseBlobAuditingPoliciesOperations.cs @@ -0,0 +1,92 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabaseBlobAuditingPoliciesOperations operations. + /// + public partial interface IDatabaseBlobAuditingPoliciesOperations + { + /// + /// Gets a blob auditing policy associated with 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 for which database blob audit policy is + /// defined. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a blob auditing policy for 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 for which database blob audit policy will + /// be defined. + /// + /// + /// The name of the database blob auditing policy. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseBlobAuditingPolicy databaseBlobAuditingPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs new file mode 100644 index 000000000000..c6d274c74d11 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabaseThreatDetectionPoliciesOperations.cs @@ -0,0 +1,92 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabaseThreatDetectionPoliciesOperations operations. + /// + public partial interface IDatabaseThreatDetectionPoliciesOperations + { + /// + /// Gets a Threat Detection policy associated with 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 for which database Threat Detection policy + /// is defined. + /// + /// + /// 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> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a Threat Detection policy for 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 for which database Threat Detection policy + /// is defined. + /// + /// + /// The database Threat Detection policy. + /// + /// + /// 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> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, DatabaseSecurityAlertPolicy databaseSecurityAlertPolicy, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs index dbf23eee5e6a..fee2ab92ef12 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IDatabasesOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -570,9 +570,9 @@ public partial interface IDatabasesOperations /// The name of the database for which setting the transparent data /// encryption applies. /// - /// - /// The status of the database transparent data encryption. Possible - /// values include: 'Enabled', 'Disabled' + /// + /// The required parameters for creating or updating transparent data + /// encryption. /// /// /// The headers that will be added to request. @@ -589,7 +589,7 @@ public partial interface IDatabasesOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionStates? status = default(TransparentDataEncryptionStates?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateTransparentDataEncryptionConfigurationWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, TransparentDataEncryption parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a database's transparent data encryption configuration. /// @@ -873,4 +873,3 @@ public partial interface IDatabasesOperations Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs index 59eb6694f9cc..15506976935d 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -300,4 +300,3 @@ public partial interface IElasticPoolsOperations Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, string elasticPoolName, ElasticPool parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs index fd5e4d8b4204..698ce30aadac 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IImportExportOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -116,4 +116,3 @@ public partial interface IImportExportOperations Task> GetByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs index ec15efa53477..456c1cc635ac 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IRecommendedElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -175,4 +175,3 @@ public partial interface IRecommendedElasticPoolsOperations Task>> ListMetricsWithHttpMessagesAsync(string resourceGroupName, string serverName, string recommendedElasticPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs index a10ece32416b..3ebf3d0953a1 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/IServersOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -410,4 +410,3 @@ public partial interface IServersOperations Task> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportRequestParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs index 4a84ce395ad8..e712494ca0f8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ISqlManagementClient.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -35,12 +35,12 @@ public partial interface ISqlManagementClient : System.IDisposable /// /// Gets or sets json serialization settings. /// - Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; } + JsonSerializerSettings SerializationSettings { get; } /// /// Gets or sets json deserialization settings. /// - Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; } + JsonSerializerSettings DeserializationSettings { get; } /// /// Credentials needed for the client to connect to Azure. @@ -70,6 +70,11 @@ public partial interface ISqlManagementClient : System.IDisposable bool? GenerateClientRequestId { get; set; } + /// + /// Gets the ICapabilitiesOperations. + /// + ICapabilitiesOperations Capabilities { get; } + /// /// Gets the IServersOperations. /// @@ -95,6 +100,16 @@ public partial interface ISqlManagementClient : System.IDisposable /// IRecommendedElasticPoolsOperations RecommendedElasticPools { get; } + /// + /// Gets the IDatabaseThreatDetectionPoliciesOperations. + /// + IDatabaseThreatDetectionPoliciesOperations DatabaseThreatDetectionPolicies { get; } + + /// + /// Gets the IDatabaseBlobAuditingPoliciesOperations. + /// + IDatabaseBlobAuditingPoliciesOperations DatabaseBlobAuditingPolicies { get; } + /// /// Lists all of the available SQL Rest API operations. /// @@ -108,4 +123,3 @@ public partial interface ISqlManagementClient : System.IDisposable } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs index 9f4bc0efd326..5630bde6f9fa 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -125,9 +125,9 @@ internal ImportExportOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -142,6 +142,8 @@ internal ImportExportOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -189,7 +191,7 @@ internal ImportExportOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -226,7 +228,7 @@ internal ImportExportOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -323,9 +325,9 @@ internal ImportExportOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -340,6 +342,8 @@ internal ImportExportOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -387,7 +391,7 @@ internal ImportExportOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -424,7 +428,7 @@ internal ImportExportOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -531,9 +535,9 @@ internal ImportExportOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -548,6 +552,8 @@ internal ImportExportOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -595,7 +601,7 @@ internal ImportExportOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -632,7 +638,7 @@ internal ImportExportOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -651,4 +657,3 @@ internal ImportExportOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs index aebe5e1d9166..f1f4583737ae 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ImportExportOperationsExtensions.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -171,4 +171,3 @@ public static ImportExportOperationResponse GetByDatabase(this IImportExportOper } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs index f3d71bbe3f4e..ef037c17ef81 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/AuthenticationType.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for AuthenticationType. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum AuthenticationType { [EnumMember(Value = "SQL")] @@ -28,4 +28,3 @@ public enum AuthenticationType ADPassword } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/BlobAuditingPolicyState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/BlobAuditingPolicyState.cs new file mode 100644 index 000000000000..aa1d3ae54663 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/BlobAuditingPolicyState.cs @@ -0,0 +1,30 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for BlobAuditingPolicyState. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BlobAuditingPolicyState + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CapabilityStatus.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CapabilityStatus.cs new file mode 100644 index 000000000000..c22f9be9545f --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CapabilityStatus.cs @@ -0,0 +1,34 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for CapabilityStatus. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CapabilityStatus + { + [EnumMember(Value = "Visible")] + Visible, + [EnumMember(Value = "Available")] + Available, + [EnumMember(Value = "Default")] + Default, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs index 77bd14ad14bd..4ef2b66914ea 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Column.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database table column. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Column : Resource { /// /// Initializes a new instance of the Column class. /// - public Column() { } + public Column() + { + CustomInit(); + } /// /// Initializes a new instance of the Column class. @@ -42,13 +45,19 @@ public Column() { } : base(location, name, id, type, tags) { ColumnType = columnType; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the type of database table column. /// [JsonProperty(PropertyName = "properties.columnType")] - public string ColumnType { get; protected set; } + public string ColumnType { get; private set; } /// /// Validate the object. @@ -62,4 +71,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs index fba03890bbb5..e58644e02248 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/CreateMode.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for CreateMode. @@ -24,6 +24,6 @@ public static class CreateMode public const string PointInTimeRestore = "PointInTimeRestore"; public const string Recovery = "Recovery"; public const string Restore = "Restore"; + public const string RestoreLongTermRetentionBackup = "RestoreLongTermRetentionBackup"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs index 6676a199ee94..00b08c52fa6c 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Database.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Database : Resource { /// /// Initializes a new instance of the Database class. /// - public Database() { } + public Database() + { + CustomInit(); + } /// /// Initializes a new instance of the Database class. @@ -52,35 +55,81 @@ public Database() { } /// This records the earliest start /// date and time that restore is available for this database (ISO8601 /// format). - /// Specifies the type of database to create. - /// If createMode is not set to Default, sourceDatabaseId must be - /// specified. If createMode is set to PointInTimeRestore, then - /// restorePointInTime must be specified. If createMode is set to - /// Restore, then sourceDatabaseDeletionDate must be specified. - /// Possible values include: 'Copy', 'Default', 'NonReadableSecondary', - /// 'OnlineSecondary', 'PointInTimeRestore', 'Recovery', - /// 'Restore' - /// Conditional. If createMode is not - /// set to Default, then this value must be specified. Specifies the + /// Specifies the mode of database creation. + /// + /// Default: regular database creation. + /// + /// Copy: creates a database as a copy of an existing database. + /// sourceDatabaseId must be specified as the resource ID of the source + /// database. + /// + /// OnlineSecondary/NonReadableSecondary: creates a database as a + /// (readable or nonreadable) secondary replica of an existing + /// database. sourceDatabaseId must be specified as the resource ID of + /// the existing primary database. + /// + /// PointInTimeRestore: Creates a database by restoring a point in time + /// backup of an existing database. sourceDatabaseId must be specified + /// as the resource ID of the existing database, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a database by restoring a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverable database + /// resource ID to restore. + /// + /// Restore: Creates a database by restoring a backup of a deleted + /// database. sourceDatabaseId must be specified. If sourceDatabaseId + /// is the database's original resource ID, then + /// sourceDatabaseDeletionDate must be specified. Otherwise + /// sourceDatabaseId must be the restorable dropped database resource + /// ID and sourceDatabaseDeletionDate is ignored. restorePointInTime + /// may also be specified to restore from an earlier point in time. + /// + /// RestoreLongTermRetentionBackup: Creates a database by restoring + /// from a long term retention vault. + /// recoveryServicesRecoveryPointResourceId must be specified as the + /// recovery point resource ID. + /// + /// Copy, NonReadableSecondary, OnlineSecondary and + /// RestoreLongTermRetentionBackup are not supported for DataWarehouse + /// edition. Possible values include: 'Copy', 'Default', + /// 'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore', + /// 'Recovery', 'Restore', 'RestoreLongTermRetentionBackup' + /// Conditional. If createMode is Copy, + /// NonReadableSecondary, OnlineSecondary, PointInTimeRestore, + /// Recovery, or Restore, then this value is required. Specifies the /// resource ID of the source database. If createMode is /// NonReadableSecondary or OnlineSecondary, the name of the source - /// database must be the same as this new database. - /// Conditional. If createMode is set - /// to PointInTimeRestore, then this value must be specified. Specifies - /// the point in time (ISO8601 format) of the source database that will - /// be restored to create the new database. Must be greater than or - /// equal to the source database's earliestRestoreDate value. + /// database must be the same as the new database being + /// created. + /// Conditional. If createMode + /// is Restore and sourceDatabaseId is the deleted database's original + /// resource id when it existed (as opposed to its current restorable + /// dropped database id), then this value is required. Specifies the + /// time that the database was deleted. + /// Conditional. If createMode is + /// PointInTimeRestore, this value is required. If createMode is + /// Restore, this value is optional. Specifies the point in time + /// (ISO8601 format) of the source database that will be restored to + /// create the new database. Must be greater than or equal to the + /// source database's earliestRestoreDate value. + /// Conditional. + /// If createMode is RestoreLongTermRetentionBackup, then this value is + /// required. Specifies the resource ID of the recovery point to + /// restore from. /// The edition of the database. The /// DatabaseEditions enumeration contains all the valid editions. If /// createMode is NonReadableSecondary or OnlineSecondary, this value - /// is ignored. Possible values include: 'Web', 'Business', 'Basic', - /// 'Standard', 'Premium', 'Free', 'Stretch', 'DataWarehouse', - /// 'System' + /// is ignored. To see possible values, query the capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List.". Possible values + /// include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'Free', + /// 'Stretch', 'DataWarehouse', 'System' /// The max size of the database expressed - /// in bytes. If createMode is not Default, this value is ignored. - /// Note: Only the following sizes are supported (in addition to - /// limitations being placed on each edition): { 100 MB | 500 MB |1 GB - /// | 5 GB | 10 GB | 20 GB | 30 GB … 150 GB | 200 GB … 500 GB } + /// in bytes. If createMode is not Default, this value is ignored. To + /// see possible values, query the capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List." /// The configured service /// level objective ID of the database. This is the service level /// objective that is in the process of being applied to the database. @@ -88,14 +137,20 @@ public Database() { } /// currentServiceObjectiveId property. If requestedServiceObjectiveId /// and requestedServiceObjectiveName are both updated, the value of /// requestedServiceObjectiveId overrides the value of - /// requestedServiceObjectiveName. + /// requestedServiceObjectiveName. To see possible values, query the + /// capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List." /// The name of the /// configured service level objective of the database. This is the /// service level objective that is in the process of being applied to /// the database. Once successfully updated, it will match the value of - /// serviceLevelObjective property. Possible values include: 'Basic', - /// 'S0', 'S1', 'S2', 'S3', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', - /// 'System', 'ElasticPool' + /// serviceLevelObjective property. To see possible values, query the + /// capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List.". Possible values + /// include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', 'P2', 'P3', 'P4', + /// 'P6', 'P11', 'P15', 'System', 'ElasticPool' /// The current service level /// objective of the database. Possible values include: 'Basic', 'S0', /// 'S1', 'S2', 'S3', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', @@ -104,7 +159,8 @@ public Database() { } /// The name of the elastic pool the /// database is in. If elasticPoolName and /// requestedServiceObjectiveName are both updated, the value of - /// requestedServiceObjectiveName is ignored. + /// requestedServiceObjectiveName is ignored. Not supported for + /// DataWarehouse edition. /// The default secondary region /// for this database. /// The list of service tier advisors @@ -116,15 +172,16 @@ public Database() { } /// database. /// The id indicating the failover group /// containing this database. - /// Conditional. If the database is a + /// Conditional. If the database is a /// geo-secondary, readScale indicates whether read-only connections - /// are allowed to this database or not. Possible values include: - /// 'Enabled', 'Disabled' + /// are allowed to this database or not. Not supported for + /// DataWarehouse edition. Possible values include: 'Enabled', + /// 'Disabled' /// Indicates the name of the sample schema to /// apply when creating this database. If createMode is not Default, - /// this value is ignored. Possible values include: - /// 'AdventureWorksLT' - public Database(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string kind = default(string), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), string databaseId = default(string), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList schemas = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), System.Guid? failoverGroupId = default(System.Guid?), ReadScale? readScale = default(ReadScale?), string sampleName = default(string)) + /// this value is ignored. Not supported for DataWarehouse edition. + /// Possible values include: 'AdventureWorksLT' + public Database(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string kind = default(string), string collation = default(string), System.DateTime? creationDate = default(System.DateTime?), long? containmentState = default(long?), System.Guid? currentServiceObjectiveId = default(System.Guid?), string databaseId = default(string), System.DateTime? earliestRestoreDate = default(System.DateTime?), string createMode = default(string), string sourceDatabaseId = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?), System.DateTime? restorePointInTime = default(System.DateTime?), System.DateTime? recoveryServicesRecoveryPointResourceId = default(System.DateTime?), string edition = default(string), string maxSizeBytes = default(string), System.Guid? requestedServiceObjectiveId = default(System.Guid?), string requestedServiceObjectiveName = default(string), string serviceLevelObjective = default(string), string status = default(string), string elasticPoolName = default(string), string defaultSecondaryLocation = default(string), IList serviceTierAdvisors = default(IList), IList schemas = default(IList), IList transparentDataEncryption = default(IList), IList recommendedIndex = default(IList), System.Guid? failoverGroupId = default(System.Guid?), ReadScale? readScale = default(ReadScale?), string sampleName = default(string)) : base(location, name, id, type, tags) { Kind = kind; @@ -136,7 +193,9 @@ public Database() { } EarliestRestoreDate = earliestRestoreDate; CreateMode = createMode; SourceDatabaseId = sourceDatabaseId; + SourceDatabaseDeletionDate = sourceDatabaseDeletionDate; RestorePointInTime = restorePointInTime; + RecoveryServicesRecoveryPointResourceId = recoveryServicesRecoveryPointResourceId; Edition = edition; MaxSizeBytes = maxSizeBytes; RequestedServiceObjectiveId = requestedServiceObjectiveId; @@ -152,14 +211,20 @@ public Database() { } FailoverGroupId = failoverGroupId; ReadScale = readScale; SampleName = sampleName; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets kind of database. This is metadata used for the Azure portal /// experience. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Gets or sets the collation of the database. If createMode is not @@ -172,82 +237,138 @@ public Database() { } /// Gets the creation date of the database (ISO8601 format). /// [JsonProperty(PropertyName = "properties.creationDate")] - public System.DateTime? CreationDate { get; protected set; } + public System.DateTime? CreationDate { get; private set; } /// /// Gets the containment state of the database. /// [JsonProperty(PropertyName = "properties.containmentState")] - public long? ContainmentState { get; protected set; } + public long? ContainmentState { get; private set; } /// /// Gets the current service level objective ID of the database. This /// is the ID of the service level objective that is currently active. /// [JsonProperty(PropertyName = "properties.currentServiceObjectiveId")] - public System.Guid? CurrentServiceObjectiveId { get; protected set; } + public System.Guid? CurrentServiceObjectiveId { get; private set; } /// /// Gets the ID of the database. /// [JsonProperty(PropertyName = "properties.databaseId")] - public string DatabaseId { get; protected set; } + public string DatabaseId { get; private set; } /// /// Gets this records the earliest start date and time that restore is /// available for this database (ISO8601 format). /// [JsonProperty(PropertyName = "properties.earliestRestoreDate")] - public System.DateTime? EarliestRestoreDate { get; protected set; } + public System.DateTime? EarliestRestoreDate { get; private set; } /// - /// Gets or sets specifies the type of database to create. If - /// createMode is not set to Default, sourceDatabaseId must be - /// specified. If createMode is set to PointInTimeRestore, then - /// restorePointInTime must be specified. If createMode is set to - /// Restore, then sourceDatabaseDeletionDate must be specified. - /// Possible values include: 'Copy', 'Default', 'NonReadableSecondary', - /// 'OnlineSecondary', 'PointInTimeRestore', 'Recovery', 'Restore' + /// Gets or sets specifies the mode of database creation. + /// + /// Default: regular database creation. + /// + /// Copy: creates a database as a copy of an existing database. + /// sourceDatabaseId must be specified as the resource ID of the source + /// database. + /// + /// OnlineSecondary/NonReadableSecondary: creates a database as a + /// (readable or nonreadable) secondary replica of an existing + /// database. sourceDatabaseId must be specified as the resource ID of + /// the existing primary database. + /// + /// PointInTimeRestore: Creates a database by restoring a point in time + /// backup of an existing database. sourceDatabaseId must be specified + /// as the resource ID of the existing database, and restorePointInTime + /// must be specified. + /// + /// Recovery: Creates a database by restoring a geo-replicated backup. + /// sourceDatabaseId must be specified as the recoverable database + /// resource ID to restore. + /// + /// Restore: Creates a database by restoring a backup of a deleted + /// database. sourceDatabaseId must be specified. If sourceDatabaseId + /// is the database's original resource ID, then + /// sourceDatabaseDeletionDate must be specified. Otherwise + /// sourceDatabaseId must be the restorable dropped database resource + /// ID and sourceDatabaseDeletionDate is ignored. restorePointInTime + /// may also be specified to restore from an earlier point in time. + /// + /// RestoreLongTermRetentionBackup: Creates a database by restoring + /// from a long term retention vault. + /// recoveryServicesRecoveryPointResourceId must be specified as the + /// recovery point resource ID. + /// + /// Copy, NonReadableSecondary, OnlineSecondary and + /// RestoreLongTermRetentionBackup are not supported for DataWarehouse + /// edition. Possible values include: 'Copy', 'Default', + /// 'NonReadableSecondary', 'OnlineSecondary', 'PointInTimeRestore', + /// 'Recovery', 'Restore', 'RestoreLongTermRetentionBackup' /// [JsonProperty(PropertyName = "properties.createMode")] public string CreateMode { get; set; } /// - /// Gets or sets conditional. If createMode is not set to Default, then - /// this value must be specified. Specifies the resource ID of the - /// source database. If createMode is NonReadableSecondary or - /// OnlineSecondary, the name of the source database must be the same - /// as this new database. + /// Gets or sets conditional. If createMode is Copy, + /// NonReadableSecondary, OnlineSecondary, PointInTimeRestore, + /// Recovery, or Restore, then this value is required. Specifies the + /// resource ID of the source database. If createMode is + /// NonReadableSecondary or OnlineSecondary, the name of the source + /// database must be the same as the new database being created. /// [JsonProperty(PropertyName = "properties.sourceDatabaseId")] public string SourceDatabaseId { get; set; } /// - /// Gets or sets conditional. If createMode is set to - /// PointInTimeRestore, then this value must be specified. Specifies - /// the point in time (ISO8601 format) of the source database that will - /// be restored to create the new database. Must be greater than or - /// equal to the source database's earliestRestoreDate value. + /// Gets or sets conditional. If createMode is Restore and + /// sourceDatabaseId is the deleted database's original resource id + /// when it existed (as opposed to its current restorable dropped + /// database id), then this value is required. Specifies the time that + /// the database was deleted. + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseDeletionDate")] + public System.DateTime? SourceDatabaseDeletionDate { get; set; } + + /// + /// Gets or sets conditional. If createMode is PointInTimeRestore, this + /// value is required. If createMode is Restore, this value is + /// optional. Specifies the point in time (ISO8601 format) of the + /// source database that will be restored to create the new database. + /// Must be greater than or equal to the source database's + /// earliestRestoreDate value. /// [JsonProperty(PropertyName = "properties.restorePointInTime")] public System.DateTime? RestorePointInTime { get; set; } + /// + /// Gets or sets conditional. If createMode is + /// RestoreLongTermRetentionBackup, then this value is required. + /// Specifies the resource ID of the recovery point to restore from. + /// + [JsonProperty(PropertyName = "properties.recoveryServicesRecoveryPointResourceId")] + public System.DateTime? RecoveryServicesRecoveryPointResourceId { get; set; } + /// /// Gets or sets the edition of the database. The DatabaseEditions /// enumeration contains all the valid editions. If createMode is - /// NonReadableSecondary or OnlineSecondary, this value is ignored. - /// Possible values include: 'Web', 'Business', 'Basic', 'Standard', - /// 'Premium', 'Free', 'Stretch', 'DataWarehouse', 'System' + /// NonReadableSecondary or OnlineSecondary, this value is ignored. To + /// see possible values, query the capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List.". Possible values + /// include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'Free', + /// 'Stretch', 'DataWarehouse', 'System' /// [JsonProperty(PropertyName = "properties.edition")] public string Edition { get; set; } /// /// Gets or sets the max size of the database expressed in bytes. If - /// createMode is not Default, this value is ignored. Note: Only the - /// following sizes are supported (in addition to limitations being - /// placed on each edition): { 100 MB | 500 MB |1 GB | 5 GB | 10 GB | - /// 20 GB | 30 GB … 150 GB | 200 GB … 500 GB } + /// createMode is not Default, this value is ignored. To see possible + /// values, query the capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List." /// [JsonProperty(PropertyName = "properties.maxSizeBytes")] public string MaxSizeBytes { get; set; } @@ -260,7 +381,10 @@ public Database() { } /// property. If requestedServiceObjectiveId and /// requestedServiceObjectiveName are both updated, the value of /// requestedServiceObjectiveId overrides the value of - /// requestedServiceObjectiveName. + /// requestedServiceObjectiveName. To see possible values, query the + /// capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List." /// [JsonProperty(PropertyName = "properties.requestedServiceObjectiveId")] public System.Guid? RequestedServiceObjectiveId { get; set; } @@ -270,8 +394,11 @@ public Database() { } /// the database. This is the service level objective that is in the /// process of being applied to the database. Once successfully /// updated, it will match the value of serviceLevelObjective property. - /// Possible values include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', - /// 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'System', 'ElasticPool' + /// To see possible values, query the capabilities API + /// (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) + /// referred to by operationId: "Capabilities_List.". Possible values + /// include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', 'P2', 'P3', 'P4', + /// 'P6', 'P11', 'P15', 'System', 'ElasticPool' /// [JsonProperty(PropertyName = "properties.requestedServiceObjectiveName")] public string RequestedServiceObjectiveName { get; set; } @@ -282,18 +409,19 @@ public Database() { } /// 'P4', 'P6', 'P11', 'P15', 'System', 'ElasticPool' /// [JsonProperty(PropertyName = "properties.serviceLevelObjective")] - public string ServiceLevelObjective { get; protected set; } + public string ServiceLevelObjective { get; private set; } /// /// Gets the status of the database. /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets or sets the name of the elastic pool the database is in. If /// elasticPoolName and requestedServiceObjectiveName are both updated, - /// the value of requestedServiceObjectiveName is ignored. + /// the value of requestedServiceObjectiveName is ignored. Not + /// supported for DataWarehouse edition. /// [JsonProperty(PropertyName = "properties.elasticPoolName")] public string ElasticPoolName { get; set; } @@ -302,44 +430,44 @@ public Database() { } /// Gets the default secondary region for this database. /// [JsonProperty(PropertyName = "properties.defaultSecondaryLocation")] - public string DefaultSecondaryLocation { get; protected set; } + public string DefaultSecondaryLocation { get; private set; } /// /// Gets the list of service tier advisors for this database. Expanded /// property /// [JsonProperty(PropertyName = "properties.serviceTierAdvisors")] - public IList ServiceTierAdvisors { get; protected set; } + public IList ServiceTierAdvisors { get; private set; } /// /// Gets the schemas from this database. /// [JsonProperty(PropertyName = "properties.schemas")] - public IList Schemas { get; protected set; } + public IList Schemas { get; private set; } /// /// Gets the transparent data encryption info for this database. /// [JsonProperty(PropertyName = "properties.transparentDataEncryption")] - public IList TransparentDataEncryption { get; protected set; } + public IList TransparentDataEncryption { get; private set; } /// /// Gets the recommended indices for this database. /// [JsonProperty(PropertyName = "properties.recommendedIndex")] - public IList RecommendedIndex { get; protected set; } + public IList RecommendedIndex { get; private set; } /// /// Gets the id indicating the failover group containing this database. /// [JsonProperty(PropertyName = "properties.failoverGroupId")] - public System.Guid? FailoverGroupId { get; protected set; } + public System.Guid? FailoverGroupId { get; private set; } /// - /// Gets or sets conditional. If the database is a geo-secondary, + /// Gets or sets conditional. If the database is a geo-secondary, /// readScale indicates whether read-only connections are allowed to - /// this database or not. Possible values include: 'Enabled', - /// 'Disabled' + /// this database or not. Not supported for DataWarehouse edition. + /// Possible values include: 'Enabled', 'Disabled' /// [JsonProperty(PropertyName = "properties.readScale")] public ReadScale? ReadScale { get; set; } @@ -347,7 +475,8 @@ public Database() { } /// /// Gets or sets indicates the name of the sample schema to apply when /// creating this database. If createMode is not Default, this value is - /// ignored. Possible values include: 'AdventureWorksLT' + /// ignored. Not supported for DataWarehouse edition. Possible values + /// include: 'AdventureWorksLT' /// [JsonProperty(PropertyName = "properties.sampleName")] public string SampleName { get; set; } @@ -384,4 +513,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs new file mode 100644 index 000000000000..edf749a71eb6 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseBlobAuditingPolicy.cs @@ -0,0 +1,136 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Contains information about a database Blob Auditing policy. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseBlobAuditingPolicy : SqlTypedSubResource + { + /// + /// Initializes a new instance of the DatabaseBlobAuditingPolicy class. + /// + public DatabaseBlobAuditingPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseBlobAuditingPolicy class. + /// + /// Specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'Enabled', 'Disabled' + /// Resource name + /// The resource ID. + /// Resource type + /// Specifies the blob storage endpoint + /// (e.g. https://MyAccount.blob.core.windows.net). If state is + /// Enabled, storageEndpoint is required. + /// Specifies the identifier key + /// of the auditing storage account. If state is Enabled, + /// storageAccountAccessKey is required. + /// Specifies the number of days to keep in + /// the audit logs. + /// Specifies the Actions and + /// Actions-Groups to audit. + /// Specifies the blob + /// storage subscription Id. + /// Specifies whether + /// storageAccountAccessKey value is the storage’s secondary + /// key. + public DatabaseBlobAuditingPolicy(BlobAuditingPolicyState state, string name = default(string), string id = default(string), string type = default(string), string storageEndpoint = default(string), string storageAccountAccessKey = default(string), int? retentionDays = default(int?), IList auditActionsAndGroups = default(IList), string storageAccountSubscriptionId = default(string), bool? isStorageSecondaryKeyInUse = default(bool?)) + : base(name, id, type) + { + State = state; + StorageEndpoint = storageEndpoint; + StorageAccountAccessKey = storageAccountAccessKey; + RetentionDays = retentionDays; + AuditActionsAndGroups = auditActionsAndGroups; + StorageAccountSubscriptionId = storageAccountSubscriptionId; + IsStorageSecondaryKeyInUse = isStorageSecondaryKeyInUse; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.state")] + public BlobAuditingPolicyState State { get; set; } + + /// + /// Gets or sets specifies the blob storage endpoint (e.g. + /// https://MyAccount.blob.core.windows.net). If state is Enabled, + /// storageEndpoint is required. + /// + [JsonProperty(PropertyName = "properties.storageEndpoint")] + public string StorageEndpoint { get; set; } + + /// + /// Gets or sets specifies the identifier key of the auditing storage + /// account. If state is Enabled, storageAccountAccessKey is required. + /// + [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] + public string StorageAccountAccessKey { get; set; } + + /// + /// Gets or sets specifies the number of days to keep in the audit + /// logs. + /// + [JsonProperty(PropertyName = "properties.retentionDays")] + public int? RetentionDays { get; set; } + + /// + /// Gets or sets specifies the Actions and Actions-Groups to audit. + /// + [JsonProperty(PropertyName = "properties.auditActionsAndGroups")] + public IList AuditActionsAndGroups { get; set; } + + /// + /// Gets or sets specifies the blob storage subscription Id. + /// + [JsonProperty(PropertyName = "properties.storageAccountSubscriptionId")] + public string StorageAccountSubscriptionId { get; set; } + + /// + /// Gets or sets specifies whether storageAccountAccessKey value is the + /// storage’s secondary key. + /// + [JsonProperty(PropertyName = "properties.isStorageSecondaryKeyInUse")] + public bool? IsStorageSecondaryKeyInUse { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs index 36d268b7b4dd..4de445701532 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseEditions.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for DatabaseEditions. @@ -28,4 +28,3 @@ public static class DatabaseEditions public const string System = "System"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs index ab228a99cbf6..2c36275f7c24 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseMetric.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class DatabaseMetric : SqlSubResource /// /// Initializes a new instance of the DatabaseMetric class. /// - public DatabaseMetric() { } + public DatabaseMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the DatabaseMetric class. @@ -45,44 +48,49 @@ public DatabaseMetric() { } Limit = limit; Unit = unit; NextResetTime = nextResetTime; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the name of the resource. /// [JsonProperty(PropertyName = "resourceName")] - public string ResourceName { get; protected set; } + public string ResourceName { get; private set; } /// /// Gets the metric display name. /// [JsonProperty(PropertyName = "displayName")] - public string DisplayName { get; protected set; } + public string DisplayName { get; private set; } /// /// Gets the current value of the metric. /// [JsonProperty(PropertyName = "currentValue")] - public double? CurrentValue { get; protected set; } + public double? CurrentValue { get; private set; } /// /// Gets the current limit of the metric. /// [JsonProperty(PropertyName = "limit")] - public double? Limit { get; protected set; } + public double? Limit { get; private set; } /// /// Gets the units of the metric. /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; protected set; } + public string Unit { get; private set; } /// /// Gets the next reset time for the metric (ISO8601 format). /// [JsonProperty(PropertyName = "nextResetTime")] - public System.DateTime? NextResetTime { get; protected set; } + public System.DateTime? NextResetTime { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs new file mode 100644 index 000000000000..749e1e5ad2d1 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/DatabaseSecurityAlertPolicy.cs @@ -0,0 +1,157 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Contains information about a database Threat Detection policy. + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseSecurityAlertPolicy : SqlTypedSubResource + { + /// + /// Initializes a new instance of the DatabaseSecurityAlertPolicy + /// class. + /// + public DatabaseSecurityAlertPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseSecurityAlertPolicy + /// class. + /// + /// Specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'New', 'Enabled', 'Disabled' + /// Resource name + /// The resource ID. + /// Resource type + /// Specifies the comma-separated list of + /// alerts that are disabled, or empty string to disable no alerts. + /// Possible values include: 'Sql_Injection', + /// 'Sql_Injection_Vulnerability', 'Access_Anomaly', 'Usage_Anomaly', + /// 'Preview' + /// Specifies the semicolon-separated list + /// of e-mail addresses to which the alert is sent. + /// Specifies that the alert is sent + /// to the account administrators. Possible values include: 'Enabled', + /// 'Disabled' + /// Specifies the blob storage endpoint + /// (e.g. https://MyAccount.blob.core.windows.net). This blob storage + /// will hold all Threat Detection audit logs. If state is Enabled, + /// storageEndpoint is required. + /// Specifies the identifier key + /// of the Threat Detection audit storage account. If state is Enabled, + /// storageAccountAccessKey is required. + /// Specifies the number of days to keep in + /// the Threat Detection audit logs. + /// Specifies whether to use the default + /// server policy. Possible values include: 'Enabled', + /// 'Disabled' + public DatabaseSecurityAlertPolicy(SecurityAlertPolicyState state, string name = default(string), string id = default(string), string type = default(string), string disabledAlerts = default(string), string emailAddresses = default(string), SecurityAlertPolicyEmailAccountAdmins? emailAccountAdmins = default(SecurityAlertPolicyEmailAccountAdmins?), string storageEndpoint = default(string), string storageAccountAccessKey = default(string), int? retentionDays = default(int?), SecurityAlertPolicyUseServerDefault? useServerDefault = default(SecurityAlertPolicyUseServerDefault?)) + : base(name, id, type) + { + State = state; + DisabledAlerts = disabledAlerts; + EmailAddresses = emailAddresses; + EmailAccountAdmins = emailAccountAdmins; + StorageEndpoint = storageEndpoint; + StorageAccountAccessKey = storageAccountAccessKey; + RetentionDays = retentionDays; + UseServerDefault = useServerDefault; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the state of the policy. If state is + /// Enabled, storageEndpoint and storageAccountAccessKey are required. + /// Possible values include: 'New', 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.state")] + public SecurityAlertPolicyState State { get; set; } + + /// + /// Gets or sets specifies the comma-separated list of alerts that are + /// disabled, or empty string to disable no alerts. Possible values + /// include: 'Sql_Injection', 'Sql_Injection_Vulnerability', + /// 'Access_Anomaly', 'Usage_Anomaly', 'Preview' + /// + [JsonProperty(PropertyName = "properties.disabledAlerts")] + public string DisabledAlerts { get; set; } + + /// + /// Gets or sets specifies the semicolon-separated list of e-mail + /// addresses to which the alert is sent. + /// + [JsonProperty(PropertyName = "properties.emailAddresses")] + public string EmailAddresses { get; set; } + + /// + /// Gets or sets specifies that the alert is sent to the account + /// administrators. Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.emailAccountAdmins")] + public SecurityAlertPolicyEmailAccountAdmins? EmailAccountAdmins { get; set; } + + /// + /// Gets or sets specifies the blob storage endpoint (e.g. + /// https://MyAccount.blob.core.windows.net). This blob storage will + /// hold all Threat Detection audit logs. If state is Enabled, + /// storageEndpoint is required. + /// + [JsonProperty(PropertyName = "properties.storageEndpoint")] + public string StorageEndpoint { get; set; } + + /// + /// Gets or sets specifies the identifier key of the Threat Detection + /// audit storage account. If state is Enabled, storageAccountAccessKey + /// is required. + /// + [JsonProperty(PropertyName = "properties.storageAccountAccessKey")] + public string StorageAccountAccessKey { get; set; } + + /// + /// Gets or sets specifies the number of days to keep in the Threat + /// Detection audit logs. + /// + [JsonProperty(PropertyName = "properties.retentionDays")] + public int? RetentionDays { get; set; } + + /// + /// Gets or sets specifies whether to use the default server policy. + /// Possible values include: 'Enabled', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.useServerDefault")] + public SecurityAlertPolicyUseServerDefault? UseServerDefault { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/EditionCapability.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/EditionCapability.cs new file mode 100644 index 000000000000..b92c36f30947 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/EditionCapability.cs @@ -0,0 +1,74 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The server edition capabilities. + /// + public partial class EditionCapability + { + /// + /// Initializes a new instance of the EditionCapability class. + /// + public EditionCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EditionCapability class. + /// + /// The edition name. + /// The status of the server edition. Possible + /// values include: 'Visible', 'Available', 'Default', + /// 'Disabled' + /// The list of supported + /// service objectives for the edition. + public EditionCapability(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), IList supportedServiceLevelObjectives = default(IList)) + { + Name = name; + Status = status; + SupportedServiceLevelObjectives = supportedServiceLevelObjectives; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the edition name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the status of the server edition. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets the list of supported service objectives for the edition. + /// + [JsonProperty(PropertyName = "supportedServiceLevelObjectives")] + public IList SupportedServiceLevelObjectives { get; private set; } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs index 3f947de63680..15d9e0e32227 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPool.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ElasticPool : Resource { /// /// Initializes a new instance of the ElasticPool class. /// - public ElasticPool() { } + public ElasticPool() + { + CustomInit(); + } /// /// Initializes a new instance of the ElasticPool class. @@ -64,20 +67,26 @@ public ElasticPool() { } DatabaseDtuMin = databaseDtuMin; StorageMB = storageMB; Kind = kind; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the creation date of the elastic pool (ISO8601 format). /// [JsonProperty(PropertyName = "properties.creationDate")] - public System.DateTime? CreationDate { get; protected set; } + public System.DateTime? CreationDate { get; private set; } /// /// Gets the state of the elastic pool. Possible values include: /// 'Creating', 'Ready', 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; protected set; } + public string State { get; private set; } /// /// Gets or sets the edition of the elastic pool. Possible values @@ -115,7 +124,7 @@ public ElasticPool() { } /// portal experience. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Validate the object. @@ -129,4 +138,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs index 5b4802a0d06c..6191e7786f2e 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolActivity.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents the activity on an elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ElasticPoolActivity : Resource { /// /// Initializes a new instance of the ElasticPoolActivity class. /// - public ElasticPoolActivity() { } + public ElasticPoolActivity() + { + CustomInit(); + } /// /// Initializes a new instance of the ElasticPoolActivity class. @@ -94,127 +97,133 @@ public ElasticPoolActivity() { } RequestedDatabaseDtuGuarantee = requestedDatabaseDtuGuarantee; RequestedDatabaseDtuCap = requestedDatabaseDtuCap; RequestedDtuGuarantee = requestedDtuGuarantee; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the time the operation finished (ISO8601 format). /// [JsonProperty(PropertyName = "properties.endTime")] - public System.DateTime? EndTime { get; protected set; } + public System.DateTime? EndTime { get; private set; } /// /// Gets the error code if available. /// [JsonProperty(PropertyName = "properties.errorCode")] - public int? ErrorCode { get; protected set; } + public int? ErrorCode { get; private set; } /// /// Gets the error message if available. /// [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } /// /// Gets the error severity if available. /// [JsonProperty(PropertyName = "properties.errorSeverity")] - public int? ErrorSeverity { get; protected set; } + public int? ErrorSeverity { get; private set; } /// /// Gets the operation name. /// [JsonProperty(PropertyName = "properties.operation")] - public string Operation { get; protected set; } + public string Operation { get; private set; } /// /// Gets the unique operation ID. /// [JsonProperty(PropertyName = "properties.operationId")] - public string OperationId { get; protected set; } + public string OperationId { get; private set; } /// /// Gets the percentage complete if available. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public int? PercentComplete { get; protected set; } + public int? PercentComplete { get; private set; } /// /// Gets the requested max DTU per database if available. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuMax")] - public int? RequestedDatabaseDtuMax { get; protected set; } + public int? RequestedDatabaseDtuMax { get; private set; } /// /// Gets the requested min DTU per database if available. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuMin")] - public int? RequestedDatabaseDtuMin { get; protected set; } + public int? RequestedDatabaseDtuMin { get; private set; } /// /// Gets the requested DTU for the pool if available. /// [JsonProperty(PropertyName = "properties.requestedDtu")] - public int? RequestedDtu { get; protected set; } + public int? RequestedDtu { get; private set; } /// /// Gets the requested name for the elastic pool if available. /// [JsonProperty(PropertyName = "properties.requestedElasticPoolName")] - public string RequestedElasticPoolName { get; protected set; } + public string RequestedElasticPoolName { get; private set; } /// /// Gets the requested storage limit for the pool in GB if available. /// [JsonProperty(PropertyName = "properties.requestedStorageLimitInGB")] - public long? RequestedStorageLimitInGB { get; protected set; } + public long? RequestedStorageLimitInGB { get; private set; } /// /// Gets the name of the elastic pool. /// [JsonProperty(PropertyName = "properties.elasticPoolName")] - public string ElasticPoolName { get; protected set; } + public string ElasticPoolName { get; private set; } /// /// Gets the name of the server the elastic pool is in. /// [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the time the operation started (ISO8601 format). /// [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; protected set; } + public System.DateTime? StartTime { get; private set; } /// /// Gets the current state of the operation. /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; protected set; } + public string State { get; private set; } /// /// Gets the requested storage limit in MB. /// [JsonProperty(PropertyName = "properties.requestedStorageLimitInMB")] - public int? RequestedStorageLimitInMB { get; protected set; } + public int? RequestedStorageLimitInMB { get; private set; } /// /// Gets the requested per database DTU guarantee. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuGuarantee")] - public int? RequestedDatabaseDtuGuarantee { get; protected set; } + public int? RequestedDatabaseDtuGuarantee { get; private set; } /// /// Gets the requested per database DTU cap. /// [JsonProperty(PropertyName = "properties.requestedDatabaseDtuCap")] - public int? RequestedDatabaseDtuCap { get; protected set; } + public int? RequestedDatabaseDtuCap { get; private set; } /// /// Gets the requested DTU guarantee. /// [JsonProperty(PropertyName = "properties.requestedDtuGuarantee")] - public int? RequestedDtuGuarantee { get; protected set; } + public int? RequestedDtuGuarantee { get; private set; } /// /// Validate the object. @@ -228,4 +237,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs index 7131e241be23..9cc670d02c98 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolDatabaseActivity.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,14 +21,17 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents the activity on an elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ElasticPoolDatabaseActivity : Resource { /// /// Initializes a new instance of the ElasticPoolDatabaseActivity /// class. /// - public ElasticPoolDatabaseActivity() { } + public ElasticPoolDatabaseActivity() + { + CustomInit(); + } /// /// Initializes a new instance of the ElasticPoolDatabaseActivity @@ -81,99 +84,105 @@ public ElasticPoolDatabaseActivity() { } ServerName = serverName; StartTime = startTime; State = state; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the database name. /// [JsonProperty(PropertyName = "properties.databaseName")] - public string DatabaseName { get; protected set; } + public string DatabaseName { get; private set; } /// /// Gets the time the operation finished (ISO8601 format). /// [JsonProperty(PropertyName = "properties.endTime")] - public System.DateTime? EndTime { get; protected set; } + public System.DateTime? EndTime { get; private set; } /// /// Gets the error code if available. /// [JsonProperty(PropertyName = "properties.errorCode")] - public int? ErrorCode { get; protected set; } + public int? ErrorCode { get; private set; } /// /// Gets the error message if available. /// [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } /// /// Gets the error severity if available. /// [JsonProperty(PropertyName = "properties.errorSeverity")] - public int? ErrorSeverity { get; protected set; } + public int? ErrorSeverity { get; private set; } /// /// Gets the operation name. /// [JsonProperty(PropertyName = "properties.operation")] - public string Operation { get; protected set; } + public string Operation { get; private set; } /// /// Gets the unique operation ID. /// [JsonProperty(PropertyName = "properties.operationId")] - public string OperationId { get; protected set; } + public string OperationId { get; private set; } /// /// Gets the percentage complete if available. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public int? PercentComplete { get; protected set; } + public int? PercentComplete { get; private set; } /// /// Gets the name for the elastic pool the database is moving into if /// available. /// [JsonProperty(PropertyName = "properties.requestedElasticPoolName")] - public string RequestedElasticPoolName { get; protected set; } + public string RequestedElasticPoolName { get; private set; } /// /// Gets the name of the current elastic pool the database is in if /// available. /// [JsonProperty(PropertyName = "properties.currentElasticPoolName")] - public string CurrentElasticPoolName { get; protected set; } + public string CurrentElasticPoolName { get; private set; } /// /// Gets the name of the current service objective if available. /// [JsonProperty(PropertyName = "properties.currentServiceObjective")] - public string CurrentServiceObjective { get; protected set; } + public string CurrentServiceObjective { get; private set; } /// /// Gets the name of the requested service objective if available. /// [JsonProperty(PropertyName = "properties.requestedServiceObjective")] - public string RequestedServiceObjective { get; protected set; } + public string RequestedServiceObjective { get; private set; } /// /// Gets the name of the server the elastic pool is in. /// [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the time the operation started (ISO8601 format). /// [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; protected set; } + public System.DateTime? StartTime { get; private set; } /// /// Gets the current state of the operation. /// [JsonProperty(PropertyName = "properties.state")] - public string State { get; protected set; } + public string State { get; private set; } /// /// Validate the object. @@ -187,4 +196,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs index a9b2bb8cb68c..fae5bf8a1ab8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolEditions.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ElasticPoolEditions. @@ -22,4 +22,3 @@ public static class ElasticPoolEditions public const string Premium = "Premium"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs index b7c4a66f4e72..8d7129a1ea00 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ElasticPoolState.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ElasticPoolState. @@ -22,4 +22,3 @@ public static class ElasticPoolState public const string Disabled = "Disabled"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs index 53db0bb7ec6d..b1dc6f6b5933 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ExportRequestParameters.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class ExportRequestParameters /// /// Initializes a new instance of the ExportRequestParameters class. /// - public ExportRequestParameters() { } + public ExportRequestParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the ExportRequestParameters class. @@ -48,8 +51,14 @@ public ExportRequestParameters() { } AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; AuthenticationType = authenticationType; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the type of the storage key to use. Valid values are /// StorageAccessKey and SharedAccessKey. Possible values include: @@ -116,4 +125,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs index 68d3b5554d72..ed65589b4ee9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponse.cs @@ -2,31 +2,34 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Response for Import/Export Get operation. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ImportExportOperationResponse { /// /// Initializes a new instance of the ImportExportOperationResponse /// class. /// - public ImportExportOperationResponse() { } + public ImportExportOperationResponse() + { + CustomInit(); + } /// /// Initializes a new instance of the ImportExportOperationResponse @@ -62,80 +65,85 @@ public ImportExportOperationResponse() { } QueuedTime = queuedTime; BlobUri = blobUri; ErrorMessage = errorMessage; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the id returned from the server. /// [JsonProperty(PropertyName = "id")] - public string Id { get; protected set; } + public string Id { get; private set; } /// /// Gets the name returned from the server. /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the type returned from the server. /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "properties.requestType")] - public string RequestType { get; protected set; } + public string RequestType { get; private set; } /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "properties.requestId")] - public System.Guid? RequestId { get; protected set; } + public System.Guid? RequestId { get; private set; } /// /// Gets the name of the server. /// [JsonProperty(PropertyName = "properties.serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the name of the database. /// [JsonProperty(PropertyName = "properties.databaseName")] - public string DatabaseName { get; protected set; } + public string DatabaseName { get; private set; } /// /// Gets the status message returned from the server. /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets the operation status last modified time. /// [JsonProperty(PropertyName = "properties.lastModifiedTime")] - public string LastModifiedTime { get; protected set; } + public string LastModifiedTime { get; private set; } /// /// Gets the operation queued time. /// [JsonProperty(PropertyName = "properties.queuedTime")] - public string QueuedTime { get; protected set; } + public string QueuedTime { get; private set; } /// /// Gets the blob uri. /// [JsonProperty(PropertyName = "properties.blobUri")] - public string BlobUri { get; protected set; } + public string BlobUri { get; private set; } /// /// Gets the error message returned from the server. /// [JsonProperty(PropertyName = "properties.errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs index 8d9cef4e18a9..c0b1b93f95b2 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExportOperationResponsePropertiesModel.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class ImportExportOperationResponsePropertiesModel /// Initializes a new instance of the /// ImportExportOperationResponsePropertiesModel class. /// - public ImportExportOperationResponsePropertiesModel() { } + public ImportExportOperationResponsePropertiesModel() + { + CustomInit(); + } /// /// Initializes a new instance of the @@ -53,62 +56,67 @@ public ImportExportOperationResponsePropertiesModel() { } QueuedTime = queuedTime; BlobUri = blobUri; ErrorMessage = errorMessage; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "requestType")] - public string RequestType { get; protected set; } + public string RequestType { get; private set; } /// /// Gets the request type of the operation. /// [JsonProperty(PropertyName = "requestId")] - public System.Guid? RequestId { get; protected set; } + public System.Guid? RequestId { get; private set; } /// /// Gets the name of the server. /// [JsonProperty(PropertyName = "serverName")] - public string ServerName { get; protected set; } + public string ServerName { get; private set; } /// /// Gets the name of the database. /// [JsonProperty(PropertyName = "databaseName")] - public string DatabaseName { get; protected set; } + public string DatabaseName { get; private set; } /// /// Gets the status message returned from the server. /// [JsonProperty(PropertyName = "status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets the operation status last modified time. /// [JsonProperty(PropertyName = "lastModifiedTime")] - public string LastModifiedTime { get; protected set; } + public string LastModifiedTime { get; private set; } /// /// Gets the operation queued time. /// [JsonProperty(PropertyName = "queuedTime")] - public string QueuedTime { get; protected set; } + public string QueuedTime { get; private set; } /// /// Gets the blob uri. /// [JsonProperty(PropertyName = "blobUri")] - public string BlobUri { get; protected set; } + public string BlobUri { get; private set; } /// /// Gets the error message returned from the server. /// [JsonProperty(PropertyName = "errorMessage")] - public string ErrorMessage { get; protected set; } + public string ErrorMessage { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs index d3fea5fad863..dd44f66ce55f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportExtensionRequestParameters.cs @@ -2,31 +2,34 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Import database parameters. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ImportExtensionRequestParameters { /// /// Initializes a new instance of the ImportExtensionRequestParameters /// class. /// - public ImportExtensionRequestParameters() { } + public ImportExtensionRequestParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the ImportExtensionRequestParameters @@ -56,6 +59,7 @@ public ImportExtensionRequestParameters() { } AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; AuthenticationType = authenticationType; + CustomInit(); } /// /// Static constructor for ImportExtensionRequestParameters class. @@ -65,6 +69,11 @@ static ImportExtensionRequestParameters() OperationMode = "Import"; } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the name of the extension. /// @@ -150,4 +159,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs index 49bea5820b3d..f9e191a77f38 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ImportRequestParameters.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class ImportRequestParameters : ExportRequestParameters /// /// Initializes a new instance of the ImportRequestParameters class. /// - public ImportRequestParameters() { } + public ImportRequestParameters() + { + CustomInit(); + } /// /// Initializes a new instance of the ImportRequestParameters class. @@ -55,8 +58,14 @@ public ImportRequestParameters() { } Edition = edition; ServiceObjectiveName = serviceObjectiveName; MaxSizeBytes = maxSizeBytes; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the name of the database to import. /// @@ -110,4 +119,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/LocationCapabilities.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/LocationCapabilities.cs new file mode 100644 index 000000000000..6e44298edbca --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/LocationCapabilities.cs @@ -0,0 +1,74 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The capabilities for a location. + /// + public partial class LocationCapabilities + { + /// + /// Initializes a new instance of the LocationCapabilities class. + /// + public LocationCapabilities() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LocationCapabilities class. + /// + /// The location name. + /// Azure SQL Database's status for the location. + /// Possible values include: 'Visible', 'Available', 'Default', + /// 'Disabled' + /// The list of supported server + /// versions. + public LocationCapabilities(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), IList supportedServerVersions = default(IList)) + { + Name = name; + Status = status; + SupportedServerVersions = supportedServerVersions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the location name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets azure SQL Database's status for the location. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets the list of supported server versions. + /// + [JsonProperty(PropertyName = "supportedServerVersions")] + public IList SupportedServerVersions { get; private set; } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/MaxSizeCapability.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/MaxSizeCapability.cs new file mode 100644 index 000000000000..da1999e31263 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/MaxSizeCapability.cs @@ -0,0 +1,75 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The maximum size limits for a database. + /// + public partial class MaxSizeCapability + { + /// + /// Initializes a new instance of the MaxSizeCapability class. + /// + public MaxSizeCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MaxSizeCapability class. + /// + /// The maximum size of the database (see 'unit' + /// for the units). + /// The units that the limit is expressed in. + /// Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', + /// 'Petabytes' + /// The status of the maximum size capability. + /// Possible values include: 'Visible', 'Available', 'Default', + /// 'Disabled' + public MaxSizeCapability(long? limit = default(long?), MaxSizeUnits? unit = default(MaxSizeUnits?), CapabilityStatus? status = default(CapabilityStatus?)) + { + Limit = limit; + Unit = unit; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the maximum size of the database (see 'unit' for the units). + /// + [JsonProperty(PropertyName = "limit")] + public long? Limit { get; private set; } + + /// + /// Gets the units that the limit is expressed in. Possible values + /// include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' + /// + [JsonProperty(PropertyName = "unit")] + public MaxSizeUnits? Unit { get; private set; } + + /// + /// Gets the status of the maximum size capability. Possible values + /// include: 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/MaxSizeUnits.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/MaxSizeUnits.cs new file mode 100644 index 000000000000..ea4306a303b8 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/MaxSizeUnits.cs @@ -0,0 +1,34 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for MaxSizeUnits. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum MaxSizeUnits + { + [EnumMember(Value = "Megabytes")] + Megabytes, + [EnumMember(Value = "Gigabytes")] + Gigabytes, + [EnumMember(Value = "Terabytes")] + Terabytes, + [EnumMember(Value = "Petabytes")] + Petabytes + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs index 8eedbe7180e3..fc6216ab7fd6 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Operation.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class Operation /// /// Initializes a new instance of the Operation class. /// - public Operation() { } + public Operation() + { + CustomInit(); + } /// /// Initializes a new instance of the Operation class. @@ -35,8 +38,14 @@ public Operation() { } { Name = name; Display = display; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets operation name: {provider}/{resource}/{operation} /// @@ -51,4 +60,3 @@ public Operation() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs index c99d3ec23c7b..4bb1babe51d8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationDisplay.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class OperationDisplay /// /// Initializes a new instance of the OperationDisplay class. /// - public OperationDisplay() { } + public OperationDisplay() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationDisplay class. @@ -38,8 +41,14 @@ public OperationDisplay() { } Provider = provider; Resource = resource; Operation = operation; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets service provider: Microsoft SQL Database. /// @@ -61,4 +70,3 @@ public OperationDisplay() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs index 2b0560d98607..b4357304e49f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationImpact.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class OperationImpact /// /// Initializes a new instance of the OperationImpact class. /// - public OperationImpact() { } + public OperationImpact() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationImpact class. @@ -40,32 +43,37 @@ public OperationImpact() { } Unit = unit; ChangeValueAbsolute = changeValueAbsolute; ChangeValueRelative = changeValueRelative; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the name of the impact dimension. /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the unit in which estimated impact to dimension is measured. /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; protected set; } + public string Unit { get; private set; } /// /// Gets the absolute impact to dimension. /// [JsonProperty(PropertyName = "changeValueAbsolute")] - public double? ChangeValueAbsolute { get; protected set; } + public double? ChangeValueAbsolute { get; private set; } /// /// Gets the relative impact to dimension (null if not applicable) /// [JsonProperty(PropertyName = "changeValueRelative")] - public double? ChangeValueRelative { get; protected set; } + public double? ChangeValueRelative { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs index 52311fe57078..bfa59c2e3868 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/OperationListResult.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -25,7 +25,10 @@ public partial class OperationListResult /// /// Initializes a new instance of the OperationListResult class. /// - public OperationListResult() { } + public OperationListResult() + { + CustomInit(); + } /// /// Initializes a new instance of the OperationListResult class. @@ -38,8 +41,14 @@ public OperationListResult() { } { Value = value; NextLink = nextLink; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets list of SQL operations supported by the SQL resource /// provider. @@ -56,4 +65,3 @@ public OperationListResult() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs index 6874c44162dd..229b1dcf1f69 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Page.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -52,4 +52,3 @@ IEnumerator IEnumerable.GetEnumerator() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/PerformanceLevelUnit.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/PerformanceLevelUnit.cs new file mode 100644 index 000000000000..746fd8598bc1 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/PerformanceLevelUnit.cs @@ -0,0 +1,28 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for PerformanceLevelUnit. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PerformanceLevelUnit + { + [EnumMember(Value = "DTU")] + DTU + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs index 1adb6c3dc4c4..066c8fef753f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReadScale.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for ReadScale. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum ReadScale { [EnumMember(Value = "Enabled")] @@ -28,4 +28,3 @@ public enum ReadScale Disabled } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs index 2b08d7481216..f3c73a3c7eb9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPool.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a recommented elastic pool. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class RecommendedElasticPool : Resource { /// /// Initializes a new instance of the RecommendedElasticPool class. /// - public RecommendedElasticPool() { } + public RecommendedElasticPool() + { + CustomInit(); + } /// /// Initializes a new instance of the RecommendedElasticPool class. @@ -54,11 +57,11 @@ public RecommendedElasticPool() { } /// Gets maximum observed DTU. /// Gets maximum observed storage in /// megabytes. - /// The list of databases in this pool. + /// The list of databases in this pool. /// Expanded property /// The list of databases housed in the server. /// Expanded property - public RecommendedElasticPool(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databasesProperty = default(IList), IList metrics = default(IList)) + public RecommendedElasticPool(string location, string name = default(string), string id = default(string), string type = default(string), IDictionary tags = default(IDictionary), string databaseEdition = default(string), double? dtu = default(double?), double? databaseDtuMin = default(double?), double? databaseDtuMax = default(double?), double? storageMB = default(double?), System.DateTime? observationPeriodStart = default(System.DateTime?), System.DateTime? observationPeriodEnd = default(System.DateTime?), double? maxObservedDtu = default(double?), double? maxObservedStorageMB = default(double?), IList databases = default(IList), IList metrics = default(IList)) : base(location, name, id, type, tags) { DatabaseEdition = databaseEdition; @@ -70,17 +73,23 @@ public RecommendedElasticPool() { } ObservationPeriodEnd = observationPeriodEnd; MaxObservedDtu = maxObservedDtu; MaxObservedStorageMB = maxObservedStorageMB; - DatabasesProperty = databasesProperty; + Databases = databases; Metrics = metrics; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the edition of the recommended elastic pool. The /// ElasticPoolEditions enumeration contains all the valid editions. /// Possible values include: 'Basic', 'Standard', 'Premium' /// [JsonProperty(PropertyName = "properties.databaseEdition")] - public string DatabaseEdition { get; protected set; } + public string DatabaseEdition { get; private set; } /// /// Gets or sets the DTU for the recommended elastic pool. @@ -110,37 +119,37 @@ public RecommendedElasticPool() { } /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodStart")] - public System.DateTime? ObservationPeriodStart { get; protected set; } + public System.DateTime? ObservationPeriodStart { get; private set; } /// /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodEnd")] - public System.DateTime? ObservationPeriodEnd { get; protected set; } + public System.DateTime? ObservationPeriodEnd { get; private set; } /// /// Gets maximum observed DTU. /// [JsonProperty(PropertyName = "properties.maxObservedDtu")] - public double? MaxObservedDtu { get; protected set; } + public double? MaxObservedDtu { get; private set; } /// /// Gets maximum observed storage in megabytes. /// [JsonProperty(PropertyName = "properties.maxObservedStorageMB")] - public double? MaxObservedStorageMB { get; protected set; } + public double? MaxObservedStorageMB { get; private set; } /// /// Gets the list of databases in this pool. Expanded property /// [JsonProperty(PropertyName = "properties.databases")] - public IList DatabasesProperty { get; protected set; } + public IList Databases { get; private set; } /// /// Gets the list of databases housed in the server. Expanded property /// [JsonProperty(PropertyName = "properties.metrics")] - public IList Metrics { get; protected set; } + public IList Metrics { get; private set; } /// /// Validate the object. @@ -151,9 +160,9 @@ public RecommendedElasticPool() { } public override void Validate() { base.Validate(); - if (DatabasesProperty != null) + if (Databases != null) { - foreach (var element in DatabasesProperty) + foreach (var element in Databases) { if (element != null) { @@ -164,4 +173,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs index 9160cebc65bf..4cabdbcd469a 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedElasticPoolMetric.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -23,7 +23,10 @@ public partial class RecommendedElasticPoolMetric /// Initializes a new instance of the RecommendedElasticPoolMetric /// class. /// - public RecommendedElasticPoolMetric() { } + public RecommendedElasticPoolMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the RecommendedElasticPoolMetric @@ -39,8 +42,14 @@ public RecommendedElasticPoolMetric() { } DateTime = dateTime; Dtu = dtu; SizeGB = sizeGB; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the time of metric (ISO8601 format). /// @@ -62,4 +71,3 @@ public RecommendedElasticPoolMetric() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs index ecc8d77ce70c..794c2958dbcf 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndex.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database recommended index. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class RecommendedIndex : Resource { /// /// Initializes a new instance of the RecommendedIndex class. /// - public RecommendedIndex() { } + public RecommendedIndex() + { + CustomInit(); + } /// /// Initializes a new instance of the RecommendedIndex class. @@ -79,15 +82,21 @@ public RecommendedIndex() { } IndexScript = indexScript; EstimatedImpact = estimatedImpact; ReportedImpact = reportedImpact; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the proposed index action. You can create a missing index, /// drop an unused index, or rebuild an existing index to improve its /// performance. Possible values include: 'Create', 'Drop', 'Rebuild' /// [JsonProperty(PropertyName = "properties.action")] - public RecommendedIndexActions? Action { get; protected set; } + public RecommendedIndexActions? Action { get; private set; } /// /// Gets the current recommendation state. Possible values include: @@ -95,21 +104,21 @@ public RecommendedIndex() { } /// 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' /// [JsonProperty(PropertyName = "properties.state")] - public RecommendedIndexStates? State { get; protected set; } + public RecommendedIndexStates? State { get; private set; } /// /// Gets the UTC datetime showing when this resource was created /// (ISO8601 format). /// [JsonProperty(PropertyName = "properties.created")] - public System.DateTime? Created { get; protected set; } + public System.DateTime? Created { get; private set; } /// /// Gets the UTC datetime of when was this resource last changed /// (ISO8601 format). /// [JsonProperty(PropertyName = "properties.lastModified")] - public System.DateTime? LastModified { get; protected set; } + public System.DateTime? LastModified { get; private set; } /// /// Gets the type of index (CLUSTERED, NONCLUSTERED, COLUMNSTORE, @@ -117,49 +126,49 @@ public RecommendedIndex() { } /// 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' /// [JsonProperty(PropertyName = "properties.indexType")] - public RecommendedIndexTypes? IndexType { get; protected set; } + public RecommendedIndexTypes? IndexType { get; private set; } /// /// Gets the schema where table to build index over resides /// [JsonProperty(PropertyName = "properties.schema")] - public string Schema { get; protected set; } + public string Schema { get; private set; } /// /// Gets the table on which to build index. /// [JsonProperty(PropertyName = "properties.table")] - public string Table { get; protected set; } + public string Table { get; private set; } /// /// Gets columns over which to build index /// [JsonProperty(PropertyName = "properties.columns")] - public IList Columns { get; protected set; } + public IList Columns { get; private set; } /// /// Gets the list of column names to be included in the index /// [JsonProperty(PropertyName = "properties.includedColumns")] - public IList IncludedColumns { get; protected set; } + public IList IncludedColumns { get; private set; } /// /// Gets the full build index script /// [JsonProperty(PropertyName = "properties.indexScript")] - public string IndexScript { get; protected set; } + public string IndexScript { get; private set; } /// /// Gets the estimated impact of doing recommended index action. /// [JsonProperty(PropertyName = "properties.estimatedImpact")] - public IList EstimatedImpact { get; protected set; } + public IList EstimatedImpact { get; private set; } /// /// Gets the values reported after index action is complete. /// [JsonProperty(PropertyName = "properties.reportedImpact")] - public IList ReportedImpact { get; protected set; } + public IList ReportedImpact { get; private set; } /// /// Validate the object. @@ -173,4 +182,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs index a548b1a7038b..2e186b65f556 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexActions.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RecommendedIndexActions. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RecommendedIndexActions { [EnumMember(Value = "Create")] @@ -30,4 +30,3 @@ public enum RecommendedIndexActions Rebuild } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs index 238086f39ccd..7e73ad0dce3b 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexStates.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RecommendedIndexStates. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RecommendedIndexStates { [EnumMember(Value = "Active")] @@ -46,4 +46,3 @@ public enum RecommendedIndexStates Success } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs index 737d4e5a1d90..f8942e0aa74b 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RecommendedIndexTypes.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RecommendedIndexTypes. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RecommendedIndexTypes { [EnumMember(Value = "CLUSTERED")] @@ -32,4 +32,3 @@ public enum RecommendedIndexTypes CLUSTEREDCOLUMNSTORE } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs index 29c9f64b193a..97c30f8942dd 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationLink.cs @@ -2,30 +2,33 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Represents a database replication link. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ReplicationLink : SqlSubResource { /// /// Initializes a new instance of the ReplicationLink class. /// - public ReplicationLink() { } + public ReplicationLink() + { + CustomInit(); + } /// /// Initializes a new instance of the ReplicationLink class. @@ -73,50 +76,56 @@ public ReplicationLink() { } StartTime = startTime; PercentComplete = percentComplete; ReplicationState = replicationState; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets location of the server that contains this firewall rule. /// [JsonProperty(PropertyName = "location")] - public string Location { get; protected set; } + public string Location { get; private set; } /// /// Gets type of resource this is. /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets legacy value indicating whether termination is allowed. /// Currently always returns true. /// [JsonProperty(PropertyName = "properties.isTerminationAllowed")] - public bool? IsTerminationAllowed { get; protected set; } + public bool? IsTerminationAllowed { get; private set; } /// /// Gets replication mode of this replication link. /// [JsonProperty(PropertyName = "properties.replicationMode")] - public string ReplicationMode { get; protected set; } + public string ReplicationMode { get; private set; } /// /// Gets the name of the server hosting the partner database. /// [JsonProperty(PropertyName = "properties.partnerServer")] - public string PartnerServer { get; protected set; } + public string PartnerServer { get; private set; } /// /// Gets the name of the partner database. /// [JsonProperty(PropertyName = "properties.partnerDatabase")] - public string PartnerDatabase { get; protected set; } + public string PartnerDatabase { get; private set; } /// /// Gets the Azure Region of the partner database. /// [JsonProperty(PropertyName = "properties.partnerLocation")] - public string PartnerLocation { get; protected set; } + public string PartnerLocation { get; private set; } /// /// Gets the role of the database in the replication link. Possible @@ -124,7 +133,7 @@ public ReplicationLink() { } /// 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.role")] - public ReplicationRole? Role { get; protected set; } + public ReplicationRole? Role { get; private set; } /// /// Gets the role of the partner database in the replication link. @@ -132,27 +141,26 @@ public ReplicationLink() { } /// 'NonReadableSecondary', 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.partnerRole")] - public ReplicationRole? PartnerRole { get; protected set; } + public ReplicationRole? PartnerRole { get; private set; } /// /// Gets the start time for the replication link. /// [JsonProperty(PropertyName = "properties.startTime")] - public System.DateTime? StartTime { get; protected set; } + public System.DateTime? StartTime { get; private set; } /// /// Gets the percentage of seeding complete for the replication link. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public int? PercentComplete { get; protected set; } + public int? PercentComplete { get; private set; } /// /// Gets the replication state for the replication link. Possible /// values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] - public string ReplicationState { get; protected set; } + public string ReplicationState { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs index fd99c0cfc0ca..c6ad5ebfe7d6 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationRole.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for ReplicationRole. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum ReplicationRole { [EnumMember(Value = "Primary")] @@ -34,4 +34,3 @@ public enum ReplicationRole Copy } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs index 9fa5d1db98f6..f4d819c0c36b 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ReplicationState.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ReplicationState. @@ -23,4 +23,3 @@ public static class ReplicationState public const string SUSPENDED = "SUSPENDED"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs index 7e42b810d834..ef1055aa6406 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Resource.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +26,10 @@ public partial class Resource : IResource /// /// Initializes a new instance of the Resource class. /// - public Resource() { } + public Resource() + { + CustomInit(); + } /// /// Initializes a new instance of the Resource class. @@ -43,25 +46,31 @@ public Resource() { } Type = type; Location = location; Tags = tags; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets resource name /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets resource ID /// [JsonProperty(PropertyName = "id")] - public string Id { get; protected set; } + public string Id { get; private set; } /// /// Gets resource type /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets or sets resource location @@ -90,4 +99,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs index 653693a2cccf..6bd3fb13e5e9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePoint.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database restore point. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class RestorePoint : Resource { /// /// Initializes a new instance of the RestorePoint class. /// - public RestorePoint() { } + public RestorePoint() + { + CustomInit(); + } /// /// Initializes a new instance of the RestorePoint class. @@ -52,28 +55,34 @@ public RestorePoint() { } RestorePointType = restorePointType; RestorePointCreationDate = restorePointCreationDate; EarliestRestoreDate = earliestRestoreDate; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the restore point type of the database restore point. Possible /// values include: 'DISCRETE', 'CONTINUOUS' /// [JsonProperty(PropertyName = "properties.restorePointType")] - public RestorePointTypes? RestorePointType { get; protected set; } + public RestorePointTypes? RestorePointType { get; private set; } /// /// Gets restore point creation time (ISO8601 format). Populated when /// restorePointType = CONTINUOUS. Null otherwise. /// [JsonProperty(PropertyName = "properties.restorePointCreationDate")] - public System.DateTime? RestorePointCreationDate { get; protected set; } + public System.DateTime? RestorePointCreationDate { get; private set; } /// /// Gets earliest restore time (ISO8601 format). Populated when /// restorePointType = DISCRETE. Null otherwise. /// [JsonProperty(PropertyName = "properties.earliestRestoreDate")] - public System.DateTime? EarliestRestoreDate { get; protected set; } + public System.DateTime? EarliestRestoreDate { get; private set; } /// /// Validate the object. @@ -87,4 +96,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs index e417275b1001..418d20f5ddd3 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/RestorePointTypes.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for RestorePointTypes. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum RestorePointTypes { [EnumMember(Value = "DISCRETE")] @@ -28,4 +28,3 @@ public enum RestorePointTypes CONTINUOUS } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs index ad5ad7b2ace7..c29c4a2b71e4 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SampleName.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for SampleName. @@ -20,4 +20,3 @@ public static class SampleName public const string AdventureWorksLT = "AdventureWorksLT"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs index 51ba2a2dcded..715f19d601b8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Schema.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database schema. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Schema : Resource { /// /// Initializes a new instance of the Schema class. /// - public Schema() { } + public Schema() + { + CustomInit(); + } /// /// Initializes a new instance of the Schema class. @@ -42,13 +45,19 @@ public Schema() { } : base(location, name, id, type, tags) { Tables = tables; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the tables from this database. /// [JsonProperty(PropertyName = "properties.tables")] - public IList Tables { get; protected set; } + public IList
Tables { get; private set; } /// /// Validate the object. @@ -72,4 +81,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlert.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlert.cs new file mode 100644 index 000000000000..92e45ecfadbd --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlert.cs @@ -0,0 +1,26 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + + /// + /// Defines values for SecurityAlert. + /// + public static class SecurityAlert + { + public const string SqlInjection = "Sql_Injection"; + public const string SqlInjectionVulnerability = "Sql_Injection_Vulnerability"; + public const string AccessAnomaly = "Access_Anomaly"; + public const string UsageAnomaly = "Usage_Anomaly"; + public const string Preview = "Preview"; + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs new file mode 100644 index 000000000000..fea00eaf6a3b --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyEmailAccountAdmins.cs @@ -0,0 +1,30 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SecurityAlertPolicyEmailAccountAdmins. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SecurityAlertPolicyEmailAccountAdmins + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyState.cs new file mode 100644 index 000000000000..fe6fd2f81c89 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyState.cs @@ -0,0 +1,32 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SecurityAlertPolicyState. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SecurityAlertPolicyState + { + [EnumMember(Value = "New")] + New, + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs new file mode 100644 index 000000000000..9117b18e6102 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SecurityAlertPolicyUseServerDefault.cs @@ -0,0 +1,30 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SecurityAlertPolicyUseServerDefault. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SecurityAlertPolicyUseServerDefault + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Disabled")] + Disabled + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs index 94ce0b3719de..fc0ab41ee3c8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Server.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a server. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Server : Resource { /// /// Initializes a new instance of the Server class. /// - public Server() { } + public Server() + { + CustomInit(); + } /// /// Initializes a new instance of the Server class. @@ -70,20 +73,26 @@ public Server() { } ExternalAdministratorSid = externalAdministratorSid; ExternalAdministratorLogin = externalAdministratorLogin; State = state; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets kind of sql server. This is metadata used for the Azure /// portal experience. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Gets the fully qualified domain name of the server. /// [JsonProperty(PropertyName = "properties.fullyQualifiedDomainName")] - public string FullyQualifiedDomainName { get; protected set; } + public string FullyQualifiedDomainName { get; private set; } /// /// Gets or sets the version of the server. Possible values include: @@ -114,7 +123,7 @@ public Server() { } /// .../servers/{serverName}/administrators. /// [JsonProperty(PropertyName = "properties.externalAdministratorSid")] - public System.Guid? ExternalAdministratorSid { get; protected set; } + public System.Guid? ExternalAdministratorSid { get; private set; } /// /// Gets the display name of the Azure Active Directory object with @@ -123,14 +132,14 @@ public Server() { } /// .../servers/{serverName}/administrators /// [JsonProperty(PropertyName = "properties.externalAdministratorLogin")] - public string ExternalAdministratorLogin { get; protected set; } + public string ExternalAdministratorLogin { get; private set; } /// /// Gets the state of the server. Possible values include: 'Ready', /// 'Disabled' /// [JsonProperty(PropertyName = "properties.state")] - public ServerState? State { get; protected set; } + public ServerState? State { get; private set; } /// /// Validate the object. @@ -144,4 +153,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs index 0d1dafa9a75d..089538a122af 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerFirewallRule.cs @@ -2,30 +2,33 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Represents a server firewall rule. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ServerFirewallRule : SqlSubResource { /// /// Initializes a new instance of the ServerFirewallRule class. /// - public ServerFirewallRule() { } + public ServerFirewallRule() + { + CustomInit(); + } /// /// Initializes a new instance of the ServerFirewallRule class. @@ -52,25 +55,31 @@ public ServerFirewallRule() { } Type = type; StartIpAddress = startIpAddress; EndIpAddress = endIpAddress; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets kind of server that contains this firewall rule. /// [JsonProperty(PropertyName = "kind")] - public string Kind { get; protected set; } + public string Kind { get; private set; } /// /// Gets location of the server that contains this firewall rule. /// [JsonProperty(PropertyName = "location")] - public string Location { get; protected set; } + public string Location { get; private set; } /// /// Gets type of resource this is. /// [JsonProperty(PropertyName = "type")] - public string Type { get; protected set; } + public string Type { get; private set; } /// /// Gets or sets the start IP address of the firewall rule. Must be @@ -107,4 +116,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs index 514b443b2e14..165386b6bc0a 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerMetric.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class ServerMetric /// /// Initializes a new instance of the ServerMetric class. /// - public ServerMetric() { } + public ServerMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the ServerMetric class. @@ -44,50 +47,55 @@ public ServerMetric() { } Limit = limit; Unit = unit; NextResetTime = nextResetTime; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets name of the server usage metric. /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the name of the resource. /// [JsonProperty(PropertyName = "resourceName")] - public string ResourceName { get; protected set; } + public string ResourceName { get; private set; } /// /// Gets the metric display name. /// [JsonProperty(PropertyName = "displayName")] - public string DisplayName { get; protected set; } + public string DisplayName { get; private set; } /// /// Gets the current value of the metric. /// [JsonProperty(PropertyName = "currentValue")] - public double? CurrentValue { get; protected set; } + public double? CurrentValue { get; private set; } /// /// Gets the current limit of the metric. /// [JsonProperty(PropertyName = "limit")] - public double? Limit { get; protected set; } + public double? Limit { get; private set; } /// /// Gets the units of the metric. /// [JsonProperty(PropertyName = "unit")] - public string Unit { get; protected set; } + public string Unit { get; private set; } /// /// Gets the next reset time for the metric (ISO8601 format). /// [JsonProperty(PropertyName = "nextResetTime")] - public System.DateTime? NextResetTime { get; protected set; } + public System.DateTime? NextResetTime { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs index c2669c27745e..db7bcb0552b3 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerState.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for ServerState. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum ServerState { [EnumMember(Value = "Ready")] @@ -28,4 +28,3 @@ public enum ServerState Disabled } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs index 820962c3339e..4f9f632f75ba 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersion.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ServerVersion. @@ -21,4 +21,3 @@ public static class ServerVersion public const string OneTwoFullStopZero = "12.0"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersionCapability.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersionCapability.cs new file mode 100644 index 000000000000..0b8db04a770d --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServerVersionCapability.cs @@ -0,0 +1,74 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The server capabilities. + /// + public partial class ServerVersionCapability + { + /// + /// Initializes a new instance of the ServerVersionCapability class. + /// + public ServerVersionCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServerVersionCapability class. + /// + /// The server version name. + /// The status of the server version. Possible + /// values include: 'Visible', 'Available', 'Default', + /// 'Disabled' + /// The list of supported server + /// editions. + public ServerVersionCapability(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), IList supportedEditions = default(IList)) + { + Name = name; + Status = status; + SupportedEditions = supportedEditions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the server version name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the status of the server version. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets the list of supported server editions. + /// + [JsonProperty(PropertyName = "supportedEditions")] + public IList SupportedEditions { get; private set; } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs index b2a9f4ab297f..012855de145e 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjective.cs @@ -2,30 +2,33 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Represents a database service objective. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ServiceObjective : SqlSubResource { /// /// Initializes a new instance of the ServiceObjective class. /// - public ServiceObjective() { } + public ServiceObjective() + { + CustomInit(); + } /// /// Initializes a new instance of the ServiceObjective class. @@ -50,40 +53,45 @@ public ServiceObjective() { } IsSystem = isSystem; Description = description; Enabled = enabled; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the name for the service objective. /// [JsonProperty(PropertyName = "properties.serviceObjectiveName")] - public string ServiceObjectiveName { get; protected set; } + public string ServiceObjectiveName { get; private set; } /// /// Gets whether the service level objective is the default service /// objective. /// [JsonProperty(PropertyName = "properties.isDefault")] - public bool? IsDefault { get; protected set; } + public bool? IsDefault { get; private set; } /// /// Gets whether the service level objective is a system service /// objective. /// [JsonProperty(PropertyName = "properties.isSystem")] - public bool? IsSystem { get; protected set; } + public bool? IsSystem { get; private set; } /// /// Gets the description for the service level objective. /// [JsonProperty(PropertyName = "properties.description")] - public string Description { get; protected set; } + public string Description { get; private set; } /// /// Gets whether the service level objective is enabled. /// [JsonProperty(PropertyName = "properties.enabled")] - public bool? Enabled { get; protected set; } + public bool? Enabled { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveCapability.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveCapability.cs new file mode 100644 index 000000000000..ece14b5ac26f --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveCapability.cs @@ -0,0 +1,104 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The service objectives capabilities. + /// + [Rest.Serialization.JsonTransformation] + public partial class ServiceObjectiveCapability + { + /// + /// Initializes a new instance of the ServiceObjectiveCapability class. + /// + public ServiceObjectiveCapability() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ServiceObjectiveCapability class. + /// + /// The service objective name. + /// The status of the service objective. Possible + /// values include: 'Visible', 'Available', 'Default', + /// 'Disabled' + /// Unit type used to measure service objective + /// performance level. Possible values include: 'DTU' + /// Performance level value. + /// The unique ID of the service objective. + /// The list of supported maximum + /// database sizes for this service objective. + public ServiceObjectiveCapability(string name = default(string), CapabilityStatus? status = default(CapabilityStatus?), PerformanceLevelUnit? unit = default(PerformanceLevelUnit?), int? value = default(int?), string id = default(string), IList supportedMaxSizes = default(IList)) + { + Name = name; + Status = status; + Unit = unit; + Value = value; + Id = id; + SupportedMaxSizes = supportedMaxSizes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the service objective name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the status of the service objective. Possible values include: + /// 'Visible', 'Available', 'Default', 'Disabled' + /// + [JsonProperty(PropertyName = "status")] + public CapabilityStatus? Status { get; private set; } + + /// + /// Gets unit type used to measure service objective performance level. + /// Possible values include: 'DTU' + /// + [JsonProperty(PropertyName = "performanceLevel.unit")] + public PerformanceLevelUnit? Unit { get; private set; } + + /// + /// Gets performance level value. + /// + [JsonProperty(PropertyName = "performanceLevel.value")] + public int? Value { get; private set; } + + /// + /// Gets the unique ID of the service objective. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the list of supported maximum database sizes for this service + /// objective. + /// + [JsonProperty(PropertyName = "supportedMaxSizes")] + public IList SupportedMaxSizes { get; private set; } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs index 2d48cb3b9fb5..9d7b728a8a13 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceObjectiveName.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for ServiceObjectiveName. @@ -33,4 +33,3 @@ public static class ServiceObjectiveName public const string ElasticPool = "ElasticPool"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs index 959cf5b3ee56..3468325dfa56 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/ServiceTierAdvisor.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a Service Tier Advisor. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class ServiceTierAdvisor : SqlSubResource { /// /// Initializes a new instance of the ServiceTierAdvisor class. /// - public ServiceTierAdvisor() { } + public ServiceTierAdvisor() + { + CustomInit(); + } /// /// Initializes a new instance of the ServiceTierAdvisor class. @@ -107,132 +110,137 @@ public ServiceTierAdvisor() { } OverallRecommendationServiceLevelObjective = overallRecommendationServiceLevelObjective; OverallRecommendationServiceLevelObjectiveId = overallRecommendationServiceLevelObjectiveId; Confidence = confidence; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodStart")] - public System.DateTime? ObservationPeriodStart { get; protected set; } + public System.DateTime? ObservationPeriodStart { get; private set; } /// /// Gets the observation period start (ISO8601 format). /// [JsonProperty(PropertyName = "properties.observationPeriodEnd")] - public System.DateTime? ObservationPeriodEnd { get; protected set; } + public System.DateTime? ObservationPeriodEnd { get; private set; } /// /// Gets the activeTimeRatio for service tier advisor. /// [JsonProperty(PropertyName = "properties.activeTimeRatio")] - public double? ActiveTimeRatio { get; protected set; } + public double? ActiveTimeRatio { get; private set; } /// /// Gets or sets minDtu for service tier advisor. /// [JsonProperty(PropertyName = "properties.minDtu")] - public double? MinDtu { get; protected set; } + public double? MinDtu { get; private set; } /// /// Gets or sets avgDtu for service tier advisor. /// [JsonProperty(PropertyName = "properties.avgDtu")] - public double? AvgDtu { get; protected set; } + public double? AvgDtu { get; private set; } /// /// Gets or sets maxDtu for service tier advisor. /// [JsonProperty(PropertyName = "properties.maxDtu")] - public double? MaxDtu { get; protected set; } + public double? MaxDtu { get; private set; } /// /// Gets or sets maxSizeInGB for service tier advisor. /// [JsonProperty(PropertyName = "properties.maxSizeInGB")] - public double? MaxSizeInGB { get; protected set; } + public double? MaxSizeInGB { get; private set; } /// /// Gets or sets serviceLevelObjectiveUsageMetrics for the service tier /// advisor. /// [JsonProperty(PropertyName = "properties.serviceLevelObjectiveUsageMetrics")] - public IList ServiceLevelObjectiveUsageMetrics { get; protected set; } + public IList ServiceLevelObjectiveUsageMetrics { get; private set; } /// /// Gets or sets currentServiceLevelObjective for service tier advisor. /// [JsonProperty(PropertyName = "properties.currentServiceLevelObjective")] - public string CurrentServiceLevelObjective { get; protected set; } + public string CurrentServiceLevelObjective { get; private set; } /// /// Gets or sets currentServiceLevelObjectiveId for service tier /// advisor. /// [JsonProperty(PropertyName = "properties.currentServiceLevelObjectiveId")] - public System.Guid? CurrentServiceLevelObjectiveId { get; protected set; } + public System.Guid? CurrentServiceLevelObjectiveId { get; private set; } /// /// Gets or sets usageBasedRecommendationServiceLevelObjective for /// service tier advisor. /// [JsonProperty(PropertyName = "properties.usageBasedRecommendationServiceLevelObjective")] - public string UsageBasedRecommendationServiceLevelObjective { get; protected set; } + public string UsageBasedRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets usageBasedRecommendationServiceLevelObjectiveId for /// service tier advisor. /// [JsonProperty(PropertyName = "properties.usageBasedRecommendationServiceLevelObjectiveId")] - public System.Guid? UsageBasedRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? UsageBasedRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets databaseSizeBasedRecommendationServiceLevelObjective /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.databaseSizeBasedRecommendationServiceLevelObjective")] - public string DatabaseSizeBasedRecommendationServiceLevelObjective { get; protected set; } + public string DatabaseSizeBasedRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets databaseSizeBasedRecommendationServiceLevelObjectiveId /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.databaseSizeBasedRecommendationServiceLevelObjectiveId")] - public System.Guid? DatabaseSizeBasedRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? DatabaseSizeBasedRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets disasterPlanBasedRecommendationServiceLevelObjective /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.disasterPlanBasedRecommendationServiceLevelObjective")] - public string DisasterPlanBasedRecommendationServiceLevelObjective { get; protected set; } + public string DisasterPlanBasedRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets disasterPlanBasedRecommendationServiceLevelObjectiveId /// for service tier advisor. /// [JsonProperty(PropertyName = "properties.disasterPlanBasedRecommendationServiceLevelObjectiveId")] - public System.Guid? DisasterPlanBasedRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? DisasterPlanBasedRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets overallRecommendationServiceLevelObjective for service /// tier advisor. /// [JsonProperty(PropertyName = "properties.overallRecommendationServiceLevelObjective")] - public string OverallRecommendationServiceLevelObjective { get; protected set; } + public string OverallRecommendationServiceLevelObjective { get; private set; } /// /// Gets or sets overallRecommendationServiceLevelObjectiveId for /// service tier advisor. /// [JsonProperty(PropertyName = "properties.overallRecommendationServiceLevelObjectiveId")] - public System.Guid? OverallRecommendationServiceLevelObjectiveId { get; protected set; } + public System.Guid? OverallRecommendationServiceLevelObjectiveId { get; private set; } /// /// Gets or sets confidence for service tier advisor. /// [JsonProperty(PropertyName = "properties.confidence")] - public double? Confidence { get; protected set; } + public double? Confidence { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs index c66774c45fdd..b029dfbdcb41 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SloUsageMetric.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class SloUsageMetric /// /// Initializes a new instance of the SloUsageMetric class. /// - public SloUsageMetric() { } + public SloUsageMetric() + { + CustomInit(); + } /// /// Initializes a new instance of the SloUsageMetric class. @@ -40,8 +43,14 @@ public SloUsageMetric() { } ServiceLevelObjective = serviceLevelObjective; ServiceLevelObjectiveId = serviceLevelObjectiveId; InRangeTimeRatio = inRangeTimeRatio; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the serviceLevelObjective for SLO usage metric. /// Possible values include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', @@ -64,4 +73,3 @@ public SloUsageMetric() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs index c5346bf44a6e..e346fd059123 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlSubResource.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class SqlSubResource /// /// Initializes a new instance of the SqlSubResource class. /// - public SqlSubResource() { } + public SqlSubResource() + { + CustomInit(); + } /// /// Initializes a new instance of the SqlSubResource class. @@ -33,20 +36,25 @@ public SqlSubResource() { } { Name = name; Id = id; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets resource name /// [JsonProperty(PropertyName = "name")] - public string Name { get; protected set; } + public string Name { get; private set; } /// /// Gets the resource ID. /// [JsonProperty(PropertyName = "id")] - public string Id { get; protected set; } + public string Id { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlTypedSubResource.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlTypedSubResource.cs new file mode 100644 index 000000000000..4f9cddfaf6ff --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/SqlTypedSubResource.cs @@ -0,0 +1,55 @@ +// 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 1.0.1.0 +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Subresource properties + /// + public partial class SqlTypedSubResource : SqlSubResource + { + /// + /// Initializes a new instance of the SqlTypedSubResource class. + /// + public SqlTypedSubResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SqlTypedSubResource class. + /// + /// Resource name + /// The resource ID. + /// Resource type + public SqlTypedSubResource(string name = default(string), string id = default(string), string type = default(string)) + : base(name, id) + { + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs index 0f6972c3ea42..46e88403d8d4 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/StorageKeyType.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for StorageKeyType. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum StorageKeyType { [EnumMember(Value = "StorageAccessKey")] @@ -28,4 +28,3 @@ public enum StorageKeyType SharedAccessKey } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs index 8f1417dbab80..69909db858d8 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/Table.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -21,13 +21,16 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Represents a database table. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class Table : Resource { /// /// Initializes a new instance of the Table class. /// - public Table() { } + public Table() + { + CustomInit(); + } /// /// Initializes a new instance of the Table class. @@ -48,26 +51,32 @@ public Table() { } TableType = tableType; Columns = columns; RecommendedIndexes = recommendedIndexes; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the type of database table. Possible values include: /// 'BaseTable', 'View' /// [JsonProperty(PropertyName = "properties.tableType")] - public TableType? TableType { get; protected set; } + public TableType? TableType { get; private set; } /// /// Gets the columns from this table. /// [JsonProperty(PropertyName = "properties.columns")] - public IList Columns { get; protected set; } + public IList Columns { get; private set; } /// /// Gets the recommended indices for this table. /// [JsonProperty(PropertyName = "properties.recommendedIndexes")] - public IList RecommendedIndexes { get; protected set; } + public IList RecommendedIndexes { get; private set; } /// /// Validate the object. @@ -101,4 +110,3 @@ public override void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs index c6805a2c3320..47e740163487 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TableType.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for TableType. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum TableType { [EnumMember(Value = "BaseTable")] @@ -28,4 +28,3 @@ public enum TableType View } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs index 86ea1f0a86bc..58ed7ee7380f 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TargetElasticPoolEditions.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for TargetElasticPoolEditions. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum TargetElasticPoolEditions { [EnumMember(Value = "Basic")] @@ -30,4 +30,3 @@ public enum TargetElasticPoolEditions Premium } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs index df2de344333c..814a8d532136 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryption.cs @@ -2,30 +2,33 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Represents a database transparent data encryption . /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class TransparentDataEncryption : SqlSubResource { /// /// Initializes a new instance of the TransparentDataEncryption class. /// - public TransparentDataEncryption() { } + public TransparentDataEncryption() + { + CustomInit(); + } /// /// Initializes a new instance of the TransparentDataEncryption class. @@ -38,8 +41,14 @@ public TransparentDataEncryption() { } : base(name, id) { Status = status; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the status of the database transparent data /// encryption. Possible values include: 'Enabled', 'Disabled' @@ -49,4 +58,3 @@ public TransparentDataEncryption() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs index 110d85cf1a25..c6ba41500cd9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivity.cs @@ -2,31 +2,34 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Represents a database transparent data encryption Scan. /// - [JsonTransformation] + [Rest.Serialization.JsonTransformation] public partial class TransparentDataEncryptionActivity : SqlSubResource { /// /// Initializes a new instance of the TransparentDataEncryptionActivity /// class. /// - public TransparentDataEncryptionActivity() { } + public TransparentDataEncryptionActivity() + { + CustomInit(); + } /// /// Initializes a new instance of the TransparentDataEncryptionActivity @@ -43,22 +46,27 @@ public TransparentDataEncryptionActivity() { } { Status = status; PercentComplete = percentComplete; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets the status of the database. Possible values include: /// 'Encrypting', 'Decrypting' /// [JsonProperty(PropertyName = "properties.status")] - public string Status { get; protected set; } + public string Status { get; private set; } /// /// Gets the percent complete of the transparent data encryption scan /// for a database. /// [JsonProperty(PropertyName = "properties.percentComplete")] - public double? PercentComplete { get; protected set; } + public double? PercentComplete { get; private set; } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs index ac521bd13c90..51513ef15a93 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionActivityStates.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; /// /// Defines values for TransparentDataEncryptionActivityStates. @@ -21,4 +21,3 @@ public static class TransparentDataEncryptionActivityStates public const string Decrypting = "Decrypting"; } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs index c52653ac7e3b..d0c9c3b19f88 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/TransparentDataEncryptionStates.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Sql.Models /// /// Defines values for TransparentDataEncryptionStates. /// - [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(StringEnumConverter))] public enum TransparentDataEncryptionStates { [EnumMember(Value = "Enabled")] @@ -28,4 +28,3 @@ public enum TransparentDataEncryptionStates Disabled } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs index db46a3df2ecd..0922308bf869 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeHint.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; using Newtonsoft.Json; using System.Linq; @@ -22,7 +22,10 @@ public partial class UpgradeHint /// /// Initializes a new instance of the UpgradeHint class. /// - public UpgradeHint() { } + public UpgradeHint() + { + CustomInit(); + } /// /// Initializes a new instance of the UpgradeHint class. @@ -37,8 +40,14 @@ public UpgradeHint() { } { TargetServiceLevelObjective = targetServiceLevelObjective; TargetServiceLevelObjectiveId = targetServiceLevelObjectiveId; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets targetServiceLevelObjective for upgrade hint. /// @@ -53,4 +62,3 @@ public UpgradeHint() { } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs index f417c610e550..a91686f4beb5 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/Models/UpgradeRecommendedElasticPoolProperties.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql.Models { - using Azure; - using Management; - using Sql; - using Rest; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Azure.Management.Sql; + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +26,10 @@ public partial class UpgradeRecommendedElasticPoolProperties /// Initializes a new instance of the /// UpgradeRecommendedElasticPoolProperties class. /// - public UpgradeRecommendedElasticPoolProperties() { } + public UpgradeRecommendedElasticPoolProperties() + { + CustomInit(); + } /// /// Initializes a new instance of the @@ -60,8 +63,14 @@ public UpgradeRecommendedElasticPoolProperties() { } DatabaseDtuMax = databaseDtuMax; DatabaseCollection = databaseCollection; IncludeAllDatabases = includeAllDatabases; + CustomInit(); } + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + /// /// Gets or sets the name of the recommended elastic pool being /// upgraded. @@ -134,4 +143,3 @@ public virtual void Validate() } } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs index 193e5e01070e..2700ed6742ef 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -134,9 +134,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -151,6 +151,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -198,7 +200,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -235,7 +237,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -345,9 +347,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -362,6 +364,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -409,7 +413,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -446,7 +450,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -538,9 +542,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -555,6 +559,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -602,7 +608,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -639,7 +645,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -740,9 +746,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -757,6 +763,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -804,7 +812,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -841,7 +849,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -942,9 +950,9 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -959,6 +967,8 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1006,7 +1016,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1043,7 +1053,7 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1062,4 +1072,3 @@ internal RecommendedElasticPoolsOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs index 2808c1b03aeb..b0e0c7f03abe 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/RecommendedElasticPoolsOperationsExtensions.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -265,4 +265,3 @@ public static IEnumerable ListMetrics(this IRecomm } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs index 64b56154b5fa..4aa18d740752 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperations.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; using System.Collections; @@ -146,9 +146,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -163,6 +163,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -180,7 +182,7 @@ internal ServersOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -216,7 +218,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -253,7 +255,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -271,7 +273,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -369,9 +371,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -386,6 +388,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -423,11 +427,19 @@ internal ServersOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -545,9 +557,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -562,6 +574,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -609,7 +623,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -646,7 +660,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -738,9 +752,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -755,6 +769,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -802,7 +818,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -839,7 +855,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -938,9 +954,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -955,6 +971,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1002,7 +1020,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1039,7 +1057,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1143,9 +1161,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1160,6 +1178,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1177,7 +1197,7 @@ internal ServersOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -1213,7 +1233,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1250,7 +1270,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1268,7 +1288,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1357,9 +1377,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1374,6 +1394,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1411,11 +1433,19 @@ internal ServersOperations(SqlManagementClient client) if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - if (_httpResponse.Content != null) { + 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; + } } - else { - _responseContent = string.Empty; + catch (JsonException) + { + // Ignore the exception } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); @@ -1524,9 +1554,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1541,6 +1571,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1588,7 +1620,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1625,7 +1657,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1708,9 +1740,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1725,6 +1757,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1772,7 +1806,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -1809,7 +1843,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -1901,9 +1935,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -1918,6 +1952,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -1965,7 +2001,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2002,7 +2038,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2103,9 +2139,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -2120,6 +2156,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2167,7 +2205,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2204,7 +2242,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2296,9 +2334,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + 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) @@ -2313,6 +2351,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2360,7 +2400,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2397,7 +2437,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2501,9 +2541,9 @@ internal ServersOperations(SqlManagementClient client) _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2518,6 +2558,8 @@ internal ServersOperations(SqlManagementClient client) } _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -2535,7 +2577,7 @@ internal ServersOperations(SqlManagementClient client) if(parameters != null) { _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); - _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _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 @@ -2571,7 +2613,7 @@ internal ServersOperations(SqlManagementClient client) ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -2608,7 +2650,7 @@ internal ServersOperations(SqlManagementClient client) { _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -2627,4 +2669,3 @@ internal ServersOperations(SqlManagementClient client) } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs index 542c38da904e..9059b2ab823a 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/ServersOperationsExtensions.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Collections; using System.Collections.Generic; @@ -119,7 +119,7 @@ public static void DeleteFirewallRule(this IServersOperations operations, string /// public static async Task DeleteFirewallRuleAsync(this IServersOperations operations, string resourceGroupName, string serverName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteFirewallRuleWithHttpMessagesAsync(resourceGroupName, serverName, firewallRuleName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteFirewallRuleWithHttpMessagesAsync(resourceGroupName, serverName, firewallRuleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -372,7 +372,7 @@ public static void Delete(this IServersOperations operations, string resourceGro /// public static async Task DeleteAsync(this IServersOperations operations, string resourceGroupName, string serverName, CancellationToken cancellationToken = default(CancellationToken)) { - await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -635,4 +635,3 @@ public static ImportExportOperationResponse BeginImportDatabase(this IServersOpe } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs index f258532d2230..266861cbcbe1 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClient.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; - using Rest.Serialization; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; using Models; using Newtonsoft.Json; using System.Collections; @@ -39,12 +39,12 @@ public partial class SqlManagementClient : ServiceClient, I /// /// Gets or sets json serialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; private set; } + public JsonSerializerSettings SerializationSettings { get; private set; } /// /// Gets or sets json deserialization settings. /// - public Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; private set; } + public JsonSerializerSettings DeserializationSettings { get; private set; } /// /// Credentials needed for the client to connect to Azure. @@ -73,6 +73,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public bool? GenerateClientRequestId { get; set; } + /// + /// Gets the ICapabilitiesOperations. + /// + public virtual ICapabilitiesOperations Capabilities { get; private set; } + /// /// Gets the IServersOperations. /// @@ -98,13 +103,23 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IRecommendedElasticPoolsOperations RecommendedElasticPools { get; private set; } + /// + /// Gets the IDatabaseThreatDetectionPoliciesOperations. + /// + public virtual IDatabaseThreatDetectionPoliciesOperations DatabaseThreatDetectionPolicies { get; private set; } + + /// + /// Gets the IDatabaseBlobAuditingPoliciesOperations. + /// + public virtual IDatabaseBlobAuditingPoliciesOperations DatabaseBlobAuditingPolicies { get; private set; } + /// /// Initializes a new instance of the SqlManagementClient class. /// /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected SqlManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) + protected SqlManagementClient(params DelegatingHandler[] handlers) : base(handlers) { Initialize(); } @@ -118,7 +133,7 @@ protected SqlManagementClient(params System.Net.Http.DelegatingHandler[] handler /// /// Optional. The delegating handlers to add to the http client pipeline. /// - protected SqlManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) + protected SqlManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { Initialize(); } @@ -135,7 +150,7 @@ protected SqlManagementClient(System.Net.Http.HttpClientHandler rootHandler, par /// /// Thrown when a required parameter is null /// - protected SqlManagementClient(System.Uri baseUri, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + protected SqlManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -159,7 +174,7 @@ protected SqlManagementClient(System.Uri baseUri, params System.Net.Http.Delegat /// /// Thrown when a required parameter is null /// - protected SqlManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + protected SqlManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -180,7 +195,7 @@ protected SqlManagementClient(System.Uri baseUri, System.Net.Http.HttpClientHand /// /// Thrown when a required parameter is null /// - public SqlManagementClient(ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public SqlManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { @@ -208,7 +223,7 @@ public SqlManagementClient(ServiceClientCredentials credentials, params System.N /// /// Thrown when a required parameter is null /// - public SqlManagementClient(ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public SqlManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { @@ -236,7 +251,7 @@ public SqlManagementClient(ServiceClientCredentials credentials, System.Net.Http /// /// Thrown when a required parameter is null /// - public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -272,7 +287,7 @@ public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credenti /// /// Thrown when a required parameter is null /// - public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -299,16 +314,19 @@ public SqlManagementClient(System.Uri baseUri, ServiceClientCredentials credenti /// private void Initialize() { + Capabilities = new CapabilitiesOperations(this); Servers = new ServersOperations(this); Databases = new DatabasesOperations(this); ImportExportOperations = new ImportExportOperations(this); ElasticPools = new ElasticPoolsOperations(this); RecommendedElasticPools = new RecommendedElasticPoolsOperations(this); + DatabaseThreatDetectionPolicies = new DatabaseThreatDetectionPoliciesOperations(this); + DatabaseBlobAuditingPolicies = new DatabaseBlobAuditingPoliciesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; - SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings + SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, @@ -316,20 +334,20 @@ private void Initialize() NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + Converters = new List { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); - DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings + DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), - Converters = new System.Collections.Generic.List + Converters = new List { new Iso8601TimeSpanConverter() } @@ -383,9 +401,9 @@ private void Initialize() _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - var _httpRequest = new System.Net.Http.HttpRequestMessage(); - System.Net.Http.HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (GenerateClientRequestId != null && GenerateClientRequestId.Value) @@ -400,6 +418,8 @@ private void Initialize() } _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); } + + if (customHeaders != null) { foreach(var _header in customHeaders) @@ -447,7 +467,7 @@ private void Initialize() ex.Body = _errorBody; } } - catch (Newtonsoft.Json.JsonException) + catch (JsonException) { // Ignore the exception } @@ -484,7 +504,7 @@ private void Initialize() { _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } - catch (Newtonsoft.Json.JsonException ex) + catch (JsonException ex) { _httpRequest.Dispose(); if (_httpResponse != null) @@ -503,4 +523,3 @@ private void Initialize() } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs index 21f13bae02ae..aed8a280d8d9 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/Generated/SqlManagementClientExtensions.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. See License.txt in the project root for // license information. // -// Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 +// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Microsoft.Azure.Management.Sql { - using Azure; - using Management; - using Rest; - using Rest.Azure; + using Microsoft.Azure; + using Microsoft.Azure.Management; + using Microsoft.Rest; + using Microsoft.Rest.Azure; using Models; using System.Threading; using System.Threading.Tasks; @@ -51,4 +51,3 @@ public static OperationListResult ListOperations(this ISqlManagementClient opera } } - diff --git a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd index ea5429eb4475..360f6800c4b2 100644 --- a/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd +++ b/src/ResourceManagement/SqlManagement/Microsoft.Azure.Management.Sql/generate.cmd @@ -4,9 +4,9 @@ :: @echo off -set autoRestVersion=1.0.0-Nightly20161212 +set autoRestVersion=1.0.0-Nightly20170212 if "%1" == "" ( - set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b379c30fcb506b1bd643f6085b4bf318b8164b16/arm-sql/compositeSql.json" + set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7d9b6c018d9de2b7de189ea8658963ef8d3bc41b/arm-sql/compositeSql.json" ) else ( set specFile="%1" ) @@ -14,4 +14,6 @@ set repoRoot=%~dp0..\..\..\.. set generateFolder=%~dp0Generated if exist %generateFolder% rd /S /Q %generateFolder% -call "%repoRoot%\tools\autorest.composite.gen.cmd" %specFile% Microsoft.Azure.Management.Sql %autoRestVersion% %generateFolder% "-FT 1" + +autorest --version 1.0.1-20170309-2300-nightly -Modeler CompositeSwagger -CodeGenerator Azure.CSharp -Namespace Microsoft.Azure.Management.Sql -Input %specFile% -outputDirectory %generateFolder% -Header MICROSOFT_MIT %~5 + diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/CapabilitiesScenarioTests.cs b/src/ResourceManagement/SqlManagement/Sql.Tests/CapabilitiesScenarioTests.cs new file mode 100644 index 000000000000..48a45a2014ab --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/CapabilitiesScenarioTests.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.Resources; +using Microsoft.Azure.Management.Sql; +using Microsoft.Azure.Management.Sql.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System.Net; +using Xunit; + +namespace Sql.Tests +{ + public class CapabilitiesScenarioTests + { + [Fact] + public void TestGetCapabilities() + { + string login = "dummylogin"; + string password = "Un53cuRE!"; + string version12 = "12.0"; + string databaseName = "testdb"; + string testPrefix = "sqlcrudtest-"; + Dictionary tags = new Dictionary(); + string suiteName = this.GetType().FullName; + + using (MockContext context = MockContext.Start(suiteName, "TestGetCapabilities")) + { + var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + var resourceClient = SqlManagementTestUtilities.GetResourceManagementClient(context, handler); + var sqlClient = SqlManagementTestUtilities.GetSqlManagementClient(context, handler); + + LocationCapabilities capabilities = sqlClient.Capabilities.ListByLocation(SqlManagementTestUtilities.DefaultLocation); + + Assert.NotNull(capabilities); + + foreach(ServerVersionCapability s in capabilities.SupportedServerVersions) + { + Assert.NotNull(s.Name); + foreach(EditionCapability e in s.SupportedEditions) + { + Assert.NotNull(e.Name); + foreach (ServiceObjectiveCapability o in e.SupportedServiceLevelObjectives) + { + Assert.NotNull(o.Name); + Assert.NotNull(o.Unit); + foreach(MaxSizeCapability m in o.SupportedMaxSizes) + { + Assert.NotNull(m.Limit); + Assert.NotNull(m.Unit); + } + } + } + } + } + } + } +} diff --git a/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.CapabilitiesScenarioTests/TestGetCapabilities.json b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.CapabilitiesScenarioTests/TestGetCapabilities.json new file mode 100644 index 000000000000..f9d551f354a8 --- /dev/null +++ b/src/ResourceManagement/SqlManagement/Sql.Tests/SessionRecords/Sql.Tests.CapabilitiesScenarioTests/TestGetCapabilities.json @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/2e7fe4bd-90c7-454e-8bb6-dc44649f27b2/providers/Microsoft.Sql/locations/Japan%20East/capabilities?api-version=2014-04-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMmU3ZmU0YmQtOTBjNy00NTRlLThiYjYtZGM0NDY0OWYyN2IyL3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9KYXBhbiUyMEVhc3QvY2FwYWJpbGl0aWVzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "94353b89-fa66-40a2-bcc9-2e8f0f8f69b7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.24410.01", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.2.0-preview" + ] + }, + "ResponseBody": "{\r\n \"name\": \"Japan East\",\r\n \"status\": \"Available\",\r\n \"supportedServerVersions\": [\r\n {\r\n \"name\": \"2.0\",\r\n \"status\": \"Visible\",\r\n \"supportedEditions\": [\r\n {\r\n \"name\": \"Web\",\r\n \"status\": \"Visible\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"910b4fcb-8a29-4c3e-958f-f7ba794388b2\",\r\n \"name\": \"Shared\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Business\",\r\n \"status\": \"Visible\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"910b4fcb-8a29-4c3e-958f-f7ba794388b2\",\r\n \"name\": \"Shared\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Basic\",\r\n \"status\": \"Visible\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"dd6d99bb-f193-4ec1-86f2-43d3bccbc49c\",\r\n \"name\": \"Basic\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 5,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Standard\",\r\n \"status\": \"Visible\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"name\": \"S0\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 10,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"1b1ebd4d-d903-4baa-97f9-4ea675f5e928\",\r\n \"name\": \"S1\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 20,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"455330e1-00cd-488b-b5fa-177c226f28b7\",\r\n \"name\": \"S2\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 50,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Premium\",\r\n \"status\": \"Visible\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"7203483a-c4fb-4304-9e9f-17c71c904f5d\",\r\n \"name\": \"P1\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 100,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0\",\r\n \"name\": \"P2\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 200,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"a7c4c615-cfb1-464b-b252-925be0a19446\",\r\n \"name\": \"P3\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 800,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"43940481-9191-475a-9dba-6b505615b9aa\",\r\n \"name\": \"P6\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 800,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"System\",\r\n \"status\": \"Visible\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"26e021db-f1f9-4c98-84c6-92af8ef433d7\",\r\n \"name\": \"System\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"12.0\",\r\n \"status\": \"Default\",\r\n \"supportedEditions\": [\r\n {\r\n \"name\": \"System\",\r\n \"status\": \"Visible\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"26e021db-f1f9-4c98-84c6-92af8ef433d7\",\r\n \"name\": \"System\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"29dd7459-4a7c-4e56-be22-f0adda49440d\",\r\n \"name\": \"System0\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"c99ac918-dbea-463f-a475-16ec020fdc12\",\r\n \"name\": \"System1\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"620323bf-2879-4807-b30d-c2e6d7b3b3aa\",\r\n \"name\": \"System2\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"33d0db1f-6893-4210-99f9-463fb9b496a4\",\r\n \"name\": \"System3\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"da24338c-a6c9-46c2-a4bf-4ac95b496ae4\",\r\n \"name\": \"System4\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"53f7fa1b-b0d0-43d6-bc29-c5f059fb36e9\",\r\n \"name\": \"System2L\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"e79cd55c-689f-48d9-bffa-0dd12c772248\",\r\n \"name\": \"System3L\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"4b37bb6d-e004-47ac-8f7a-be56ac9fb490\",\r\n \"name\": \"System4L\",\r\n \"status\": \"Visible\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Visible\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 0,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Free\",\r\n \"status\": \"Available\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"6aa3bb3e-7f50-40d6-95ef-5497c30d99d8\",\r\n \"name\": \"Free\",\r\n \"status\": \"Default\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 32,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 5,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Basic\",\r\n \"status\": \"Available\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"dd6d99bb-f193-4ec1-86f2-43d3bccbc49c\",\r\n \"name\": \"Basic\",\r\n \"status\": \"Default\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 5,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Standard\",\r\n \"status\": \"Default\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"f1173c43-91bd-4aaa-973c-54e79e15235b\",\r\n \"name\": \"S0\",\r\n \"status\": \"Default\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 10,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"1b1ebd4d-d903-4baa-97f9-4ea675f5e928\",\r\n \"name\": \"S1\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 20,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"455330e1-00cd-488b-b5fa-177c226f28b7\",\r\n \"name\": \"S2\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 50,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"789681b8-ca10-4eb0-bdf2-e0b050601b40\",\r\n \"name\": \"S3\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 100,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Premium\",\r\n \"status\": \"Available\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"7203483a-c4fb-4304-9e9f-17c71c904f5d\",\r\n \"name\": \"P1\",\r\n \"status\": \"Default\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 125,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"a7d1b92d-c987-4375-b54d-2b1d0e0f5bb0\",\r\n \"name\": \"P2\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 250,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"afe1eee1-1f12-4e5f-9ad6-2de9c12cb4dc\",\r\n \"name\": \"P4\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"43940481-9191-475a-9dba-6b505615b9aa\",\r\n \"name\": \"P6\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 1000,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"dd00d544-bbc0-4f61-ba60-cdce0c410288\",\r\n \"name\": \"P11\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 4,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 1750,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"5bc86cca-9a96-4a94-90ef-bbdfcfbf2d71\",\r\n \"name\": \"P15\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 4,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 4000,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"PremiumRS\",\r\n \"status\": \"Available\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"dfdc102c-ed02-4349-9756-e227f0e43bb8\",\r\n \"name\": \"PRS1\",\r\n \"status\": \"Default\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 125,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"a089506e-b47a-4f42-8a32-cc19af4c86fb\",\r\n \"name\": \"PRS2\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 250,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"39cb8faf-cba8-4b1b-b580-1e1202f2a024\",\r\n \"name\": \"PRS4\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"1e8da92e-efcd-4682-9140-bf6582120d1f\",\r\n \"name\": \"PRS6\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Megabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 2,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 300,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 400,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Default\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 1000,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DataWarehouse\",\r\n \"status\": \"Available\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"4e63cb0e-91b9-46fd-b05c-51fdd2367618\",\r\n \"name\": \"DW100\",\r\n \"status\": \"Default\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 750,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"99e78a92-d724-4e1b-857b-2be661f3d153\",\r\n \"name\": \"DW200\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 1500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"284f1aff-fee7-4d3b-a211-5b8ebdd28fea\",\r\n \"name\": \"DW300\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 2250,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"3bdaeefe-8a9d-41d3-91c4-46ef896b19af\",\r\n \"name\": \"DW400\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 3000,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"5f759b78-8ec0-4dfb-97cc-c1455a3b5b4d\",\r\n \"name\": \"DW500\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 3750,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"efd65c5b-af7b-4389-9109-f6a69d6a3885\",\r\n \"name\": \"DW600\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 4500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"b89b9c6a-4ec2-4eb8-99db-6d2807e6aabb\",\r\n \"name\": \"DW1000\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 7500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"9a7a374e-b95c-4fd5-a68e-131d60796c47\",\r\n \"name\": \"DW1200\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 9000,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"b930f58e-86b5-43e0-a2da-d8bf8769c557\",\r\n \"name\": \"DW1500\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 11250,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"99165ede-a5ab-4b52-b317-e391d92ec370\",\r\n \"name\": \"DW2000\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 15000,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"8e28c923-5cf2-43cb-bd25-28c8c69b30ff\",\r\n \"name\": \"DW3000\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 22500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"ee1df062-4f3c-42ad-91bf-58b2a7c351e4\",\r\n \"name\": \"DW6000\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 45000,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Stretch\",\r\n \"status\": \"Available\",\r\n \"supportedServiceLevelObjectives\": [\r\n {\r\n \"id\": \"9cfc850f-d57f-4760-b5a6-bb640d268bf0\",\r\n \"name\": \"DS100\",\r\n \"status\": \"Default\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 750,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"053407ef-f01c-46f4-b829-96e01a14f449\",\r\n \"name\": \"DS200\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 1500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"013a9e10-cafc-45a8-8fcf-93095655d2ce\",\r\n \"name\": \"DS300\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 2250,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"79f61db4-8c10-46ba-a93a-d7d02dddd61c\",\r\n \"name\": \"DS400\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 3000,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"44eaac33-df00-4ef4-a2bb-f7ff87899eea\",\r\n \"name\": \"DS500\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 3750,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"f8e0f3a6-888b-459c-a9dd-d74d8b2b0e72\",\r\n \"name\": \"DS600\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 4500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"b9ed8f51-a414-42dc-8348-e4a1de25e12b\",\r\n \"name\": \"DS1000\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 7500,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"07479569-6d70-47a5-8db6-0af55d34f2c1\",\r\n \"name\": \"DS1200\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 9000,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"2d79baec-2879-46d5-9f5d-fb70eb004c4e\",\r\n \"name\": \"DS1500\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 11250,\r\n \"unit\": \"DTU\"\r\n }\r\n },\r\n {\r\n \"id\": \"7fb5389f-6d15-4e0b-9540-fe5ecdfdbeee\",\r\n \"name\": \"DS2000\",\r\n \"status\": \"Available\",\r\n \"supportedMaxSizes\": [\r\n {\r\n \"limit\": 250,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 500,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 750,\r\n \"unit\": \"Gigabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 1,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 5,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 10,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Default\"\r\n },\r\n {\r\n \"limit\": 20,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 30,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 40,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 50,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 60,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 70,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 80,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 90,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 150,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 200,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n },\r\n {\r\n \"limit\": 240,\r\n \"unit\": \"Terabytes\",\r\n \"status\": \"Available\"\r\n }\r\n ],\r\n \"performanceLevel\": {\r\n \"value\": 15000,\r\n \"unit\": \"DTU\"\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; odata=minimalmetadata; streaming=true; charset=utf-8" + ], + "Cache-Control": [ + "no-store, no-cache" + ], + "Date": [ + "Wed, 15 Mar 2017 22:44:41 GMT" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "3fb1949b-44ce-4cda-b303-64bcdf0bf9cc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "DataServiceVersion": [ + "3.0;" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14991" + ], + "x-ms-correlation-request-id": [ + "4e272598-24f8-44a2-8af8-0e68e2c97890" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20170315T224442Z:4e272598-24f8-44a2-8af8-0e68e2c97890" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "2e7fe4bd-90c7-454e-8bb6-dc44649f27b2" + } +} \ No newline at end of file