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 resourceManagerTags: Map<String, String>, 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, resourceManagerTags: Map<String, String>, 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

Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.

Link copied to clipboard

A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

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

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.

Link copied to clipboard

The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot, initializeParams.sourceImage, or disks.source is required except for local SSD.

Link copied to clipboard

The customer-supplied encryption key of the source snapshot.

Link copied to clipboard

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