![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.integrationconnectors.kotlin.inputs.ConnectionAuthConfigOauth2ClientCredentialsArgs.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.integrationconnectors.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigOauth2ClientCredentialsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property clientId Secret version of Password for Authentication.
* @property clientSecret Secret version reference containing the client secret.
*/
public data class ConnectionAuthConfigOauth2ClientCredentialsArgs(
public val clientId: Output,
public val clientSecret: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigOauth2ClientCredentialsArgs =
com.pulumi.gcp.integrationconnectors.inputs.ConnectionAuthConfigOauth2ClientCredentialsArgs.builder()
.clientId(clientId.applyValue({ args0 -> args0 }))
.clientSecret(clientSecret?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ConnectionAuthConfigOauth2ClientCredentialsArgs].
*/
@PulumiTagMarker
public class ConnectionAuthConfigOauth2ClientCredentialsArgsBuilder internal constructor() {
private var clientId: Output? = null
private var clientSecret: Output? =
null
/**
* @param value Secret version of Password for Authentication.
*/
@JvmName("lyhppfwprhkhphle")
public suspend fun clientId(`value`: Output) {
this.clientId = value
}
/**
* @param value Secret version reference containing the client secret.
*/
@JvmName("jqavrwavmxuvhxed")
public suspend fun clientSecret(`value`: Output) {
this.clientSecret = value
}
/**
* @param value Secret version of Password for Authentication.
*/
@JvmName("sgbfiaxitjynqldf")
public suspend fun clientId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.clientId = mapped
}
/**
* @param value Secret version reference containing the client secret.
*/
@JvmName("ighehqrovkivmalx")
public suspend fun clientSecret(`value`: ConnectionAuthConfigOauth2ClientCredentialsClientSecretArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientSecret = mapped
}
/**
* @param argument Secret version reference containing the client secret.
*/
@JvmName("okkhfrfqoeiagncu")
public suspend fun clientSecret(argument: suspend ConnectionAuthConfigOauth2ClientCredentialsClientSecretArgsBuilder.() -> Unit) {
val toBeMapped =
ConnectionAuthConfigOauth2ClientCredentialsClientSecretArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.clientSecret = mapped
}
internal fun build(): ConnectionAuthConfigOauth2ClientCredentialsArgs =
ConnectionAuthConfigOauth2ClientCredentialsArgs(
clientId = clientId ?: throw PulumiNullFieldException("clientId"),
clientSecret = clientSecret,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy