Reference documentation and code samples for the Google Cloud Batch V1 Client class Volume.
Volume describes a volume and parameters for it to be mounted to a VM.
Generated from protobuf message google.cloud.batch.v1.Volume
Namespace
Google \ Cloud \ Batch \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ nfs
↳ gcs
↳ device_name
string
Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
↳ mount_path
string
The mount path for the volume, e.g. /mnt/disks/share.
↳ mount_options
array
Mount options vary based on the type of storage volume: * For a Cloud Storage bucket, all the mount options provided by the gcsfuse
tool
are supported. * For an existing persistent disk, all mount options provided by the mount
command
except writing are supported. This is due to restrictions of multi-writer mode
. * For any other disk or a Network File System (NFS), all the mount options provided by the mount
command are supported.
getNfs
A Network File System (NFS) volume. For example, a Filestore file share.
hasNfs
setNfs
A Network File System (NFS) volume. For example, a Filestore file share.
$this
getGcs
A Google Cloud Storage (GCS) volume.
hasGcs
setGcs
A Google Cloud Storage (GCS) volume.
$this
getDeviceName
Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
string
hasDeviceName
setDeviceName
Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances[0].policy.disks[i].device_name or defined by the given instance template in job.allocation_policy.instances[0].instance_template.
var
string
$this
getMountPath
The mount path for the volume, e.g. /mnt/disks/share.
string
setMountPath
The mount path for the volume, e.g. /mnt/disks/share.
var
string
$this
getMountOptions
Mount options vary based on the type of storage volume:
-
For a Cloud Storage bucket, all the mount options provided by the
gcsfuse
tool are supported. -
For an existing persistent disk, all mount options provided by the
mount
command except writing are supported. This is due to restrictions of multi-writer mode . - For any other disk or a Network File System (NFS), all the
mount options provided by the
mount
command are supported.
setMountOptions
Mount options vary based on the type of storage volume:
-
For a Cloud Storage bucket, all the mount options provided by the
gcsfuse
tool are supported. -
For an existing persistent disk, all mount options provided by the
mount
command except writing are supported. This is due to restrictions of multi-writer mode . - For any other disk or a Network File System (NFS), all the
mount options provided by the
mount
command are supported.
var
string[]
$this
getSource
string