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

com.pulumi.azurenative.containerregistry.kotlin.inputs.PipelineRunRequestArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.containerregistry.kotlin.inputs

import com.pulumi.azurenative.containerregistry.inputs.PipelineRunRequestArgs.builder
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 kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The request properties provided for a pipeline run.
 * @property artifacts List of source artifacts to be transferred by the pipeline.
 * Specify an image by repository ('hello-world'). This will use the 'latest' tag.
 * Specify an image by tag ('hello-world:latest').
 * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
 * @property catalogDigest The digest of the tar used to transfer the artifacts.
 * @property pipelineResourceId The resource ID of the pipeline to run.
 * @property source The source properties of the pipeline run.
 * @property target The target properties of the pipeline run.
 */
public data class PipelineRunRequestArgs(
    public val artifacts: Output>? = null,
    public val catalogDigest: Output? = null,
    public val pipelineResourceId: Output? = null,
    public val source: Output? = null,
    public val target: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerregistry.inputs.PipelineRunRequestArgs =
        com.pulumi.azurenative.containerregistry.inputs.PipelineRunRequestArgs.builder()
            .artifacts(artifacts?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .catalogDigest(catalogDigest?.applyValue({ args0 -> args0 }))
            .pipelineResourceId(pipelineResourceId?.applyValue({ args0 -> args0 }))
            .source(source?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .target(target?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var catalogDigest: Output? = null

    private var pipelineResourceId: Output? = null

    private var source: Output? = null

    private var target: Output? = null

    /**
     * @param value List of source artifacts to be transferred by the pipeline.
     * Specify an image by repository ('hello-world'). This will use the 'latest' tag.
     * Specify an image by tag ('hello-world:latest').
     * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
     */
    @JvmName("lbwgameuhnwbwoaq")
    public suspend fun artifacts(`value`: Output>) {
        this.artifacts = value
    }

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

    /**
     * @param values List of source artifacts to be transferred by the pipeline.
     * Specify an image by repository ('hello-world'). This will use the 'latest' tag.
     * Specify an image by tag ('hello-world:latest').
     * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
     */
    @JvmName("xrttsoskkmmsylhv")
    public suspend fun artifacts(values: List>) {
        this.artifacts = Output.all(values)
    }

    /**
     * @param value The digest of the tar used to transfer the artifacts.
     */
    @JvmName("kuejptpqkewhkrll")
    public suspend fun catalogDigest(`value`: Output) {
        this.catalogDigest = value
    }

    /**
     * @param value The resource ID of the pipeline to run.
     */
    @JvmName("jmnibbckagfdtggx")
    public suspend fun pipelineResourceId(`value`: Output) {
        this.pipelineResourceId = value
    }

    /**
     * @param value The source properties of the pipeline run.
     */
    @JvmName("pljebnjlsmkchqmj")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value The target properties of the pipeline run.
     */
    @JvmName("kcutghelnxayihjg")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value List of source artifacts to be transferred by the pipeline.
     * Specify an image by repository ('hello-world'). This will use the 'latest' tag.
     * Specify an image by tag ('hello-world:latest').
     * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
     */
    @JvmName("txhfepyayqvdlvns")
    public suspend fun artifacts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.artifacts = mapped
    }

    /**
     * @param values List of source artifacts to be transferred by the pipeline.
     * Specify an image by repository ('hello-world'). This will use the 'latest' tag.
     * Specify an image by tag ('hello-world:latest').
     * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
     */
    @JvmName("chdbincqvndmaxlm")
    public suspend fun artifacts(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.artifacts = mapped
    }

    /**
     * @param value The digest of the tar used to transfer the artifacts.
     */
    @JvmName("xsjjlmfwsekpouwb")
    public suspend fun catalogDigest(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.catalogDigest = mapped
    }

    /**
     * @param value The resource ID of the pipeline to run.
     */
    @JvmName("owkclvmoejfrefag")
    public suspend fun pipelineResourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.pipelineResourceId = mapped
    }

    /**
     * @param value The source properties of the pipeline run.
     */
    @JvmName("ddefombjyfhodmqg")
    public suspend fun source(`value`: PipelineRunSourcePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param argument The source properties of the pipeline run.
     */
    @JvmName("tsdtftfyeeqjiyjx")
    public suspend fun source(argument: suspend PipelineRunSourcePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineRunSourcePropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.source = mapped
    }

    /**
     * @param value The target properties of the pipeline run.
     */
    @JvmName("rigackxmybfbbsul")
    public suspend fun target(`value`: PipelineRunTargetPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.target = mapped
    }

    /**
     * @param argument The target properties of the pipeline run.
     */
    @JvmName("sxwdymepireuulsq")
    public suspend fun target(argument: suspend PipelineRunTargetPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = PipelineRunTargetPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.target = mapped
    }

    internal fun build(): PipelineRunRequestArgs = PipelineRunRequestArgs(
        artifacts = artifacts,
        catalogDigest = catalogDigest,
        pipelineResourceId = pipelineResourceId,
        source = source,
        target = target,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy