com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionAuthConfigOauth2AuthCodeFlow.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.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property authUri Auth URL for Authorization Code Flow.
* @property clientId Client ID for user-provided OAuth app.
* @property clientSecret Client secret for user-provided OAuth app.
* @property enablePkce Whether to enable PKCE when the user performs the auth code flow.
* @property scopes Scopes the connection will request when the user performs the auth code flow.
*/
public data class ConnectionAuthConfigOauth2AuthCodeFlow(
public val authUri: String? = null,
public val clientId: String? = null,
public val clientSecret: ConnectionAuthConfigOauth2AuthCodeFlowClientSecret? = null,
public val enablePkce: Boolean? = null,
public val scopes: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.integrationconnectors.outputs.ConnectionAuthConfigOauth2AuthCodeFlow): ConnectionAuthConfigOauth2AuthCodeFlow = ConnectionAuthConfigOauth2AuthCodeFlow(
authUri = javaType.authUri().map({ args0 -> args0 }).orElse(null),
clientId = javaType.clientId().map({ args0 -> args0 }).orElse(null),
clientSecret = javaType.clientSecret().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.integrationconnectors.kotlin.outputs.ConnectionAuthConfigOauth2AuthCodeFlowClientSecret.Companion.toKotlin(args0)
})
}).orElse(null),
enablePkce = javaType.enablePkce().map({ args0 -> args0 }).orElse(null),
scopes = javaType.scopes().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy