VolumeArgs

data class VolumeArgs(val deviceName: Output<String>? = null, val gcs: Output<GCSArgs>? = null, val mountOptions: Output<List<String>>? = null, val mountPath: Output<String>? = null, val nfs: Output<NFSArgs>? = null) : ConvertibleToJava<VolumeArgs>

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

Constructors

Link copied to clipboard
fun VolumeArgs(deviceName: Output<String>? = null, gcs: Output<GCSArgs>? = null, mountOptions: Output<List<String>>? = null, mountPath: Output<String>? = null, nfs: Output<NFSArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): VolumeArgs

Properties

Link copied to clipboard
val deviceName: Output<String>? = null

Device name of an attached disk volume, which should align with a device_name specified by job.allocation_policy.instances0.policy.disksi.device_name or defined by the given instance template in job.allocation_policy.instances0.instance_template.

Link copied to clipboard
val gcs: Output<GCSArgs>? = null

A Google Cloud Storage (GCS) volume.

Link copied to clipboard
val mountOptions: Output<List<String>>? = null

For Google Cloud Storage (GCS), mount options are the options supported by the gcsfuse tool (https://github.com/GoogleCloudPlatform/gcsfuse). For existing persistent disks, mount options provided by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html) except writing are supported. This is due to restrictions of multi-writer mode (https://cloud.google.com/compute/docs/disks/sharing-disks-between-vms). For other attached disks and Network File System (NFS), mount options are these supported by the mount command (https://man7.org/linux/man-pages/man8/mount.8.html).

Link copied to clipboard
val mountPath: Output<String>? = null

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

Link copied to clipboard
val nfs: Output<NFSArgs>? = null

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