Share via


MockableReservationsTenantResource.CalculateReservationExchangeAsync Method

Definition

Calculates price for exchanging Reservations if there are no policy errors.

  • Request Path: /providers/Microsoft.Capacity/calculateExchange
  • Operation Id: CalculateExchange_Post
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.CalculateExchangeResult>> CalculateReservationExchangeAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Reservations.Models.CalculateExchangeContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CalculateReservationExchangeAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.CalculateExchangeContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.CalculateExchangeResult>>
override this.CalculateReservationExchangeAsync : Azure.WaitUntil * Azure.ResourceManager.Reservations.Models.CalculateExchangeContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Reservations.Models.CalculateExchangeResult>>
Public Overridable Function CalculateReservationExchangeAsync (waitUntil As WaitUntil, content As CalculateExchangeContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of CalculateExchangeResult))

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
CalculateExchangeContent

Request containing purchases and refunds that need to be executed.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to