GetInstanceTemplateDisk

data class GetInstanceTemplateDisk(val autoDelete: Boolean, val boot: Boolean, val deviceName: String, val diskEncryptionKeys: List<GetInstanceTemplateDiskDiskEncryptionKey>, val diskName: String, val diskSizeGb: Int, val diskType: String, val interface: String, val labels: Map<String, String>, val mode: String, val provisionedIops: Int, val resourcePolicies: List<String>, val source: String, val sourceImage: String, val sourceImageEncryptionKeys: List<GetInstanceTemplateDiskSourceImageEncryptionKey>, val sourceSnapshot: String, val sourceSnapshotEncryptionKeys: List<GetInstanceTemplateDiskSourceSnapshotEncryptionKey>, val type: String)

Constructors

Link copied to clipboard
constructor(autoDelete: Boolean, boot: Boolean, deviceName: String, diskEncryptionKeys: List<GetInstanceTemplateDiskDiskEncryptionKey>, diskName: String, diskSizeGb: Int, diskType: String, interface: String, labels: Map<String, String>, mode: String, provisionedIops: Int, resourcePolicies: List<String>, source: String, sourceImage: String, sourceImageEncryptionKeys: List<GetInstanceTemplateDiskSourceImageEncryptionKey>, sourceSnapshot: String, sourceSnapshotEncryptionKeys: List<GetInstanceTemplateDiskSourceSnapshotEncryptionKey>, type: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

Indicates that this is a boot disk.

Link copied to clipboard

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

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

Link copied to clipboard

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

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

Link copied to clipboard

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

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

Link copied to clipboard

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
Link copied to clipboard

(Optional) -- A list of short names of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.

Link copied to clipboard

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

Link copied to clipboard

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
Link copied to clipboard

The accelerator type resource to expose to this instance. E.g. nvidia-tesla-k80.