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

com.pulumi.azure.containerservice.kotlin.inputs.RegistryTaskFileStepArgs.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.RegistryTaskFileStepArgs.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 taskFilePath The task template file path relative to the source context.
 * @property valueFilePath The parameters file path relative to the source context.
 * @property values Specifies a map of values that can be passed when running a task.
 */
public data class RegistryTaskFileStepArgs(
    public val contextAccessToken: Output? = null,
    public val contextPath: Output? = null,
    public val secretValues: Output>? = null,
    public val taskFilePath: Output,
    public val valueFilePath: Output? = null,
    public val values: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.RegistryTaskFileStepArgs =
        com.pulumi.azure.containerservice.inputs.RegistryTaskFileStepArgs.builder()
            .contextAccessToken(contextAccessToken?.applyValue({ args0 -> args0 }))
            .contextPath(contextPath?.applyValue({ args0 -> args0 }))
            .secretValues(
                secretValues?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .taskFilePath(taskFilePath.applyValue({ args0 -> args0 }))
            .valueFilePath(valueFilePath?.applyValue({ args0 -> args0 }))
            .values(
                values?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var contextPath: Output? = null

    private var secretValues: Output>? = null

    private var taskFilePath: Output? = null

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

    /**
     * @param value The URL (absolute or relative) of the source context for this step.
     */
    @JvmName("vxdqrrpirfmoildo")
    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("sxvhcddcwsaaofwc")
    public suspend fun secretValues(`value`: Output>) {
        this.secretValues = value
    }

    /**
     * @param value The task template file path relative to the source context.
     */
    @JvmName("nqfoajlydbqjnvvh")
    public suspend fun taskFilePath(`value`: Output) {
        this.taskFilePath = value
    }

    /**
     * @param value The parameters file path relative to the source context.
     */
    @JvmName("kceuddqdjogukjhm")
    public suspend fun valueFilePath(`value`: Output) {
        this.valueFilePath = value
    }

    /**
     * @param value Specifies a map of values that can be passed when running a task.
     */
    @JvmName("qpmomiapcvdvpdst")
    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("enmpcwtleoclmghn")
    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("eojgraigfcpdmeyo")
    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("qcrlwrqbubxujgch")
    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("dbbmuecyudpnjnxy")
    public fun secretValues(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretValues = mapped
    }

    /**
     * @param value The task template file path relative to the source context.
     */
    @JvmName("janmwmbkcalgwxcs")
    public suspend fun taskFilePath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskFilePath = mapped
    }

    /**
     * @param value The parameters file path relative to the source context.
     */
    @JvmName("lcpyomvoobwwuchr")
    public suspend fun valueFilePath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.valueFilePath = mapped
    }

    /**
     * @param value Specifies a map of values that can be passed when running a task.
     */
    @JvmName("xrfahqukocmbexhv")
    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("vttvdfmkxwfpmpos")
    public fun values(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): RegistryTaskFileStepArgs = RegistryTaskFileStepArgs(
        contextAccessToken = contextAccessToken,
        contextPath = contextPath,
        secretValues = secretValues,
        taskFilePath = taskFilePath ?: throw PulumiNullFieldException("taskFilePath"),
        valueFilePath = valueFilePath,
        values = values,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy