DiskDetachOptionTypes Class

public final class DiskDetachOptionTypes
extends ExpandableStringEnum<DiskDetachOptionTypes>

Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.

Field Summary

Modifier and Type Field and Description
static final DiskDetachOptionTypes FORCE_DETACH

Static value ForceDetach for DiskDetachOptionTypes.

Constructor Summary

Constructor Description
DiskDetachOptionTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskDetachOptionTypes value.

Method Summary

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

Creates or finds a DiskDetachOptionTypes from its string representation.

static Collection<DiskDetachOptionTypes> values()

Gets known DiskDetachOptionTypes values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FORCE_DETACH

public static final DiskDetachOptionTypes FORCE_DETACH

Static value ForceDetach for DiskDetachOptionTypes.

Constructor Details

DiskDetachOptionTypes

@Deprecated
public DiskDetachOptionTypes()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DiskDetachOptionTypes value.

Method Details

fromString

public static DiskDetachOptionTypes fromString(String name)

Creates or finds a DiskDetachOptionTypes from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DiskDetachOptionTypes.

values

public static Collection values()

Gets known DiskDetachOptionTypes values.

Returns:

known DiskDetachOptionTypes values.

Applies to