Google Cloud Batch V1 Client - Class AttachedDisk (0.2.2)

Reference documentation and code samples for the Google Cloud Batch V1 Client class AttachedDisk.

A new or an existing persistent disk (PD) or a local ssd attached to a VM instance.

Generated from protobuf message google.cloud.batch.v1.AllocationPolicy.AttachedDisk

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ new_disk Google\Cloud\Batch\V1\AllocationPolicy\Disk
↳ existing_disk string

Name of an existing PD.

↳ device_name string

Device name that the guest operating system will see. It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes.

getNewDisk

Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;

Returns
TypeDescription
Google\Cloud\Batch\V1\AllocationPolicy\Disk|null

hasNewDisk

setNewDisk

Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;

Parameter
NameDescription
var Google\Cloud\Batch\V1\AllocationPolicy\Disk
Returns
TypeDescription
$this

getExistingDisk

Name of an existing PD.

Generated from protobuf field string existing_disk = 2;

Returns
TypeDescription
string

hasExistingDisk

setExistingDisk

Name of an existing PD.

Generated from protobuf field string existing_disk = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDeviceName

Device name that the guest operating system will see.

It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes.

Generated from protobuf field string device_name = 3;

Returns
TypeDescription
string

setDeviceName

Device name that the guest operating system will see.

It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes.

Generated from protobuf field string device_name = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttached

Returns
TypeDescription
string