Share via


AgentUpgrade Class

Definition

The info w.r.t Agent Upgrade.

public class AgentUpgrade : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.HybridCompute.Models.AgentUpgrade>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.HybridCompute.Models.AgentUpgrade>
type AgentUpgrade = class
    interface IJsonModel<AgentUpgrade>
    interface IPersistableModel<AgentUpgrade>
Public Class AgentUpgrade
Implements IJsonModel(Of AgentUpgrade), IPersistableModel(Of AgentUpgrade)
Inheritance
AgentUpgrade
Implements

Constructors

AgentUpgrade()

Initializes a new instance of AgentUpgrade.

Properties

CorrelationId

The correlation ID passed in from RSM per upgrade.

DesiredVersion

Specifies the version info w.r.t AgentUpgrade for the machine.

IsAutomaticUpgradeEnabled

Specifies if RSM should try to upgrade this machine.

LastAttemptDesiredVersion

Specifies the version of the last attempt.

LastAttemptedOn

Timestamp of last upgrade attempt.

LastAttemptMessage

Failure message of last upgrade attempt if any.

LastAttemptStatus

Specifies the status of Agent Upgrade.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AgentUpgrade>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AgentUpgrade>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AgentUpgrade>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AgentUpgrade>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AgentUpgrade>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to