Compartilhar via


ArmHybridComputeModelFactory.AgentUpgrade Method

Definition

Initializes a new instance of AgentUpgrade.

public static Azure.ResourceManager.HybridCompute.Models.AgentUpgrade AgentUpgrade (string desiredVersion = default, Guid? correlationId = default, bool? isAutomaticUpgradeEnabled = default, string lastAttemptDesiredVersion = default, DateTimeOffset? lastAttemptedOn = default, Azure.ResourceManager.HybridCompute.Models.LastAttemptStatusEnum? lastAttemptStatus = default, string lastAttemptMessage = default);
static member AgentUpgrade : string * Nullable<Guid> * Nullable<bool> * string * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.HybridCompute.Models.LastAttemptStatusEnum> * string -> Azure.ResourceManager.HybridCompute.Models.AgentUpgrade
Public Shared Function AgentUpgrade (Optional desiredVersion As String = Nothing, Optional correlationId As Nullable(Of Guid) = Nothing, Optional isAutomaticUpgradeEnabled As Nullable(Of Boolean) = Nothing, Optional lastAttemptDesiredVersion As String = Nothing, Optional lastAttemptedOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastAttemptStatus As Nullable(Of LastAttemptStatusEnum) = Nothing, Optional lastAttemptMessage As String = Nothing) As AgentUpgrade

Parameters

desiredVersion
String

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

correlationId
Nullable<Guid>

The correlation ID associated with an agent upgrade operation.

isAutomaticUpgradeEnabled
Nullable<Boolean>

Specifies if the machine's agent should be upgraded.

lastAttemptDesiredVersion
String

Specifies the version of the last attempt.

lastAttemptedOn
Nullable<DateTimeOffset>

Timestamp of last upgrade attempt.

lastAttemptStatus
Nullable<LastAttemptStatusEnum>

Specifies the status of Agent Upgrade.

lastAttemptMessage
String

Failure message of last upgrade attempt if any.

Returns

A new AgentUpgrade instance for mocking.

Applies to