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 provisionedIops: Output<Int>? = 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
constructor(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, provisionedIops: Output<Int>? = 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)

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. If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key. If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance. If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later. Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. Structure documented below.

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 provisionedIops: Output<Int>? = null
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. Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. Structure documented below.

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".

Functions

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