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

com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionDeploymentArgs.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.appengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionDeploymentArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property cloudBuildOptions Options for the build operations performed as a part of the version deployment. Only applicable when creating a version using source code directly.
 * Structure is documented below.
 * @property container The Docker image for the container that runs the version.
 * Structure is documented below.
 * @property files Manifest of the files stored in Google Cloud Storage that are included as part of this version.
 * All files must be readable using the credentials supplied with this call.
 * Structure is documented below.
 * @property zip Zip File
 * Structure is documented below.
 */
public data class FlexibleAppVersionDeploymentArgs(
    public val cloudBuildOptions: Output? = null,
    public val container: Output? = null,
    public val files: Output>? = null,
    public val zip: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.appengine.inputs.FlexibleAppVersionDeploymentArgs =
        com.pulumi.gcp.appengine.inputs.FlexibleAppVersionDeploymentArgs.builder()
            .cloudBuildOptions(cloudBuildOptions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .container(container?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .files(files?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .zip(zip?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [FlexibleAppVersionDeploymentArgs].
 */
@PulumiTagMarker
public class FlexibleAppVersionDeploymentArgsBuilder internal constructor() {
    private var cloudBuildOptions: Output? = null

    private var container: Output? = null

    private var files: Output>? = null

    private var zip: Output? = null

    /**
     * @param value Options for the build operations performed as a part of the version deployment. Only applicable when creating a version using source code directly.
     * Structure is documented below.
     */
    @JvmName("bumtrgcfdydbdqfq")
    public suspend fun cloudBuildOptions(`value`: Output) {
        this.cloudBuildOptions = value
    }

    /**
     * @param value The Docker image for the container that runs the version.
     * Structure is documented below.
     */
    @JvmName("qvpixjenxsabsmmq")
    public suspend fun container(`value`: Output) {
        this.container = value
    }

    /**
     * @param value Manifest of the files stored in Google Cloud Storage that are included as part of this version.
     * All files must be readable using the credentials supplied with this call.
     * Structure is documented below.
     */
    @JvmName("jvrcgahdataymiyo")
    public suspend fun files(`value`: Output>) {
        this.files = value
    }

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

    /**
     * @param values Manifest of the files stored in Google Cloud Storage that are included as part of this version.
     * All files must be readable using the credentials supplied with this call.
     * Structure is documented below.
     */
    @JvmName("jxippmvdhryjbcgj")
    public suspend fun files(values: List>) {
        this.files = Output.all(values)
    }

    /**
     * @param value Zip File
     * Structure is documented below.
     */
    @JvmName("tfsfmiryvygwemwi")
    public suspend fun zip(`value`: Output) {
        this.zip = value
    }

    /**
     * @param value Options for the build operations performed as a part of the version deployment. Only applicable when creating a version using source code directly.
     * Structure is documented below.
     */
    @JvmName("mdduaylnyrvhgsml")
    public suspend fun cloudBuildOptions(`value`: FlexibleAppVersionDeploymentCloudBuildOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudBuildOptions = mapped
    }

    /**
     * @param argument Options for the build operations performed as a part of the version deployment. Only applicable when creating a version using source code directly.
     * Structure is documented below.
     */
    @JvmName("gocwrtucvkxpjurr")
    public suspend fun cloudBuildOptions(argument: suspend FlexibleAppVersionDeploymentCloudBuildOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionDeploymentCloudBuildOptionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cloudBuildOptions = mapped
    }

    /**
     * @param value The Docker image for the container that runs the version.
     * Structure is documented below.
     */
    @JvmName("yjreiwilvlmjkdcs")
    public suspend fun container(`value`: FlexibleAppVersionDeploymentContainerArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.container = mapped
    }

    /**
     * @param argument The Docker image for the container that runs the version.
     * Structure is documented below.
     */
    @JvmName("eomqygagfqcsonyn")
    public suspend fun container(argument: suspend FlexibleAppVersionDeploymentContainerArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionDeploymentContainerArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.container = mapped
    }

    /**
     * @param value Manifest of the files stored in Google Cloud Storage that are included as part of this version.
     * All files must be readable using the credentials supplied with this call.
     * Structure is documented below.
     */
    @JvmName("hrckftnindysysrj")
    public suspend fun files(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.files = mapped
    }

    /**
     * @param argument Manifest of the files stored in Google Cloud Storage that are included as part of this version.
     * All files must be readable using the credentials supplied with this call.
     * Structure is documented below.
     */
    @JvmName("tbagideorswbvobh")
    public suspend fun files(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlexibleAppVersionDeploymentFileArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.files = mapped
    }

    /**
     * @param argument Manifest of the files stored in Google Cloud Storage that are included as part of this version.
     * All files must be readable using the credentials supplied with this call.
     * Structure is documented below.
     */
    @JvmName("uwnskureskpouall")
    public suspend fun files(vararg argument: suspend FlexibleAppVersionDeploymentFileArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlexibleAppVersionDeploymentFileArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.files = mapped
    }

    /**
     * @param argument Manifest of the files stored in Google Cloud Storage that are included as part of this version.
     * All files must be readable using the credentials supplied with this call.
     * Structure is documented below.
     */
    @JvmName("koslenwftvltusto")
    public suspend fun files(argument: suspend FlexibleAppVersionDeploymentFileArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FlexibleAppVersionDeploymentFileArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.files = mapped
    }

    /**
     * @param values Manifest of the files stored in Google Cloud Storage that are included as part of this version.
     * All files must be readable using the credentials supplied with this call.
     * Structure is documented below.
     */
    @JvmName("jqkkvjsdneitvexi")
    public suspend fun files(vararg values: FlexibleAppVersionDeploymentFileArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.files = mapped
    }

    /**
     * @param value Zip File
     * Structure is documented below.
     */
    @JvmName("sjtlhhghqvcncwas")
    public suspend fun zip(`value`: FlexibleAppVersionDeploymentZipArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zip = mapped
    }

    /**
     * @param argument Zip File
     * Structure is documented below.
     */
    @JvmName("tadqmskglwxtxxlm")
    public suspend fun zip(argument: suspend FlexibleAppVersionDeploymentZipArgsBuilder.() -> Unit) {
        val toBeMapped = FlexibleAppVersionDeploymentZipArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.zip = mapped
    }

    internal fun build(): FlexibleAppVersionDeploymentArgs = FlexibleAppVersionDeploymentArgs(
        cloudBuildOptions = cloudBuildOptions,
        container = container,
        files = files,
        zip = zip,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy