Share via


UpgradeMode Class

public final class UpgradeMode
extends ExpandableStringEnum<UpgradeMode>

UpgradeMode enums.

Field Summary

Modifier and Type Field and Description
static final UpgradeMode AUTOMATIC

TAll virtual machines in the scale set are automatically updated at the same time.

static final UpgradeMode MANUAL

You control the application of updates to virtual machines in the scale set.

static final UpgradeMode ROLLING

The existing instances in a scale set are brought down in batches to be upgraded.

Constructor Summary

Constructor Description
UpgradeMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UpgradeMode value.

Method Summary

Modifier and Type Method and Description
static UpgradeMode fromString(String name)

Creates or finds a UpgradeMode from its string representation.

static Collection<UpgradeMode> values()

Gets known UpgradeMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AUTOMATIC

public static final UpgradeMode AUTOMATIC

TAll virtual machines in the scale set are automatically updated at the same time.

MANUAL

public static final UpgradeMode MANUAL

You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

ROLLING

public static final UpgradeMode ROLLING

The existing instances in a scale set are brought down in batches to be upgraded. Once the upgraded batch is complete, the instances will begin taking traffic again and the next batch will begin. This continues until all instances brought up-to-date.

Constructor Details

UpgradeMode

@Deprecated
public UpgradeMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UpgradeMode value.

Method Details

fromString

public static UpgradeMode fromString(String name)

Creates or finds a UpgradeMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding UpgradeMode.

values

public static Collection<UpgradeMode> values()

Gets known UpgradeMode values.

Returns:

known UpgradeMode values.

Applies to