Volume describes a volume and parameters for it to be mounted
to a VM.
This message has oneof_ 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 other
members.
str
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.
This field is a member of oneof_ source.
mount_path
str
The mount path for the volume, e.g.
/mnt/disks/share.
mount_options
MutableSequence[str]
Mount options vary based on the type of storage volume:
- For a Cloud Storage bucket, all the mount options
provided by the
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class Volume (0.17.36)\n\nVersion latestkeyboard_arrow_down\n\n- [0.17.36 (latest)](/python/docs/reference/batch/latest/google.cloud.batch_v1.types.Volume)\n- [0.17.35](/python/docs/reference/batch/0.17.35/google.cloud.batch_v1.types.Volume)\n- [0.16.0](/python/docs/reference/batch/0.16.0/google.cloud.batch_v1.types.Volume)\n- [0.15.0](/python/docs/reference/batch/0.15.0/google.cloud.batch_v1.types.Volume)\n- [0.14.0](/python/docs/reference/batch/0.14.0/google.cloud.batch_v1.types.Volume)\n- [0.13.0](/python/docs/reference/batch/0.13.0/google.cloud.batch_v1.types.Volume)\n- [0.12.0](/python/docs/reference/batch/0.12.0/google.cloud.batch_v1.types.Volume)\n- [0.11.0](/python/docs/reference/batch/0.11.0/google.cloud.batch_v1.types.Volume)\n- [0.10.0](/python/docs/reference/batch/0.10.0/google.cloud.batch_v1.types.Volume)\n- [0.9.0](/python/docs/reference/batch/0.9.0/google.cloud.batch_v1.types.Volume)\n- [0.8.1](/python/docs/reference/batch/0.8.1/google.cloud.batch_v1.types.Volume)\n- [0.7.0](/python/docs/reference/batch/0.7.0/google.cloud.batch_v1.types.Volume)\n- [0.6.0](/python/docs/reference/batch/0.6.0/google.cloud.batch_v1.types.Volume)\n- [0.5.0](/python/docs/reference/batch/0.5.0/google.cloud.batch_v1.types.Volume)\n- [0.4.1](/python/docs/reference/batch/0.4.1/google.cloud.batch_v1.types.Volume)\n- [0.3.2](/python/docs/reference/batch/0.3.2/google.cloud.batch_v1.types.Volume)\n- [0.2.0](/python/docs/reference/batch/0.2.0/google.cloud.batch_v1.types.Volume)\n- [0.1.2](/python/docs/reference/batch/0.1.2/google.cloud.batch_v1.types.Volume) \n\n Volume(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nVolume describes a volume and parameters for it to be mounted\nto a VM.\n\nThis message has `oneof`_ fields (mutually exclusive fields).\nFor each oneof, at most one member field can be set at the same time.\nSetting any member of the oneof automatically clears all other\nmembers.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]