Share via


ArmComputeModelFactory.VirtualMachineInstallPatchesResult Method

Definition

Initializes a new instance of VirtualMachineInstallPatchesResult.

public static Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesResult VirtualMachineInstallPatchesResult (Azure.ResourceManager.Compute.Models.PatchOperationStatus? status = default, string installationActivityId = default, Azure.ResourceManager.Compute.Models.VmGuestPatchRebootStatus? rebootStatus = default, bool? maintenanceWindowExceeded = default, int? excludedPatchCount = default, int? notSelectedPatchCount = default, int? pendingPatchCount = default, int? installedPatchCount = default, int? failedPatchCount = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.PatchInstallationDetail> patches = default, DateTimeOffset? startOn = default, Azure.ResourceManager.Compute.Models.ComputeApiError error = default);
static member VirtualMachineInstallPatchesResult : Nullable<Azure.ResourceManager.Compute.Models.PatchOperationStatus> * string * Nullable<Azure.ResourceManager.Compute.Models.VmGuestPatchRebootStatus> * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * seq<Azure.ResourceManager.Compute.Models.PatchInstallationDetail> * Nullable<DateTimeOffset> * Azure.ResourceManager.Compute.Models.ComputeApiError -> Azure.ResourceManager.Compute.Models.VirtualMachineInstallPatchesResult
Public Shared Function VirtualMachineInstallPatchesResult (Optional status As Nullable(Of PatchOperationStatus) = 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 patches As IEnumerable(Of PatchInstallationDetail) = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional error As ComputeApiError = Nothing) As VirtualMachineInstallPatchesResult

Parameters

status
Nullable<PatchOperationStatus>

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. It is used to correlate across CRP and extension logs.

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.

patches
IEnumerable<PatchInstallationDetail>

The patches that were installed during the operation.

startOn
Nullable<DateTimeOffset>

The UTC timestamp when the operation began.

error
ComputeApiError

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

Returns

A new VirtualMachineInstallPatchesResult instance for mocking.

Applies to