Batch v1alpha API - Class Volume (1.0.0-alpha31)

public sealed class Volume : IMessage<Volume>, IEquatable<Volume>, IDeepCloneable<Volume>, IBufferMessage, IMessage

Reference documentation and code samples for the Batch v1alpha API class Volume.

Volume describes a volume and parameters for it to be mounted to a VM.

Inheritance

object > Volume

Namespace

Google.Cloud.Batch.V1Alpha

Assembly

Google.Cloud.Batch.V1Alpha.dll

Constructors

Volume()

public Volume()

Volume(Volume)

public Volume(Volume other)
Parameter
Name Description
other Volume

Properties

DeviceName

public string DeviceName { get; set; }

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.

Property Value
Type Description
string

Gcs

public GCS Gcs { get; set; }

A Google Cloud Storage (GCS) volume.

Property Value
Type Description
GCS

HasDeviceName

public bool HasDeviceName { get; }

Gets whether the "device_name" field is set

Property Value
Type Description
bool

MountOptions

public RepeatedField<string> MountOptions { get; }

Mount options vary based on the type of storage volume:

  • For a Cloud Storage bucket, all the mount options provided by the gcsfuse tool are supported.
  • For an existing persistent disk, all mount options provided by the mount command except writing are supported. This is due to restrictions of multi-writer mode.
  • For any other disk or a Network File System (NFS), all the mount options provided by the mount command are supported.
Property Value
Type Description
RepeatedFieldstring

MountPath

public string MountPath { get; set; }

The mount path for the volume, e.g. /mnt/disks/share.

Property Value
Type Description
string

Nfs

public NFS Nfs { get; set; }

A Network File System (NFS) volume. For example, a Filestore file share.

Property Value
Type Description
NFS

Pd

[Obsolete]
public PD Pd { get; set; }

Deprecated: please use device_name instead.

Property Value
Type Description
PD

SourceCase

public Volume.SourceOneofCase SourceCase { get; }
Property Value
Type Description
VolumeSourceOneofCase