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

com.pulumi.gcp.workbench.kotlin.inputs.InstanceGceSetupServiceAccountArgs.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.workbench.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.workbench.inputs.InstanceGceSetupServiceAccountArgs.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 email Optional. Email address of the service account.
 * @property scopes (Output)
 * Output only. The list of scopes to be made available for this
 * service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform
 */
public data class InstanceGceSetupServiceAccountArgs(
    public val email: Output? = null,
    public val scopes: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.workbench.inputs.InstanceGceSetupServiceAccountArgs =
        com.pulumi.gcp.workbench.inputs.InstanceGceSetupServiceAccountArgs.builder()
            .email(email?.applyValue({ args0 -> args0 }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [InstanceGceSetupServiceAccountArgs].
 */
@PulumiTagMarker
public class InstanceGceSetupServiceAccountArgsBuilder internal constructor() {
    private var email: Output? = null

    private var scopes: Output>? = null

    /**
     * @param value Optional. Email address of the service account.
     */
    @JvmName("liknpqerdmhkhies")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value (Output)
     * Output only. The list of scopes to be made available for this
     * service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform
     */
    @JvmName("csloratrublvpvvo")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

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

    /**
     * @param values (Output)
     * Output only. The list of scopes to be made available for this
     * service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform
     */
    @JvmName("lojxxqttvqaeofmd")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value Optional. Email address of the service account.
     */
    @JvmName("apwnqubbeppsiqcu")
    public suspend fun email(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value (Output)
     * Output only. The list of scopes to be made available for this
     * service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform
     */
    @JvmName("ldysoavuvpqkkemf")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param values (Output)
     * Output only. The list of scopes to be made available for this
     * service account. Set by the CLH to https://www.googleapis.com/auth/cloud-platform
     */
    @JvmName("kaamqwdmvjalpyrj")
    public suspend fun scopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    internal fun build(): InstanceGceSetupServiceAccountArgs = InstanceGceSetupServiceAccountArgs(
        email = email,
        scopes = scopes,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy