All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.outputs.GetInstanceBootDisk.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property autoDelete Whether the disk will be auto-deleted when the instance is deleted.
 * @property deviceName Name with which the attached disk is accessible
 * under `/dev/disk/by-id/`
 * @property diskEncryptionKeyRaw A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set.
 * @property diskEncryptionKeySha256 The [RFC 4648 base64](https://tools.ietf.org/html/rfc4648#section-4)
 * encoded SHA-256 hash of the [customer-supplied encryption key]
 * () that protects this resource.
 * @property initializeParams Parameters with which a disk was created alongside the instance.
 * Structure is documented below.
 * @property kmsKeySelfLink 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.
 * @property mode Read/write mode for the disk. One of `"READ_ONLY"` or `"READ_WRITE"`.
 * @property source The name or self_link of the disk attached to this instance.
 */
public data class GetInstanceBootDisk(
    public val autoDelete: Boolean,
    public val deviceName: String,
    public val diskEncryptionKeyRaw: String,
    public val diskEncryptionKeySha256: String,
    public val initializeParams: List,
    public val kmsKeySelfLink: String,
    public val mode: String,
    public val source: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetInstanceBootDisk): GetInstanceBootDisk = GetInstanceBootDisk(
            autoDelete = javaType.autoDelete(),
            deviceName = javaType.deviceName(),
            diskEncryptionKeyRaw = javaType.diskEncryptionKeyRaw(),
            diskEncryptionKeySha256 = javaType.diskEncryptionKeySha256(),
            initializeParams = javaType.initializeParams().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.GetInstanceBootDiskInitializeParam.Companion.toKotlin(args0)
                })
            }),
            kmsKeySelfLink = javaType.kmsKeySelfLink(),
            mode = javaType.mode(),
            source = javaType.source(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy