Enum AttachedDisk.Mode (1.50.0)

public enum AttachedDisk.Mode extends Enum<AttachedDisk.Mode> implements ProtocolMessageEnum

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If not specified, the default is to attach the disk in READ_WRITE mode.

Protobuf enum google.cloud.compute.v1.AttachedDisk.Mode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
READ_ONLY

Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time.

READ_ONLY = 91950261;

READ_ONLY_VALUE

Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time.

READ_ONLY = 91950261;

READ_WRITE

[Default] Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode.

READ_WRITE = 173607894;

READ_WRITE_VALUE

[Default] Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode.

READ_WRITE = 173607894;

UNDEFINED_MODE

A value indicating that the enum field is not set.

UNDEFINED_MODE = 0;

UNDEFINED_MODE_VALUE

A value indicating that the enum field is not set.

UNDEFINED_MODE = 0;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()