diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/RollbackStatusInfo.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/RollbackStatusInfo.java new file mode 100644 index 00000000000..5f2a1bbcba9 --- /dev/null +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/RollbackStatusInfo.java @@ -0,0 +1,63 @@ +/** + * 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; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Information about rollback on failed VM instances after a OS Upgrade + * operation. + */ +public class RollbackStatusInfo { + /** + * The number of instances which have been successfully rolled back. + */ + @JsonProperty(value = "successfullyRolledbackInstanceCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer successfullyRolledbackInstanceCount; + + /** + * The number of instances which failed to rollback. + */ + @JsonProperty(value = "failedRolledbackInstanceCount", access = JsonProperty.Access.WRITE_ONLY) + private Integer failedRolledbackInstanceCount; + + /** + * Error Details if OS rollback failed. + */ + @JsonProperty(value = "rollbackError", access = JsonProperty.Access.WRITE_ONLY) + private ApiError rollbackError; + + /** + * Get the successfullyRolledbackInstanceCount value. + * + * @return the successfullyRolledbackInstanceCount value + */ + public Integer successfullyRolledbackInstanceCount() { + return this.successfullyRolledbackInstanceCount; + } + + /** + * Get the failedRolledbackInstanceCount value. + * + * @return the failedRolledbackInstanceCount value + */ + public Integer failedRolledbackInstanceCount() { + return this.failedRolledbackInstanceCount; + } + + /** + * Get the rollbackError value. + * + * @return the rollbackError value + */ + public ApiError rollbackError() { + return this.rollbackError; + } + +} diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradeOperationHistoricalStatusInfoProperties.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradeOperationHistoricalStatusInfoProperties.java index 8caf3e303f6..3803354d9c2 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradeOperationHistoricalStatusInfoProperties.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradeOperationHistoricalStatusInfoProperties.java @@ -46,6 +46,12 @@ public class UpgradeOperationHistoricalStatusInfoProperties { @JsonProperty(value = "targetImageReference", access = JsonProperty.Access.WRITE_ONLY) private ImageReferenceInner targetImageReference; + /** + * Information about OS rollback if performed. + */ + @JsonProperty(value = "rollbackInfo", access = JsonProperty.Access.WRITE_ONLY) + private RollbackStatusInfo rollbackInfo; + /** * Get the runningStatus value. * @@ -91,4 +97,13 @@ public ImageReferenceInner targetImageReference() { return this.targetImageReference; } + /** + * Get the rollbackInfo value. + * + * @return the rollbackInfo value + */ + public RollbackStatusInfo rollbackInfo() { + return this.rollbackInfo; + } + }