com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialOauth2ClientCredentials.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.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property clientId The client's ID.
* @property clientSecret The client's secret.
* @property requestType Represent how to pass parameters to fetch access token Possible values: ["REQUEST_TYPE_UNSPECIFIED", "REQUEST_BODY", "QUERY_PARAMETERS", "ENCODED_HEADER"]
* @property scope A space-delimited list of requested scope permissions.
* @property tokenEndpoint The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token.
* @property tokenParams Token parameters for the auth request.
*/
public data class AuthConfigDecryptedCredentialOauth2ClientCredentials(
public val clientId: String? = null,
public val clientSecret: String? = null,
public val requestType: String? = null,
public val scope: String? = null,
public val tokenEndpoint: String? = null,
public val tokenParams: AuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParams? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.applicationintegration.outputs.AuthConfigDecryptedCredentialOauth2ClientCredentials): AuthConfigDecryptedCredentialOauth2ClientCredentials =
AuthConfigDecryptedCredentialOauth2ClientCredentials(
clientId = javaType.clientId().map({ args0 -> args0 }).orElse(null),
clientSecret = javaType.clientSecret().map({ args0 -> args0 }).orElse(null),
requestType = javaType.requestType().map({ args0 -> args0 }).orElse(null),
scope = javaType.scope().map({ args0 -> args0 }).orElse(null),
tokenEndpoint = javaType.tokenEndpoint().map({ args0 -> args0 }).orElse(null),
tokenParams = javaType.tokenParams().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParams.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy