Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ public partial interface IReservationOperations
/// <param name='reservationOrderId'>
/// Order Id of the reservation
/// </param>
/// <param name='append'>
/// Supported value of this query is renewProperties
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
Expand All @@ -136,7 +133,7 @@ public partial interface IReservationOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ReservationResponse>> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, string append = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<ReservationResponse>> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates a `Reservation`.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ public Patch()
/// <param name="instanceFlexibility">Possible values include: 'On',
/// 'Off'</param>
/// <param name="name">Name of the Reservation</param>
public Patch(string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), bool? renew = default(bool?), PurchaseRequest renewProperties = default(PurchaseRequest), string instanceFlexibility = default(string), string name = default(string))
public Patch(string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), string instanceFlexibility = default(string), string name = default(string))
{
AppliedScopeType = appliedScopeType;
AppliedScopes = appliedScopes;
Renew = renew;
RenewProperties = renewProperties;
InstanceFlexibility = instanceFlexibility;
Name = name;
CustomInit();
Expand All @@ -63,16 +61,6 @@ public Patch()
[JsonProperty(PropertyName = "properties.appliedScopes")]
public IList<string> AppliedScopes { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "properties.renew")]
public bool? Renew { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "properties.renewProperties")]
public PurchaseRequest RenewProperties { get; set; }

/// <summary>
/// Gets or sets possible values include: 'On', 'Off'
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public PurchaseRequest()
/// <param name="reservedResourceProperties">Properties specific to
/// each reserved resource type. Not required if not
/// applicable.</param>
public PurchaseRequest(SkuName sku = default(SkuName), string location = default(string), string reservedResourceType = default(string), string billingScopeId = default(string), string term = default(string), int? quantity = default(int?), string displayName = default(string), string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), bool? renew = default(bool?), PurchaseRequestPropertiesReservedResourceProperties reservedResourceProperties = default(PurchaseRequestPropertiesReservedResourceProperties))
public PurchaseRequest(SkuName sku = default(SkuName), string location = default(string), string reservedResourceType = default(string), string billingScopeId = default(string), string term = default(string), int? quantity = default(int?), string displayName = default(string), string appliedScopeType = default(string), IList<string> appliedScopes = default(IList<string>), PurchaseRequestPropertiesReservedResourceProperties reservedResourceProperties = default(PurchaseRequestPropertiesReservedResourceProperties))
{
Sku = sku;
Location = location;
Expand All @@ -53,7 +53,6 @@ public PurchaseRequest()
DisplayName = displayName;
AppliedScopeType = appliedScopeType;
AppliedScopes = appliedScopes;
Renew = renew;
ReservedResourceProperties = reservedResourceProperties;
CustomInit();
}
Expand Down Expand Up @@ -114,11 +113,6 @@ public PurchaseRequest()
[JsonProperty(PropertyName = "properties.appliedScopes")]
public IList<string> AppliedScopes { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "properties.renew")]
public bool? Renew { get; set; }

/// <summary>
/// Gets or sets properties specific to each reserved resource type.
/// Not required if not applicable.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ReservationProperties()
/// expire.</param>
/// <param name="skuDescription">Description of the SKU in
/// english.</param>
public ReservationProperties(string reservedResourceType = default(string), string instanceFlexibility = default(string), string displayName = default(string), IList<string> appliedScopes = default(IList<string>), 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), ReservationSplitProperties splitProperties = default(ReservationSplitProperties), ReservationMergeProperties mergeProperties = default(ReservationMergeProperties), bool? renew = default(bool?), RenewPropertiesResponse renewProperties = default(RenewPropertiesResponse))
public ReservationProperties(string reservedResourceType = default(string), string instanceFlexibility = default(string), string displayName = default(string), IList<string> appliedScopes = default(IList<string>), 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), ReservationSplitProperties splitProperties = default(ReservationSplitProperties), ReservationMergeProperties mergeProperties = default(ReservationMergeProperties))
{
ReservedResourceType = reservedResourceType;
InstanceFlexibility = instanceFlexibility;
Expand All @@ -64,8 +64,6 @@ public ReservationProperties()
ExtendedStatusInfo = extendedStatusInfo;
SplitProperties = splitProperties;
MergeProperties = mergeProperties;
Renew = renew;
RenewProperties = renewProperties;
CustomInit();
}

Expand Down Expand Up @@ -157,15 +155,5 @@ public ReservationProperties()
[JsonProperty(PropertyName = "mergeProperties")]
public ReservationMergeProperties MergeProperties { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "renew")]
public bool? Renew { get; set; }

/// <summary>
/// </summary>
[JsonProperty(PropertyName = "renewProperties")]
public RenewPropertiesResponse RenewProperties { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// <param name='reservationOrderId'>
/// Order Id of the reservation
/// </param>
/// <param name='append'>
/// Supported value of this query is renewProperties
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
/// </param>
Expand All @@ -318,7 +315,7 @@ internal ReservationOperations(AzureReservationAPIClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<ReservationResponse>> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, string append = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<ReservationResponse>> GetWithHttpMessagesAsync(string reservationId, string reservationOrderId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (reservationId == null)
{
Expand All @@ -341,7 +338,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
Dictionary<string, object> tracingParameters = new Dictionary<string, object>();
tracingParameters.Add("reservationId", reservationId);
tracingParameters.Add("reservationOrderId", reservationOrderId);
tracingParameters.Add("append", append);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
Expand All @@ -355,10 +351,6 @@ internal ReservationOperations(AzureReservationAPIClient client)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
if (append != null)
{
_queryParameters.Add(string.Format("append={0}", System.Uri.EscapeDataString(append)));
}
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,9 @@ public static IPage<ReservationResponse> List(this IReservationOperations operat
/// <param name='reservationOrderId'>
/// Order Id of the reservation
/// </param>
/// <param name='append'>
/// Supported value of this query is renewProperties
/// </param>
public static ReservationResponse Get(this IReservationOperations operations, string reservationId, string reservationOrderId, string append = default(string))
public static ReservationResponse Get(this IReservationOperations operations, string reservationId, string reservationOrderId)
{
return operations.GetAsync(reservationId, reservationOrderId, append).GetAwaiter().GetResult();
return operations.GetAsync(reservationId, reservationOrderId).GetAwaiter().GetResult();
}

/// <summary>
Expand All @@ -197,15 +194,12 @@ public static IPage<ReservationResponse> List(this IReservationOperations operat
/// <param name='reservationOrderId'>
/// Order Id of the reservation
/// </param>
/// <param name='append'>
/// Supported value of this query is renewProperties
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<ReservationResponse> GetAsync(this IReservationOperations operations, string reservationId, string reservationOrderId, string append = default(string), CancellationToken cancellationToken = default(CancellationToken))
public static async Task<ReservationResponse> GetAsync(this IReservationOperations operations, string reservationId, string reservationOrderId, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.GetWithHttpMessagesAsync(reservationId, reservationOrderId, append, null, cancellationToken).ConfigureAwait(false))
using (var _result = await operations.GetWithHttpMessagesAsync(reservationId, reservationOrderId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
Expand Down