Compartilhar via


ArmHybridComputeModelFactory.MachineInstallPatchesResult Method

Definition

Initializes a new instance of MachineInstallPatchesResult.

public static Azure.ResourceManager.HybridCompute.Models.MachineInstallPatchesResult MachineInstallPatchesResult (Azure.ResourceManager.HybridCompute.Models.MachineOperationStatus? status = default, string installationActivityId = default, Azure.ResourceManager.HybridCompute.Models.VmGuestPatchRebootStatus? rebootStatus = default, bool? maintenanceWindowExceeded = default, int? excludedPatchCount = default, int? notSelectedPatchCount = default, int? pendingPatchCount = default, int? installedPatchCount = default, int? failedPatchCount = default, DateTimeOffset? startOn = default, DateTimeOffset? lastModifiedOn = default, Azure.ResourceManager.HybridCompute.Models.PatchOperationStartedBy? startedBy = default, Azure.ResourceManager.HybridCompute.Models.PatchServiceUsed? patchServiceUsed = default, Azure.ResourceManager.HybridCompute.Models.HybridComputeOSType? osType = default, Azure.ResponseError errorDetails = default);
static member MachineInstallPatchesResult : Nullable<Azure.ResourceManager.HybridCompute.Models.MachineOperationStatus> * string * Nullable<Azure.ResourceManager.HybridCompute.Models.VmGuestPatchRebootStatus> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.HybridCompute.Models.PatchOperationStartedBy> * Nullable<Azure.ResourceManager.HybridCompute.Models.PatchServiceUsed> * Nullable<Azure.ResourceManager.HybridCompute.Models.HybridComputeOSType> * Azure.ResponseError -> Azure.ResourceManager.HybridCompute.Models.MachineInstallPatchesResult
Public Shared Function MachineInstallPatchesResult (Optional status As Nullable(Of MachineOperationStatus) = Nothing, Optional installationActivityId As String = Nothing, Optional rebootStatus As Nullable(Of VmGuestPatchRebootStatus) = Nothing, Optional maintenanceWindowExceeded As Nullable(Of Boolean) = Nothing, Optional excludedPatchCount As Nullable(Of Integer) = Nothing, Optional notSelectedPatchCount As Nullable(Of Integer) = Nothing, Optional pendingPatchCount As Nullable(Of Integer) = Nothing, Optional installedPatchCount As Nullable(Of Integer) = Nothing, Optional failedPatchCount As Nullable(Of Integer) = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional startedBy As Nullable(Of PatchOperationStartedBy) = Nothing, Optional patchServiceUsed As Nullable(Of PatchServiceUsed) = Nothing, Optional osType As Nullable(Of HybridComputeOSType) = Nothing, Optional errorDetails As ResponseError = Nothing) As MachineInstallPatchesResult

Parameters

status
Nullable<MachineOperationStatus>

The overall success or failure status of the operation. It remains "InProgress" until the operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or "CompletedWithWarnings.".

installationActivityId
String

The activity ID of the operation that produced this result.

rebootStatus
Nullable<VmGuestPatchRebootStatus>

The reboot state of the VM following completion of the operation.

maintenanceWindowExceeded
Nullable<Boolean>

Whether the operation ran out of time before it completed all its intended actions.

excludedPatchCount
Nullable<Int32>

The number of patches that were not installed due to the user blocking their installation.

notSelectedPatchCount
Nullable<Int32>

The number of patches that were detected as available for install, but did not meet the operation's criteria.

pendingPatchCount
Nullable<Int32>

The number of patches that were identified as meeting the installation criteria, but were not able to be installed. Typically this happens when maintenanceWindowExceeded == true.

installedPatchCount
Nullable<Int32>

The number of patches successfully installed.

failedPatchCount
Nullable<Int32>

The number of patches that could not be installed due to some issue. See errors for details.

startOn
Nullable<DateTimeOffset>

The UTC timestamp when the operation began.

lastModifiedOn
Nullable<DateTimeOffset>

The UTC timestamp when the operation finished.

startedBy
Nullable<PatchOperationStartedBy>

Indicates if operation was triggered by user or by platform.

patchServiceUsed
Nullable<PatchServiceUsed>

Specifies the patch service used for the operation.

osType
Nullable<HybridComputeOSType>

The operating system type of the machine.

errorDetails
ResponseError

The errors that were encountered during execution of the operation. The details array contains the list of them.

Returns

A new MachineInstallPatchesResult instance for mocking.

Applies to