From 833bacd0cfeb2992cf8f5409a6629d1cc2b9d2f7 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 22 Dec 2020 07:06:31 +0000 Subject: [PATCH] CodeGen from PR 12201 in Azure/azure-rest-api-specs Merge ecb8c9f1db8b6b87bcd57f5847f8aecaa25cb8eb into 5468d71bae8a3dd12b1cf95c1245b92de2de7009 --- .../Generated/AutoQuotaIncreaseOperations.cs | 420 ----------------- .../AutoQuotaIncreaseOperationsExtensions.cs | 103 ----- .../Generated/AzureReservationAPIClient.cs | 62 +-- .../AzureReservationAPIClientExtensions.cs | 28 +- .../Generated/IAutoQuotaIncreaseOperations.cs | 76 --- .../Generated/IAzureReservationAPIClient.cs | 38 +- .../src/Generated/IQuotaOperations.cs | 86 ++-- .../IQuotaRequestStatusOperations.cs | 36 +- .../src/Generated/IReservationOperations.cs | 71 +-- .../Generated/IReservationOrderOperations.cs | 88 +--- .../src/Generated/Models/Actions.cs | 52 --- .../src/Generated/Models/AppliedScopeType.cs | 22 - .../src/Generated/Models/AqiSettings.cs | 53 --- .../Models/AutoQuotaIncreaseDetail.cs | 105 ----- .../Models/CalculatePriceResponse.cs | 46 -- .../CalculatePriceResponseProperties.cs | 110 ----- ...eResponsePropertiesBillingCurrencyTotal.cs | 58 --- ...eResponsePropertiesPricingCurrencyTotal.cs | 58 --- .../src/Generated/Models/Catalog.cs | 27 +- .../Models/CatalogBillingPlansItem.cs | 68 --- .../src/Generated/Models/CurrentQuotaLimit.cs | 7 +- .../Generated/Models/CurrentQuotaLimitBase.cs | 2 +- .../src/Generated/Models/EmailAction.cs | 52 --- .../src/Generated/Models/EmailActions.cs | 53 --- .../src/Generated/Models/ErrorResponseCode.cs | 75 --- .../src/Generated/Models/ExceptionResponse.cs | 6 +- .../src/Generated/Models/ExtendedErrorInfo.cs | 4 +- .../Generated/Models/InstanceFlexibility.cs | 22 - .../src/Generated/Models/Kind.cs | 54 +++ .../src/Generated/Models/Patch.cs | 31 +- .../Models/PatchPropertiesRenewProperties.cs | 48 -- .../src/Generated/Models/PaymentDetail.cs | 110 ----- .../src/Generated/Models/PaymentStatus.cs | 24 - .../src/Generated/Models/PhoneAction.cs | 60 --- .../src/Generated/Models/Price.cs | 56 --- .../src/Generated/Models/Properties.cs | 46 -- .../src/Generated/Models/PurchaseRequest.cs | 142 ------ ...estPropertiesReservedResourceProperties.cs | 55 --- .../src/Generated/Models/QuotaGetHeaders.cs | 7 +- .../Generated/Models/QuotaLimitsResponse.cs | 14 +- .../src/Generated/Models/QuotaProperties.cs | 51 ++- .../Generated/Models/QuotaRequestDetails.cs | 26 +- .../QuotaRequestOneResourceSubmitResponse.cs | 17 +- .../Models/QuotaRequestProperties.cs | 11 +- .../Models/QuotaRequestSubmitResponse.cs | 6 +- .../Models/QuotaRequestSubmitResponse201.cs | 21 +- .../Models/RenewPropertiesResponse.cs | 70 --- ...wPropertiesResponseBillingCurrencyTotal.cs | 58 --- ...wPropertiesResponsePricingCurrencyTotal.cs | 59 --- .../Models/ReservationBillingPlan.cs | 22 - .../ReservationOrderBillingPlanInformation.cs | 87 ---- .../Models/ReservationOrderResponse.cs | 33 +- .../Generated/Models/ReservationProperties.cs | 107 +---- .../Generated/Models/ReservationResponse.cs | 31 +- .../Generated/Models/ReservationStatusCode.cs | 29 -- .../src/Generated/Models/ReservationTerm.cs | 22 - .../Generated/Models/ReservedResourceType.cs | 28 -- .../src/Generated/Models/ResourceName.cs | 9 +- .../src/Generated/Models/ScopeProperties.cs | 56 --- .../src/Generated/Models/ServiceError.cs | 6 +- .../{SkuProperty.cs => SkuCapability.cs} | 10 +- .../src/Generated/Models/SubRequest.cs | 25 +- .../Models/SubscriptionScopeProperties.cs | 50 -- .../Generated/Models/SupportRequestAction.cs | 121 ----- .../src/Generated/OperationOperations.cs | 2 +- .../src/Generated/QuotaOperations.cs | 86 ++-- .../Generated/QuotaOperationsExtensions.cs | 156 +++---- .../Generated/QuotaRequestStatusOperations.cs | 37 +- .../QuotaRequestStatusOperationsExtensions.cs | 66 +-- .../src/Generated/ReservationOperations.cs | 255 +---------- .../ReservationOperationsExtensions.cs | 126 +---- .../Generated/ReservationOrderOperations.cs | 432 +----------------- .../ReservationOrderOperationsExtensions.cs | 146 +----- .../Generated/SdkInfo_AzureReservationAPI.cs | 15 +- 74 files changed, 549 insertions(+), 4202 deletions(-) delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperations.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperationsExtensions.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAutoQuotaIncreaseOperations.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Actions.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AppliedScopeType.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AqiSettings.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AutoQuotaIncreaseDetail.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponse.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponseProperties.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesBillingCurrencyTotal.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesPricingCurrencyTotal.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CatalogBillingPlansItem.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailAction.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailActions.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ErrorResponseCode.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/InstanceFlexibility.cs create mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Kind.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PatchPropertiesRenewProperties.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentDetail.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentStatus.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PhoneAction.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Price.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Properties.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequest.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequestPropertiesReservedResourceProperties.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponse.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponseBillingCurrencyTotal.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponsePricingCurrencyTotal.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationBillingPlan.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationStatusCode.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationTerm.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservedResourceType.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ScopeProperties.cs rename sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/{SkuProperty.cs => SkuCapability.cs} (83%) delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs delete mode 100644 sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SupportRequestAction.cs diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperations.cs deleted file mode 100644 index 8768cce1bde41..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperations.cs +++ /dev/null @@ -1,420 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations -{ - 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; - - /// - /// AutoQuotaIncreaseOperations operations. - /// - internal partial class AutoQuotaIncreaseOperations : IServiceOperations, IAutoQuotaIncreaseOperations - { - /// - /// Initializes a new instance of the AutoQuotaIncreaseOperations class. - /// - /// - /// Reference to the service client. - /// - /// - /// Thrown when a required parameter is null - /// - internal AutoQuotaIncreaseOperations(AzureReservationAPIClient client) - { - if (client == null) - { - throw new System.ArgumentNullException("client"); - } - Client = client; - } - - /// - /// Gets a reference to the AzureReservationAPIClient - /// - public AzureReservationAPIClient Client { get; private set; } - - /// - /// Gets the Auto Quota Increase enrollment details for the specified - /// subscription. - /// - /// - /// Azure subscription id. - /// - /// - /// 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> GetPropertiesWithHttpMessagesAsync(string subscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (subscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "subscriptionId"); - } - string apiVersion = "2019-07-19-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("subscriptionId", subscriptionId); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetProperties", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/autoQuotaIncrease").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(subscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); - _httpRequest.RequestUri = new System.Uri(_url); - // Set Headers - if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) - { - _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); - } - if (Client.AcceptLanguage != null) - { - if (_httpRequest.Headers.Contains("accept-language")) - { - _httpRequest.Headers.Remove("accept-language"); - } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); - } - - - if (customHeaders != null) - { - foreach(var _header in customHeaders) - { - if (_httpRequest.Headers.Contains(_header.Key)) - { - _httpRequest.Headers.Remove(_header.Key); - } - _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); - } - } - - // Serialize Request - string _requestContent = null; - // Set Credentials - if (Client.Credentials != null) - { - cancellationToken.ThrowIfCancellationRequested(); - await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - } - // Send Request - if (_shouldTrace) - { - ServiceClientTracing.SendRequest(_invocationId, _httpRequest); - } - cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); - if (_shouldTrace) - { - ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); - } - HttpStatusCode _statusCode = _httpResponse.StatusCode; - cancellationToken.ThrowIfCancellationRequested(); - string _responseContent = null; - if ((int)_statusCode != 200) - { - var ex = new ExceptionResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ExceptionResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - 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; - } - - /// - /// Sets the Auto Quota Increase enrollment properties for the specified - /// subscription. - /// - /// - /// Azure subscription id. - /// - /// - /// Auto Quota increase request payload. - /// - /// - /// 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> CreateWithHttpMessagesAsync(string subscriptionId, AutoQuotaIncreaseDetail autoQuotaIncreaseRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (subscriptionId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "subscriptionId"); - } - if (autoQuotaIncreaseRequest == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "autoQuotaIncreaseRequest"); - } - string apiVersion = "2019-07-19-preview"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("subscriptionId", subscriptionId); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("autoQuotaIncreaseRequest", autoQuotaIncreaseRequest); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/autoQuotaIncrease").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(subscriptionId)); - List _queryParameters = new List(); - if (apiVersion != null) - { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); - } - if (_queryParameters.Count > 0) - { - _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); - } - // Create HTTP transport objects - var _httpRequest = new HttpRequestMessage(); - HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("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(autoQuotaIncreaseRequest != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(autoQuotaIncreaseRequest, 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) - { - var ex = new ExceptionResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - ExceptionResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - if (_shouldTrace) - { - ServiceClientTracing.Error(_invocationId, ex); - } - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw ex; - } - // Create Result - var _result = new AzureOperationResponse(); - _result.Request = _httpRequest; - _result.Response = _httpResponse; - if (_httpResponse.Headers.Contains("x-ms-request-id")) - { - _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); - } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - if (_shouldTrace) - { - ServiceClientTracing.Exit(_invocationId, _result); - } - return _result; - } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperationsExtensions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperationsExtensions.cs deleted file mode 100644 index dfc6e1248a987..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AutoQuotaIncreaseOperationsExtensions.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Threading; - using System.Threading.Tasks; - - /// - /// Extension methods for AutoQuotaIncreaseOperations. - /// - public static partial class AutoQuotaIncreaseOperationsExtensions - { - /// - /// Gets the Auto Quota Increase enrollment details for the specified - /// subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Azure subscription id. - /// - public static AutoQuotaIncreaseDetail GetProperties(this IAutoQuotaIncreaseOperations operations, string subscriptionId) - { - return operations.GetPropertiesAsync(subscriptionId).GetAwaiter().GetResult(); - } - - /// - /// Gets the Auto Quota Increase enrollment details for the specified - /// subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Azure subscription id. - /// - /// - /// The cancellation token. - /// - public static async Task GetPropertiesAsync(this IAutoQuotaIncreaseOperations operations, string subscriptionId, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetPropertiesWithHttpMessagesAsync(subscriptionId, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Sets the Auto Quota Increase enrollment properties for the specified - /// subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Azure subscription id. - /// - /// - /// Auto Quota increase request payload. - /// - public static AutoQuotaIncreaseDetail Create(this IAutoQuotaIncreaseOperations operations, string subscriptionId, AutoQuotaIncreaseDetail autoQuotaIncreaseRequest) - { - return operations.CreateAsync(subscriptionId, autoQuotaIncreaseRequest).GetAwaiter().GetResult(); - } - - /// - /// Sets the Auto Quota Increase enrollment properties for the specified - /// subscription. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Azure subscription id. - /// - /// - /// Auto Quota increase request payload. - /// - /// - /// The cancellation token. - /// - public static async Task CreateAsync(this IAutoQuotaIncreaseOperations operations, string subscriptionId, AutoQuotaIncreaseDetail autoQuotaIncreaseRequest, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CreateWithHttpMessagesAsync(subscriptionId, autoQuotaIncreaseRequest, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClient.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClient.cs index 77283e252e56d..352c1e4ff4063 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClient.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClient.cs @@ -64,34 +64,29 @@ public partial class AzureReservationAPIClient : ServiceClient - /// Gets the IQuotaOperations. - /// - public virtual IQuotaOperations Quota { get; private set; } - - /// - /// Gets the IQuotaRequestStatusOperations. + /// Gets the IReservationOrderOperations. /// - public virtual IQuotaRequestStatusOperations QuotaRequestStatus { get; private set; } + public virtual IReservationOrderOperations ReservationOrder { get; private set; } /// - /// Gets the IAutoQuotaIncreaseOperations. + /// Gets the IReservationOperations. /// - public virtual IAutoQuotaIncreaseOperations AutoQuotaIncrease { get; private set; } + public virtual IReservationOperations Reservation { get; private set; } /// - /// Gets the IReservationOperations. + /// Gets the IOperationOperations. /// - public virtual IReservationOperations Reservation { get; private set; } + public virtual IOperationOperations Operation { get; private set; } /// - /// Gets the IReservationOrderOperations. + /// Gets the IQuotaOperations. /// - public virtual IReservationOrderOperations ReservationOrder { get; private set; } + public virtual IQuotaOperations Quota { get; private set; } /// - /// Gets the IOperationOperations. + /// Gets the IQuotaRequestStatusOperations. /// - public virtual IOperationOperations Operation { get; private set; } + public virtual IQuotaRequestStatusOperations QuotaRequestStatus { get; private set; } /// /// Initializes a new instance of the AzureReservationAPIClient class. @@ -334,12 +329,11 @@ public AzureReservationAPIClient(System.Uri baseUri, ServiceClientCredentials cr /// private void Initialize() { - Quota = new QuotaOperations(this); - QuotaRequestStatus = new QuotaRequestStatusOperations(this); - AutoQuotaIncrease = new AutoQuotaIncreaseOperations(this); - Reservation = new ReservationOperations(this); ReservationOrder = new ReservationOrderOperations(this); + Reservation = new ReservationOperations(this); Operation = new OperationOperations(this); + Quota = new QuotaOperations(this); + QuotaRequestStatus = new QuotaRequestStatusOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; @@ -381,13 +375,6 @@ private void Initialize() /// /// Id of the subscription /// - /// - /// The type of the resource for which the skus should be provided. - /// - /// - /// Filters the skus based on the location specified in this parameter. This - /// can be an azure region or global - /// /// /// Headers that will be added to request. /// @@ -409,17 +396,13 @@ private void Initialize() /// /// A response object containing the response body and response headers. /// - public async Task>> GetCatalogWithHttpMessagesAsync(string subscriptionId, string reservedResourceType, string location = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetCatalogWithHttpMessagesAsync(string subscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (subscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "subscriptionId"); } - if (reservedResourceType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "reservedResourceType"); - } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -429,8 +412,6 @@ private void Initialize() Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("subscriptionId", subscriptionId); - tracingParameters.Add("reservedResourceType", reservedResourceType); - tracingParameters.Add("location", location); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "GetCatalog", tracingParameters); } @@ -443,14 +424,6 @@ private void Initialize() { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } - if (reservedResourceType != null) - { - _queryParameters.Add(string.Format("reservedResourceType={0}", System.Uri.EscapeDataString(reservedResourceType))); - } - if (location != null) - { - _queryParameters.Add(string.Format("location={0}", System.Uri.EscapeDataString(location))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -575,8 +548,7 @@ private void Initialize() /// Get list of applicable `Reservation`s. /// /// - /// Get applicable `Reservation`s that are applied to this subscription or a - /// resource group under this subscription. + /// Get applicable `Reservation`s that are applied to this subscription. /// /// /// Id of the subscription @@ -608,7 +580,7 @@ private void Initialize() { throw new ValidationException(ValidationRules.CannotBeNull, "subscriptionId"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClientExtensions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClientExtensions.cs index c2db522acc3ec..64baa81fbcfd9 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClientExtensions.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/AzureReservationAPIClientExtensions.cs @@ -33,16 +33,9 @@ public static partial class AzureReservationAPIClientExtensions /// /// Id of the subscription /// - /// - /// The type of the resource for which the skus should be provided. - /// - /// - /// Filters the skus based on the location specified in this parameter. This - /// can be an azure region or global - /// - public static IList GetCatalog(this IAzureReservationAPIClient operations, string subscriptionId, string reservedResourceType, string location = default(string)) + public static IList GetCatalog(this IAzureReservationAPIClient operations, string subscriptionId) { - return operations.GetCatalogAsync(subscriptionId, reservedResourceType, location).GetAwaiter().GetResult(); + return operations.GetCatalogAsync(subscriptionId).GetAwaiter().GetResult(); } /// @@ -55,19 +48,12 @@ public static partial class AzureReservationAPIClientExtensions /// /// Id of the subscription /// - /// - /// The type of the resource for which the skus should be provided. - /// - /// - /// Filters the skus based on the location specified in this parameter. This - /// can be an azure region or global - /// /// /// The cancellation token. /// - public static async Task> GetCatalogAsync(this IAzureReservationAPIClient operations, string subscriptionId, string reservedResourceType, string location = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> GetCatalogAsync(this IAzureReservationAPIClient operations, string subscriptionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCatalogWithHttpMessagesAsync(subscriptionId, reservedResourceType, location, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetCatalogWithHttpMessagesAsync(subscriptionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -77,8 +63,7 @@ public static partial class AzureReservationAPIClientExtensions /// Get list of applicable `Reservation`s. /// /// - /// Get applicable `Reservation`s that are applied to this subscription or a - /// resource group under this subscription. + /// Get applicable `Reservation`s that are applied to this subscription. /// /// /// The operations group for this extension method. @@ -95,8 +80,7 @@ public static AppliedReservations GetAppliedReservationList(this IAzureReservati /// Get list of applicable `Reservation`s. /// /// - /// Get applicable `Reservation`s that are applied to this subscription or a - /// resource group under this subscription. + /// Get applicable `Reservation`s that are applied to this subscription. /// /// /// The operations group for this extension method. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAutoQuotaIncreaseOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAutoQuotaIncreaseOperations.cs deleted file mode 100644 index 06057a6c90abb..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAutoQuotaIncreaseOperations.cs +++ /dev/null @@ -1,76 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Models; - using System.Collections; - using System.Collections.Generic; - using System.Threading; - using System.Threading.Tasks; - - /// - /// AutoQuotaIncreaseOperations operations. - /// - public partial interface IAutoQuotaIncreaseOperations - { - /// - /// Gets the Auto Quota Increase enrollment details for the specified - /// subscription. - /// - /// - /// Azure subscription id. - /// - /// - /// 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> GetPropertiesWithHttpMessagesAsync(string subscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Sets the Auto Quota Increase enrollment properties for the - /// specified subscription. - /// - /// - /// Azure subscription id. - /// - /// - /// Auto Quota increase request payload. - /// - /// - /// 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> CreateWithHttpMessagesAsync(string subscriptionId, AutoQuotaIncreaseDetail autoQuotaIncreaseRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAzureReservationAPIClient.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAzureReservationAPIClient.cs index fcbde0e335164..5916d7a7f654f 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAzureReservationAPIClient.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IAzureReservationAPIClient.cs @@ -63,34 +63,29 @@ public partial interface IAzureReservationAPIClient : System.IDisposable /// - /// Gets the IQuotaOperations. - /// - IQuotaOperations Quota { get; } - - /// - /// Gets the IQuotaRequestStatusOperations. + /// Gets the IReservationOrderOperations. /// - IQuotaRequestStatusOperations QuotaRequestStatus { get; } + IReservationOrderOperations ReservationOrder { get; } /// - /// Gets the IAutoQuotaIncreaseOperations. + /// Gets the IReservationOperations. /// - IAutoQuotaIncreaseOperations AutoQuotaIncrease { get; } + IReservationOperations Reservation { get; } /// - /// Gets the IReservationOperations. + /// Gets the IOperationOperations. /// - IReservationOperations Reservation { get; } + IOperationOperations Operation { get; } /// - /// Gets the IReservationOrderOperations. + /// Gets the IQuotaOperations. /// - IReservationOrderOperations ReservationOrder { get; } + IQuotaOperations Quota { get; } /// - /// Gets the IOperationOperations. + /// Gets the IQuotaRequestStatusOperations. /// - IOperationOperations Operation { get; } + IQuotaRequestStatusOperations QuotaRequestStatus { get; } /// /// Get the regions and skus that are available for RI purchase for the @@ -99,27 +94,20 @@ public partial interface IAzureReservationAPIClient : System.IDisposable /// /// Id of the subscription /// - /// - /// The type of the resource for which the skus should be provided. - /// - /// - /// Filters the skus based on the location specified in this parameter. - /// This can be an azure region or global - /// /// /// The headers that will be added to request. /// /// /// The cancellation token. /// - Task>> GetCatalogWithHttpMessagesAsync(string subscriptionId, string reservedResourceType, string location = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> GetCatalogWithHttpMessagesAsync(string subscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get list of applicable `Reservation`s. /// /// - /// Get applicable `Reservation`s that are applied to this subscription - /// or a resource group under this subscription. + /// Get applicable `Reservation`s that are applied to this + /// subscription. /// /// /// Id of the subscription diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaOperations.cs index 75922749fe800..1e1a8f1c599a1 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaOperations.cs @@ -24,15 +24,15 @@ namespace Microsoft.Azure.Management.Reservations public partial interface IQuotaOperations { /// - /// Gets the current service limits (quotas) and usage of a resource. - /// The response from Get API can be leveraged to submit quota update - /// requests. + /// Get the current quotas (service limits) and usage of a resource. + /// You can use the response from the GET operation to submit quota + /// update requests. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -59,7 +59,7 @@ public partial interface IQuotaOperations /// Task> GetWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create or update the service limits (quota) of a resource to + /// Create or update the quotas (service limits) of a resource to the /// requested value. /// Steps: /// @@ -74,10 +74,10 @@ public partial interface IQuotaOperations /// operation can be used to update the quota. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -107,24 +107,24 @@ public partial interface IQuotaOperations /// Task> CreateOrUpdateWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string resourceName, CurrentQuotaLimitBase createQuotaRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested + /// value. /// - /// 1. Make the Get request to get the quota information for specific - /// resource. + /// • To get the quota information for specific resource, send a GET + /// request. /// - /// 2. To increase the quota, update the limit field in the response - /// from Get request to new value. + /// • To increase the quota, update the limit field from the GET + /// response to a new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH - /// operation can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota + /// request API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -135,7 +135,7 @@ public partial interface IQuotaOperations /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// /// /// The headers that will be added to request. @@ -154,15 +154,15 @@ public partial interface IQuotaOperations /// Task> UpdateWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string resourceName, CurrentQuotaLimitBase createQuotaRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit - /// quota update requests. + /// Gets a list of current quotas (service limits) and usage for all + /// resources. The response from the list quota operation can be + /// leveraged to request quota updates. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -184,7 +184,7 @@ public partial interface IQuotaOperations /// Task,QuotaListHeaders>> ListWithHttpMessagesAsync(string subscriptionId, string providerId, string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create or update the service limits (quota) of a resource to + /// Create or update the quotas (service limits) of a resource to the /// requested value. /// Steps: /// @@ -199,10 +199,10 @@ public partial interface IQuotaOperations /// operation can be used to update the quota. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -232,24 +232,24 @@ public partial interface IQuotaOperations /// Task> BeginCreateOrUpdateWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string resourceName, CurrentQuotaLimitBase createQuotaRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested + /// value. /// - /// 1. Make the Get request to get the quota information for specific - /// resource. + /// • To get the quota information for specific resource, send a GET + /// request. /// - /// 2. To increase the quota, update the limit field in the response - /// from Get request to new value. + /// • To increase the quota, update the limit field from the GET + /// response to a new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH - /// operation can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota + /// request API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -260,7 +260,7 @@ public partial interface IQuotaOperations /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// /// /// The headers that will be added to request. @@ -279,9 +279,9 @@ public partial interface IQuotaOperations /// Task> BeginUpdateWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string resourceName, CurrentQuotaLimitBase createQuotaRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit - /// quota update requests. + /// Gets a list of current quotas (service limits) and usage for all + /// resources. The response from the list quota operation can be + /// leveraged to request quota updates. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaRequestStatusOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaRequestStatusOperations.cs index 5b51ea94640e9..9a6bfab2e4226 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaRequestStatusOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IQuotaRequestStatusOperations.cs @@ -24,22 +24,22 @@ namespace Microsoft.Azure.Management.Reservations public partial interface IQuotaRequestStatusOperations { /// - /// Gets the QuotaRequest details and status by the quota request Id - /// for the resources for the resource provider at a specific location. - /// The requestId is returned as response to the Put requests for - /// serviceLimits. + /// For the specified Azure region (location), get the details and + /// status of the quota request by the quota request ID for the + /// resources of the resource provider. The PUT request for service + /// limits returns a response with the requestId parameter. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. /// /// - /// Quota Request id. + /// Quota Request ID. /// /// /// The headers that will be added to request. @@ -58,16 +58,15 @@ public partial interface IQuotaRequestStatusOperations /// Task> GetWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string id, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// For the specified location and Resource provider gets the current - /// quota requests under the subscription over the time period of one - /// year ago from now to one year back. oData filter can be used to - /// select quota requests. + /// For the specified Azure region (location), subscription, and + /// resource provider, get the history of the quota requests for the + /// past year. To select specific quota requests, use the oData filter. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -84,8 +83,8 @@ public partial interface IQuotaRequestStatusOperations /// /// Skiptoken is only used if a previous operation returned a partial /// result. If a previous response contains a nextLink element, the - /// value of the nextLink element will include a skiptoken parameter - /// that specifies a starting point to use for subsequent calls + /// value of the nextLink element includes a skiptoken parameter that + /// specifies a starting point to use for subsequent calls. /// /// /// The headers that will be added to request. @@ -104,10 +103,9 @@ public partial interface IQuotaRequestStatusOperations /// Task>> ListWithHttpMessagesAsync(string subscriptionId, string providerId, string location, string filter = default(string), int? top = default(int?), string skiptoken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// For the specified location and Resource provider gets the current - /// quota requests under the subscription over the time period of one - /// year ago from now to one year back. oData filter can be used to - /// select quota requests. + /// For the specified Azure region (location), subscription, and + /// resource provider, get the history of the quota requests for the + /// past year. To select specific quota requests, use the oData filter. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOperations.cs index 79296694a9d0a..aedda71cee6f2 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOperations.cs @@ -23,43 +23,13 @@ namespace Microsoft.Azure.Management.Reservations /// public partial interface IReservationOperations { - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - /// - /// 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> AvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Split the `Reservation`. /// /// /// Split a `Reservation` into two `Reservation`s with specified /// quantity distribution. + /// /// /// /// Order Id of the reservation @@ -149,9 +119,6 @@ public partial interface IReservationOperations /// /// Order Id of the reservation /// - /// - /// Supported value of this query is renewProperties - /// /// /// The headers that will be added to request. /// @@ -167,7 +134,7 @@ public partial interface IReservationOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a `Reservation`. /// @@ -204,6 +171,7 @@ public partial interface IReservationOperations /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// Id of the Reservation Item @@ -228,42 +196,12 @@ public partial interface IReservationOperations /// Task>> ListRevisionsWithHttpMessagesAsync(string reservationId, string reservationOrderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - /// - /// 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> BeginAvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Split the `Reservation`. /// /// /// Split a `Reservation` into two `Reservation`s with specified /// quantity distribution. + /// /// /// /// Order Id of the reservation @@ -377,6 +315,7 @@ public partial interface IReservationOperations /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOrderOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOrderOperations.cs index 7afbb6a9be58a..248fb3af5df79 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOrderOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/IReservationOrderOperations.cs @@ -23,31 +23,6 @@ namespace Microsoft.Azure.Management.Reservations /// public partial interface IReservationOrderOperations { - /// - /// Calculate price for a `ReservationOrder`. - /// - /// - /// Calculate price for placing a `ReservationOrder`. - /// - /// - /// Information needed for calculate or purchase reservation - /// - /// - /// 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> CalculateWithHttpMessagesAsync(PurchaseRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get all `ReservationOrder`s. /// @@ -72,35 +47,6 @@ public partial interface IReservationOrderOperations /// Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified - /// URI. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// - /// - /// 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> PurchaseWithHttpMessagesAsync(string reservationOrderId, PurchaseRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// /// Get a specific `ReservationOrder`. /// /// @@ -109,38 +55,6 @@ public partial interface IReservationOrderOperations /// /// Order Id of the reservation /// - /// - /// May be used to expand the planInformation. - /// - /// - /// 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 reservationOrderId, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); - /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified - /// URI. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// /// /// The headers that will be added to request. /// @@ -156,7 +70,7 @@ public partial interface IReservationOrderOperations /// /// Thrown when a required parameter is null /// - Task> BeginPurchaseWithHttpMessagesAsync(string reservationOrderId, PurchaseRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string reservationOrderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get all `ReservationOrder`s. /// diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Actions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Actions.cs deleted file mode 100644 index 4a3babe28a9ca..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Actions.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// The actions for auto quota increase. - /// - public partial class Actions - { - /// - /// Initializes a new instance of the Actions class. - /// - public Actions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Actions class. - /// - /// The email actions for auto quota - /// increase. - public Actions(EmailActions emailActions = default(EmailActions)) - { - EmailActions = emailActions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the email actions for auto quota increase. - /// - [JsonProperty(PropertyName = "emailActions")] - public EmailActions EmailActions { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AppliedScopeType.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AppliedScopeType.cs deleted file mode 100644 index 573fee38c503d..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AppliedScopeType.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for AppliedScopeType. - /// - public static class AppliedScopeType - { - public const string Single = "Single"; - public const string Shared = "Shared"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AqiSettings.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AqiSettings.cs deleted file mode 100644 index e82e8fe082d4a..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AqiSettings.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Settings for auto quota increase. - /// - public partial class AqiSettings - { - /// - /// Initializes a new instance of the AqiSettings class. - /// - public AqiSettings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the AqiSettings class. - /// - /// If the subscription has - /// enabled automatic quota increase. - public AqiSettings(object autoQuotaIncreaseState = default(object)) - { - AutoQuotaIncreaseState = autoQuotaIncreaseState; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets if the subscription has enabled automatic quota - /// increase. - /// - [JsonProperty(PropertyName = "autoQuotaIncreaseState")] - public object AutoQuotaIncreaseState { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AutoQuotaIncreaseDetail.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AutoQuotaIncreaseDetail.cs deleted file mode 100644 index 7f2ed8f88b13e..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/AutoQuotaIncreaseDetail.cs +++ /dev/null @@ -1,105 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Azure; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Auto Quota Increase settings. - /// - [Rest.Serialization.JsonTransformation] - public partial class AutoQuotaIncreaseDetail : IResource - { - /// - /// Initializes a new instance of the AutoQuotaIncreaseDetail class. - /// - public AutoQuotaIncreaseDetail() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the AutoQuotaIncreaseDetail class. - /// - /// The subscription Id. - /// The name of the auto quota increase. - /// The type of the resource - /// Settings for automatic quota - /// increase. - /// The on failure Actions. - /// The on success Actions. - /// The support ticket - /// action. - public AutoQuotaIncreaseDetail(string id = default(string), string name = default(string), string type = default(string), AqiSettings settings = default(AqiSettings), Actions onFailure = default(Actions), Actions onSuccess = default(Actions), SupportRequestAction supportTicketAction = default(SupportRequestAction)) - { - Id = id; - Name = name; - Type = type; - Settings = settings; - OnFailure = onFailure; - OnSuccess = onSuccess; - SupportTicketAction = supportTicketAction; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the subscription Id. - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - - /// - /// Gets the name of the auto quota increase. - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - - /// - /// Gets the type of the resource - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } - - /// - /// Gets or sets settings for automatic quota increase. - /// - [JsonProperty(PropertyName = "properties.settings")] - public AqiSettings Settings { get; set; } - - /// - /// Gets or sets the on failure Actions. - /// - [JsonProperty(PropertyName = "properties.onFailure")] - public Actions OnFailure { get; set; } - - /// - /// Gets or sets the on success Actions. - /// - [JsonProperty(PropertyName = "properties.onSuccess")] - public Actions OnSuccess { get; set; } - - /// - /// Gets or sets the support ticket action. - /// - [JsonProperty(PropertyName = "properties.supportTicketAction")] - public SupportRequestAction SupportTicketAction { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponse.cs deleted file mode 100644 index 7f8ffdb263054..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponse.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class CalculatePriceResponse - { - /// - /// Initializes a new instance of the CalculatePriceResponse class. - /// - public CalculatePriceResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CalculatePriceResponse class. - /// - public CalculatePriceResponse(CalculatePriceResponseProperties properties = default(CalculatePriceResponseProperties)) - { - Properties = properties; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "properties")] - public CalculatePriceResponseProperties Properties { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponseProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponseProperties.cs deleted file mode 100644 index eb8049c9485b6..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponseProperties.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - public partial class CalculatePriceResponseProperties - { - /// - /// Initializes a new instance of the CalculatePriceResponseProperties - /// class. - /// - public CalculatePriceResponseProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CalculatePriceResponseProperties - /// class. - /// - /// Currency and amount that - /// customer will be charged in customer's local currency. Tax is not - /// included. - /// True if billing is managed by - /// Microsoft Partner. Used only for CSP accounts. - /// GUID that represents reservation - /// order that can be placed after calculating price. - /// Title of SKU that is being - /// purchased. - /// Description of SKU that is being - /// purchased. - /// Amount that Microsoft uses for - /// record. Used during refund for calculating refund limit. Tax is not - /// included. - public CalculatePriceResponseProperties(CalculatePriceResponsePropertiesBillingCurrencyTotal billingCurrencyTotal = default(CalculatePriceResponsePropertiesBillingCurrencyTotal), bool? isBillingPartnerManaged = default(bool?), string reservationOrderId = default(string), string skuTitle = default(string), string skuDescription = default(string), CalculatePriceResponsePropertiesPricingCurrencyTotal pricingCurrencyTotal = default(CalculatePriceResponsePropertiesPricingCurrencyTotal), IList paymentSchedule = default(IList)) - { - BillingCurrencyTotal = billingCurrencyTotal; - IsBillingPartnerManaged = isBillingPartnerManaged; - ReservationOrderId = reservationOrderId; - SkuTitle = skuTitle; - SkuDescription = skuDescription; - PricingCurrencyTotal = pricingCurrencyTotal; - PaymentSchedule = paymentSchedule; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets currency and amount that customer will be charged in - /// customer's local currency. Tax is not included. - /// - [JsonProperty(PropertyName = "billingCurrencyTotal")] - public CalculatePriceResponsePropertiesBillingCurrencyTotal BillingCurrencyTotal { get; set; } - - /// - /// Gets or sets true if billing is managed by Microsoft Partner. Used - /// only for CSP accounts. - /// - [JsonProperty(PropertyName = "isBillingPartnerManaged")] - public bool? IsBillingPartnerManaged { get; set; } - - /// - /// Gets or sets GUID that represents reservation order that can be - /// placed after calculating price. - /// - [JsonProperty(PropertyName = "reservationOrderId")] - public string ReservationOrderId { get; set; } - - /// - /// Gets or sets title of SKU that is being purchased. - /// - [JsonProperty(PropertyName = "skuTitle")] - public string SkuTitle { get; set; } - - /// - /// Gets or sets description of SKU that is being purchased. - /// - [JsonProperty(PropertyName = "skuDescription")] - public string SkuDescription { get; set; } - - /// - /// Gets or sets amount that Microsoft uses for record. Used during - /// refund for calculating refund limit. Tax is not included. - /// - [JsonProperty(PropertyName = "pricingCurrencyTotal")] - public CalculatePriceResponsePropertiesPricingCurrencyTotal PricingCurrencyTotal { get; set; } - - /// - /// - [JsonProperty(PropertyName = "paymentSchedule")] - public IList PaymentSchedule { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesBillingCurrencyTotal.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesBillingCurrencyTotal.cs deleted file mode 100644 index 0f1bc21d536b9..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesBillingCurrencyTotal.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Currency and amount that customer will be charged in customer's local - /// currency. Tax is not included. - /// - public partial class CalculatePriceResponsePropertiesBillingCurrencyTotal - { - /// - /// Initializes a new instance of the - /// CalculatePriceResponsePropertiesBillingCurrencyTotal class. - /// - public CalculatePriceResponsePropertiesBillingCurrencyTotal() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// CalculatePriceResponsePropertiesBillingCurrencyTotal class. - /// - public CalculatePriceResponsePropertiesBillingCurrencyTotal(string currencyCode = default(string), double? amount = default(double?)) - { - CurrencyCode = currencyCode; - Amount = amount; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "currencyCode")] - public string CurrencyCode { get; set; } - - /// - /// - [JsonProperty(PropertyName = "amount")] - public double? Amount { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesPricingCurrencyTotal.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesPricingCurrencyTotal.cs deleted file mode 100644 index 272e58574bf6d..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CalculatePriceResponsePropertiesPricingCurrencyTotal.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Amount that Microsoft uses for record. Used during refund for - /// calculating refund limit. Tax is not included. - /// - public partial class CalculatePriceResponsePropertiesPricingCurrencyTotal - { - /// - /// Initializes a new instance of the - /// CalculatePriceResponsePropertiesPricingCurrencyTotal class. - /// - public CalculatePriceResponsePropertiesPricingCurrencyTotal() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// CalculatePriceResponsePropertiesPricingCurrencyTotal class. - /// - public CalculatePriceResponsePropertiesPricingCurrencyTotal(string currencyCode = default(string), double? amount = default(double?)) - { - CurrencyCode = currencyCode; - Amount = amount; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "currencyCode")] - public string CurrencyCode { get; set; } - - /// - /// - [JsonProperty(PropertyName = "amount")] - public double? Amount { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Catalog.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Catalog.cs index 0af48b78c0d69..a78eb592f8273 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Catalog.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Catalog.cs @@ -31,18 +31,19 @@ public Catalog() /// The type of resource the SKU applies /// to. /// The name of SKU - /// The billing plan options available for - /// this SKU. + /// The tier of this SKU + /// The size of this SKU /// Available reservation terms for this /// resource - public Catalog(string resourceType = default(string), string name = default(string), IDictionary> billingPlans = default(IDictionary>), IList terms = default(IList), IList locations = default(IList), IList skuProperties = default(IList), IList restrictions = default(IList)) + public Catalog(string resourceType = default(string), string name = default(string), string tier = default(string), string size = default(string), IList terms = default(IList), IList locations = default(IList), IList capabilities = default(IList), IList restrictions = default(IList)) { ResourceType = resourceType; Name = name; - BillingPlans = billingPlans; + Tier = tier; + Size = size; Terms = terms; Locations = locations; - SkuProperties = skuProperties; + Capabilities = capabilities; Restrictions = restrictions; CustomInit(); } @@ -65,10 +66,16 @@ public Catalog() public string Name { get; private set; } /// - /// Gets or sets the billing plan options available for this SKU. + /// Gets the tier of this SKU /// - [JsonProperty(PropertyName = "billingPlans")] - public IDictionary> BillingPlans { get; set; } + [JsonProperty(PropertyName = "tier")] + public string Tier { get; private set; } + + /// + /// Gets the size of this SKU + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; private set; } /// /// Gets available reservation terms for this resource @@ -83,8 +90,8 @@ public Catalog() /// /// - [JsonProperty(PropertyName = "skuProperties")] - public IList SkuProperties { get; private set; } + [JsonProperty(PropertyName = "capabilities")] + public IList Capabilities { get; private set; } /// /// diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CatalogBillingPlansItem.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CatalogBillingPlansItem.cs deleted file mode 100644 index 5554eba9f1128..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CatalogBillingPlansItem.cs +++ /dev/null @@ -1,68 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - public partial class CatalogBillingPlansItem - { - /// - /// Initializes a new instance of the CatalogBillingPlansItem class. - /// - public CatalogBillingPlansItem() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the CatalogBillingPlansItem class. - /// - /// - /// - /// - public CatalogBillingPlansItem(IList p1Y = default(IList), IList p3Y = default(IList), string name = default(string)) - { - P1Y = p1Y; - P3Y = p3Y; - Name = name; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets unmatched properties from the message are deserialized - /// this collection - /// - //[JsonExtensionData] - //public IDictionary> AdditionalProperties { get; set; } - - /// - /// Gets or sets the term for the billing SKU is available for. - /// Possible values include: 'P1Y', 'P3Y' - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; set; } - - [JsonProperty(PropertyName = "p1Y")] - public IList P1Y { get; set; } - - [JsonProperty(PropertyName = "p3Y")] - public IList P3Y { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimit.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimit.cs index 0eaae7f5e6c59..57fc5e8608f3d 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimit.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimit.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// Quota limits. + /// Current quota limits. /// [Rest.Serialization.JsonTransformation] public partial class CurrentQuotaLimit : IResource @@ -34,7 +34,8 @@ public CurrentQuotaLimit() /// Initializes a new instance of the CurrentQuotaLimit class. /// /// Quota properties for the resource. - /// The quota request status. + /// The details of the quota request + /// status. /// A user friendly message. public CurrentQuotaLimit(QuotaProperties properties = default(QuotaProperties), object provisioningState = default(object), string message = default(string)) { @@ -56,7 +57,7 @@ public CurrentQuotaLimit() public QuotaProperties Properties { get; set; } /// - /// Gets the quota request status. + /// Gets the details of the quota request status. /// [JsonProperty(PropertyName = "properties.provisioningState")] public object ProvisioningState { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimitBase.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimitBase.cs index 706dc57faf7c2..f252dc7326e0b 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimitBase.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/CurrentQuotaLimitBase.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// Quota limits. + /// Quota properties. /// public partial class CurrentQuotaLimitBase : IResource { diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailAction.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailAction.cs deleted file mode 100644 index f84aeb0b70d1b..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailAction.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Email Action. - /// - public partial class EmailAction - { - /// - /// Initializes a new instance of the EmailAction class. - /// - public EmailAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the EmailAction class. - /// - /// The email address for the - /// action. - public EmailAction(string emailAddress = default(string)) - { - EmailAddress = emailAddress; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the email address for the action. - /// - [JsonProperty(PropertyName = "emailAddress")] - public string EmailAddress { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailActions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailActions.cs deleted file mode 100644 index 138af82a66c23..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/EmailActions.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The email actions. - /// - public partial class EmailActions - { - /// - /// Initializes a new instance of the EmailActions class. - /// - public EmailActions() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the EmailActions class. - /// - /// The list of email actions. - public EmailActions(IList emailAddresses = default(IList)) - { - EmailAddresses = emailAddresses; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the list of email actions. - /// - [JsonProperty(PropertyName = "emailAddresses")] - public IList EmailAddresses { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ErrorResponseCode.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ErrorResponseCode.cs deleted file mode 100644 index ecb9a9162ddfd..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ErrorResponseCode.cs +++ /dev/null @@ -1,75 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for ErrorResponseCode. - /// - public static class ErrorResponseCode - { - public const string NotSpecified = "NotSpecified"; - public const string InternalServerError = "InternalServerError"; - public const string ServerTimeout = "ServerTimeout"; - public const string AuthorizationFailed = "AuthorizationFailed"; - public const string BadRequest = "BadRequest"; - public const string ClientCertificateThumbprintNotSet = "ClientCertificateThumbprintNotSet"; - public const string InvalidRequestContent = "InvalidRequestContent"; - public const string OperationFailed = "OperationFailed"; - public const string HttpMethodNotSupported = "HttpMethodNotSupported"; - public const string InvalidRequestUri = "InvalidRequestUri"; - public const string MissingTenantId = "MissingTenantId"; - public const string InvalidTenantId = "InvalidTenantId"; - public const string InvalidReservationOrderId = "InvalidReservationOrderId"; - public const string InvalidReservationId = "InvalidReservationId"; - public const string ReservationIdNotInReservationOrder = "ReservationIdNotInReservationOrder"; - public const string ReservationOrderNotFound = "ReservationOrderNotFound"; - public const string InvalidSubscriptionId = "InvalidSubscriptionId"; - public const string InvalidAccessToken = "InvalidAccessToken"; - public const string InvalidLocationId = "InvalidLocationId"; - public const string UnauthenticatedRequestsThrottled = "UnauthenticatedRequestsThrottled"; - public const string InvalidHealthCheckType = "InvalidHealthCheckType"; - public const string Forbidden = "Forbidden"; - public const string BillingScopeIdCannotBeChanged = "BillingScopeIdCannotBeChanged"; - public const string AppliedScopesNotAssociatedWithCommerceAccount = "AppliedScopesNotAssociatedWithCommerceAccount"; - public const string PatchValuesSameAsExisting = "PatchValuesSameAsExisting"; - public const string RoleAssignmentCreationFailed = "RoleAssignmentCreationFailed"; - public const string ReservationOrderCreationFailed = "ReservationOrderCreationFailed"; - public const string ReservationOrderNotEnabled = "ReservationOrderNotEnabled"; - public const string CapacityUpdateScopesFailed = "CapacityUpdateScopesFailed"; - public const string UnsupportedReservationTerm = "UnsupportedReservationTerm"; - public const string ReservationOrderIdAlreadyExists = "ReservationOrderIdAlreadyExists"; - public const string RiskCheckFailed = "RiskCheckFailed"; - public const string CreateQuoteFailed = "CreateQuoteFailed"; - public const string ActivateQuoteFailed = "ActivateQuoteFailed"; - public const string NonsupportedAccountId = "NonsupportedAccountId"; - public const string PaymentInstrumentNotFound = "PaymentInstrumentNotFound"; - public const string MissingAppliedScopesForSingle = "MissingAppliedScopesForSingle"; - public const string NoValidReservationsToReRate = "NoValidReservationsToReRate"; - public const string ReRateOnlyAllowedForEA = "ReRateOnlyAllowedForEA"; - public const string OperationCannotBePerformedInCurrentState = "OperationCannotBePerformedInCurrentState"; - public const string InvalidSingleAppliedScopesCount = "InvalidSingleAppliedScopesCount"; - public const string InvalidFulfillmentRequestParameters = "InvalidFulfillmentRequestParameters"; - public const string NotSupportedCountry = "NotSupportedCountry"; - public const string InvalidRefundQuantity = "InvalidRefundQuantity"; - public const string PurchaseError = "PurchaseError"; - public const string BillingCustomerInputError = "BillingCustomerInputError"; - public const string BillingPaymentInstrumentSoftError = "BillingPaymentInstrumentSoftError"; - public const string BillingPaymentInstrumentHardError = "BillingPaymentInstrumentHardError"; - public const string BillingTransientError = "BillingTransientError"; - public const string BillingError = "BillingError"; - public const string FulfillmentConfigurationError = "FulfillmentConfigurationError"; - public const string FulfillmentOutOfStockError = "FulfillmentOutOfStockError"; - public const string FulfillmentTransientError = "FulfillmentTransientError"; - public const string FulfillmentError = "FulfillmentError"; - public const string CalculatePriceFailed = "CalculatePriceFailed"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExceptionResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExceptionResponse.cs index 53a9e1932ca1d..3d6c81d408554 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExceptionResponse.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExceptionResponse.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// The api error. + /// The API error. /// public partial class ExceptionResponse { @@ -29,7 +29,7 @@ public ExceptionResponse() /// /// Initializes a new instance of the ExceptionResponse class. /// - /// The api error details. + /// The API error details. public ExceptionResponse(ServiceError error = default(ServiceError)) { Error = error; @@ -42,7 +42,7 @@ public ExceptionResponse() partial void CustomInit(); /// - /// Gets or sets the api error details. + /// Gets or sets the API error details. /// [JsonProperty(PropertyName = "error")] public ServiceError Error { get; set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExtendedErrorInfo.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExtendedErrorInfo.cs index 45102e2133aeb..68b3b45e605da 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExtendedErrorInfo.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ExtendedErrorInfo.cs @@ -38,7 +38,7 @@ public ExtendedErrorInfo() /// 'UnauthenticatedRequestsThrottled', 'InvalidHealthCheckType', /// 'Forbidden', 'BillingScopeIdCannotBeChanged', /// 'AppliedScopesNotAssociatedWithCommerceAccount', - /// 'PatchValuesSameAsExisting', 'RoleAssignmentCreationFailed', + /// 'AppliedScopesSameAsExisting', 'RoleAssignmentCreationFailed', /// 'ReservationOrderCreationFailed', 'ReservationOrderNotEnabled', /// 'CapacityUpdateScopesFailed', 'UnsupportedReservationTerm', /// 'ReservationOrderIdAlreadyExists', 'RiskCheckFailed', @@ -80,7 +80,7 @@ public ExtendedErrorInfo() /// 'UnauthenticatedRequestsThrottled', 'InvalidHealthCheckType', /// 'Forbidden', 'BillingScopeIdCannotBeChanged', /// 'AppliedScopesNotAssociatedWithCommerceAccount', - /// 'PatchValuesSameAsExisting', 'RoleAssignmentCreationFailed', + /// 'AppliedScopesSameAsExisting', 'RoleAssignmentCreationFailed', /// 'ReservationOrderCreationFailed', 'ReservationOrderNotEnabled', /// 'CapacityUpdateScopesFailed', 'UnsupportedReservationTerm', /// 'ReservationOrderIdAlreadyExists', 'RiskCheckFailed', diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/InstanceFlexibility.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/InstanceFlexibility.cs deleted file mode 100644 index 17ba3b98908a6..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/InstanceFlexibility.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for InstanceFlexibility. - /// - public static class InstanceFlexibility - { - public const string On = "On"; - public const string Off = "Off"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Kind.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Kind.cs new file mode 100644 index 0000000000000..aa22e15c1d8c1 --- /dev/null +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Kind.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Reservations.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for Kind. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum Kind + { + [EnumMember(Value = "Microsoft.Compute")] + MicrosoftCompute + } + internal static class KindEnumExtension + { + internal static string ToSerializedValue(this Kind? value) + { + return value == null ? null : ((Kind)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this Kind value) + { + switch( value ) + { + case Kind.MicrosoftCompute: + return "Microsoft.Compute"; + } + return null; + } + + internal static Kind? ParseKind(this string value) + { + switch( value ) + { + case "Microsoft.Compute": + return Kind.MicrosoftCompute; + } + return null; + } + } +} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Patch.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Patch.cs index 8302005f4f615..524ae3f4f5bc5 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Patch.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Patch.cs @@ -33,17 +33,10 @@ public Patch() /// /// Possible values include: 'Single', /// 'Shared' - /// Possible values include: 'On', - /// 'Off' - /// Name of the Reservation - public Patch(string appliedScopeType = default(string), IList appliedScopes = default(IList), string instanceFlexibility = default(string), string name = default(string), bool? renew = default(bool?), PatchPropertiesRenewProperties renewProperties = default(PatchPropertiesRenewProperties)) + public Patch(string appliedScopeType = default(string), IList appliedScopes = default(IList)) { AppliedScopeType = appliedScopeType; AppliedScopes = appliedScopes; - InstanceFlexibility = instanceFlexibility; - Name = name; - Renew = renew; - RenewProperties = renewProperties; CustomInit(); } @@ -63,27 +56,5 @@ public Patch() [JsonProperty(PropertyName = "properties.appliedScopes")] public IList AppliedScopes { get; set; } - /// - /// Gets or sets possible values include: 'On', 'Off' - /// - [JsonProperty(PropertyName = "properties.instanceFlexibility")] - public string InstanceFlexibility { get; set; } - - /// - /// Gets or sets name of the Reservation - /// - [JsonProperty(PropertyName = "properties.name")] - public string Name { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.renew")] - public bool? Renew { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.renewProperties")] - public PatchPropertiesRenewProperties RenewProperties { get; set; } - } } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PatchPropertiesRenewProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PatchPropertiesRenewProperties.cs deleted file mode 100644 index ebc18e794d3c8..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PatchPropertiesRenewProperties.cs +++ /dev/null @@ -1,48 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class PatchPropertiesRenewProperties - { - /// - /// Initializes a new instance of the PatchPropertiesRenewProperties - /// class. - /// - public PatchPropertiesRenewProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PatchPropertiesRenewProperties - /// class. - /// - public PatchPropertiesRenewProperties(PurchaseRequest purchaseProperties = default(PurchaseRequest)) - { - PurchaseProperties = purchaseProperties; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "purchaseProperties")] - public PurchaseRequest PurchaseProperties { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentDetail.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentDetail.cs deleted file mode 100644 index 4a9ef974ad37e..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentDetail.cs +++ /dev/null @@ -1,110 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Linq; - - /// - /// Information about payment related to a reservation order. - /// - public partial class PaymentDetail - { - /// - /// Initializes a new instance of the PaymentDetail class. - /// - public PaymentDetail() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PaymentDetail class. - /// - /// Date when the payment needs to be - /// done. - /// Date when the transaction is completed. - /// Is null when it is scheduled. - /// Amount in pricing currency. Tax - /// not included. - /// Amount charged in Billing - /// currency. Tax not included. Is null for future payments - /// Shows the Account that is charged for - /// this payment. - /// Possible values include: 'Succeeded', - /// 'Failed', 'Scheduled', 'Cancelled' - public PaymentDetail(System.DateTime? dueDate = default(System.DateTime?), System.DateTime? paymentDate = default(System.DateTime?), Price pricingCurrencyTotal = default(Price), Price billingCurrencyTotal = default(Price), string billingAccount = default(string), string status = default(string), ExtendedStatusInfo extendedStatusInfo = default(ExtendedStatusInfo)) - { - DueDate = dueDate; - PaymentDate = paymentDate; - PricingCurrencyTotal = pricingCurrencyTotal; - BillingCurrencyTotal = billingCurrencyTotal; - BillingAccount = billingAccount; - Status = status; - ExtendedStatusInfo = extendedStatusInfo; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets date when the payment needs to be done. - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "dueDate")] - public System.DateTime? DueDate { get; set; } - - /// - /// Gets or sets date when the transaction is completed. Is null when - /// it is scheduled. - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "paymentDate")] - public System.DateTime? PaymentDate { get; set; } - - /// - /// Gets or sets amount in pricing currency. Tax not included. - /// - [JsonProperty(PropertyName = "pricingCurrencyTotal")] - public Price PricingCurrencyTotal { get; set; } - - /// - /// Gets or sets amount charged in Billing currency. Tax not included. - /// Is null for future payments - /// - [JsonProperty(PropertyName = "billingCurrencyTotal")] - public Price BillingCurrencyTotal { get; set; } - - /// - /// Gets or sets shows the Account that is charged for this payment. - /// - [JsonProperty(PropertyName = "billingAccount")] - public string BillingAccount { get; set; } - - /// - /// Gets or sets possible values include: 'Succeeded', 'Failed', - /// 'Scheduled', 'Cancelled' - /// - [JsonProperty(PropertyName = "status")] - public string Status { get; set; } - - /// - /// - [JsonProperty(PropertyName = "extendedStatusInfo")] - public ExtendedStatusInfo ExtendedStatusInfo { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentStatus.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentStatus.cs deleted file mode 100644 index e1b20c52b4d76..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PaymentStatus.cs +++ /dev/null @@ -1,24 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for PaymentStatus. - /// - public static class PaymentStatus - { - public const string Succeeded = "Succeeded"; - public const string Failed = "Failed"; - public const string Scheduled = "Scheduled"; - public const string Cancelled = "Cancelled"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PhoneAction.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PhoneAction.cs deleted file mode 100644 index 2ef88aed71dbc..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PhoneAction.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Phone Action. - /// - public partial class PhoneAction - { - /// - /// Initializes a new instance of the PhoneAction class. - /// - public PhoneAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PhoneAction class. - /// - /// The phone number for the action. - /// The preferred communication - /// channel. - public PhoneAction(string phoneNumber = default(string), object preferredChannel = default(object)) - { - PhoneNumber = phoneNumber; - PreferredChannel = preferredChannel; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the phone number for the action. - /// - [JsonProperty(PropertyName = "phoneNumber")] - public string PhoneNumber { get; set; } - - /// - /// Gets or sets the preferred communication channel. - /// - [JsonProperty(PropertyName = "preferredChannel")] - public object PreferredChannel { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Price.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Price.cs deleted file mode 100644 index 50caf0250d0ce..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Price.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class Price - { - /// - /// Initializes a new instance of the Price class. - /// - public Price() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Price class. - /// - /// The ISO 4217 3-letter currency code for - /// the currency used by this purchase record. - public Price(string currencyCode = default(string), double? amount = default(double?)) - { - CurrencyCode = currencyCode; - Amount = amount; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the ISO 4217 3-letter currency code for the currency - /// used by this purchase record. - /// - [JsonProperty(PropertyName = "currencyCode")] - public string CurrencyCode { get; set; } - - /// - /// - [JsonProperty(PropertyName = "amount")] - public double? Amount { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Properties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Properties.cs deleted file mode 100644 index 469371024e404..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/Properties.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class Properties - { - /// - /// Initializes a new instance of the Properties class. - /// - public Properties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the Properties class. - /// - public Properties(SubscriptionScopeProperties propertiesProperty = default(SubscriptionScopeProperties)) - { - PropertiesProperty = propertiesProperty; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "properties")] - public SubscriptionScopeProperties PropertiesProperty { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequest.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequest.cs deleted file mode 100644 index c45f7bead93c2..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequest.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - [Rest.Serialization.JsonTransformation] - public partial class PurchaseRequest - { - /// - /// Initializes a new instance of the PurchaseRequest class. - /// - public PurchaseRequest() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the PurchaseRequest class. - /// - /// The Azure Region where the reserved resource - /// lives. - /// Possible values include: - /// 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', - /// 'RedHat', 'SqlDataWarehouse', 'VMwareCloudSimple', - /// 'RedHatOsa' - /// Possible values include: 'P1Y', 'P3Y' - /// Possible values include: 'Upfront', - /// 'Monthly' - /// Friendly name of the Reservation - /// Possible values include: 'Single', - /// 'Shared' - /// Properties specific to - /// each reserved resource type. Not required if not - /// applicable. - public PurchaseRequest(SkuName sku = default(SkuName), string location = default(string), string reservedResourceType = default(string), string billingScopeId = default(string), string term = default(string), string billingPlan = default(string), int? quantity = default(int?), string displayName = default(string), string appliedScopeType = default(string), IList appliedScopes = default(IList), bool? renew = default(bool?), PurchaseRequestPropertiesReservedResourceProperties reservedResourceProperties = default(PurchaseRequestPropertiesReservedResourceProperties)) - { - Sku = sku; - Location = location; - ReservedResourceType = reservedResourceType; - BillingScopeId = billingScopeId; - Term = term; - BillingPlan = billingPlan; - Quantity = quantity; - DisplayName = displayName; - AppliedScopeType = appliedScopeType; - AppliedScopes = appliedScopes; - Renew = renew; - ReservedResourceProperties = reservedResourceProperties; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "sku")] - public SkuName Sku { get; set; } - - /// - /// Gets or sets the Azure Region where the reserved resource lives. - /// - [JsonProperty(PropertyName = "location")] - public string Location { get; set; } - - /// - /// Gets or sets possible values include: 'VirtualMachines', - /// 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat', - /// 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa' - /// - [JsonProperty(PropertyName = "properties.reservedResourceType")] - public string ReservedResourceType { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.billingScopeId")] - public string BillingScopeId { get; set; } - - /// - /// Gets or sets possible values include: 'P1Y', 'P3Y' - /// - [JsonProperty(PropertyName = "properties.term")] - public string Term { get; set; } - - /// - /// Gets or sets possible values include: 'Upfront', 'Monthly' - /// - [JsonProperty(PropertyName = "properties.billingPlan")] - public string BillingPlan { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.quantity")] - public int? Quantity { get; set; } - - /// - /// Gets or sets friendly name of the Reservation - /// - [JsonProperty(PropertyName = "properties.displayName")] - public string DisplayName { get; set; } - - /// - /// Gets or sets possible values include: 'Single', 'Shared' - /// - [JsonProperty(PropertyName = "properties.appliedScopeType")] - public string AppliedScopeType { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.appliedScopes")] - public IList AppliedScopes { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.renew")] - public bool? Renew { get; set; } - - /// - /// Gets or sets properties specific to each reserved resource type. - /// Not required if not applicable. - /// - [JsonProperty(PropertyName = "properties.reservedResourceProperties")] - public PurchaseRequestPropertiesReservedResourceProperties ReservedResourceProperties { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequestPropertiesReservedResourceProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequestPropertiesReservedResourceProperties.cs deleted file mode 100644 index 0aa34c9b045a2..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/PurchaseRequestPropertiesReservedResourceProperties.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Properties specific to each reserved resource type. Not required if not - /// applicable. - /// - public partial class PurchaseRequestPropertiesReservedResourceProperties - { - /// - /// Initializes a new instance of the - /// PurchaseRequestPropertiesReservedResourceProperties class. - /// - public PurchaseRequestPropertiesReservedResourceProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// PurchaseRequestPropertiesReservedResourceProperties class. - /// - /// Possible values include: 'On', - /// 'Off' - public PurchaseRequestPropertiesReservedResourceProperties(string instanceFlexibility = default(string)) - { - InstanceFlexibility = instanceFlexibility; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets possible values include: 'On', 'Off' - /// - [JsonProperty(PropertyName = "instanceFlexibility")] - public string InstanceFlexibility { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaGetHeaders.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaGetHeaders.cs index 77ce8524452e4..4fa48ae7d836f 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaGetHeaders.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaGetHeaders.cs @@ -29,8 +29,9 @@ public QuotaGetHeaders() /// /// Initializes a new instance of the QuotaGetHeaders class. /// - /// Current entity state version. Should be treated - /// as opaque and used to make conditional HTTP requests. + /// Current entity state version. It should be + /// treated as opaque and used to make conditional HTTP + /// requests. public QuotaGetHeaders(string eTag = default(string)) { ETag = eTag; @@ -43,7 +44,7 @@ public QuotaGetHeaders() partial void CustomInit(); /// - /// Gets or sets current entity state version. Should be treated as + /// Gets or sets current entity state version. It should be treated as /// opaque and used to make conditional HTTP requests. /// [JsonProperty(PropertyName = "ETag")] diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaLimitsResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaLimitsResponse.cs index 76366ad12e752..f98d78c17839b 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaLimitsResponse.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaLimitsResponse.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// Quota limits request response. + /// Quotas (service limits) in the request response. /// public partial class QuotaLimitsResponse { @@ -31,10 +31,10 @@ public QuotaLimitsResponse() /// /// Initializes a new instance of the QuotaLimitsResponse class. /// - /// List of Quota limits with the quota request + /// List of quotas with the quota request /// status. - /// The uri to fetch the next page of quota - /// limits. When there are no more pages, this is null. + /// The URI for fetching the next page of quota + /// limits. When no more pages exist, the value is null. public QuotaLimitsResponse(IList value = default(IList), string nextLink = default(string)) { Value = value; @@ -48,14 +48,14 @@ public QuotaLimitsResponse() partial void CustomInit(); /// - /// Gets or sets list of Quota limits with the quota request status. + /// Gets or sets list of quotas with the quota request status. /// [JsonProperty(PropertyName = "value")] public IList Value { get; set; } /// - /// Gets or sets the uri to fetch the next page of quota limits. When - /// there are no more pages, this is null. + /// Gets or sets the URI for fetching the next page of quota limits. + /// When no more pages exist, the value is null. /// [JsonProperty(PropertyName = "nextLink")] public string NextLink { get; set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaProperties.cs index 7bbb4facad0a1..64feeefddaa4d 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaProperties.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaProperties.cs @@ -29,19 +29,22 @@ public QuotaProperties() /// /// Initializes a new instance of the QuotaProperties class. /// - /// The quota limit. - /// The current resource usages - /// information. - /// The units of the limit, such as - Count, Bytes, - /// etc. Use the unit field provided in the Get quota response. + /// Quota properties. + /// Current usage value for the + /// resource. + /// The limit units, such as **count** and + /// **bytes**. Use the unit field provided in the response of the GET + /// quota operation. /// Name of the resource provide by the resource - /// Provider. Please use this name property for quotaRequests. - /// The Resource Type Name. - /// The quota period over which the usage - /// values are summarized, such as - P1D (Per one day), PT1M (Per one - /// minute), PT1S (Per one second). This parameter is optional because, - /// for some resources like compute, the period doesn’t matter. - /// Additional properties for the specific + /// provider. Use this property for quotaRequests resource + /// operations. + /// The name of the resource type. + /// The time period over which the quota + /// usage values are summarized. For example, P1D (per one day), PT1M + /// (per one minute), and PT1S (per one second). This parameter is + /// optional because, for some resources such as compute, the time + /// period is irrelevant. + /// Additional properties for the specified /// resource provider. public QuotaProperties(int? limit = default(int?), int? currentValue = default(int?), string unit = default(string), ResourceName name = default(ResourceName), object resourceType = default(object), string quotaPeriod = default(string), object properties = default(object)) { @@ -61,48 +64,48 @@ public QuotaProperties() partial void CustomInit(); /// - /// Gets or sets the quota limit. + /// Gets or sets quota properties. /// [JsonProperty(PropertyName = "limit")] public int? Limit { get; set; } /// - /// Gets the current resource usages information. + /// Gets current usage value for the resource. /// [JsonProperty(PropertyName = "currentValue")] public int? CurrentValue { get; private set; } /// - /// Gets or sets The units of the limit, such as - Count, Bytes, etc. - /// Use the unit field provided in the Get quota response. + /// Gets or sets The limit units, such as **count** and **bytes**. Use + /// the unit field provided in the response of the GET quota operation. /// [JsonProperty(PropertyName = "unit")] public string Unit { get; set; } /// - /// Gets or sets name of the resource provide by the resource Provider. - /// Please use this name property for quotaRequests. + /// Gets or sets name of the resource provide by the resource provider. + /// Use this property for quotaRequests resource operations. /// [JsonProperty(PropertyName = "name")] public ResourceName Name { get; set; } /// - /// Gets or sets the Resource Type Name. + /// Gets or sets the name of the resource type. /// [JsonProperty(PropertyName = "resourceType")] public object ResourceType { get; set; } /// - /// Gets the quota period over which the usage values are summarized, - /// such as - P1D (Per one day), PT1M (Per one minute), PT1S (Per one - /// second). This parameter is optional because, for some resources - /// like compute, the period doesn’t matter. + /// Gets the time period over which the quota usage values are + /// summarized. For example, P1D (per one day), PT1M (per one minute), + /// and PT1S (per one second). This parameter is optional because, for + /// some resources such as compute, the time period is irrelevant. /// [JsonProperty(PropertyName = "quotaPeriod")] public string QuotaPeriod { get; private set; } /// - /// Gets or sets additional properties for the specific resource + /// Gets or sets additional properties for the specified resource /// provider. /// [JsonProperty(PropertyName = "properties")] diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestDetails.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestDetails.cs index eff5c8837c065..e719c27ba3a02 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestDetails.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestDetails.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// The details of the quota Request. + /// Quota request details. /// [Rest.Serialization.JsonTransformation] public partial class QuotaRequestDetails : IResource @@ -35,16 +35,15 @@ public QuotaRequestDetails() /// /// Initializes a new instance of the QuotaRequestDetails class. /// - /// The quota request Id. - /// The name of the quota request. + /// Quota request ID. + /// Quota request name. /// The quota request status. /// User friendly status message. - /// The quota request submit time. The - /// date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as - /// specified by the ISO 8601 standard. + /// The time when the quota request was + /// submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the + /// ISO 8601 standard. /// The quotaRequests. - /// Type of resource. - /// "Microsoft.Capacity/ServiceLimits" + /// Resource type public QuotaRequestDetails(string id = default(string), string name = default(string), object provisioningState = default(object), string message = default(string), System.DateTime? requestSubmitTime = default(System.DateTime?), IList value = default(IList), string type = default(string)) { Id = id; @@ -63,13 +62,13 @@ public QuotaRequestDetails() partial void CustomInit(); /// - /// Gets the quota request Id. + /// Gets quota request ID. /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Gets the name of the quota request. + /// Gets quota request name. /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } @@ -87,9 +86,8 @@ public QuotaRequestDetails() public string Message { get; private set; } /// - /// Gets the quota request submit time. The date conforms to the - /// following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 - /// standard. + /// Gets the time when the quota request was submitted using format: + /// yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. /// [JsonProperty(PropertyName = "properties.requestSubmitTime")] public System.DateTime? RequestSubmitTime { get; private set; } @@ -101,7 +99,7 @@ public QuotaRequestDetails() public IList Value { get; set; } /// - /// Gets type of resource. "Microsoft.Capacity/ServiceLimits" + /// Gets resource type /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestOneResourceSubmitResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestOneResourceSubmitResponse.cs index 2df232cb1a280..bdf08a008d39c 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestOneResourceSubmitResponse.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestOneResourceSubmitResponse.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// Quota submit request response + /// Response for the quota submission request. /// [Rest.Serialization.JsonTransformation] public partial class QuotaRequestOneResourceSubmitResponse : IResource @@ -35,15 +35,15 @@ public QuotaRequestOneResourceSubmitResponse() /// Initializes a new instance of the /// QuotaRequestOneResourceSubmitResponse class. /// - /// The quota request Id. + /// The quota request ID. /// The name of the quota request. /// Type of resource. /// "Microsoft.Capacity/ServiceLimits" /// The quota request status. /// User friendly status message. - /// The quota request submit time. The - /// date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as - /// specified by the ISO 8601 standard. + /// The time when the quota request was + /// submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the + /// ISO 8601 standard. /// Quota properties for the resource. public QuotaRequestOneResourceSubmitResponse(string id = default(string), string name = default(string), string type = default(string), object provisioningState = default(object), string message = default(string), System.DateTime? requestSubmitTime = default(System.DateTime?), QuotaProperties properties = default(QuotaProperties)) { @@ -63,7 +63,7 @@ public QuotaRequestOneResourceSubmitResponse() partial void CustomInit(); /// - /// Gets the quota request Id. + /// Gets the quota request ID. /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } @@ -93,9 +93,8 @@ public QuotaRequestOneResourceSubmitResponse() public string Message { get; private set; } /// - /// Gets the quota request submit time. The date conforms to the - /// following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 - /// standard. + /// Gets the time when the quota request was submitted using format: + /// yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. /// [JsonProperty(PropertyName = "properties.requestSubmitTime")] public System.DateTime? RequestSubmitTime { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestProperties.cs index 10a5b7d0f104e..a911c473cb5e6 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestProperties.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestProperties.cs @@ -33,9 +33,9 @@ public QuotaRequestProperties() /// /// The quota request status. /// User friendly status message. - /// The quota request submit time. The - /// date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as - /// specified by the ISO 8601 standard. + /// The time when the quota request was + /// submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the + /// ISO 8601 standard. /// The quotaRequests. public QuotaRequestProperties(object provisioningState = default(object), string message = default(string), System.DateTime? requestSubmitTime = default(System.DateTime?), IList value = default(IList)) { @@ -64,9 +64,8 @@ public QuotaRequestProperties() public string Message { get; private set; } /// - /// Gets the quota request submit time. The date conforms to the - /// following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 - /// standard. + /// Gets the time when the quota request was submitted using format: + /// yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. /// [JsonProperty(PropertyName = "requestSubmitTime")] public System.DateTime? RequestSubmitTime { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse.cs index 53da1baf7c9f3..18376b6da0ef1 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// Quota submit request response + /// Response for the quota submission request. /// public partial class QuotaRequestSubmitResponse : IResource { @@ -31,7 +31,7 @@ public QuotaRequestSubmitResponse() /// /// Initializes a new instance of the QuotaRequestSubmitResponse class. /// - /// The quota request Id. + /// The quota request ID. /// The name of the quota request. /// The quota request details. /// Type of resource. @@ -51,7 +51,7 @@ public QuotaRequestSubmitResponse() partial void CustomInit(); /// - /// Gets the quota request Id. + /// Gets the quota request ID. /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse201.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse201.cs index f3dc6c27b8613..67816652f9b67 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse201.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/QuotaRequestSubmitResponse201.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// The quota request submit response with request id. + /// Response with request ID that the quota request was accepted. /// [Rest.Serialization.JsonTransformation] public partial class QuotaRequestSubmitResponse201 @@ -34,11 +34,12 @@ public QuotaRequestSubmitResponse201() /// Initializes a new instance of the QuotaRequestSubmitResponse201 /// class. /// - /// The quota request id. Please use the requestId to - /// check the request status. - /// The operation Id - /// The resource type - /// The quota request status. + /// The quota request ID. Use the requestId parameter + /// to check the request status. + /// Operation ID + /// Resource type + /// The details of the quota request + /// status. /// A user friendly message. public QuotaRequestSubmitResponse201(string id = default(string), string name = default(string), string type = default(string), object provisioningState = default(object), string message = default(string)) { @@ -56,26 +57,26 @@ public QuotaRequestSubmitResponse201() partial void CustomInit(); /// - /// Gets the quota request id. Please use the requestId to check the + /// Gets the quota request ID. Use the requestId parameter to check the /// request status. /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Gets the operation Id + /// Gets operation ID /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } /// - /// Gets the resource type + /// Gets resource type /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } /// - /// Gets the quota request status. + /// Gets the details of the quota request status. /// [JsonProperty(PropertyName = "properties.provisioningState")] public object ProvisioningState { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponse.cs deleted file mode 100644 index 2955169192c4f..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponse.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - public partial class RenewPropertiesResponse - { - /// - /// Initializes a new instance of the RenewPropertiesResponse class. - /// - public RenewPropertiesResponse() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the RenewPropertiesResponse class. - /// - /// Amount that Microsoft uses for - /// record. Used during refund for calculating refund limit. Tax is not - /// included. This is locked price 30 days before expiry. - /// Currency and amount that - /// customer will be charged in customer's local currency for renewal - /// purchase. Tax is not included. - public RenewPropertiesResponse(PurchaseRequest purchaseProperties = default(PurchaseRequest), RenewPropertiesResponsePricingCurrencyTotal pricingCurrencyTotal = default(RenewPropertiesResponsePricingCurrencyTotal), RenewPropertiesResponseBillingCurrencyTotal billingCurrencyTotal = default(RenewPropertiesResponseBillingCurrencyTotal)) - { - PurchaseProperties = purchaseProperties; - PricingCurrencyTotal = pricingCurrencyTotal; - BillingCurrencyTotal = billingCurrencyTotal; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "purchaseProperties")] - public PurchaseRequest PurchaseProperties { get; set; } - - /// - /// Gets or sets amount that Microsoft uses for record. Used during - /// refund for calculating refund limit. Tax is not included. This is - /// locked price 30 days before expiry. - /// - [JsonProperty(PropertyName = "pricingCurrencyTotal")] - public RenewPropertiesResponsePricingCurrencyTotal PricingCurrencyTotal { get; set; } - - /// - /// Gets or sets currency and amount that customer will be charged in - /// customer's local currency for renewal purchase. Tax is not - /// included. - /// - [JsonProperty(PropertyName = "billingCurrencyTotal")] - public RenewPropertiesResponseBillingCurrencyTotal BillingCurrencyTotal { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponseBillingCurrencyTotal.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponseBillingCurrencyTotal.cs deleted file mode 100644 index 2f300aa306033..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponseBillingCurrencyTotal.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Currency and amount that customer will be charged in customer's local - /// currency for renewal purchase. Tax is not included. - /// - public partial class RenewPropertiesResponseBillingCurrencyTotal - { - /// - /// Initializes a new instance of the - /// RenewPropertiesResponseBillingCurrencyTotal class. - /// - public RenewPropertiesResponseBillingCurrencyTotal() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// RenewPropertiesResponseBillingCurrencyTotal class. - /// - public RenewPropertiesResponseBillingCurrencyTotal(string currencyCode = default(string), double? amount = default(double?)) - { - CurrencyCode = currencyCode; - Amount = amount; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "currencyCode")] - public string CurrencyCode { get; set; } - - /// - /// - [JsonProperty(PropertyName = "amount")] - public double? Amount { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponsePricingCurrencyTotal.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponsePricingCurrencyTotal.cs deleted file mode 100644 index 9dc712427432b..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/RenewPropertiesResponsePricingCurrencyTotal.cs +++ /dev/null @@ -1,59 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// Amount that Microsoft uses for record. Used during refund for - /// calculating refund limit. Tax is not included. This is locked price 30 - /// days before expiry. - /// - public partial class RenewPropertiesResponsePricingCurrencyTotal - { - /// - /// Initializes a new instance of the - /// RenewPropertiesResponsePricingCurrencyTotal class. - /// - public RenewPropertiesResponsePricingCurrencyTotal() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// RenewPropertiesResponsePricingCurrencyTotal class. - /// - public RenewPropertiesResponsePricingCurrencyTotal(string currencyCode = default(string), double? amount = default(double?)) - { - CurrencyCode = currencyCode; - Amount = amount; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "currencyCode")] - public string CurrencyCode { get; set; } - - /// - /// - [JsonProperty(PropertyName = "amount")] - public double? Amount { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationBillingPlan.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationBillingPlan.cs deleted file mode 100644 index e6040030cda52..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationBillingPlan.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for ReservationBillingPlan. - /// - public static class ReservationBillingPlan - { - public const string Upfront = "Upfront"; - public const string Monthly = "Monthly"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs deleted file mode 100644 index 04bde4f417e10..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderBillingPlanInformation.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// Information describing the type of billing plan for this reservation. - /// - public partial class ReservationOrderBillingPlanInformation - { - /// - /// Initializes a new instance of the - /// ReservationOrderBillingPlanInformation class. - /// - public ReservationOrderBillingPlanInformation() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the - /// ReservationOrderBillingPlanInformation class. - /// - /// Amount of money to be paid for - /// the Order. Tax is not included. - /// Date when the billing plan has - /// started. - /// For recurring billing plans, - /// indicates the date when next payment will be processed. Null when - /// total is paid off. - public ReservationOrderBillingPlanInformation(Price pricingCurrencyTotal = default(Price), System.DateTime? startDate = default(System.DateTime?), System.DateTime? nextPaymentDueDate = default(System.DateTime?), IList transactions = default(IList)) - { - PricingCurrencyTotal = pricingCurrencyTotal; - StartDate = startDate; - NextPaymentDueDate = nextPaymentDueDate; - Transactions = transactions; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets amount of money to be paid for the Order. Tax is not - /// included. - /// - [JsonProperty(PropertyName = "pricingCurrencyTotal")] - public Price PricingCurrencyTotal { get; set; } - - /// - /// Gets or sets date when the billing plan has started. - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "startDate")] - public System.DateTime? StartDate { get; set; } - - /// - /// Gets or sets for recurring billing plans, indicates the date when - /// next payment will be processed. Null when total is paid off. - /// - [JsonConverter(typeof(DateJsonConverter))] - [JsonProperty(PropertyName = "nextPaymentDueDate")] - public System.DateTime? NextPaymentDueDate { get; set; } - - /// - /// - [JsonProperty(PropertyName = "transactions")] - public IList Transactions { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderResponse.cs index 444e190d96df9..cbbb0754f0f01 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderResponse.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationOrderResponse.cs @@ -42,14 +42,17 @@ public ReservationOrderResponse() /// reservation was created. /// This is the date when the Reservation will /// expire. + /// Total Quantity of the SKUs purchased + /// in the Reservation. /// Possible values include: 'P1Y', 'P3Y' - /// Current state of the - /// reservation. - /// Possible values include: 'Upfront', - /// 'Monthly' + /// Possible values include: + /// 'Creating', 'PendingResourceHold', 'ConfirmedResourceHold', + /// 'PendingBilling', 'ConfirmedBilling', 'Created', 'Succeeded', + /// 'Cancelled', 'Expired', 'BillingFailed', 'Failed', 'Split', + /// 'Merged' /// Type of resource. /// "Microsoft.Capacity/reservations" - public ReservationOrderResponse(int? etag = default(int?), string id = default(string), string name = default(string), string displayName = default(string), System.DateTime? requestDateTime = default(System.DateTime?), System.DateTime? createdDateTime = default(System.DateTime?), System.DateTime? expiryDate = default(System.DateTime?), int? originalQuantity = default(int?), string term = default(string), string provisioningState = default(string), string billingPlan = default(string), ReservationOrderBillingPlanInformation planInformation = default(ReservationOrderBillingPlanInformation), IList reservationsProperty = default(IList), string type = default(string)) + public ReservationOrderResponse(int? etag = default(int?), string id = default(string), string name = default(string), string displayName = default(string), System.DateTime? requestDateTime = default(System.DateTime?), System.DateTime? createdDateTime = default(System.DateTime?), System.DateTime? expiryDate = default(System.DateTime?), int? originalQuantity = default(int?), string term = default(string), string provisioningState = default(string), IList reservationsProperty = default(IList), string type = default(string)) { Etag = etag; Id = id; @@ -61,8 +64,6 @@ public ReservationOrderResponse() OriginalQuantity = originalQuantity; Term = term; ProvisioningState = provisioningState; - BillingPlan = billingPlan; - PlanInformation = planInformation; ReservationsProperty = reservationsProperty; Type = type; CustomInit(); @@ -118,6 +119,8 @@ public ReservationOrderResponse() public System.DateTime? ExpiryDate { get; set; } /// + /// Gets or sets total Quantity of the SKUs purchased in the + /// Reservation. /// [JsonProperty(PropertyName = "properties.originalQuantity")] public int? OriginalQuantity { get; set; } @@ -129,22 +132,14 @@ public ReservationOrderResponse() public string Term { get; set; } /// - /// Gets or sets current state of the reservation. + /// Gets or sets possible values include: 'Creating', + /// 'PendingResourceHold', 'ConfirmedResourceHold', 'PendingBilling', + /// 'ConfirmedBilling', 'Created', 'Succeeded', 'Cancelled', 'Expired', + /// 'BillingFailed', 'Failed', 'Split', 'Merged' /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } - /// - /// Gets or sets possible values include: 'Upfront', 'Monthly' - /// - [JsonProperty(PropertyName = "properties.billingPlan")] - public string BillingPlan { get; set; } - - /// - /// - [JsonProperty(PropertyName = "properties.planInformation")] - public ReservationOrderBillingPlanInformation PlanInformation { get; set; } - /// /// [JsonProperty(PropertyName = "properties.reservations")] diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationProperties.cs index 688e0f7ed4f96..d031a2e7ba215 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationProperties.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationProperties.cs @@ -30,39 +30,25 @@ public ReservationProperties() /// /// Initializes a new instance of the ReservationProperties class. /// - /// Possible values include: - /// 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', - /// 'RedHat', 'SqlDataWarehouse', 'VMwareCloudSimple', - /// 'RedHatOsa' - /// Possible values include: 'On', - /// 'Off' /// Friendly name for user to easily identify /// the reservation /// Possible values include: 'Single', /// 'Shared' - /// Current state of the - /// reservation. + /// Quantity of the SKUs that are part of the + /// Reservation. + /// Possible values include: + /// 'Creating', 'PendingResourceHold', 'ConfirmedResourceHold', + /// 'PendingBilling', 'ConfirmedBilling', 'Created', 'Succeeded', + /// 'Cancelled', 'Expired', 'BillingFailed', 'Failed', 'Split', + /// 'Merged' /// DateTime of the Reservation /// starting when this version is effective from. /// DateTime of the last time the /// Reservation was updated. /// This is the date when the Reservation will /// expire. - /// Description of the SKU in - /// english. - /// Possible values include: 'Upfront', - /// 'Monthly' - /// Reservation Id of the reservation from - /// which this reservation is renewed. Format of the resource Id is - /// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. - /// Reservation Id of the reservation - /// which is purchased because of renew. Format of the resource Id is - /// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. - /// Possible values include: 'P1Y', 'P3Y' - public ReservationProperties(string reservedResourceType = default(string), string instanceFlexibility = default(string), string displayName = default(string), IList appliedScopes = default(IList), string appliedScopeType = default(string), int? quantity = default(int?), string provisioningState = default(string), System.DateTime? effectiveDateTime = default(System.DateTime?), System.DateTime? lastUpdatedDateTime = default(System.DateTime?), System.DateTime? expiryDate = default(System.DateTime?), string skuDescription = default(string), ExtendedStatusInfo extendedStatusInfo = default(ExtendedStatusInfo), string billingPlan = default(string), ReservationSplitProperties splitProperties = default(ReservationSplitProperties), ReservationMergeProperties mergeProperties = default(ReservationMergeProperties), string billingScopeId = default(string), bool? renew = default(bool?), string renewSource = default(string), string renewDestination = default(string), RenewPropertiesResponse renewProperties = default(RenewPropertiesResponse), string term = default(string)) + public ReservationProperties(string displayName = default(string), IList appliedScopes = default(IList), string appliedScopeType = default(string), int? quantity = default(int?), string provisioningState = default(string), System.DateTime? effectiveDateTime = default(System.DateTime?), System.DateTime? lastUpdatedDateTime = default(System.DateTime?), System.DateTime? expiryDate = default(System.DateTime?), ExtendedStatusInfo extendedStatusInfo = default(ExtendedStatusInfo), ReservationSplitProperties splitProperties = default(ReservationSplitProperties), ReservationMergeProperties mergeProperties = default(ReservationMergeProperties)) { - ReservedResourceType = reservedResourceType; - InstanceFlexibility = instanceFlexibility; DisplayName = displayName; AppliedScopes = appliedScopes; AppliedScopeType = appliedScopeType; @@ -71,17 +57,9 @@ public ReservationProperties() EffectiveDateTime = effectiveDateTime; LastUpdatedDateTime = lastUpdatedDateTime; ExpiryDate = expiryDate; - SkuDescription = skuDescription; ExtendedStatusInfo = extendedStatusInfo; - BillingPlan = billingPlan; SplitProperties = splitProperties; MergeProperties = mergeProperties; - BillingScopeId = billingScopeId; - Renew = renew; - RenewSource = renewSource; - RenewDestination = renewDestination; - RenewProperties = renewProperties; - Term = term; CustomInit(); } @@ -90,20 +68,6 @@ public ReservationProperties() /// partial void CustomInit(); - /// - /// Gets or sets possible values include: 'VirtualMachines', - /// 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat', - /// 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa' - /// - [JsonProperty(PropertyName = "reservedResourceType")] - public string ReservedResourceType { get; set; } - - /// - /// Gets or sets possible values include: 'On', 'Off' - /// - [JsonProperty(PropertyName = "instanceFlexibility")] - public string InstanceFlexibility { get; set; } - /// /// Gets or sets friendly name for user to easily identify the /// reservation @@ -123,12 +87,16 @@ public ReservationProperties() public string AppliedScopeType { get; set; } /// + /// Gets or sets quantity of the SKUs that are part of the Reservation. /// [JsonProperty(PropertyName = "quantity")] public int? Quantity { get; set; } /// - /// Gets or sets current state of the reservation. + /// Gets or sets possible values include: 'Creating', + /// 'PendingResourceHold', 'ConfirmedResourceHold', 'PendingBilling', + /// 'ConfirmedBilling', 'Created', 'Succeeded', 'Cancelled', 'Expired', + /// 'BillingFailed', 'Failed', 'Split', 'Merged' /// [JsonProperty(PropertyName = "provisioningState")] public string ProvisioningState { get; set; } @@ -153,23 +121,11 @@ public ReservationProperties() [JsonProperty(PropertyName = "expiryDate")] public System.DateTime? ExpiryDate { get; set; } - /// - /// Gets or sets description of the SKU in english. - /// - [JsonProperty(PropertyName = "skuDescription")] - public string SkuDescription { get; set; } - /// /// [JsonProperty(PropertyName = "extendedStatusInfo")] public ExtendedStatusInfo ExtendedStatusInfo { get; set; } - /// - /// Gets or sets possible values include: 'Upfront', 'Monthly' - /// - [JsonProperty(PropertyName = "billingPlan")] - public string BillingPlan { get; set; } - /// /// [JsonProperty(PropertyName = "splitProperties")] @@ -180,42 +136,5 @@ public ReservationProperties() [JsonProperty(PropertyName = "mergeProperties")] public ReservationMergeProperties MergeProperties { get; set; } - /// - /// - [JsonProperty(PropertyName = "billingScopeId")] - public string BillingScopeId { get; set; } - - /// - /// - [JsonProperty(PropertyName = "renew")] - public bool? Renew { get; set; } - - /// - /// Gets or sets reservation Id of the reservation from which this - /// reservation is renewed. Format of the resource Id is - /// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. - /// - [JsonProperty(PropertyName = "renewSource")] - public string RenewSource { get; set; } - - /// - /// Gets or sets reservation Id of the reservation which is purchased - /// because of renew. Format of the resource Id is - /// /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. - /// - [JsonProperty(PropertyName = "renewDestination")] - public string RenewDestination { get; set; } - - /// - /// - [JsonProperty(PropertyName = "renewProperties")] - public RenewPropertiesResponse RenewProperties { get; set; } - - /// - /// Gets or sets possible values include: 'P1Y', 'P3Y' - /// - [JsonProperty(PropertyName = "term")] - public string Term { get; set; } - } } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationResponse.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationResponse.cs index 326fa5ddebef3..6b9d9b20d2866 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationResponse.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationResponse.cs @@ -28,18 +28,26 @@ public ReservationResponse() /// /// Initializes a new instance of the ReservationResponse class. /// - /// The Azure Region where the reserved resource - /// lives. + /// Possible values include: 'westus', 'eastus', + /// 'eastus2', 'northcentralus', 'westus2', 'southcentralus', + /// 'centralus', 'westeurope', 'northeurope', 'eastasia', + /// 'southeastasia', 'japaneast', 'japanwest', 'brazilsouth', + /// 'australiaeast', 'australiasoutheast', 'southindia', 'westindia', + /// 'centralindia', 'canadacentral', 'canadaeast', 'uksouth', + /// 'westcentralus', 'ukwest' /// Identifier of the reservation /// Name of the reservation + /// Resource Provider type to be reserved. Possible + /// values include: 'Microsoft.Compute' /// Type of resource. /// "Microsoft.Capacity/reservationOrders/reservations" - public ReservationResponse(string location = default(string), int? etag = default(int?), string id = default(string), string name = default(string), SkuName sku = default(SkuName), ReservationProperties properties = default(ReservationProperties), string type = default(string)) + public ReservationResponse(string location = default(string), int? etag = default(int?), string id = default(string), string name = default(string), Kind? kind = default(Kind?), SkuName sku = default(SkuName), ReservationProperties properties = default(ReservationProperties), string type = default(string)) { Location = location; Etag = etag; Id = id; Name = name; + Kind = kind; Sku = sku; Properties = properties; Type = type; @@ -52,10 +60,16 @@ public ReservationResponse() partial void CustomInit(); /// - /// Gets the Azure Region where the reserved resource lives. + /// Gets or sets possible values include: 'westus', 'eastus', + /// 'eastus2', 'northcentralus', 'westus2', 'southcentralus', + /// 'centralus', 'westeurope', 'northeurope', 'eastasia', + /// 'southeastasia', 'japaneast', 'japanwest', 'brazilsouth', + /// 'australiaeast', 'australiasoutheast', 'southindia', 'westindia', + /// 'centralindia', 'canadacentral', 'canadaeast', 'uksouth', + /// 'westcentralus', 'ukwest' /// [JsonProperty(PropertyName = "location")] - public string Location { get; private set; } + public string Location { get; set; } /// /// @@ -74,6 +88,13 @@ public ReservationResponse() [JsonProperty(PropertyName = "name")] public string Name { get; private set; } + /// + /// Gets or sets resource Provider type to be reserved. Possible values + /// include: 'Microsoft.Compute' + /// + [JsonProperty(PropertyName = "kind")] + public Kind? Kind { get; set; } + /// /// [JsonProperty(PropertyName = "sku")] diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationStatusCode.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationStatusCode.cs deleted file mode 100644 index d9cfd3b52228c..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationStatusCode.cs +++ /dev/null @@ -1,29 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for ReservationStatusCode. - /// - public static class ReservationStatusCode - { - public const string None = "None"; - public const string Pending = "Pending"; - public const string Active = "Active"; - public const string PurchaseError = "PurchaseError"; - public const string PaymentInstrumentError = "PaymentInstrumentError"; - public const string Split = "Split"; - public const string Merged = "Merged"; - public const string Expired = "Expired"; - public const string Succeeded = "Succeeded"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationTerm.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationTerm.cs deleted file mode 100644 index 10f2d4c0135bc..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservationTerm.cs +++ /dev/null @@ -1,22 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for ReservationTerm. - /// - public static class ReservationTerm - { - public const string P1Y = "P1Y"; - public const string P3Y = "P3Y"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservedResourceType.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservedResourceType.cs deleted file mode 100644 index 16d4b25593355..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ReservedResourceType.cs +++ /dev/null @@ -1,28 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - - /// - /// Defines values for ReservedResourceType. - /// - public static class ReservedResourceType - { - public const string VirtualMachines = "VirtualMachines"; - public const string SqlDatabases = "SqlDatabases"; - public const string SuseLinux = "SuseLinux"; - public const string CosmosDb = "CosmosDb"; - public const string RedHat = "RedHat"; - public const string SqlDataWarehouse = "SqlDataWarehouse"; - public const string VMwareCloudSimple = "VMwareCloudSimple"; - public const string RedHatOsa = "RedHatOsa"; - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ResourceName.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ResourceName.cs index 0f54fb96260c6..a99d1fb9c95b4 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ResourceName.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ResourceName.cs @@ -14,8 +14,8 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// Name of the resource provide by the resource Provider. Please use this - /// name property for quotaRequests. + /// Resource name provided by the resource provider. Use this property for + /// quotaRequest parameter. /// public partial class ResourceName { @@ -31,7 +31,8 @@ public ResourceName() /// Initializes a new instance of the ResourceName class. /// /// Resource name. - /// Resource display name. + /// Resource display localized + /// name. public ResourceName(string value = default(string), string localizedValue = default(string)) { Value = value; @@ -51,7 +52,7 @@ public ResourceName() public string Value { get; set; } /// - /// Gets resource display name. + /// Gets resource display localized name. /// [JsonProperty(PropertyName = "localizedValue")] public string LocalizedValue { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ScopeProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ScopeProperties.cs deleted file mode 100644 index fcac9c80f39ed..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ScopeProperties.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Collections.Generic; - using System.Linq; - - public partial class ScopeProperties - { - /// - /// Initializes a new instance of the ScopeProperties class. - /// - public ScopeProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the ScopeProperties class. - /// - public ScopeProperties(string scope = default(string), bool? valid = default(bool?)) - { - Scope = new List - { - scope - }; - Valid = valid; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "scopes")] - public List Scope { get; set; } - - /// - /// - [JsonProperty(PropertyName = "valid")] - public bool? Valid { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ServiceError.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ServiceError.cs index 7ced4e22464a1..87307fa3e4a50 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ServiceError.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/ServiceError.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Reservations.Models using System.Linq; /// - /// The api error details. + /// The API error details. /// public partial class ServiceError { @@ -32,7 +32,7 @@ public ServiceError() /// Initializes a new instance of the ServiceError class. /// /// The error code. - /// The error message. + /// The error message text. /// The list of error details. public ServiceError(string code = default(string), string message = default(string), IList details = default(IList)) { @@ -54,7 +54,7 @@ public ServiceError() public string Code { get; set; } /// - /// Gets or sets the error message. + /// Gets or sets the error message text. /// [JsonProperty(PropertyName = "message")] public string Message { get; set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SkuProperty.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SkuCapability.cs similarity index 83% rename from sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SkuProperty.cs rename to sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SkuCapability.cs index e8f35cd69c0d8..cac99b8d0926d 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SkuProperty.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SkuCapability.cs @@ -13,23 +13,23 @@ namespace Microsoft.Azure.Management.Reservations.Models using Newtonsoft.Json; using System.Linq; - public partial class SkuProperty + public partial class SkuCapability { /// - /// Initializes a new instance of the SkuProperty class. + /// Initializes a new instance of the SkuCapability class. /// - public SkuProperty() + public SkuCapability() { CustomInit(); } /// - /// Initializes a new instance of the SkuProperty class. + /// Initializes a new instance of the SkuCapability class. /// /// An invariant to describe the feature. /// An invariant if the feature is measured by /// quantity. - public SkuProperty(string name = default(string), string value = default(string)) + public SkuCapability(string name = default(string), string value = default(string)) { Name = name; Value = value; diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubRequest.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubRequest.cs index b1f4bb9eb07bc..fd5815b6169d6 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubRequest.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubRequest.cs @@ -29,15 +29,16 @@ public SubRequest() /// /// Initializes a new instance of the SubRequest class. /// - /// The Resource limit. - /// The Resource name. + /// Quota (resource limit). + /// The resource name. /// Resource type for which the quota check /// was made. - /// The units of the limit, such as - Count, Bytes, - /// etc. Use the unit field provided in the Get quota response. + /// The limit units, such as **count** and + /// **bytes**. Use the unit field provided in the response of the GET + /// quota operation. /// The quota request status. - /// User friendly status message. - /// Sub request id for individual + /// User-friendly status message. + /// Sub request ID for individual /// request. public SubRequest(int? limit = default(int?), ResourceName name = default(ResourceName), string resourceType = default(string), string unit = default(string), object provisioningState = default(object), string message = default(string), string subRequestId = default(string)) { @@ -57,13 +58,13 @@ public SubRequest() partial void CustomInit(); /// - /// Gets the Resource limit. + /// Gets quota (resource limit). /// [JsonProperty(PropertyName = "limit")] public int? Limit { get; private set; } /// - /// Gets or sets the Resource name. + /// Gets or sets the resource name. /// [JsonProperty(PropertyName = "name")] public ResourceName Name { get; set; } @@ -75,8 +76,8 @@ public SubRequest() public string ResourceType { get; private set; } /// - /// Gets or sets The units of the limit, such as - Count, Bytes, etc. - /// Use the unit field provided in the Get quota response. + /// Gets or sets The limit units, such as **count** and **bytes**. Use + /// the unit field provided in the response of the GET quota operation. /// [JsonProperty(PropertyName = "unit")] public string Unit { get; set; } @@ -88,13 +89,13 @@ public SubRequest() public object ProvisioningState { get; set; } /// - /// Gets user friendly status message. + /// Gets user-friendly status message. /// [JsonProperty(PropertyName = "message")] public string Message { get; private set; } /// - /// Gets sub request id for individual request. + /// Gets sub request ID for individual request. /// [JsonProperty(PropertyName = "subRequestId")] public string SubRequestId { get; private set; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs deleted file mode 100644 index f7c1e46b3a426..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SubscriptionScopeProperties.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - public partial class SubscriptionScopeProperties - { - /// - /// Initializes a new instance of the SubscriptionScopeProperties - /// class. - /// - public SubscriptionScopeProperties() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SubscriptionScopeProperties - /// class. - /// - public SubscriptionScopeProperties(ScopeProperties scopes = default(ScopeProperties)) - { - Scopes = scopes; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// - [JsonProperty(PropertyName = "properties")] - public ScopeProperties Scopes { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SupportRequestAction.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SupportRequestAction.cs deleted file mode 100644 index b7da2a785a7b0..0000000000000 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/Models/SupportRequestAction.cs +++ /dev/null @@ -1,121 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.Reservations.Models -{ - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// The SupportRequest action. - /// - public partial class SupportRequestAction - { - /// - /// Initializes a new instance of the SupportRequestAction class. - /// - public SupportRequestAction() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SupportRequestAction class. - /// - /// The support request severity. - /// The first name of the recipient. - /// The last name of the recipient. - /// The country of the recipient. - /// The phone number of the - /// recipient. - /// The primary email addresses of - /// the recipients. - /// The support language. - /// The preferred communication - /// channel. - /// The alternate email address - /// of the recipient. - public SupportRequestAction(object severity = default(object), string firstName = default(string), string lastName = default(string), string country = default(string), string phoneNumber = default(string), string primaryEmailAddress = default(string), string supportLanguage = default(string), object preferredContactMethod = default(object), IList alternateEmailAddresses = default(IList)) - { - Severity = severity; - FirstName = firstName; - LastName = lastName; - Country = country; - PhoneNumber = phoneNumber; - PrimaryEmailAddress = primaryEmailAddress; - SupportLanguage = supportLanguage; - PreferredContactMethod = preferredContactMethod; - AlternateEmailAddresses = alternateEmailAddresses; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets the support request severity. - /// - [JsonProperty(PropertyName = "severity")] - public object Severity { get; set; } - - /// - /// Gets or sets the first name of the recipient. - /// - [JsonProperty(PropertyName = "firstName")] - public string FirstName { get; set; } - - /// - /// Gets or sets the last name of the recipient. - /// - [JsonProperty(PropertyName = "lastName")] - public string LastName { get; set; } - - /// - /// Gets or sets the country of the recipient. - /// - [JsonProperty(PropertyName = "country")] - public string Country { get; set; } - - /// - /// Gets or sets the phone number of the recipient. - /// - [JsonProperty(PropertyName = "phoneNumber")] - public string PhoneNumber { get; set; } - - /// - /// Gets or sets the primary email addresses of the recipients. - /// - [JsonProperty(PropertyName = "primaryEmailAddress")] - public string PrimaryEmailAddress { get; set; } - - /// - /// Gets or sets the support language. - /// - [JsonProperty(PropertyName = "supportLanguage")] - public string SupportLanguage { get; set; } - - /// - /// Gets or sets the preferred communication channel. - /// - [JsonProperty(PropertyName = "preferredContactMethod")] - public object PreferredContactMethod { get; set; } - - /// - /// Gets or sets the alternate email address of the recipient. - /// - [JsonProperty(PropertyName = "alternateEmailAddresses")] - public IList AlternateEmailAddresses { get; set; } - - } -} diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/OperationOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/OperationOperations.cs index da28dd104bef9..e30ef4ff26edd 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/OperationOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/OperationOperations.cs @@ -73,7 +73,7 @@ internal OperationOperations(AzureReservationAPIClient client) /// public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperations.cs index a5f8e7efe85ca..b36b58ed7cf08 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperations.cs @@ -51,14 +51,14 @@ internal QuotaOperations(AzureReservationAPIClient client) public AzureReservationAPIClient Client { get; private set; } /// - /// Gets the current service limits (quotas) and usage of a resource. The - /// response from Get API can be leveraged to submit quota update requests. + /// Get the current quotas (service limits) and usage of a resource. You can + /// use the response from the GET operation to submit quota update requests. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -107,7 +107,7 @@ internal QuotaOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); } - string apiVersion = "2019-07-19-preview"; + string apiVersion = "2020-10-25"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -269,7 +269,7 @@ internal QuotaOperations(AzureReservationAPIClient client) } /// - /// Create or update the service limits (quota) of a resource to requested + /// Create or update the quotas (service limits) of a resource to the requested /// value. /// Steps: /// @@ -283,10 +283,10 @@ internal QuotaOperations(AzureReservationAPIClient client) /// can be used to update the quota. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -313,23 +313,22 @@ internal QuotaOperations(AzureReservationAPIClient client) } /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested value. /// - /// 1. Make the Get request to get the quota information for specific resource. + /// • To get the quota information for specific resource, send a GET request. /// - /// 2. To increase the quota, update the limit field in the response from Get - /// request to new value. + /// • To increase the quota, update the limit field from the GET response to a + /// new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH operation - /// can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota request + /// API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -340,7 +339,7 @@ internal QuotaOperations(AzureReservationAPIClient client) /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// /// /// The headers that will be added to request. @@ -356,15 +355,15 @@ internal QuotaOperations(AzureReservationAPIClient client) } /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit quota - /// update requests. + /// Gets a list of current quotas (service limits) and usage for all resources. + /// The response from the list quota operation can be leveraged to request + /// quota updates. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -404,7 +403,7 @@ internal QuotaOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "location"); } - string apiVersion = "2019-07-19-preview"; + string apiVersion = "2020-10-25"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -564,7 +563,7 @@ internal QuotaOperations(AzureReservationAPIClient client) } /// - /// Create or update the service limits (quota) of a resource to requested + /// Create or update the quotas (service limits) of a resource to the requested /// value. /// Steps: /// @@ -578,10 +577,10 @@ internal QuotaOperations(AzureReservationAPIClient client) /// can be used to update the quota. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -637,7 +636,7 @@ internal QuotaOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "createQuotaRequest"); } - string apiVersion = "2019-07-19-preview"; + string apiVersion = "2020-10-25"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -811,23 +810,22 @@ internal QuotaOperations(AzureReservationAPIClient client) } /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested value. /// - /// 1. Make the Get request to get the quota information for specific resource. + /// • To get the quota information for specific resource, send a GET request. /// - /// 2. To increase the quota, update the limit field in the response from Get - /// request to new value. + /// • To increase the quota, update the limit field from the GET response to a + /// new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH operation - /// can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota request + /// API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -838,7 +836,7 @@ internal QuotaOperations(AzureReservationAPIClient client) /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// /// /// Headers that will be added to request. @@ -883,7 +881,7 @@ internal QuotaOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "createQuotaRequest"); } - string apiVersion = "2019-07-19-preview"; + string apiVersion = "2020-10-25"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1057,9 +1055,9 @@ internal QuotaOperations(AzureReservationAPIClient client) } /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit quota - /// update requests. + /// Gets a list of current quotas (service limits) and usage for all resources. + /// The response from the list quota operation can be leveraged to request + /// quota updates. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperationsExtensions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperationsExtensions.cs index cc3b8caa744f6..3e4702959fd1a 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperationsExtensions.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaOperationsExtensions.cs @@ -22,17 +22,17 @@ namespace Microsoft.Azure.Management.Reservations public static partial class QuotaOperationsExtensions { /// - /// Gets the current service limits (quotas) and usage of a resource. The - /// response from Get API can be leveraged to submit quota update requests. + /// Get the current quotas (service limits) and usage of a resource. You can + /// use the response from the GET operation to submit quota update requests. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -48,17 +48,17 @@ public static CurrentQuotaLimitBase Get(this IQuotaOperations operations, string } /// - /// Gets the current service limits (quotas) and usage of a resource. The - /// response from Get API can be leveraged to submit quota update requests. + /// Get the current quotas (service limits) and usage of a resource. You can + /// use the response from the GET operation to submit quota update requests. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -80,7 +80,7 @@ public static CurrentQuotaLimitBase Get(this IQuotaOperations operations, string } /// - /// Create or update the service limits (quota) of a resource to requested + /// Create or update the quotas (service limits) of a resource to the requested /// value. /// Steps: /// @@ -97,10 +97,10 @@ public static CurrentQuotaLimitBase Get(this IQuotaOperations operations, string /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -119,7 +119,7 @@ public static object CreateOrUpdate(this IQuotaOperations operations, string sub } /// - /// Create or update the service limits (quota) of a resource to requested + /// Create or update the quotas (service limits) of a resource to the requested /// value. /// Steps: /// @@ -136,10 +136,10 @@ public static object CreateOrUpdate(this IQuotaOperations operations, string sub /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -164,26 +164,25 @@ public static object CreateOrUpdate(this IQuotaOperations operations, string sub } /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested value. /// - /// 1. Make the Get request to get the quota information for specific resource. + /// • To get the quota information for specific resource, send a GET request. /// - /// 2. To increase the quota, update the limit field in the response from Get - /// request to new value. + /// • To increase the quota, update the limit field from the GET response to a + /// new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH operation - /// can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota request + /// API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -194,7 +193,7 @@ public static object CreateOrUpdate(this IQuotaOperations operations, string sub /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// public static object Update(this IQuotaOperations operations, string subscriptionId, string providerId, string location, string resourceName, CurrentQuotaLimitBase createQuotaRequest) { @@ -202,26 +201,25 @@ public static object Update(this IQuotaOperations operations, string subscriptio } /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested value. /// - /// 1. Make the Get request to get the quota information for specific resource. + /// • To get the quota information for specific resource, send a GET request. /// - /// 2. To increase the quota, update the limit field in the response from Get - /// request to new value. + /// • To increase the quota, update the limit field from the GET response to a + /// new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH operation - /// can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota request + /// API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -232,7 +230,7 @@ public static object Update(this IQuotaOperations operations, string subscriptio /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// /// /// The cancellation token. @@ -246,18 +244,18 @@ public static object Update(this IQuotaOperations operations, string subscriptio } /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit quota - /// update requests. + /// Gets a list of current quotas (service limits) and usage for all resources. + /// The response from the list quota operation can be leveraged to request + /// quota updates. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -268,18 +266,18 @@ public static IPage List(this IQuotaOperations operations } /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit quota - /// update requests. + /// Gets a list of current quotas (service limits) and usage for all resources. + /// The response from the list quota operation can be leveraged to request + /// quota updates. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -296,7 +294,7 @@ public static IPage List(this IQuotaOperations operations } /// - /// Create or update the service limits (quota) of a resource to requested + /// Create or update the quotas (service limits) of a resource to the requested /// value. /// Steps: /// @@ -313,10 +311,10 @@ public static IPage List(this IQuotaOperations operations /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -335,7 +333,7 @@ public static object BeginCreateOrUpdate(this IQuotaOperations operations, strin } /// - /// Create or update the service limits (quota) of a resource to requested + /// Create or update the quotas (service limits) of a resource to the requested /// value. /// Steps: /// @@ -352,10 +350,10 @@ public static object BeginCreateOrUpdate(this IQuotaOperations operations, strin /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -380,26 +378,25 @@ public static object BeginCreateOrUpdate(this IQuotaOperations operations, strin } /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested value. /// - /// 1. Make the Get request to get the quota information for specific resource. + /// • To get the quota information for specific resource, send a GET request. /// - /// 2. To increase the quota, update the limit field in the response from Get - /// request to new value. + /// • To increase the quota, update the limit field from the GET response to a + /// new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH operation - /// can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota request + /// API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -410,7 +407,7 @@ public static object BeginCreateOrUpdate(this IQuotaOperations operations, strin /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// public static object BeginUpdate(this IQuotaOperations operations, string subscriptionId, string providerId, string location, string resourceName, CurrentQuotaLimitBase createQuotaRequest) { @@ -418,26 +415,25 @@ public static object BeginUpdate(this IQuotaOperations operations, string subscr } /// - /// Update the service limits (quota) of a resource to requested value. - /// Steps: + /// Update the quota (service limits) of this resource to the requested value. /// - /// 1. Make the Get request to get the quota information for specific resource. + /// • To get the quota information for specific resource, send a GET request. /// - /// 2. To increase the quota, update the limit field in the response from Get - /// request to new value. + /// • To increase the quota, update the limit field from the GET response to a + /// new value. /// - /// 3. Submit the JSON to the quota request API to update the quota. - /// The Update quota request may be constructed as follows. The PATCH operation - /// can be used to update the quota. + /// • To update the quota value, submit the JSON response to the quota request + /// API to update the quota. + /// • To update the quota. use the PATCH operation. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -448,7 +444,7 @@ public static object BeginUpdate(this IQuotaOperations operations, string subscr /// Microsoft.MachineLearningServices /// /// - /// Quota requests payload. + /// Payload for the quota request. /// /// /// The cancellation token. @@ -462,9 +458,9 @@ public static object BeginUpdate(this IQuotaOperations operations, string subscr } /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit quota - /// update requests. + /// Gets a list of current quotas (service limits) and usage for all resources. + /// The response from the list quota operation can be leveraged to request + /// quota updates. /// /// /// The operations group for this extension method. @@ -478,9 +474,9 @@ public static IPage ListNext(this IQuotaOperations operat } /// - /// Get a list of current service limits (quota) and usages of all the - /// resources. The response from List API can be leveraged to submit quota - /// update requests. + /// Gets a list of current quotas (service limits) and usage for all resources. + /// The response from the list quota operation can be leveraged to request + /// quota updates. /// /// /// The operations group for this extension method. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperations.cs index be9e78adac9c2..25092e43a31e7 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperations.cs @@ -51,21 +51,22 @@ internal QuotaRequestStatusOperations(AzureReservationAPIClient client) public AzureReservationAPIClient Client { get; private set; } /// - /// Gets the QuotaRequest details and status by the quota request Id for the - /// resources for the resource provider at a specific location. The requestId - /// is returned as response to the Put requests for serviceLimits. + /// For the specified Azure region (location), get the details and status of + /// the quota request by the quota request ID for the resources of the resource + /// provider. The PUT request for service limits returns a response with the + /// requestId parameter. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. /// /// - /// Quota Request id. + /// Quota Request ID. /// /// /// Headers that will be added to request. @@ -106,7 +107,7 @@ internal QuotaRequestStatusOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "id"); } - string apiVersion = "2019-07-19-preview"; + string apiVersion = "2020-10-25"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -255,15 +256,15 @@ internal QuotaRequestStatusOperations(AzureReservationAPIClient client) } /// - /// For the specified location and Resource provider gets the current quota - /// requests under the subscription over the time period of one year ago from - /// now to one year back. oData filter can be used to select quota requests. + /// For the specified Azure region (location), subscription, and resource + /// provider, get the history of the quota requests for the past year. To + /// select specific quota requests, use the oData filter. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -280,8 +281,8 @@ internal QuotaRequestStatusOperations(AzureReservationAPIClient client) /// /// Skiptoken is only used if a previous operation returned a partial result. /// If a previous response contains a nextLink element, the value of the - /// nextLink element will include a skiptoken parameter that specifies a - /// starting point to use for subsequent calls + /// nextLink element includes a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. /// /// /// Headers that will be added to request. @@ -322,7 +323,7 @@ internal QuotaRequestStatusOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); } - string apiVersion = "2019-07-19-preview"; + string apiVersion = "2020-10-25"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -484,9 +485,9 @@ internal QuotaRequestStatusOperations(AzureReservationAPIClient client) } /// - /// For the specified location and Resource provider gets the current quota - /// requests under the subscription over the time period of one year ago from - /// now to one year back. oData filter can be used to select quota requests. + /// For the specified Azure region (location), subscription, and resource + /// provider, get the history of the quota requests for the past year. To + /// select specific quota requests, use the oData filter. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperationsExtensions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperationsExtensions.cs index d90385891897d..f9efb7a346a89 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperationsExtensions.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/QuotaRequestStatusOperationsExtensions.cs @@ -22,24 +22,25 @@ namespace Microsoft.Azure.Management.Reservations public static partial class QuotaRequestStatusOperationsExtensions { /// - /// Gets the QuotaRequest details and status by the quota request Id for the - /// resources for the resource provider at a specific location. The requestId - /// is returned as response to the Put requests for serviceLimits. + /// For the specified Azure region (location), get the details and status of + /// the quota request by the quota request ID for the resources of the resource + /// provider. The PUT request for service limits returns a response with the + /// requestId parameter. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. /// /// - /// Quota Request id. + /// Quota Request ID. /// public static QuotaRequestDetails Get(this IQuotaRequestStatusOperations operations, string subscriptionId, string providerId, string location, string id) { @@ -47,24 +48,25 @@ public static QuotaRequestDetails Get(this IQuotaRequestStatusOperations operati } /// - /// Gets the QuotaRequest details and status by the quota request Id for the - /// resources for the resource provider at a specific location. The requestId - /// is returned as response to the Put requests for serviceLimits. + /// For the specified Azure region (location), get the details and status of + /// the quota request by the quota request ID for the resources of the resource + /// provider. The PUT request for service limits returns a response with the + /// requestId parameter. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. /// /// - /// Quota Request id. + /// Quota Request ID. /// /// /// The cancellation token. @@ -78,18 +80,18 @@ public static QuotaRequestDetails Get(this IQuotaRequestStatusOperations operati } /// - /// For the specified location and Resource provider gets the current quota - /// requests under the subscription over the time period of one year ago from - /// now to one year back. oData filter can be used to select quota requests. + /// For the specified Azure region (location), subscription, and resource + /// provider, get the history of the quota requests for the past year. To + /// select specific quota requests, use the oData filter. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -106,8 +108,8 @@ public static QuotaRequestDetails Get(this IQuotaRequestStatusOperations operati /// /// Skiptoken is only used if a previous operation returned a partial result. /// If a previous response contains a nextLink element, the value of the - /// nextLink element will include a skiptoken parameter that specifies a - /// starting point to use for subsequent calls + /// nextLink element includes a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. /// public static IPage List(this IQuotaRequestStatusOperations operations, string subscriptionId, string providerId, string location, string filter = default(string), int? top = default(int?), string skiptoken = default(string)) { @@ -115,18 +117,18 @@ public static QuotaRequestDetails Get(this IQuotaRequestStatusOperations operati } /// - /// For the specified location and Resource provider gets the current quota - /// requests under the subscription over the time period of one year ago from - /// now to one year back. oData filter can be used to select quota requests. + /// For the specified Azure region (location), subscription, and resource + /// provider, get the history of the quota requests for the past year. To + /// select specific quota requests, use the oData filter. /// /// /// The operations group for this extension method. /// /// - /// Azure subscription id. + /// Azure subscription ID. /// /// - /// Azure resource provider id. + /// Azure resource provider ID. /// /// /// Azure region. @@ -143,8 +145,8 @@ public static QuotaRequestDetails Get(this IQuotaRequestStatusOperations operati /// /// Skiptoken is only used if a previous operation returned a partial result. /// If a previous response contains a nextLink element, the value of the - /// nextLink element will include a skiptoken parameter that specifies a - /// starting point to use for subsequent calls + /// nextLink element includes a skiptoken parameter that specifies a starting + /// point to use for subsequent calls. /// /// /// The cancellation token. @@ -158,9 +160,9 @@ public static QuotaRequestDetails Get(this IQuotaRequestStatusOperations operati } /// - /// For the specified location and Resource provider gets the current quota - /// requests under the subscription over the time period of one year ago from - /// now to one year back. oData filter can be used to select quota requests. + /// For the specified Azure region (location), subscription, and resource + /// provider, get the history of the quota requests for the past year. To + /// select specific quota requests, use the oData filter. /// /// /// The operations group for this extension method. @@ -174,9 +176,9 @@ public static IPage ListNext(this IQuotaRequestStatusOperat } /// - /// For the specified location and Resource provider gets the current quota - /// requests under the subscription over the time period of one year ago from - /// now to one year back. oData filter can be used to select quota requests. + /// For the specified Azure region (location), subscription, and resource + /// provider, get the history of the quota requests for the past year. To + /// select specific quota requests, use the oData filter. /// /// /// The operations group for this extension method. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperations.cs index 1d8bb8a640fe2..4894f6ca49634 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperations.cs @@ -50,40 +50,13 @@ internal ReservationOperations(AzureReservationAPIClient client) /// public AzureReservationAPIClient Client { get; private set; } - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> AvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginAvailableScopesWithHttpMessagesAsync(reservationOrderId, reservationId, body, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Split the `Reservation`. /// /// /// Split a `Reservation` into two `Reservation`s with specified quantity /// distribution. + /// /// /// /// Order Id of the reservation @@ -166,7 +139,7 @@ internal ReservationOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "reservationOrderId"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -320,9 +293,6 @@ internal ReservationOperations(AzureReservationAPIClient client) /// /// Order Id of the reservation /// - /// - /// Supported value of this query is renewProperties - /// /// /// Headers that will be added to request. /// @@ -344,7 +314,7 @@ internal ReservationOperations(AzureReservationAPIClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (reservationId == null) { @@ -354,7 +324,7 @@ internal ReservationOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "reservationOrderId"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -365,7 +335,6 @@ internal ReservationOperations(AzureReservationAPIClient client) tracingParameters.Add("reservationId", reservationId); tracingParameters.Add("reservationOrderId", reservationOrderId); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("expand", expand); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } @@ -379,10 +348,6 @@ internal ReservationOperations(AzureReservationAPIClient client) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } - if (expand != null) - { - _queryParameters.Add(string.Format("expand={0}", System.Uri.EscapeDataString(expand))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -536,6 +501,7 @@ internal ReservationOperations(AzureReservationAPIClient client) /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// Id of the Reservation Item @@ -574,7 +540,7 @@ internal ReservationOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "reservationOrderId"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -718,213 +684,13 @@ internal ReservationOperations(AzureReservationAPIClient client) return _result; } - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - /// - /// 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> BeginAvailableScopesWithHttpMessagesAsync(string reservationOrderId, string reservationId, SubscriptionScopeProperties body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (reservationOrderId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "reservationOrderId"); - } - if (reservationId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "reservationId"); - } - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - string apiVersion = "2019-04-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("reservationOrderId", reservationOrderId); - tracingParameters.Add("reservationId", reservationId); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("body", body); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginAvailableScopes", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/availableScopes").ToString(); - _url = _url.Replace("{reservationOrderId}", System.Uri.EscapeDataString(reservationOrderId)); - _url = _url.Replace("{reservationId}", System.Uri.EscapeDataString(reservationId)); - 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("POST"); - _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(body != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, 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) - { - var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - 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; - } - /// /// Split the `Reservation`. /// /// /// Split a `Reservation` into two `Reservation`s with specified quantity /// distribution. + /// /// /// /// Order Id of the reservation @@ -963,7 +729,7 @@ internal ReservationOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1156,7 +922,7 @@ internal ReservationOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1355,7 +1121,7 @@ internal ReservationOperations(AzureReservationAPIClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1682,6 +1448,7 @@ internal ReservationOperations(AzureReservationAPIClient client) /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperationsExtensions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperationsExtensions.cs index 61135f6bf6230..f89c6f7370f95 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperationsExtensions.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOperationsExtensions.cs @@ -23,64 +23,13 @@ namespace Microsoft.Azure.Management.Reservations /// public static partial class ReservationOperationsExtensions { - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - public static Properties AvailableScopes(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body) - { - return operations.AvailableScopesAsync(reservationOrderId, reservationId, body).GetAwaiter().GetResult(); - } - - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - /// - /// The cancellation token. - /// - public static async Task AvailableScopesAsync(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.AvailableScopesWithHttpMessagesAsync(reservationOrderId, reservationId, body, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Split the `Reservation`. /// /// /// Split a `Reservation` into two `Reservation`s with specified quantity /// distribution. + /// /// /// /// The operations group for this extension method. @@ -102,6 +51,7 @@ public static IList Split(this IReservationOperations opera /// /// Split a `Reservation` into two `Reservation`s with specified quantity /// distribution. + /// /// /// /// The operations group for this extension method. @@ -226,12 +176,9 @@ public static IPage List(this IReservationOperations operat /// /// Order Id of the reservation /// - /// - /// Supported value of this query is renewProperties - /// - public static ReservationResponse Get(this IReservationOperations operations, string reservationId, string reservationOrderId, string expand = default(string)) + public static ReservationResponse Get(this IReservationOperations operations, string reservationId, string reservationOrderId) { - return operations.GetAsync(reservationId, reservationOrderId, expand).GetAwaiter().GetResult(); + return operations.GetAsync(reservationId, reservationOrderId).GetAwaiter().GetResult(); } /// @@ -249,15 +196,12 @@ public static IPage List(this IReservationOperations operat /// /// Order Id of the reservation /// - /// - /// Supported value of this query is renewProperties - /// /// /// The cancellation token. /// - public static async Task GetAsync(this IReservationOperations operations, string reservationId, string reservationOrderId, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReservationOperations operations, string reservationId, string reservationOrderId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(reservationId, reservationOrderId, expand, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(reservationId, reservationOrderId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -320,6 +264,7 @@ public static ReservationResponse Update(this IReservationOperations operations, /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// The operations group for this extension method. @@ -340,6 +285,7 @@ public static IPage ListRevisions(this IReservationOperatio /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// The operations group for this extension method. @@ -361,64 +307,13 @@ public static IPage ListRevisions(this IReservationOperatio } } - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - public static Properties BeginAvailableScopes(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body) - { - return operations.BeginAvailableScopesAsync(reservationOrderId, reservationId, body).GetAwaiter().GetResult(); - } - - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// Get Available Scopes for `Reservation`. - /// - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Id of the Reservation Item - /// - /// - /// - /// - /// The cancellation token. - /// - public static async Task BeginAvailableScopesAsync(this IReservationOperations operations, string reservationOrderId, string reservationId, SubscriptionScopeProperties body, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.BeginAvailableScopesWithHttpMessagesAsync(reservationOrderId, reservationId, body, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Split the `Reservation`. /// /// /// Split a `Reservation` into two `Reservation`s with specified quantity /// distribution. + /// /// /// /// The operations group for this extension method. @@ -440,6 +335,7 @@ public static IList BeginSplit(this IReservationOperations /// /// Split a `Reservation` into two `Reservation`s with specified quantity /// distribution. + /// /// /// /// The operations group for this extension method. @@ -606,6 +502,7 @@ public static IPage ListNext(this IReservationOperations op /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// The operations group for this extension method. @@ -623,6 +520,7 @@ public static IPage ListRevisionsNext(this IReservationOper /// /// /// List of all the revisions for the `Reservation`. + /// /// /// /// The operations group for this extension method. diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperations.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperations.cs index 18a326d48f7fb..5b7558920f232 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperations.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperations.cs @@ -50,189 +50,6 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) /// public AzureReservationAPIClient Client { get; private set; } - /// - /// Calculate price for a `ReservationOrder`. - /// - /// - /// Calculate price for placing a `ReservationOrder`. - /// - /// - /// Information needed for calculate or purchase reservation - /// - /// - /// 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> CalculateWithHttpMessagesAsync(PurchaseRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - string apiVersion = "2019-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("body", body); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Calculate", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Capacity/calculatePrice").ToString(); - 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("POST"); - _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(body != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, 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) - { - var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - 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; - } - /// /// Get all `ReservationOrder`s. /// @@ -257,7 +74,7 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) /// public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -397,31 +214,6 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) return _result; } - /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified URI. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> PurchaseWithHttpMessagesAsync(string reservationOrderId, PurchaseRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send Request - AzureOperationResponse _response = await BeginPurchaseWithHttpMessagesAsync(reservationOrderId, body, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Get a specific `ReservationOrder`. /// @@ -431,9 +223,6 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) /// /// Order Id of the reservation /// - /// - /// May be used to expand the planInformation. - /// /// /// Headers that will be added to request. /// @@ -455,13 +244,13 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string reservationOrderId, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string reservationOrderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (reservationOrderId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "reservationOrderId"); } - string apiVersion = "2019-04-01"; + string apiVersion = "2017-11-01"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -471,7 +260,6 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("reservationOrderId", reservationOrderId); tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("expand", expand); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } @@ -484,10 +272,6 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } - if (expand != null) - { - _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -608,216 +392,6 @@ internal ReservationOrderOperations(AzureReservationAPIClient client) return _result; } - /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified URI. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// - /// - /// 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> BeginPurchaseWithHttpMessagesAsync(string reservationOrderId, PurchaseRequest body, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - if (reservationOrderId == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "reservationOrderId"); - } - if (body == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "body"); - } - string apiVersion = "2019-04-01"; - // Tracing - bool _shouldTrace = ServiceClientTracing.IsEnabled; - string _invocationId = null; - if (_shouldTrace) - { - _invocationId = ServiceClientTracing.NextInvocationId.ToString(); - Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("reservationOrderId", reservationOrderId); - tracingParameters.Add("apiVersion", apiVersion); - tracingParameters.Add("body", body); - tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginPurchase", tracingParameters); - } - // Construct URL - var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}").ToString(); - _url = _url.Replace("{reservationOrderId}", System.Uri.EscapeDataString(reservationOrderId)); - 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(body != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, 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 != 202) - { - var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); - try - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - if (_errorBody != null) - { - ex.Body = _errorBody; - } - } - catch (JsonException) - { - // Ignore the exception - } - ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); - 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 == 202) - { - _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; - } - /// /// Get all `ReservationOrder`s. /// diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperationsExtensions.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperationsExtensions.cs index 1129492036810..5cf37f0194420 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperationsExtensions.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/ReservationOrderOperationsExtensions.cs @@ -21,46 +21,6 @@ namespace Microsoft.Azure.Management.Reservations /// public static partial class ReservationOrderOperationsExtensions { - /// - /// Calculate price for a `ReservationOrder`. - /// - /// - /// Calculate price for placing a `ReservationOrder`. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Information needed for calculate or purchase reservation - /// - public static CalculatePriceResponse Calculate(this IReservationOrderOperations operations, PurchaseRequest body) - { - return operations.CalculateAsync(body).GetAwaiter().GetResult(); - } - - /// - /// Calculate price for a `ReservationOrder`. - /// - /// - /// Calculate price for placing a `ReservationOrder`. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Information needed for calculate or purchase reservation - /// - /// - /// The cancellation token. - /// - public static async Task CalculateAsync(this IReservationOrderOperations operations, PurchaseRequest body, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CalculateWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Get all `ReservationOrder`s. /// @@ -97,52 +57,6 @@ public static IPage List(this IReservationOrderOperati } } - /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified URI. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// - public static ReservationOrderResponse Purchase(this IReservationOrderOperations operations, string reservationOrderId, PurchaseRequest body) - { - return operations.PurchaseAsync(reservationOrderId, body).GetAwaiter().GetResult(); - } - - /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified URI. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// - /// - /// The cancellation token. - /// - public static async Task PurchaseAsync(this IReservationOrderOperations operations, string reservationOrderId, PurchaseRequest body, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.PurchaseWithHttpMessagesAsync(reservationOrderId, body, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Get a specific `ReservationOrder`. /// @@ -155,12 +69,9 @@ public static ReservationOrderResponse Purchase(this IReservationOrderOperations /// /// Order Id of the reservation /// - /// - /// May be used to expand the planInformation. - /// - public static ReservationOrderResponse Get(this IReservationOrderOperations operations, string reservationOrderId, string expand = default(string)) + public static ReservationOrderResponse Get(this IReservationOrderOperations operations, string reservationOrderId) { - return operations.GetAsync(reservationOrderId, expand).GetAwaiter().GetResult(); + return operations.GetAsync(reservationOrderId).GetAwaiter().GetResult(); } /// @@ -175,61 +86,12 @@ public static ReservationOrderResponse Purchase(this IReservationOrderOperations /// /// Order Id of the reservation /// - /// - /// May be used to expand the planInformation. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IReservationOrderOperations operations, string reservationOrderId, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(reservationOrderId, expand, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - - /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified URI. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// - public static ReservationOrderResponse BeginPurchase(this IReservationOrderOperations operations, string reservationOrderId, PurchaseRequest body) - { - return operations.BeginPurchaseAsync(reservationOrderId, body).GetAwaiter().GetResult(); - } - - /// - /// Purchase `ReservationOrder` - /// - /// - /// Purchase `ReservationOrder` and create resource under the specified URI. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Order Id of the reservation - /// - /// - /// Information needed for calculate or purchase reservation - /// /// /// The cancellation token. /// - public static async Task BeginPurchaseAsync(this IReservationOrderOperations operations, string reservationOrderId, PurchaseRequest body, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IReservationOrderOperations operations, string reservationOrderId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginPurchaseWithHttpMessagesAsync(reservationOrderId, body, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(reservationOrderId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/SdkInfo_AzureReservationAPI.cs b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/SdkInfo_AzureReservationAPI.cs index 481a259e1a4e3..2f1b7c8e4f86b 100644 --- a/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/SdkInfo_AzureReservationAPI.cs +++ b/sdk/reservations/Microsoft.Azure.Management.Reservations/src/Generated/SdkInfo_AzureReservationAPI.cs @@ -19,14 +19,13 @@ public static IEnumerable> ApiInfo_AzureReservatio { return new Tuple[] { - new Tuple("Capacity", "AutoQuotaIncrease", "2019-07-19-preview"), - new Tuple("Capacity", "GetAppliedReservationList", "2019-04-01"), - new Tuple("Capacity", "GetCatalog", "2019-04-01"), - new Tuple("Capacity", "Operation", "2019-04-01"), - new Tuple("Capacity", "Quota", "2019-07-19-preview"), - new Tuple("Capacity", "QuotaRequestStatus", "2019-07-19-preview"), - new Tuple("Capacity", "Reservation", "2019-04-01"), - new Tuple("Capacity", "ReservationOrder", "2019-04-01"), + new Tuple("Capacity", "GetAppliedReservationList", "2017-11-01"), + new Tuple("Capacity", "GetCatalog", "2017-11-01"), + new Tuple("Capacity", "Operation", "2017-11-01"), + new Tuple("Capacity", "Quota", "2020-10-25"), + new Tuple("Capacity", "QuotaRequestStatus", "2020-10-25"), + new Tuple("Capacity", "Reservation", "2017-11-01"), + new Tuple("Capacity", "ReservationOrder", "2017-11-01"), }.AsEnumerable(); } }