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

com.pulumi.gcp.appengine.kotlin.inputs.StandardAppVersionDeploymentArgs.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.StandardAppVersionDeploymentArgs.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 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 StandardAppVersionDeploymentArgs(
    public val files: Output>? = null,
    public val zip: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.appengine.inputs.StandardAppVersionDeploymentArgs =
        com.pulumi.gcp.appengine.inputs.StandardAppVersionDeploymentArgs.builder()
            .files(files?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .zip(zip?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var zip: Output? = null

    /**
     * @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("juosctrgualqhpib")
    public suspend fun files(`value`: Output>) {
        this.files = value
    }

    @JvmName("gndvywcudhvgohar")
    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("mjurlviyqphogntg")
    public suspend fun files(values: List>) {
        this.files = Output.all(values)
    }

    /**
     * @param value Zip File
     * Structure is documented below.
     */
    @JvmName("xcpkyogvhlqyfkma")
    public suspend fun zip(`value`: Output) {
        this.zip = 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("ausdyiugvwhicbdo")
    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("rpnpuxgltdahoucs")
    public suspend fun files(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StandardAppVersionDeploymentFileArgsBuilder().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("yffpwaisrdjnlwef")
    public suspend fun files(vararg argument: suspend StandardAppVersionDeploymentFileArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StandardAppVersionDeploymentFileArgsBuilder().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("dhxrsprkcsulcovs")
    public suspend fun files(argument: suspend StandardAppVersionDeploymentFileArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            StandardAppVersionDeploymentFileArgsBuilder().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("tgrtvytdathhsxdm")
    public suspend fun files(vararg values: StandardAppVersionDeploymentFileArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.files = mapped
    }

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

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

    internal fun build(): StandardAppVersionDeploymentArgs = StandardAppVersionDeploymentArgs(
        files = files,
        zip = zip,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy