InstanceAttachedDisk

data class InstanceAttachedDisk(val deviceName: String? = null, val diskEncryptionKeyRaw: String? = null, val diskEncryptionKeySha256: String? = null, val kmsKeySelfLink: String? = null, val mode: String? = null, val source: String)

Constructors

Link copied to clipboard
constructor(deviceName: String? = null, diskEncryptionKeyRaw: String? = null, diskEncryptionKeySha256: String? = null, kmsKeySelfLink: String? = null, mode: String? = null, source: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val deviceName: String? = null

Name with which the attached disk will be accessible under /dev/disk/by-id/google-*

Link copied to clipboard

A 256-bit customer-supplied encryption key (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption), encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.

Link copied to clipboard

The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key (https://cloud.google.com/compute/docs/disks/customer-supplied-encryption) that protects this resource.

Link copied to clipboard
val kmsKeySelfLink: String? = null

The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.

Link copied to clipboard
val mode: String? = null

Either "READ_ONLY" or "READ_WRITE", defaults to "READ_WRITE" If you have a persistent disk with data that you want to share between multiple instances, detach it from any read-write instances and attach it to one or more instances in read-only mode.

Link copied to clipboard

The name or self_link of the disk to attach to this instance.