com.pulumi.gcp.tpu.kotlin.inputs.V2VmServiceAccountArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.tpu.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.tpu.inputs.V2VmServiceAccountArgs.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 Email address of the service account. If empty, default Compute service account will be used.
* @property scopes 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 V2VmServiceAccountArgs(
public val email: Output? = null,
public val scopes: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.tpu.inputs.V2VmServiceAccountArgs =
com.pulumi.gcp.tpu.inputs.V2VmServiceAccountArgs.builder()
.email(email?.applyValue({ args0 -> args0 }))
.scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [V2VmServiceAccountArgs].
*/
@PulumiTagMarker
public class V2VmServiceAccountArgsBuilder internal constructor() {
private var email: Output? = null
private var scopes: Output>? = null
/**
* @param value Email address of the service account. If empty, default Compute service account will be used.
*/
@JvmName("mstrfgybxyptifpa")
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("ewspndomtdebpftk")
public suspend fun scopes(`value`: Output>) {
this.scopes = value
}
@JvmName("cypobapaijdftlxj")
public suspend fun scopes(vararg values: Output) {
this.scopes = 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("wlahcqnyfgggitjs")
public suspend fun scopes(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy