VirtualMachineInstallPatchesResultInner Class

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

Implements

public final class VirtualMachineInstallPatchesResultInner
implements JsonSerializable<VirtualMachineInstallPatchesResultInner>

The result summary of an installation operation.

Constructor Summary

Constructor Description
VirtualMachineInstallPatchesResultInner()

Creates an instance of VirtualMachineInstallPatchesResultInner class.

Method Summary

Modifier and Type Method and Description
ApiError error()

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

Integer excludedPatchCount()

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

Integer failedPatchCount()

Get the failedPatchCount property: The number of patches that could not be installed due to some issue.

static VirtualMachineInstallPatchesResultInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstallPatchesResultInner from the JsonReader.

String installationActivityId()

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

Integer installedPatchCount()

Get the installedPatchCount property: The number of patches successfully installed.

Boolean maintenanceWindowExceeded()

Get the maintenanceWindowExceeded property: Whether the operation ran out of time before it completed all its intended actions.

Integer notSelectedPatchCount()

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

List<PatchInstallationDetail> patches()

Get the patches property: The patches that were installed during the operation.

Integer pendingPatchCount()

Get the pendingPatchCount property: The number of patches that were identified as meeting the installation criteria, but were not able to be installed.

VMGuestPatchRebootStatus rebootStatus()

Get the rebootStatus property: The reboot state of the VM following completion of the operation.

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

VirtualMachineInstallPatchesResultInner

public VirtualMachineInstallPatchesResultInner()

Creates an instance of VirtualMachineInstallPatchesResultInner class.

Method Details

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.

excludedPatchCount

public Integer excludedPatchCount()

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

Returns:

the excludedPatchCount value.

failedPatchCount

public Integer failedPatchCount()

Get the failedPatchCount property: The number of patches that could not be installed due to some issue. See errors for details.

Returns:

the failedPatchCount value.

fromJson

public static VirtualMachineInstallPatchesResultInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineInstallPatchesResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineInstallPatchesResultInner 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 VirtualMachineInstallPatchesResultInner.

installationActivityId

public String installationActivityId()

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

Returns:

the installationActivityId value.

installedPatchCount

public Integer installedPatchCount()

Get the installedPatchCount property: The number of patches successfully installed.

Returns:

the installedPatchCount value.

maintenanceWindowExceeded

public Boolean maintenanceWindowExceeded()

Get the maintenanceWindowExceeded property: Whether the operation ran out of time before it completed all its intended actions.

Returns:

the maintenanceWindowExceeded value.

notSelectedPatchCount

public Integer notSelectedPatchCount()

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

Returns:

the notSelectedPatchCount value.

patches

public List patches()

Get the patches property: The patches that were installed during the operation.

Returns:

the patches value.

pendingPatchCount

public Integer pendingPatchCount()

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

Returns:

the pendingPatchCount value.

rebootStatus

public VMGuestPatchRebootStatus rebootStatus()

Get the rebootStatus property: The reboot state of the VM following completion of the operation.

Returns:

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

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to