다음을 통해 공유


ReservationOrderResource.MergeReservationAsync Method

Definition

Merge the specified Reservations into a new Reservation. The two Reservations being merged must have same properties.

  • Request Path: /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/merge
  • Operation Id: Reservation_Merge
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.Reservations.ReservationDetailData>>> MergeReservationAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Reservations.Models.MergeContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member MergeReservationAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.MergeContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.Reservations.ReservationDetailData>>>
override this.MergeReservationAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.MergeContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<System.Collections.Generic.IList<Azure.ResourceManager.Reservations.ReservationDetailData>>>
Public Overridable Function MergeReservationAsync (waitUntil As WaitUntil, content As MergeContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of IList(Of ReservationDetailData)))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
MergeContent

Information needed for commercial request for a reservation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to