InstanceTemplateDiskArgs

data class InstanceTemplateDiskArgs(val autoDelete: Output<Boolean>? = null, val boot: Output<Boolean>? = null, val deviceName: Output<String>? = null, val diskEncryptionKey: Output<InstanceTemplateDiskDiskEncryptionKeyArgs>? = null, val diskName: Output<String>? = null, val diskSizeGb: Output<Int>? = null, val diskType: Output<String>? = null, val interface: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val mode: Output<String>? = null, val resourcePolicies: Output<String>? = null, val source: Output<String>? = null, val sourceImage: Output<String>? = null, val sourceImageEncryptionKey: Output<InstanceTemplateDiskSourceImageEncryptionKeyArgs>? = null, val sourceSnapshot: Output<String>? = null, val sourceSnapshotEncryptionKey: Output<InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs>? = null, val type: Output<String>? = null) : ConvertibleToJava<InstanceTemplateDiskArgs>

Constructors

Link copied to clipboard
fun InstanceTemplateDiskArgs(autoDelete: Output<Boolean>? = null, boot: Output<Boolean>? = null, deviceName: Output<String>? = null, diskEncryptionKey: Output<InstanceTemplateDiskDiskEncryptionKeyArgs>? = null, diskName: Output<String>? = null, diskSizeGb: Output<Int>? = null, diskType: Output<String>? = null, interface: Output<String>? = null, labels: Output<Map<String, String>>? = null, mode: Output<String>? = null, resourcePolicies: Output<String>? = null, source: Output<String>? = null, sourceImage: Output<String>? = null, sourceImageEncryptionKey: Output<InstanceTemplateDiskSourceImageEncryptionKeyArgs>? = null, sourceSnapshot: Output<String>? = null, sourceSnapshotEncryptionKey: Output<InstanceTemplateDiskSourceSnapshotEncryptionKeyArgs>? = null, type: Output<String>? = null)

Functions

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

Properties

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

Whether or not the disk should be auto-deleted. This defaults to true.

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

Indicates that this is a boot disk.

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

A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.

Link copied to clipboard

Encrypts or decrypts a disk using a customer-supplied encryption key.

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

Name of the disk. When not provided, this defaults to the name of the instance.

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

The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.

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

The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".

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

Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

A set of ket/value label pairs to assign to disk created from this template

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

The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.

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

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

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

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Link copied to clipboard

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

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

The source snapshot to create this disk.

Link copied to clipboard

The customer-supplied encryption key of the source snapshot. Structure documented below.

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

The type of GCE disk, can be either "SCRATCH" or "PERSISTENT".