Batch v1 API - Class Volume (1.0.0)

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.

Inheritance

Object > Volume

Namespace

Google.Cloud.Batch.V1

Assembly

Google.Cloud.Batch.V1.dll

Constructors

Volume()

public Volume()

Volume(Volume)

public Volume(Volume other)
Parameter
NameDescription
otherVolume

Properties

DeviceName

public string DeviceName { get; set; }

Device name of an attached disk

Property Value
TypeDescription
String

Gcs

public GCS Gcs { get; set; }

A Google Cloud Storage source for the volume.

Property Value
TypeDescription
GCS

MountOptions

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

Property Value
TypeDescription
RepeatedField<String>

MountPath

public string MountPath { get; set; }

Mount path for the volume, e.g. /mnt/share

Property Value
TypeDescription
String

Nfs

public NFS Nfs { get; set; }

An NFS source for the volume (could be a Filestore, for example).

Property Value
TypeDescription
NFS

SourceCase

public Volume.SourceOneofCase SourceCase { get; }
Property Value
TypeDescription
Volume.SourceOneofCase