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

com.pulumi.gcp.notebooks.kotlin.outputs.RuntimeVirtualMachineVirtualMachineConfigDataDisk.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.notebooks.kotlin.outputs

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

/**
 *
 * @property autoDelete (Output)
 * Optional. Specifies whether the disk will be auto-deleted
 * when the instance is deleted (but not when the disk is
 * detached from the instance).
 * @property boot (Output)
 * Optional. Indicates that this is a boot disk. The virtual
 * machine will use the first partition of the disk for its
 * root filesystem.
 * @property deviceName (Output)
 * Optional. Specifies a unique device name of your choice
 * that is reflected into the /dev/disk/by-id/google-* tree
 * of a Linux operating system running within the instance.
 * This name can be used to reference the device for mounting,
 * resizing, and so on, from within the instance.
 * If not specified, the server chooses a default device name
 * to apply to this disk, in the form persistent-disk-x, where
 * x is a number assigned by Google Compute Engine. This field
 * is only applicable for persistent disks.
 * @property guestOsFeatures (Output)
 * Indicates a list of features to enable on the guest operating
 * system. Applicable only for bootable images. To see a list of
 * available features, read `https://cloud.google.com/compute/docs/
 * images/create-delete-deprecate-private-images#guest-os-features`
 * options. ``
 * @property index (Output)
 * Output only. A zero-based index to this disk, where 0 is
 * reserved for the boot disk. If you have many disks attached
 * to an instance, each disk would have a unique index number.
 * @property initializeParams Input only. Specifies the parameters for a new disk that will
 * be created alongside the new instance. Use initialization
 * parameters to create boot disks or local SSDs attached to the
 * new instance. This property is mutually exclusive with the
 * source property; you can only define one or the other, but not
 * both.
 * Structure is documented below.
 * @property interface "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. For performance characteristics of SCSI
 * over NVMe, see Local SSD performance. Valid values: * NVME * SCSI".
 * @property kind (Output)
 * Type of the resource. Always compute#attachedDisk for attached
 * disks.
 * @property licenses (Output)
 * Output only. Any valid publicly visible licenses.
 * @property mode The mode in which to attach this disk, either READ_WRITE
 * or READ_ONLY. If not specified, the default is to attach
 * the disk in READ_WRITE mode.
 * @property source Specifies a valid partial or full URL to an existing
 * Persistent Disk resource.
 * @property type Specifies the type of the disk, either SCRATCH or PERSISTENT.
 * If not specified, the default is PERSISTENT.
 */
public data class RuntimeVirtualMachineVirtualMachineConfigDataDisk(
    public val autoDelete: Boolean? = null,
    public val boot: Boolean? = null,
    public val deviceName: String? = null,
    public val guestOsFeatures: List? = null,
    public val index: Int? = null,
    public val initializeParams: RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams? =
        null,
    public val `interface`: String? = null,
    public val kind: String? = null,
    public val licenses: List? = null,
    public val mode: String? = null,
    public val source: String? = null,
    public val type: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.notebooks.outputs.RuntimeVirtualMachineVirtualMachineConfigDataDisk): RuntimeVirtualMachineVirtualMachineConfigDataDisk =
            RuntimeVirtualMachineVirtualMachineConfigDataDisk(
                autoDelete = javaType.autoDelete().map({ args0 -> args0 }).orElse(null),
                boot = javaType.boot().map({ args0 -> args0 }).orElse(null),
                deviceName = javaType.deviceName().map({ args0 -> args0 }).orElse(null),
                guestOsFeatures = javaType.guestOsFeatures().map({ args0 -> args0 }),
                index = javaType.index().map({ args0 -> args0 }).orElse(null),
                initializeParams = javaType.initializeParams().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.notebooks.kotlin.outputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                `interface` = javaType.interface_().map({ args0 -> args0 }).orElse(null),
                kind = javaType.kind().map({ args0 -> args0 }).orElse(null),
                licenses = javaType.licenses().map({ args0 -> args0 }),
                mode = javaType.mode().map({ args0 -> args0 }).orElse(null),
                source = javaType.source().map({ args0 -> args0 }).orElse(null),
                type = javaType.type().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy