Class AvailablePatchSummary
java.lang.Object
com.azure.resourcemanager.compute.models.AvailablePatchSummary
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailablePatchSummary>
public final class AvailablePatchSummary
extends Object
implements com.azure.json.JsonSerializable<AvailablePatchSummary>
Describes the properties of an virtual machine instance view for available patch summary.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the assessmentActivityId property: The activity ID of the operation that produced this result.Get the criticalAndSecurityPatchCount property: The number of critical or security patches that have been detected as available and not yet installed.error()Get the error property: The errors that were encountered during execution of the operation.static AvailablePatchSummaryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AvailablePatchSummary from the JsonReader.Get the lastModifiedTime property: The UTC timestamp when the operation began.Get the otherPatchCount property: The number of all available patches excluding critical and security.Get the rebootPending property: The overall reboot status of the VM.Get the startTime property: The UTC timestamp when the operation began.status()Get the status property: The overall success or failure status of the operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AvailablePatchSummary
public AvailablePatchSummary()Creates an instance of AvailablePatchSummary class.
-
-
Method Details
-
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.
-
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.
-
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.
-
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.
-
otherPatchCount
Get the otherPatchCount property: The number of all available patches excluding critical and security.- Returns:
- the otherPatchCount value.
-
startTime
Get the startTime property: The UTC timestamp when the operation began.- Returns:
- the startTime value.
-
lastModifiedTime
Get the lastModifiedTime property: The UTC timestamp when the operation began.- Returns:
- the lastModifiedTime value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AvailablePatchSummary>- Throws:
IOException
-
fromJson
public static AvailablePatchSummary fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AvailablePatchSummary from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AvailablePatchSummary 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 AvailablePatchSummary.
-