Partager via


VirtualMachineAssessPatchesResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.VirtualMachineAssessPatchesResultInner

Implements

public final class VirtualMachineAssessPatchesResultInner
implements JsonSerializable<VirtualMachineAssessPatchesResultInner>

Describes the properties of an AssessPatches result.

Constructor Summary

Constructor Description
VirtualMachineAssessPatchesResultInner()

Creates an instance of VirtualMachineAssessPatchesResultInner class.

Method Summary

Modifier and Type Method and Description
String assessmentActivityId()

Get the assessmentActivityId property: The activity ID of the operation that produced this result.

List<VirtualMachineSoftwarePatchProperties> availablePatches()

Get the availablePatches property: The list of patches that have been detected as available for installation.

Integer criticalAndSecurityPatchCount()

Get the criticalAndSecurityPatchCount property: The number of critical or security patches that have been detected as available and not yet installed.

ApiError error()

Get the error property: The errors that were encountered during execution of the operation.

static VirtualMachineAssessPatchesResultInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineAssessPatchesResultInner from the JsonReader.

Integer otherPatchCount()

Get the otherPatchCount property: The number of all available patches excluding critical and security.

Boolean rebootPending()

Get the rebootPending property: The overall reboot status of the VM.

OffsetDateTime startDateTime()

Get the startDateTime property: The UTC timestamp when the operation began.

PatchOperationStatus status()

Get the status property: The overall success or failure status of the operation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineAssessPatchesResultInner

public VirtualMachineAssessPatchesResultInner()

Creates an instance of VirtualMachineAssessPatchesResultInner class.

Method Details

assessmentActivityId

public String assessmentActivityId()

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

Returns:

the assessmentActivityId value.

availablePatches

public List availablePatches()

Get the availablePatches property: The list of patches that have been detected as available for installation.

Returns:

the availablePatches value.

criticalAndSecurityPatchCount

public Integer criticalAndSecurityPatchCount()

Get the criticalAndSecurityPatchCount property: The number of critical or security patches that have been detected as available and not yet installed.

Returns:

the criticalAndSecurityPatchCount value.

error

public ApiError error()

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

Returns:

the error value.

fromJson

public static VirtualMachineAssessPatchesResultInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineAssessPatchesResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineAssessPatchesResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VirtualMachineAssessPatchesResultInner.

otherPatchCount

public Integer otherPatchCount()

Get the otherPatchCount property: The number of all available patches excluding critical and security.

Returns:

the otherPatchCount value.

rebootPending

public Boolean rebootPending()

Get the rebootPending property: 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.

Returns:

the rebootPending value.

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: The UTC timestamp when the operation began.

Returns:

the startDateTime value.

status

public PatchOperationStatus status()

Get the status property: 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.".

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to