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

com.pulumi.googlenative.tpu.v2.kotlin.inputs.ServiceAccountArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.tpu.v2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.tpu.v2.inputs.ServiceAccountArgs.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

/**
 * A service account.
 * @property email Email address of the service account. If empty, default Compute service account will be used.
 * @property scope The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
 */
public data class ServiceAccountArgs(
    public val email: Output? = null,
    public val scope: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.tpu.v2.inputs.ServiceAccountArgs =
        com.pulumi.googlenative.tpu.v2.inputs.ServiceAccountArgs.builder()
            .email(email?.applyValue({ args0 -> args0 }))
            .scope(scope?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var scope: Output>? = null

    /**
     * @param value Email address of the service account. If empty, default Compute service account will be used.
     */
    @JvmName("owdxwdcightssmyr")
    public suspend fun email(`value`: Output) {
        this.email = value
    }

    /**
     * @param value The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
     */
    @JvmName("frubssbdbntmbrog")
    public suspend fun scope(`value`: Output>) {
        this.scope = value
    }

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

    /**
     * @param values The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
     */
    @JvmName("cyqnmsdptrrejaxa")
    public suspend fun scope(values: List>) {
        this.scope = Output.all(values)
    }

    /**
     * @param value Email address of the service account. If empty, default Compute service account will be used.
     */
    @JvmName("sjhjuuyauerfivon")
    public suspend fun email(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.email = mapped
    }

    /**
     * @param value The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
     */
    @JvmName("llyrkbxbmpalyqfe")
    public suspend fun scope(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    /**
     * @param values The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
     */
    @JvmName("cvdgrirkjcvcbiiq")
    public suspend fun scope(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    internal fun build(): ServiceAccountArgs = ServiceAccountArgs(
        email = email,
        scope = scope,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy