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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalAdminClusterControlPlaneArgs.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.BareMetalAdminClusterControlPlaneArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property apiServerArgs Customizes the default API server args. Only a subset of
 * customized flags are supported. Please refer to the API server
 * documentation below to know the exact format:
 * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
 * Structure is documented below.
 * @property controlPlaneNodePoolConfig Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster's control plane. The NodePool will have the same name and namespace as the cluster.
 * Structure is documented below.
 */
public data class BareMetalAdminClusterControlPlaneArgs(
    public val apiServerArgs: Output>? = null,
    public val controlPlaneNodePoolConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalAdminClusterControlPlaneArgs.builder()
            .apiServerArgs(
                apiServerArgs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .controlPlaneNodePoolConfig(
                controlPlaneNodePoolConfig.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

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

    private var controlPlaneNodePoolConfig:
        Output? = null

    /**
     * @param value Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     */
    @JvmName("rygwehdikpsieyhk")
    public suspend fun apiServerArgs(`value`: Output>) {
        this.apiServerArgs = value
    }

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

    /**
     * @param values Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     */
    @JvmName("qfehyctbmmvfqrsp")
    public suspend fun apiServerArgs(values: List>) {
        this.apiServerArgs = Output.all(values)
    }

    /**
     * @param value Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster's control plane. The NodePool will have the same name and namespace as the cluster.
     * Structure is documented below.
     */
    @JvmName("jqpejapnffrqeemk")
    public suspend fun controlPlaneNodePoolConfig(`value`: Output) {
        this.controlPlaneNodePoolConfig = value
    }

    /**
     * @param value Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     */
    @JvmName("bxqxhewphhnmqhim")
    public suspend fun apiServerArgs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiServerArgs = mapped
    }

    /**
     * @param argument Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     */
    @JvmName("kodljffwnlsotagg")
    public suspend fun apiServerArgs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalAdminClusterControlPlaneApiServerArgArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.apiServerArgs = mapped
    }

    /**
     * @param argument Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     */
    @JvmName("tohoamlofpbybnfv")
    public suspend fun apiServerArgs(vararg argument: suspend BareMetalAdminClusterControlPlaneApiServerArgArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalAdminClusterControlPlaneApiServerArgArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.apiServerArgs = mapped
    }

    /**
     * @param argument Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     */
    @JvmName("vvigipmvqeyncvli")
    public suspend fun apiServerArgs(argument: suspend BareMetalAdminClusterControlPlaneApiServerArgArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            BareMetalAdminClusterControlPlaneApiServerArgArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.apiServerArgs = mapped
    }

    /**
     * @param values Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     */
    @JvmName("eiavugchcfrlshnk")
    public suspend fun apiServerArgs(vararg values: BareMetalAdminClusterControlPlaneApiServerArgArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.apiServerArgs = mapped
    }

    /**
     * @param value Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster's control plane. The NodePool will have the same name and namespace as the cluster.
     * Structure is documented below.
     */
    @JvmName("yybycmpbkmritfjg")
    public suspend fun controlPlaneNodePoolConfig(`value`: BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.controlPlaneNodePoolConfig = mapped
    }

    /**
     * @param argument Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster's control plane. The NodePool will have the same name and namespace as the cluster.
     * Structure is documented below.
     */
    @JvmName("ddtxjphshktutags")
    public suspend fun controlPlaneNodePoolConfig(argument: suspend BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            BareMetalAdminClusterControlPlaneControlPlaneNodePoolConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.controlPlaneNodePoolConfig = mapped
    }

    internal fun build(): BareMetalAdminClusterControlPlaneArgs =
        BareMetalAdminClusterControlPlaneArgs(
            apiServerArgs = apiServerArgs,
            controlPlaneNodePoolConfig = controlPlaneNodePoolConfig ?: throw
                PulumiNullFieldException("controlPlaneNodePoolConfig"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy