Share via


CalculateExchangeOperationResultResponse Class

Definition

CalculateExchange operation result

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.CalculateExchangeOperationResultResponseTypeConverter))]
public class CalculateExchangeOperationResultResponse : Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ICalculateExchangeOperationResultResponse
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.CalculateExchangeOperationResultResponseTypeConverter))>]
type CalculateExchangeOperationResultResponse = class
    interface ICalculateExchangeOperationResultResponse
    interface IJsonSerializable
Public Class CalculateExchangeOperationResultResponse
Implements ICalculateExchangeOperationResultResponse
Inheritance
CalculateExchangeOperationResultResponse
Attributes
Implements

Constructors

CalculateExchangeOperationResultResponse()

Creates an new CalculateExchangeOperationResultResponse instance.

Properties

Code

Required if status == failed or status == cancelled. If status == failed, provide an invariant error code used for error troubleshooting, aggregation, and analysis.

Id

It should match what is used to GET the operation result.

Message

Required if status == failed. Localized. If status == failed, provide an actionable error message indicating what error occurred, and what the user can do to address the issue.

Name

It must match the last segment of the id field, and will typically be a GUID / system generated value.

NetPayable

Pricing information containing the amount and the currency code

PolicyResultPolicyError

Exchange Policy errors

PurchasesTotal

Pricing information containing the amount and the currency code

RefundsTotal

Pricing information containing the amount and the currency code

ReservationsToExchange

Details of the reservations being returned

ReservationsToPurchase

Details of the reservations being purchased

ResourceGroupName

Gets the resource group name

SavingsPlansToPurchase

Details of the savings plans being purchased

SessionId

Exchange session identifier

Status

Status of the operation.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of CalculateExchangeOperationResultResponse.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of CalculateExchangeOperationResultResponse.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ICalculateExchangeOperationResultResponse.

FromJsonString(String)

Creates a new instance of CalculateExchangeOperationResultResponse, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of CalculateExchangeOperationResultResponse into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to