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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalNodePoolNodePoolConfigArgs.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.BareMetalNodePoolNodePoolConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
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 BareMetalNodePoolNodePoolConfigArgs(
    public val labels: Output>? = null,
    public val nodeConfigs: Output>,
    public val operatingSystem: Output? = null,
    public val taints: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalNodePoolNodePoolConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalNodePoolNodePoolConfigArgs.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 [BareMetalNodePoolNodePoolConfigArgs].
 */
@PulumiTagMarker
public class BareMetalNodePoolNodePoolConfigArgsBuilder 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("xdtjlmtlafjpofdt")
    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("lltlbcmnohdumthd")
    public suspend fun nodeConfigs(`value`: Output>) {
        this.nodeConfigs = value
    }

    @JvmName("jfjjmnxxuffeidox")
    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("nuygrtltpiyvbvon")
    public suspend fun nodeConfigs(values: List>) {
        this.nodeConfigs = Output.all(values)
    }

    /**
     * @param value Specifies the nodes operating system (default: LINUX).
     */
    @JvmName("sqyufggddmxdxcdp")
    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("rpkkqyaikwwnpjvy")
    public suspend fun taints(`value`: Output>) {
        this.taints = value
    }

    @JvmName("rrvddyomgrrlnowj")
    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("vfwvlrysjxsttmwo")
    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("rclymbeyyylvobxj")
    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("euhtjquygltxjmku")
    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("ujvgmbjiqcvallaa")
    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("wiiedcpqluvmwfhk")
    public suspend fun nodeConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalNodePoolNodePoolConfigNodeConfigArgsBuilder().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("ergjiaodtsmhrxdl")
    public suspend fun nodeConfigs(vararg argument: suspend BareMetalNodePoolNodePoolConfigNodeConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalNodePoolNodePoolConfigNodeConfigArgsBuilder().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("rfcwxetayqolwkdf")
    public suspend fun nodeConfigs(argument: suspend BareMetalNodePoolNodePoolConfigNodeConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BareMetalNodePoolNodePoolConfigNodeConfigArgsBuilder().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("dqelmgvtmdurrqkq")
    public suspend fun nodeConfigs(vararg values: BareMetalNodePoolNodePoolConfigNodeConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeConfigs = mapped
    }

    /**
     * @param value Specifies the nodes operating system (default: LINUX).
     */
    @JvmName("qwnceohnhfreychj")
    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("jljbbkcuqvibbenf")
    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("ufvvvtvbekyjdvyt")
    public suspend fun taints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalNodePoolNodePoolConfigTaintArgsBuilder().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("jvsigheedwmnqirb")
    public suspend fun taints(vararg argument: suspend BareMetalNodePoolNodePoolConfigTaintArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalNodePoolNodePoolConfigTaintArgsBuilder().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("ovfmevfrdddqdsuf")
    public suspend fun taints(argument: suspend BareMetalNodePoolNodePoolConfigTaintArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BareMetalNodePoolNodePoolConfigTaintArgsBuilder().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("aviixawbpiialmec")
    public suspend fun taints(vararg values: BareMetalNodePoolNodePoolConfigTaintArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taints = mapped
    }

    internal fun build(): BareMetalNodePoolNodePoolConfigArgs = BareMetalNodePoolNodePoolConfigArgs(
        labels = labels,
        nodeConfigs = nodeConfigs ?: throw PulumiNullFieldException("nodeConfigs"),
        operatingSystem = operatingSystem,
        taints = taints,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy