Batch V1 API - Class Google::Cloud::Batch::V1::Volume (v0.2.0)

Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::Volume.

Volume and mount parameters to be associated with a TaskSpec. A TaskSpec might describe zero, one, or multiple volumes to be mounted as part of the task.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#device_name

def device_name() -> ::String
Returns
  • (::String) — Device name of an attached disk

#device_name=

def device_name=(value) -> ::String
Parameter
  • value (::String) — Device name of an attached disk
Returns
  • (::String) — Device name of an attached disk

#gcs

def gcs() -> ::Google::Cloud::Batch::V1::GCS
Returns

#gcs=

def gcs=(value) -> ::Google::Cloud::Batch::V1::GCS
Parameter
Returns

#mount_options

def mount_options() -> ::Array<::String>
Returns
  • (::Array<::String>) — Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

#mount_options=

def mount_options=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab
Returns
  • (::Array<::String>) — Mount options For Google Cloud Storage, mount options are the global options supported by gcsfuse tool. Batch will use them to mount the volume with the following command: "gcsfuse [global options] bucket mountpoint". For PD, NFS, mount options are these supported by /etc/fstab. Batch will use Fstab to mount such volumes. https://help.ubuntu.com/community/Fstab

#mount_path

def mount_path() -> ::String
Returns
  • (::String) — Mount path for the volume, e.g. /mnt/share

#mount_path=

def mount_path=(value) -> ::String
Parameter
  • value (::String) — Mount path for the volume, e.g. /mnt/share
Returns
  • (::String) — Mount path for the volume, e.g. /mnt/share

#nfs

def nfs() -> ::Google::Cloud::Batch::V1::NFS
Returns

#nfs=

def nfs=(value) -> ::Google::Cloud::Batch::V1::NFS
Parameter
Returns