Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down