Class Volume (0.3.2) Stay organized with collections Save and categorize content based on your preferences.
Volume(mapping=None,*,ignore_unknown_fields=False,**kwargs)Volume and mount parameters to be associated with a TaskSpec.A TaskSpec might describe zero, one, or multiple volumes to bemounted as part of the task.
This message hasoneof_ fields (mutually exclusive fields).For each oneof, at most one member field can be set at the same time.Setting any member of the oneof automatically clears all othermembers.
.. _oneof:https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes
| Name | Description |
nfs | google.cloud.batch_v1alpha.types.NFSAn NFS source for the volume (could be a Filestore, for example). This field is a member of oneof_source. |
pd | google.cloud.batch_v1alpha.types.PDA persistent disk source for the volume. This field is a member of oneof_source. |
gcs | google.cloud.batch_v1alpha.types.GCSA Google Cloud Storage source for the volume. This field is a member of oneof_source. |
device_name | strDevice name of an attached disk This field is a member of oneof_source. |
mount_path | strMount path for the volume, e.g. /mnt/share |
mount_options | Sequence[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.