com.pulumi.gcp.cloudbuildv2.kotlin.inputs.ConnectionGithubConfigAuthorizerCredentialArgs.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.cloudbuildv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigAuthorizerCredentialArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property oauthTokenSecretVersion A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
* @property username (Output)
* Output only. The username associated to this token.
* */*/*/
*/
public data class ConnectionGithubConfigAuthorizerCredentialArgs(
public val oauthTokenSecretVersion: Output? = null,
public val username: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigAuthorizerCredentialArgs =
com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGithubConfigAuthorizerCredentialArgs.builder()
.oauthTokenSecretVersion(oauthTokenSecretVersion?.applyValue({ args0 -> args0 }))
.username(username?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionGithubConfigAuthorizerCredentialArgs].
*/
@PulumiTagMarker
public class ConnectionGithubConfigAuthorizerCredentialArgsBuilder internal constructor() {
private var oauthTokenSecretVersion: Output? = null
private var username: Output? = null
/**
* @param value A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
* */*/*/
*/
@JvmName("oauqutsdiiwqhksp")
public suspend fun oauthTokenSecretVersion(`value`: Output) {
this.oauthTokenSecretVersion = value
}
/**
* @param value (Output)
* Output only. The username associated to this token.
*/
@JvmName("semxtaqphdnbcjcq")
public suspend fun username(`value`: Output) {
this.username = value
}
/**
* @param value A SecretManager resource containing the OAuth token that authorizes the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`.
* */*/*/
*/
@JvmName("augtodpnikgsqvvc")
public suspend fun oauthTokenSecretVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.oauthTokenSecretVersion = mapped
}
/**
* @param value (Output)
* Output only. The username associated to this token.
*/
@JvmName("sighbflkgqgxjogb")
public suspend fun username(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.username = mapped
}
internal fun build(): ConnectionGithubConfigAuthorizerCredentialArgs =
ConnectionGithubConfigAuthorizerCredentialArgs(
oauthTokenSecretVersion = oauthTokenSecretVersion,
username = username,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy