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; import com.fasterxml.jackson.annotation.JsonProperty;
The configuration parameters used while performing a rolling upgrade.
/** * The configuration parameters used while performing a rolling upgrade. */
public class RollingUpgradePolicy {
The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
/** * The maximum percent of total virtual machine instances that will be * upgraded simultaneously by the rolling upgrade in one batch. As this is * a maximum, unhealthy instances in previous or future batches can cause * the percentage of instances in a batch to decrease to ensure higher * reliability. The default value for this parameter is 20%. */
@JsonProperty(value = "maxBatchInstancePercent") private Integer maxBatchInstancePercent;
The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.
/** * The maximum percentage of the total virtual machine instances in the * scale set that can be simultaneously unhealthy, either as a result of * being upgraded, or by being found in an unhealthy state by the virtual * machine health checks before the rolling upgrade aborts. This constraint * will be checked prior to starting any batch. The default value for this * parameter is 20%. */
@JsonProperty(value = "maxUnhealthyInstancePercent") private Integer maxUnhealthyInstancePercent;
The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.
/** * The maximum percentage of upgraded virtual machine instances that can be * found to be in an unhealthy state. This check will happen after each * batch is upgraded. If this percentage is ever exceeded, the rolling * update aborts. The default value for this parameter is 20%. */
@JsonProperty(value = "maxUnhealthyUpgradedInstancePercent") private Integer maxUnhealthyUpgradedInstancePercent;
The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).
/** * The wait time between completing the update for all virtual machines in * one batch and starting the next batch. The time duration should be * specified in ISO 8601 format. The default value is 0 seconds (PT0S). */
@JsonProperty(value = "pauseTimeBetweenBatches") private String pauseTimeBetweenBatches;
Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size.
/** * Allow VMSS to ignore AZ boundaries when constructing upgrade batches. * Take into consideration the Update Domain and maxBatchInstancePercent to * determine the batch size. */
@JsonProperty(value = "enableCrossZoneUpgrade") private Boolean enableCrossZoneUpgrade;
Upgrade all unhealthy instances in a scale set before any healthy instances.
/** * Upgrade all unhealthy instances in a scale set before any healthy * instances. */
@JsonProperty(value = "prioritizeUnhealthyInstances") private Boolean prioritizeUnhealthyInstances;
Get the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
Returns:the maxBatchInstancePercent value
/** * Get the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. * * @return the maxBatchInstancePercent value */
public Integer maxBatchInstancePercent() { return this.maxBatchInstancePercent; }
Set the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
Params:
  • maxBatchInstancePercent – the maxBatchInstancePercent value to set
Returns:the RollingUpgradePolicy object itself.
/** * Set the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%. * * @param maxBatchInstancePercent the maxBatchInstancePercent value to set * @return the RollingUpgradePolicy object itself. */
public RollingUpgradePolicy withMaxBatchInstancePercent(Integer maxBatchInstancePercent) { this.maxBatchInstancePercent = maxBatchInstancePercent; return this; }
Get the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.
Returns:the maxUnhealthyInstancePercent value
/** * Get the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. * * @return the maxUnhealthyInstancePercent value */
public Integer maxUnhealthyInstancePercent() { return this.maxUnhealthyInstancePercent; }
Set the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.
Params:
  • maxUnhealthyInstancePercent – the maxUnhealthyInstancePercent value to set
Returns:the RollingUpgradePolicy object itself.
/** * Set the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%. * * @param maxUnhealthyInstancePercent the maxUnhealthyInstancePercent value to set * @return the RollingUpgradePolicy object itself. */
public RollingUpgradePolicy withMaxUnhealthyInstancePercent(Integer maxUnhealthyInstancePercent) { this.maxUnhealthyInstancePercent = maxUnhealthyInstancePercent; return this; }
Get the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.
Returns:the maxUnhealthyUpgradedInstancePercent value
/** * Get the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. * * @return the maxUnhealthyUpgradedInstancePercent value */
public Integer maxUnhealthyUpgradedInstancePercent() { return this.maxUnhealthyUpgradedInstancePercent; }
Set the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.
Params:
  • maxUnhealthyUpgradedInstancePercent – the maxUnhealthyUpgradedInstancePercent value to set
Returns:the RollingUpgradePolicy object itself.
/** * Set the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%. * * @param maxUnhealthyUpgradedInstancePercent the maxUnhealthyUpgradedInstancePercent value to set * @return the RollingUpgradePolicy object itself. */
public RollingUpgradePolicy withMaxUnhealthyUpgradedInstancePercent(Integer maxUnhealthyUpgradedInstancePercent) { this.maxUnhealthyUpgradedInstancePercent = maxUnhealthyUpgradedInstancePercent; return this; }
Get the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).
Returns:the pauseTimeBetweenBatches value
/** * Get the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). * * @return the pauseTimeBetweenBatches value */
public String pauseTimeBetweenBatches() { return this.pauseTimeBetweenBatches; }
Set the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).
Params:
  • pauseTimeBetweenBatches – the pauseTimeBetweenBatches value to set
Returns:the RollingUpgradePolicy object itself.
/** * Set the wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S). * * @param pauseTimeBetweenBatches the pauseTimeBetweenBatches value to set * @return the RollingUpgradePolicy object itself. */
public RollingUpgradePolicy withPauseTimeBetweenBatches(String pauseTimeBetweenBatches) { this.pauseTimeBetweenBatches = pauseTimeBetweenBatches; return this; }
Get allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size.
Returns:the enableCrossZoneUpgrade value
/** * Get allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. * * @return the enableCrossZoneUpgrade value */
public Boolean enableCrossZoneUpgrade() { return this.enableCrossZoneUpgrade; }
Set allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size.
Params:
  • enableCrossZoneUpgrade – the enableCrossZoneUpgrade value to set
Returns:the RollingUpgradePolicy object itself.
/** * Set allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. * * @param enableCrossZoneUpgrade the enableCrossZoneUpgrade value to set * @return the RollingUpgradePolicy object itself. */
public RollingUpgradePolicy withEnableCrossZoneUpgrade(Boolean enableCrossZoneUpgrade) { this.enableCrossZoneUpgrade = enableCrossZoneUpgrade; return this; }
Get upgrade all unhealthy instances in a scale set before any healthy instances.
Returns:the prioritizeUnhealthyInstances value
/** * Get upgrade all unhealthy instances in a scale set before any healthy instances. * * @return the prioritizeUnhealthyInstances value */
public Boolean prioritizeUnhealthyInstances() { return this.prioritizeUnhealthyInstances; }
Set upgrade all unhealthy instances in a scale set before any healthy instances.
Params:
  • prioritizeUnhealthyInstances – the prioritizeUnhealthyInstances value to set
Returns:the RollingUpgradePolicy object itself.
/** * Set upgrade all unhealthy instances in a scale set before any healthy instances. * * @param prioritizeUnhealthyInstances the prioritizeUnhealthyInstances value to set * @return the RollingUpgradePolicy object itself. */
public RollingUpgradePolicy withPrioritizeUnhealthyInstances(Boolean prioritizeUnhealthyInstances) { this.prioritizeUnhealthyInstances = prioritizeUnhealthyInstances; return this; } }