Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::Volume.
Volume describes a volume and parameters for it to be mounted to a VM.
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 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.
#device_name=
def device_name=(value) -> ::String
Parameter
- value (::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.
Returns
- (::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.
#gcs
def gcs() -> ::Google::Cloud::Batch::V1::GCS
Returns
- (::Google::Cloud::Batch::V1::GCS) — A Google Cloud Storage (GCS) volume.
#gcs=
def gcs=(value) -> ::Google::Cloud::Batch::V1::GCS
Parameter
- value (::Google::Cloud::Batch::V1::GCS) — A Google Cloud Storage (GCS) volume.
Returns
- (::Google::Cloud::Batch::V1::GCS) — A Google Cloud Storage (GCS) volume.
#mount_options
def mount_options() -> ::Array<::String>
Returns
- (::Array<::String>) — For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). For existing persistent disks, mount options provided by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of multi-writer mode (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). For other attached disks and Network File System (NFS), mount options are these supported by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html).
#mount_options=
def mount_options=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). For existing persistent disks, mount options provided by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of multi-writer mode (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). For other attached disks and Network File System (NFS), mount options are these supported by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html).
Returns
- (::Array<::String>) — For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). For existing persistent disks, mount options provided by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of multi-writer mode (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). For other attached disks and Network File System (NFS), mount options are these supported by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html).
#mount_path
def mount_path() -> ::String
Returns
- (::String) — The mount path for the volume, e.g. /mnt/disks/share.
#mount_path=
def mount_path=(value) -> ::String
Parameter
- value (::String) — The mount path for the volume, e.g. /mnt/disks/share.
Returns
- (::String) — The mount path for the volume, e.g. /mnt/disks/share.
#nfs
def nfs() -> ::Google::Cloud::Batch::V1::NFS
Returns
- (::Google::Cloud::Batch::V1::NFS) — A Network File System (NFS) volume. For example, a Filestore file share.
#nfs=
def nfs=(value) -> ::Google::Cloud::Batch::V1::NFS
Parameter
- value (::Google::Cloud::Batch::V1::NFS) — A Network File System (NFS) volume. For example, a Filestore file share.
Returns
- (::Google::Cloud::Batch::V1::NFS) — A Network File System (NFS) volume. For example, a Filestore file share.