DiskArgs

data class DiskArgs(val autoDelete: Output<Boolean>? = null, val mountPoint: Output<String>? = null, val name: Output<String>, val readOnly: Output<Boolean>? = null, val sizeGb: Output<Int>? = null, val source: Output<String>? = null, val type: Output<DiskType>) : ConvertibleToJava<DiskArgs>

A Google Compute Engine disk resource specification.

Constructors

Link copied to clipboard
fun DiskArgs(autoDelete: Output<Boolean>? = null, mountPoint: Output<String>? = null, name: Output<String>, readOnly: Output<Boolean>? = null, sizeGb: Output<Int>? = null, source: Output<String>? = null, type: Output<DiskType>)

Functions

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

Properties

Link copied to clipboard
val autoDelete: Output<Boolean>? = null

Deprecated. Disks created by the Pipelines API will be deleted at the end of the pipeline run, regardless of what this field is set to.

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

Required at create time and cannot be overridden at run time. Specifies the path in the docker container where files on this disk should be located. For example, if mountPoint is /mnt/disk, and the parameter has localPath inputs/file.txt, the docker container can access the data at /mnt/disk/inputs/file.txt.

Link copied to clipboard
val name: Output<String>

The name of the disk that can be used in the pipeline parameters. Must be 1 - 63 characters. The name "boot" is reserved for system use.

Link copied to clipboard
val readOnly: Output<Boolean>? = null

Specifies how a sourced-base persistent disk will be mounted. See https://cloud.google.com/compute/docs/disks/persistent-disks#use_multi_instances for more details. Can only be set at create time.

Link copied to clipboard
val sizeGb: Output<Int>? = null

The size of the disk. Defaults to 500 (GB). This field is not applicable for local SSD.

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

The full or partial URL of the persistent disk to attach. See https://cloud.google.com/compute/docs/reference/latest/instances#resource and https://cloud.google.com/compute/docs/disks/persistent-disks#snapshots for more details.

Link copied to clipboard
val type: Output<DiskType>

The type of the disk to create.