Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute.implementation; import com.microsoft.azure.management.compute.PatchOperationStatus; import com.microsoft.azure.management.compute.VMGuestPatchRebootStatus; import java.util.List; import com.microsoft.azure.management.compute.PatchInstallationDetail; import org.joda.time.DateTime; import com.microsoft.azure.management.compute.ApiError; import com.fasterxml.jackson.annotation.JsonProperty;
The result summary of an installation operation.
/** * The result summary of an installation operation. */
public class VirtualMachineInstallPatchesResultInner {
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.". Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings'.
/** * 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.". Possible * values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', * 'CompletedWithWarnings'. */
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private PatchOperationStatus status;
The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.
/** * The activity ID of the operation that produced this result. It is used * to correlate across CRP and extension logs. */
@JsonProperty(value = "installationActivityId", access = JsonProperty.Access.WRITE_ONLY) private String installationActivityId;
The reboot state of the VM following completion of the operation. Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed'.
/** * The reboot state of the VM following completion of the operation. * Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', * 'Failed', 'Completed'. */
@JsonProperty(value = "rebootStatus", access = JsonProperty.Access.WRITE_ONLY) private VMGuestPatchRebootStatus rebootStatus;
Whether the operation ran out of time before it completed all its intended actions.
/** * Whether the operation ran out of time before it completed all its * intended actions. */
@JsonProperty(value = "maintenanceWindowExceeded", access = JsonProperty.Access.WRITE_ONLY) private Boolean maintenanceWindowExceeded;
The number of patches that were not installed due to the user blocking their installation.
/** * The number of patches that were not installed due to the user blocking * their installation. */
@JsonProperty(value = "excludedPatchCount", access = JsonProperty.Access.WRITE_ONLY) private Integer excludedPatchCount;
The number of patches that were detected as available for install, but did not meet the operation's criteria.
/** * The number of patches that were detected as available for install, but * did not meet the operation's criteria. */
@JsonProperty(value = "notSelectedPatchCount", access = JsonProperty.Access.WRITE_ONLY) private Integer notSelectedPatchCount;
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.
/** * 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. */
@JsonProperty(value = "pendingPatchCount", access = JsonProperty.Access.WRITE_ONLY) private Integer pendingPatchCount;
The number of patches successfully installed.
/** * The number of patches successfully installed. */
@JsonProperty(value = "installedPatchCount", access = JsonProperty.Access.WRITE_ONLY) private Integer installedPatchCount;
The number of patches that could not be installed due to some issue. See errors for details.
/** * The number of patches that could not be installed due to some issue. See * errors for details. */
@JsonProperty(value = "failedPatchCount", access = JsonProperty.Access.WRITE_ONLY) private Integer failedPatchCount;
The patches that were installed during the operation.
/** * The patches that were installed during the operation. */
@JsonProperty(value = "patches", access = JsonProperty.Access.WRITE_ONLY) private List<PatchInstallationDetail> patches;
The UTC timestamp when the operation began.
/** * The UTC timestamp when the operation began. */
@JsonProperty(value = "startDateTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime startDateTime;
The errors that were encountered during execution of the operation. The details array contains the list of them.
/** * The errors that were encountered during execution of the operation. The * details array contains the list of them. */
@JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) private ApiError error;
Get 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.". Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings'.
Returns:the status value
/** * Get 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.". Possible values include: 'Unknown', 'InProgress', 'Failed', 'Succeeded', 'CompletedWithWarnings'. * * @return the status value */
public PatchOperationStatus status() { return this.status; }
Get the activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.
Returns:the installationActivityId value
/** * Get the activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs. * * @return the installationActivityId value */
public String installationActivityId() { return this.installationActivityId; }
Get the reboot state of the VM following completion of the operation. Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed'.
Returns:the rebootStatus value
/** * Get the reboot state of the VM following completion of the operation. Possible values include: 'Unknown', 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed'. * * @return the rebootStatus value */
public VMGuestPatchRebootStatus rebootStatus() { return this.rebootStatus; }
Get whether the operation ran out of time before it completed all its intended actions.
Returns:the maintenanceWindowExceeded value
/** * Get whether the operation ran out of time before it completed all its intended actions. * * @return the maintenanceWindowExceeded value */
public Boolean maintenanceWindowExceeded() { return this.maintenanceWindowExceeded; }
Get the number of patches that were not installed due to the user blocking their installation.
Returns:the excludedPatchCount value
/** * Get the number of patches that were not installed due to the user blocking their installation. * * @return the excludedPatchCount value */
public Integer excludedPatchCount() { return this.excludedPatchCount; }
Get the number of patches that were detected as available for install, but did not meet the operation's criteria.
Returns:the notSelectedPatchCount value
/** * Get the number of patches that were detected as available for install, but did not meet the operation's criteria. * * @return the notSelectedPatchCount value */
public Integer notSelectedPatchCount() { return this.notSelectedPatchCount; }
Get 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
/** * Get 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. * * @return the pendingPatchCount value */
public Integer pendingPatchCount() { return this.pendingPatchCount; }
Get the number of patches successfully installed.
Returns:the installedPatchCount value
/** * Get the number of patches successfully installed. * * @return the installedPatchCount value */
public Integer installedPatchCount() { return this.installedPatchCount; }
Get the number of patches that could not be installed due to some issue. See errors for details.
Returns:the failedPatchCount value
/** * Get the number of patches that could not be installed due to some issue. See errors for details. * * @return the failedPatchCount value */
public Integer failedPatchCount() { return this.failedPatchCount; }
Get the patches that were installed during the operation.
Returns:the patches value
/** * Get the patches that were installed during the operation. * * @return the patches value */
public List<PatchInstallationDetail> patches() { return this.patches; }
Get the UTC timestamp when the operation began.
Returns:the startDateTime value
/** * Get the UTC timestamp when the operation began. * * @return the startDateTime value */
public DateTime startDateTime() { return this.startDateTime; }
Get the errors that were encountered during execution of the operation. The details array contains the list of them.
Returns:the error value
/** * Get the errors that were encountered during execution of the operation. The details array contains the list of them. * * @return the error value */
public ApiError error() { return this.error; } }