Google Cloud Batch V1 Client - Class AttachedDisk (0.9.0)

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

Namespace

Google \ Cloud \ Batch \ V1 \ AllocationPolicy

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.

Returns
TypeDescription
string

hasExistingDisk

setExistingDisk

Name of an existing PD.

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.

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttached

Returns
TypeDescription
string