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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryTaskEncodedStepArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.RegistryTaskEncodedStepArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property contextAccessToken The token (Git PAT or SAS token of storage account blob) associated with the context for this step.
 * @property contextPath The URL (absolute or relative) of the source context for this step.
 * @property secretValues Specifies a map of secret values that can be passed when running a task.
 * @property taskContent The (optionally base64 encoded) content of the build template.
 * @property valueContent The (optionally base64 encoded) content of the build parameters.
 * @property values Specifies a map of values that can be passed when running a task.
 */
public data class RegistryTaskEncodedStepArgs(
    public val contextAccessToken: Output? = null,
    public val contextPath: Output? = null,
    public val secretValues: Output>? = null,
    public val taskContent: Output,
    public val valueContent: Output? = null,
    public val values: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryTaskEncodedStepArgs =
        com.pulumi.azure.containerservice.inputs.RegistryTaskEncodedStepArgs.builder()
            .contextAccessToken(contextAccessToken?.applyValue({ args0 -> args0 }))
            .contextPath(contextPath?.applyValue({ args0 -> args0 }))
            .secretValues(
                secretValues?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .taskContent(taskContent.applyValue({ args0 -> args0 }))
            .valueContent(valueContent?.applyValue({ args0 -> args0 }))
            .values(
                values?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RegistryTaskEncodedStepArgs].
 */
@PulumiTagMarker
public class RegistryTaskEncodedStepArgsBuilder internal constructor() {
    private var contextAccessToken: Output? = null

    private var contextPath: Output? = null

    private var secretValues: Output>? = null

    private var taskContent: Output? = null

    private var valueContent: Output? = null

    private var values: Output>? = null

    /**
     * @param value The token (Git PAT or SAS token of storage account blob) associated with the context for this step.
     */
    @JvmName("eimayumhdrnwigmd")
    public suspend fun contextAccessToken(`value`: Output) {
        this.contextAccessToken = value
    }

    /**
     * @param value The URL (absolute or relative) of the source context for this step.
     */
    @JvmName("pcsqtxdyprejyjuq")
    public suspend fun contextPath(`value`: Output) {
        this.contextPath = value
    }

    /**
     * @param value Specifies a map of secret values that can be passed when running a task.
     */
    @JvmName("pciwnmbuadslbnyd")
    public suspend fun secretValues(`value`: Output>) {
        this.secretValues = value
    }

    /**
     * @param value The (optionally base64 encoded) content of the build template.
     */
    @JvmName("qgcrsvpkilfapxfu")
    public suspend fun taskContent(`value`: Output) {
        this.taskContent = value
    }

    /**
     * @param value The (optionally base64 encoded) content of the build parameters.
     */
    @JvmName("qqcavtuttlfgfina")
    public suspend fun valueContent(`value`: Output) {
        this.valueContent = value
    }

    /**
     * @param value Specifies a map of values that can be passed when running a task.
     */
    @JvmName("flamsrxgbluoluqd")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

    /**
     * @param value The token (Git PAT or SAS token of storage account blob) associated with the context for this step.
     */
    @JvmName("mrkgxjkvvgfkxmso")
    public suspend fun contextAccessToken(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contextAccessToken = mapped
    }

    /**
     * @param value The URL (absolute or relative) of the source context for this step.
     */
    @JvmName("orghflybygyxriqi")
    public suspend fun contextPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contextPath = mapped
    }

    /**
     * @param value Specifies a map of secret values that can be passed when running a task.
     */
    @JvmName("cacsxpujmphdoxsa")
    public suspend fun secretValues(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretValues = mapped
    }

    /**
     * @param values Specifies a map of secret values that can be passed when running a task.
     */
    @JvmName("mkjvsqtwubcqfrhc")
    public fun secretValues(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretValues = mapped
    }

    /**
     * @param value The (optionally base64 encoded) content of the build template.
     */
    @JvmName("jdajagkqlqkybqmm")
    public suspend fun taskContent(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskContent = mapped
    }

    /**
     * @param value The (optionally base64 encoded) content of the build parameters.
     */
    @JvmName("xudxeebjcdexhxmo")
    public suspend fun valueContent(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueContent = mapped
    }

    /**
     * @param value Specifies a map of values that can be passed when running a task.
     */
    @JvmName("loqcpggcxrvekiro")
    public suspend fun values(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values Specifies a map of values that can be passed when running a task.
     */
    @JvmName("wnfsrpomccqrgyft")
    public fun values(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): RegistryTaskEncodedStepArgs = RegistryTaskEncodedStepArgs(
        contextAccessToken = contextAccessToken,
        contextPath = contextPath,
        secretValues = secretValues,
        taskContent = taskContent ?: throw PulumiNullFieldException("taskContent"),
        valueContent = valueContent,
        values = values,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy