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

com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfig.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.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @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 BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfig(
    public val labels: Map? = null,
    public val nodeConfigs: List? = null,
    public val operatingSystem: String? = null,
    public val taints: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.gkeonprem.outputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfig): BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfig =
            BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfig(
                labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
                nodeConfigs = javaType.nodeConfigs().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigNodeConfig.Companion.toKotlin(args0)
                    })
                }),
                operatingSystem = javaType.operatingSystem().map({ args0 -> args0 }).orElse(null),
                taints = javaType.taints().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.gkeonprem.kotlin.outputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigNodePoolConfigTaint.Companion.toKotlin(args0)
                    })
                }),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy