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

com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs.RunAsGroupStrategyOptionsPatchArgs.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: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.policy.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.policy.v1beta1.inputs.RunAsGroupStrategyOptionsPatchArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.
 * @property ranges ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
 * @property rule rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
 */
public data class RunAsGroupStrategyOptionsPatchArgs(
    public val ranges: Output>? = null,
    public val rule: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.policy.v1beta1.inputs.RunAsGroupStrategyOptionsPatchArgs =
        com.pulumi.kubernetes.policy.v1beta1.inputs.RunAsGroupStrategyOptionsPatchArgs.builder()
            .ranges(ranges?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .rule(rule?.applyValue({ args0 -> args0 })).build()
}

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

    private var rule: Output? = null

    /**
     * @param value ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
     */
    @JvmName("jgtmhvlnepvsnhdd")
    public suspend fun ranges(`value`: Output>) {
        this.ranges = value
    }

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

    /**
     * @param values ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
     */
    @JvmName("exrmchgjhpklpycm")
    public suspend fun ranges(values: List>) {
        this.ranges = Output.all(values)
    }

    /**
     * @param value rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     */
    @JvmName("cidcnchrmqquutyr")
    public suspend fun rule(`value`: Output) {
        this.rule = value
    }

    /**
     * @param value ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
     */
    @JvmName("asmspqrktughnrre")
    public suspend fun ranges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ranges = mapped
    }

    /**
     * @param argument ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
     */
    @JvmName("logtphxqtmrpqjge")
    public suspend fun ranges(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            IDRangePatchArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ranges = mapped
    }

    /**
     * @param argument ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
     */
    @JvmName("rnxbjivlhsmbuust")
    public suspend fun ranges(vararg argument: suspend IDRangePatchArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            IDRangePatchArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ranges = mapped
    }

    /**
     * @param argument ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
     */
    @JvmName("saukseilqqmnpubg")
    public suspend fun ranges(argument: suspend IDRangePatchArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(IDRangePatchArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.ranges = mapped
    }

    /**
     * @param values ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.
     */
    @JvmName("bcbpqshvbrnqxpqe")
    public suspend fun ranges(vararg values: IDRangePatchArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ranges = mapped
    }

    /**
     * @param value rule is the strategy that will dictate the allowable RunAsGroup values that may be set.
     */
    @JvmName("lpkwxuxmtqvlmxog")
    public suspend fun rule(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rule = mapped
    }

    internal fun build(): RunAsGroupStrategyOptionsPatchArgs = RunAsGroupStrategyOptionsPatchArgs(
        ranges = ranges,
        rule = rule,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy