Google Cloud Tpu V2 Client - Class AttachedDisk (1.3.2)

Reference documentation and code samples for the Google Cloud Tpu V2 Client class AttachedDisk.

A node-attached disk resource.

Next ID: 8;

Generated from protobuf message google.cloud.tpu.v2.AttachedDisk

Namespace

Google \ Cloud \ Tpu \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_disk string

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

↳ mode int

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

getSourceDisk

Specifies the full path to an existing disk.

For example: "projects/my-project/zones/us-central1-c/disks/my-disk".

Returns
TypeDescription
string

setSourceDisk

Specifies the full path to an existing disk.

For example: "projects/my-project/zones/us-central1-c/disks/my-disk".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMode

The mode in which to attach this disk.

If not specified, the default is READ_WRITE mode. Only applicable to data_disks.

Returns
TypeDescription
int

setMode

The mode in which to attach this disk.

If not specified, the default is READ_WRITE mode. Only applicable to data_disks.

Parameter
NameDescription
var int
Returns
TypeDescription
$this