WindowsVMGuestPatchMode Class

public final class WindowsVMGuestPatchMode
extends ExpandableStringEnum<WindowsVMGuestPatchMode>

Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.

Possible values are:

**Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false

**AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true.

**AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true.

Field Summary

Modifier and Type Field and Description
static final WindowsVMGuestPatchMode AUTOMATIC_BY_OS

Static value AutomaticByOS for WindowsVMGuestPatchMode.

static final WindowsVMGuestPatchMode AUTOMATIC_BY_PLATFORM

Static value AutomaticByPlatform for WindowsVMGuestPatchMode.

static final WindowsVMGuestPatchMode MANUAL

Static value Manual for WindowsVMGuestPatchMode.

Constructor Summary

Constructor Description
WindowsVMGuestPatchMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WindowsVMGuestPatchMode value.

Method Summary

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

Creates or finds a WindowsVMGuestPatchMode from its string representation.

static Collection<WindowsVMGuestPatchMode> values()

Gets known WindowsVMGuestPatchMode values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

AUTOMATIC_BY_OS

public static final WindowsVMGuestPatchMode AUTOMATIC_BY_OS

Static value AutomaticByOS for WindowsVMGuestPatchMode.

AUTOMATIC_BY_PLATFORM

public static final WindowsVMGuestPatchMode AUTOMATIC_BY_PLATFORM

Static value AutomaticByPlatform for WindowsVMGuestPatchMode.

MANUAL

public static final WindowsVMGuestPatchMode MANUAL

Static value Manual for WindowsVMGuestPatchMode.

Constructor Details

WindowsVMGuestPatchMode

@Deprecated
public WindowsVMGuestPatchMode()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of WindowsVMGuestPatchMode value.

Method Details

fromString

public static WindowsVMGuestPatchMode fromString(String name)

Creates or finds a WindowsVMGuestPatchMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding WindowsVMGuestPatchMode.

values

public static Collection values()

Gets known WindowsVMGuestPatchMode values.

Returns:

known WindowsVMGuestPatchMode values.

Applies to