Class Volume (0.3.2)

Volume(mapping=None,*,ignore_unknown_fields=False,**kwargs)

Attributes

NameDescription
nfsgoogle.cloud.batch_v1alpha.types.NFS
An NFS source for the volume (could be a Filestore, for example). This field is a member ofoneof_source.
pdgoogle.cloud.batch_v1alpha.types.PD
A persistent disk source for the volume. This field is a member ofoneof_source.
gcsgoogle.cloud.batch_v1alpha.types.GCS
A Google Cloud Storage source for the volume. This field is a member ofoneof_source.
device_namestr
Device name of an attached disk This field is a member ofoneof_source.
mount_pathstr
Mount path for the volume, e.g. /mnt/share
mount_optionsSequence[str]
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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-04 UTC.