com.pulumi.gcp.applicationintegration.kotlin.inputs.AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs.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.applicationintegration.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.applicationintegration.inputs.AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property authEndpoint The auth url endpoint to send the auth code request to.
* @property clientId The client's id.
* @property clientSecret The client's secret.
* @property scope A space-delimited list of requested scope permissions.
* @property tokenEndpoint The token url endpoint to send the token request to.
*/
public data class AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs(
public val authEndpoint: Output? = null,
public val clientId: Output? = null,
public val clientSecret: Output? = null,
public val scope: Output? = null,
public val tokenEndpoint: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.applicationintegration.inputs.AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs =
com.pulumi.gcp.applicationintegration.inputs.AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs.builder()
.authEndpoint(authEndpoint?.applyValue({ args0 -> args0 }))
.clientId(clientId?.applyValue({ args0 -> args0 }))
.clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
.scope(scope?.applyValue({ args0 -> args0 }))
.tokenEndpoint(tokenEndpoint?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs].
*/
@PulumiTagMarker
public class AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgsBuilder internal constructor() {
private var authEndpoint: Output? = null
private var clientId: Output? = null
private var clientSecret: Output? = null
private var scope: Output? = null
private var tokenEndpoint: Output? = null
/**
* @param value The auth url endpoint to send the auth code request to.
*/
@JvmName("oixdgvhlwfhbvjmu")
public suspend fun authEndpoint(`value`: Output) {
this.authEndpoint = value
}
/**
* @param value The client's id.
*/
@JvmName("nbarhxuppqvnoihm")
public suspend fun clientId(`value`: Output) {
this.clientId = value
}
/**
* @param value The client's secret.
*/
@JvmName("yhggitamyhtrugha")
public suspend fun clientSecret(`value`: Output) {
this.clientSecret = value
}
/**
* @param value A space-delimited list of requested scope permissions.
*/
@JvmName("dogyvntujxbmdycx")
public suspend fun scope(`value`: Output) {
this.scope = value
}
/**
* @param value The token url endpoint to send the token request to.
*/
@JvmName("cksctoikaflemctl")
public suspend fun tokenEndpoint(`value`: Output) {
this.tokenEndpoint = value
}
/**
* @param value The auth url endpoint to send the auth code request to.
*/
@JvmName("twlixvrvmaknvaux")
public suspend fun authEndpoint(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authEndpoint = mapped
}
/**
* @param value The client's id.
*/
@JvmName("nnviffcsejxpufef")
public suspend fun clientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientId = mapped
}
/**
* @param value The client's secret.
*/
@JvmName("gndbehhlggjftngk")
public suspend fun clientSecret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientSecret = mapped
}
/**
* @param value A space-delimited list of requested scope permissions.
*/
@JvmName("jdmnweciafmbcsde")
public suspend fun scope(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scope = mapped
}
/**
* @param value The token url endpoint to send the token request to.
*/
@JvmName("bnmaaababmnhqhgf")
public suspend fun tokenEndpoint(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tokenEndpoint = mapped
}
internal fun build(): AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs =
AuthConfigDecryptedCredentialOauth2AuthorizationCodeArgs(
authEndpoint = authEndpoint,
clientId = clientId,
clientSecret = clientSecret,
scope = scope,
tokenEndpoint = tokenEndpoint,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy