ArmHybridComputeModelFactory.AgentUpgrade Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET