Interface AttachedDiskOrBuilder (2.14.0)

public interface AttachedDiskOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMode()

public abstract AttachedDisk.DiskMode getMode()

The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.

.google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4;

Returns
TypeDescription
AttachedDisk.DiskMode

The mode.

getModeValue()

public abstract int getModeValue()

The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.

.google.cloud.tpu.v2.AttachedDisk.DiskMode mode = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for mode.

getSourceDisk()

public abstract String getSourceDisk()

Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".

string source_disk = 3;

Returns
TypeDescription
String

The sourceDisk.

getSourceDiskBytes()

public abstract ByteString getSourceDiskBytes()

Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".

string source_disk = 3;

Returns
TypeDescription
ByteString

The bytes for sourceDisk.