Google Cloud Tpu V2 Client - Class AttachedDisk (1.4.7)

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
Name Description
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
Type Description
string

setSourceDisk

Specifies the full path to an existing disk.

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this