public sealed class Volume : IMessage<Volume>, IEquatable<Volume>, IDeepCloneable<Volume>, IBufferMessage, IMessage
Reference documentation and code samples for the Batch v1 API class 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.
public RepeatedField<string> MountOptions { get; }
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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eVolume\u003c/code\u003e class in the Google.Cloud.Batch.V1 namespace represents volume and mount parameters associated with a TaskSpec in the Batch v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports various volume sources, including Google Cloud Storage (GCS) and Network File System (NFS), which can be specified through the \u003ccode\u003eGcs\u003c/code\u003e and \u003ccode\u003eNfs\u003c/code\u003e properties, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVolume\u003c/code\u003e class has properties such as \u003ccode\u003eDeviceName\u003c/code\u003e, \u003ccode\u003eMountPath\u003c/code\u003e, and \u003ccode\u003eMountOptions\u003c/code\u003e to configure how volumes are mounted, and supports both public construction as well as a copy constructor.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides version history, with the latest version being 2.13.0, and detailed API reference information for the \u003ccode\u003eVolume\u003c/code\u003e class within the .NET environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSourceCase\u003c/code\u003e property indicates the type of volume source, providing a way to programmatically determine whether the volume is sourced from GCS or NFS, while also inheriting from multiple interfaces.\u003c/p\u003e\n"]]],[],null,[]]