diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/AutoOSUpgradePolicy.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/AutoOSUpgradePolicy.java new file mode 100644 index 00000000000..743fc374447 --- /dev/null +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/AutoOSUpgradePolicy.java @@ -0,0 +1,44 @@ +/** + * 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; + +/** + * The configuration parameters used for performing automatic OS upgrade. + */ +public class AutoOSUpgradePolicy { + /** + * Whether OS image rollback feature should be disabled. Default value is + * false. + */ + @JsonProperty(value = "disableAutoRollback") + private Boolean disableAutoRollback; + + /** + * Get the disableAutoRollback value. + * + * @return the disableAutoRollback value + */ + public Boolean disableAutoRollback() { + return this.disableAutoRollback; + } + + /** + * Set the disableAutoRollback value. + * + * @param disableAutoRollback the disableAutoRollback value to set + * @return the AutoOSUpgradePolicy object itself. + */ + public AutoOSUpgradePolicy withDisableAutoRollback(Boolean disableAutoRollback) { + this.disableAutoRollback = disableAutoRollback; + return this; + } + +} diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/DataDisk.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/DataDisk.java index f937855d07f..47f5ccd4dec 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/DataDisk.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/DataDisk.java @@ -62,14 +62,14 @@ public class DataDisk { /** * Specifies how the virtual machine should be created.<br><br> - * Possible values are:<br><br> **Attach** \u2013 This value is - * used when you are using a specialized disk to create the virtual - * machine.<br><br> **FromImage** \u2013 This value is used - * when you are using an image to create the virtual machine. If you are - * using a platform image, you also use the imageReference element - * described above. If you are using a marketplace image, you also use the - * plan element previously described. Possible values include: 'FromImage', - * 'Empty', 'Attach'. + * Possible values are:<br><br> **Attach** This value is used + * when you are using a specialized disk to create the virtual + * machine.<br><br> **FromImage** This value is used when you + * are using an image to create the virtual machine. If you are using a + * platform image, you also use the imageReference element described above. + * If you are using a marketplace image, you also use the plan element + * previously described. Possible values include: 'FromImage', 'Empty', + * 'Attach'. */ @JsonProperty(value = "createOption", required = true) private DiskCreateOptionTypes createOption; diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/OSDisk.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/OSDisk.java index 0f6da66a142..13fec1deee9 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/OSDisk.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/OSDisk.java @@ -74,14 +74,14 @@ public class OSDisk { /** * Specifies how the virtual machine should be created.<br><br> - * Possible values are:<br><br> **Attach** \u2013 This value is - * used when you are using a specialized disk to create the virtual - * machine.<br><br> **FromImage** \u2013 This value is used - * when you are using an image to create the virtual machine. If you are - * using a platform image, you also use the imageReference element - * described above. If you are using a marketplace image, you also use the - * plan element previously described. Possible values include: 'FromImage', - * 'Empty', 'Attach'. + * Possible values are:<br><br> **Attach** This value is used + * when you are using a specialized disk to create the virtual + * machine.<br><br> **FromImage** This value is used when you + * are using an image to create the virtual machine. If you are using a + * platform image, you also use the imageReference element described above. + * If you are using a marketplace image, you also use the plan element + * previously described. Possible values include: 'FromImage', 'Empty', + * 'Attach'. */ @JsonProperty(value = "createOption", required = true) private DiskCreateOptionTypes createOption; diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradePolicy.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradePolicy.java index a514197931e..38179448da0 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradePolicy.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/UpgradePolicy.java @@ -40,6 +40,12 @@ public class UpgradePolicy { @JsonProperty(value = "automaticOSUpgrade") private Boolean automaticOSUpgrade; + /** + * Configuration parameters used for performing automatic OS Upgrade. + */ + @JsonProperty(value = "autoOSUpgradePolicy") + private AutoOSUpgradePolicy autoOSUpgradePolicy; + /** * Get the mode value. * @@ -100,4 +106,24 @@ public UpgradePolicy withAutomaticOSUpgrade(Boolean automaticOSUpgrade) { return this; } + /** + * Get the autoOSUpgradePolicy value. + * + * @return the autoOSUpgradePolicy value + */ + public AutoOSUpgradePolicy autoOSUpgradePolicy() { + return this.autoOSUpgradePolicy; + } + + /** + * Set the autoOSUpgradePolicy value. + * + * @param autoOSUpgradePolicy the autoOSUpgradePolicy value to set + * @return the UpgradePolicy object itself. + */ + public UpgradePolicy withAutoOSUpgradePolicy(AutoOSUpgradePolicy autoOSUpgradePolicy) { + this.autoOSUpgradePolicy = autoOSUpgradePolicy; + return this; + } + } diff --git a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetOSDisk.java b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetOSDisk.java index 34b6840c803..595f6da7931 100644 --- a/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetOSDisk.java +++ b/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/VirtualMachineScaleSetOSDisk.java @@ -41,8 +41,8 @@ public class VirtualMachineScaleSetOSDisk { /** * Specifies how the virtual machines in the scale set should be * created.<br><br> The only allowed value is: **FromImage** - * \u2013 This value is used when you are using an image to create the - * virtual machine. If you are using a platform image, you also use the + * This value is used when you are using an image to create the virtual + * machine. If you are using a platform image, you also use the * imageReference element described above. If you are using a marketplace * image, you also use the plan element previously described. Possible * values include: 'FromImage', 'Empty', 'Attach'.