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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalNodePoolNodePoolConfigNodeConfigArgs.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.BareMetalNodePoolNodePoolConfigNodeConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
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 nodeIp The default IPv4 address for SSH access and Kubernetes node.
 * Example: 192.168.0.1
 */
public data class BareMetalNodePoolNodePoolConfigNodeConfigArgs(
    public val labels: Output>? = null,
    public val nodeIp: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalNodePoolNodePoolConfigNodeConfigArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalNodePoolNodePoolConfigNodeConfigArgs.builder()
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .nodeIp(nodeIp?.applyValue({ args0 -> args0 })).build()
}

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

    private var nodeIp: 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("tbixnqemfmviaouy")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The default IPv4 address for SSH access and Kubernetes node.
     * Example: 192.168.0.1
     */
    @JvmName("ktxqkgkhjvhkvtoh")
    public suspend fun nodeIp(`value`: Output) {
        this.nodeIp = value
    }

    /**
     * @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("iqmfxkcnasehdfvv")
    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("sexinknibitblhgr")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The default IPv4 address for SSH access and Kubernetes node.
     * Example: 192.168.0.1
     */
    @JvmName("jfxgvhmqbiqjfipe")
    public suspend fun nodeIp(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeIp = mapped
    }

    internal fun build(): BareMetalNodePoolNodePoolConfigNodeConfigArgs =
        BareMetalNodePoolNodePoolConfigNodeConfigArgs(
            labels = labels,
            nodeIp = nodeIp,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy