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

com.pulumi.gcp.notebooks.kotlin.outputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property description Provide this property when creating the disk.
 * @property diskName Specifies the disk name. If not specified, the default is
 * to use the name of the instance. If the disk with the
 * instance name exists already in the given zone/region, a
 * new name will be automatically generated.
 * @property diskSizeGb Specifies the size of the disk in base-2 GB. If not
 * specified, the disk will be the same size as the image
 * (usually 10GB). If specified, the size must be equal to
 * or larger than 10GB. Default 100 GB.
 * @property diskType The type of the boot disk attached to this runtime,
 * defaults to standard persistent disk. For valid values,
 * see `https://cloud.google.com/vertex-ai/docs/workbench/
 * reference/rest/v1/projects.locations.runtimes#disktype`
 * @property labels Labels to apply to this disk. These can be later modified
 * by the disks.setLabels method. This field is only
 * applicable for persistent disks.
 */
public data class RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams(
    public val description: String? = null,
    public val diskName: String? = null,
    public val diskSizeGb: Int? = null,
    public val diskType: String? = null,
    public val labels: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.notebooks.outputs.RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams): RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams =
            RuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParams(
                description = javaType.description().map({ args0 -> args0 }).orElse(null),
                diskName = javaType.diskName().map({ args0 -> args0 }).orElse(null),
                diskSizeGb = javaType.diskSizeGb().map({ args0 -> args0 }).orElse(null),
                diskType = javaType.diskType().map({ args0 -> args0 }).orElse(null),
                labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy