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

com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildArtifactsPythonPackageArgs.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.cloudbuild.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsPythonPackageArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property paths Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.
 * @property repository Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
 * Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
 * */
 */
public data class TriggerBuildArtifactsPythonPackageArgs(
    public val paths: Output>? = null,
    public val repository: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsPythonPackageArgs =
        com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsPythonPackageArgs.builder()
            .paths(paths?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .repository(repository?.applyValue({ args0 -> args0 })).build()
}

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

    private var repository: Output? = null

    /**
     * @param value Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.
     * */
     */
    @JvmName("dbbqsccbqwrrpuhh")
    public suspend fun paths(`value`: Output>) {
        this.paths = value
    }

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

    /**
     * @param values Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.
     * */
     */
    @JvmName("gfuwoncrygwrlffx")
    public suspend fun paths(values: List>) {
        this.paths = Output.all(values)
    }

    /**
     * @param value Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
     * Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
     */
    @JvmName("kwgyflshysctonbq")
    public suspend fun repository(`value`: Output) {
        this.repository = value
    }

    /**
     * @param value Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.
     * */
     */
    @JvmName("jlxlgptdinwxtdgq")
    public suspend fun paths(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    /**
     * @param values Path globs used to match files in the build's workspace. For Python/ Twine, this is usually dist/*, and sometimes additionally an .asc file.
     * */
     */
    @JvmName("kwhcxoxtulfmkkhp")
    public suspend fun paths(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    /**
     * @param value Artifact Registry repository, in the form "https://$REGION-python.pkg.dev/$PROJECT/$REPOSITORY"
     * Files in the workspace matching any path pattern will be uploaded to Artifact Registry with this location as a prefix.
     */
    @JvmName("qhclqfutnpqfnril")
    public suspend fun repository(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.repository = mapped
    }

    internal fun build(): TriggerBuildArtifactsPythonPackageArgs =
        TriggerBuildArtifactsPythonPackageArgs(
            paths = paths,
            repository = repository,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy