Partilhar via


ArmComputeModelFactory.VirtualMachineAssessPatchesResult Method

Definition

Initializes a new instance of VirtualMachineAssessPatchesResult.

public static Azure.ResourceManager.Compute.Models.VirtualMachineAssessPatchesResult VirtualMachineAssessPatchesResult (Azure.ResourceManager.Compute.Models.PatchOperationStatus? status = default, string assessmentActivityId = default, bool? rebootPending = default, int? criticalAndSecurityPatchCount = default, int? otherPatchCount = default, DateTimeOffset? startOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.VirtualMachineSoftwarePatchProperties> availablePatches = default, Azure.ResourceManager.Compute.Models.ComputeApiError error = default);
static member VirtualMachineAssessPatchesResult : Nullable<Azure.ResourceManager.Compute.Models.PatchOperationStatus> * string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.Compute.Models.VirtualMachineSoftwarePatchProperties> * Azure.ResourceManager.Compute.Models.ComputeApiError -> Azure.ResourceManager.Compute.Models.VirtualMachineAssessPatchesResult
Public Shared Function VirtualMachineAssessPatchesResult (Optional status As Nullable(Of PatchOperationStatus) = Nothing, Optional assessmentActivityId As String = Nothing, Optional rebootPending As Nullable(Of Boolean) = Nothing, Optional criticalAndSecurityPatchCount As Nullable(Of Integer) = Nothing, Optional otherPatchCount As Nullable(Of Integer) = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional availablePatches As IEnumerable(Of VirtualMachineSoftwarePatchProperties) = Nothing, Optional error As ComputeApiError = Nothing) As VirtualMachineAssessPatchesResult

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 "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings.".

assessmentActivityId
String

The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.

rebootPending
Nullable<Boolean>

The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred.

criticalAndSecurityPatchCount
Nullable<Int32>

The number of critical or security patches that have been detected as available and not yet installed.

otherPatchCount
Nullable<Int32>

The number of all available patches excluding critical and security.

startOn
Nullable<DateTimeOffset>

The UTC timestamp when the operation began.

availablePatches
IEnumerable<VirtualMachineSoftwarePatchProperties>

The list of patches that have been detected as available for installation.

error
ComputeApiError

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

Returns

A new VirtualMachineAssessPatchesResult instance for mocking.

Applies to