共用方式為


ReservationOrderResource.UpdateAsync Method

Definition

Purchase ReservationOrder and create resource under the specified URI.

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

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
ReservationPurchaseContent

Information needed for calculate or purchase reservation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to