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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.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.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property labels The map of Kubernetes labels (key/value pairs) to be applied to
 * each node. These will added in addition to any default label(s)
 * that Kubernetes may apply to the node. In case of conflict in
 * label keys, the applied set may differ depending on the Kubernetes
 * version -- it's best to assume the behavior is undefined and
 * conflicts should be avoided. For more information, including usage
 * and the valid values, see:
 * http://kubernetes.io/v1.1/docs/user-guide/labels.html
 * An object containing a list of "key": value pairs.
 * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
 * @property nodeConfigs The list of machine addresses in the Bare Metal Node Pool.
 * Structure is documented below.
 * @property operatingSystem Specifies the nodes operating system (default: LINUX).
 * @property taints The initial taints assigned to nodes of this node pool.
 * Structure is documented below.
 */
public data class BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs(
    public val labels: Output>? = null,
    public val nodeConfigs: Output>? =
        null,
    public val operatingSystem: Output? = null,
    public val taints: Output>? =
        null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs.builder()
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .nodeConfigs(
                nodeConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .operatingSystem(operatingSystem?.applyValue({ args0 -> args0 }))
            .taints(
                taints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs].
 */
@PulumiTagMarker
public class BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgsBuilder
internal constructor() {
    private var labels: Output>? = null

    private var nodeConfigs:
        Output>? =
        null

    private var operatingSystem: Output? = null

    private var taints:
        Output>? =
        null

    /**
     * @param value The map of Kubernetes labels (key/value pairs) to be applied to
     * each node. These will added in addition to any default label(s)
     * that Kubernetes may apply to the node. In case of conflict in
     * label keys, the applied set may differ depending on the Kubernetes
     * version -- it's best to assume the behavior is undefined and
     * conflicts should be avoided. For more information, including usage
     * and the valid values, see:
     * http://kubernetes.io/v1.1/docs/user-guide/labels.html
     * An object containing a list of "key": value pairs.
     * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
     */
    @JvmName("mgynfbxmylumwysw")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The list of machine addresses in the Bare Metal Node Pool.
     * Structure is documented below.
     */
    @JvmName("itpljkombvgjxvjq")
    public suspend fun nodeConfigs(`value`: Output>) {
        this.nodeConfigs = value
    }

    @JvmName("nysangdxpklwiqvk")
    public suspend fun nodeConfigs(vararg values: Output) {
        this.nodeConfigs = Output.all(values.asList())
    }

    /**
     * @param values The list of machine addresses in the Bare Metal Node Pool.
     * Structure is documented below.
     */
    @JvmName("dllkyhcysesgonic")
    public suspend fun nodeConfigs(values: List>) {
        this.nodeConfigs = Output.all(values)
    }

    /**
     * @param value Specifies the nodes operating system (default: LINUX).
     */
    @JvmName("npqfofkutbfgwrlv")
    public suspend fun operatingSystem(`value`: Output) {
        this.operatingSystem = value
    }

    /**
     * @param value The initial taints assigned to nodes of this node pool.
     * Structure is documented below.
     */
    @JvmName("smdtxwbjxyikgoud")
    public suspend fun taints(`value`: Output>) {
        this.taints = value
    }

    @JvmName("qkoiroqdpeuckoaf")
    public suspend fun taints(vararg values: Output) {
        this.taints = Output.all(values.asList())
    }

    /**
     * @param values The initial taints assigned to nodes of this node pool.
     * Structure is documented below.
     */
    @JvmName("oyevtkckeupesbhs")
    public suspend fun taints(values: List>) {
        this.taints = Output.all(values)
    }

    /**
     * @param value The map of Kubernetes labels (key/value pairs) to be applied to
     * each node. These will added in addition to any default label(s)
     * that Kubernetes may apply to the node. In case of conflict in
     * label keys, the applied set may differ depending on the Kubernetes
     * version -- it's best to assume the behavior is undefined and
     * conflicts should be avoided. For more information, including usage
     * and the valid values, see:
     * http://kubernetes.io/v1.1/docs/user-guide/labels.html
     * An object containing a list of "key": value pairs.
     * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
     */
    @JvmName("yyixfrjyvsfsetvd")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values The map of Kubernetes labels (key/value pairs) to be applied to
     * each node. These will added in addition to any default label(s)
     * that Kubernetes may apply to the node. In case of conflict in
     * label keys, the applied set may differ depending on the Kubernetes
     * version -- it's best to assume the behavior is undefined and
     * conflicts should be avoided. For more information, including usage
     * and the valid values, see:
     * http://kubernetes.io/v1.1/docs/user-guide/labels.html
     * An object containing a list of "key": value pairs.
     * Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
     */
    @JvmName("atgukolsjnjvogil")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The list of machine addresses in the Bare Metal Node Pool.
     * Structure is documented below.
     */
    @JvmName("povufkvqwsndoakc")
    public suspend fun nodeConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeConfigs = mapped
    }

    /**
     * @param argument The list of machine addresses in the Bare Metal Node Pool.
     * Structure is documented below.
     */
    @JvmName("ffkmjgdpqngvexfx")
    public suspend fun nodeConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeConfigs = mapped
    }

    /**
     * @param argument The list of machine addresses in the Bare Metal Node Pool.
     * Structure is documented below.
     */
    @JvmName("xfoaiuwawdtvajrg")
    public suspend fun nodeConfigs(vararg argument: suspend BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.nodeConfigs = mapped
    }

    /**
     * @param argument The list of machine addresses in the Bare Metal Node Pool.
     * Structure is documented below.
     */
    @JvmName("myhyypadqdfkyguj")
    public suspend fun nodeConfigs(argument: suspend BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.nodeConfigs = mapped
    }

    /**
     * @param values The list of machine addresses in the Bare Metal Node Pool.
     * Structure is documented below.
     */
    @JvmName("ebsymyyapaiftbxm")
    public suspend fun nodeConfigs(vararg values: BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeConfigs = mapped
    }

    /**
     * @param value Specifies the nodes operating system (default: LINUX).
     */
    @JvmName("uxcxwsggmsaogpms")
    public suspend fun operatingSystem(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.operatingSystem = mapped
    }

    /**
     * @param value The initial taints assigned to nodes of this node pool.
     * Structure is documented below.
     */
    @JvmName("vmmtqdttdoupqncx")
    public suspend fun taints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.taints = mapped
    }

    /**
     * @param argument The initial taints assigned to nodes of this node pool.
     * Structure is documented below.
     */
    @JvmName("reqiwfovhchhykkg")
    public suspend fun taints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taints = mapped
    }

    /**
     * @param argument The initial taints assigned to nodes of this node pool.
     * Structure is documented below.
     */
    @JvmName("nbftbbphtowxitha")
    public suspend fun taints(vararg argument: suspend BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.taints = mapped
    }

    /**
     * @param argument The initial taints assigned to nodes of this node pool.
     * Structure is documented below.
     */
    @JvmName("qtxrylsuidiinnyd")
    public suspend fun taints(argument: suspend BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.taints = mapped
    }

    /**
     * @param values The initial taints assigned to nodes of this node pool.
     * Structure is documented below.
     */
    @JvmName("rhevjryovatnbhty")
    public suspend fun taints(vararg values: BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaintArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taints = mapped
    }

    internal fun build(): BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs =
        BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigArgs(
            labels = labels,
            nodeConfigs = nodeConfigs,
            operatingSystem = operatingSystem,
            taints = taints,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy