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

com.pulumi.gcp.container.kotlin.inputs.ClusterNodePoolNodeConfigSecondaryBootDiskArgs.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.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigSecondaryBootDiskArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property diskImage Path to disk image to create the secondary boot disk from. After using the [gke-disk-image-builder](https://github.com/GoogleCloudPlatform/ai-on-gke/tree/main/tools/gke-disk-image-builder), this argument should be `global/images/DISK_IMAGE_NAME`.
 * @property mode Mode for how the secondary boot disk is used. An example mode is `CONTAINER_IMAGE_CACHE`.
 */
public data class ClusterNodePoolNodeConfigSecondaryBootDiskArgs(
    public val diskImage: Output,
    public val mode: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigSecondaryBootDiskArgs =
        com.pulumi.gcp.container.inputs.ClusterNodePoolNodeConfigSecondaryBootDiskArgs.builder()
            .diskImage(diskImage.applyValue({ args0 -> args0 }))
            .mode(mode?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterNodePoolNodeConfigSecondaryBootDiskArgs].
 */
@PulumiTagMarker
public class ClusterNodePoolNodeConfigSecondaryBootDiskArgsBuilder internal constructor() {
    private var diskImage: Output? = null

    private var mode: Output? = null

    /**
     * @param value Path to disk image to create the secondary boot disk from. After using the [gke-disk-image-builder](https://github.com/GoogleCloudPlatform/ai-on-gke/tree/main/tools/gke-disk-image-builder), this argument should be `global/images/DISK_IMAGE_NAME`.
     */
    @JvmName("xmcplhsymwfrvqmv")
    public suspend fun diskImage(`value`: Output) {
        this.diskImage = value
    }

    /**
     * @param value Mode for how the secondary boot disk is used. An example mode is `CONTAINER_IMAGE_CACHE`.
     */
    @JvmName("qfnhrgysiaghurbf")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value Path to disk image to create the secondary boot disk from. After using the [gke-disk-image-builder](https://github.com/GoogleCloudPlatform/ai-on-gke/tree/main/tools/gke-disk-image-builder), this argument should be `global/images/DISK_IMAGE_NAME`.
     */
    @JvmName("sgsinatmaqmqgjjp")
    public suspend fun diskImage(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diskImage = mapped
    }

    /**
     * @param value Mode for how the secondary boot disk is used. An example mode is `CONTAINER_IMAGE_CACHE`.
     */
    @JvmName("ghrpdyxspqfffffx")
    public suspend fun mode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    internal fun build(): ClusterNodePoolNodeConfigSecondaryBootDiskArgs =
        ClusterNodePoolNodeConfigSecondaryBootDiskArgs(
            diskImage = diskImage ?: throw PulumiNullFieldException("diskImage"),
            mode = mode,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy