com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredential.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 authToken Auth token credential.
* Structure is documented below.
* @property credentialType Credential type associated with auth configs.
* @property jwt JWT credential.
* Structure is documented below.
* @property oauth2AuthorizationCode OAuth2 authorization code credential.
* Structure is documented below.
* @property oauth2ClientCredentials OAuth2 client credentials.
* Structure is documented below.
* @property oidcToken Google OIDC ID Token.
* Structure is documented below.
* @property serviceAccountCredentials Service account credential.
* Structure is documented below.
* @property usernameAndPassword Username and password credential.
* Structure is documented below.
*/
public data class AuthConfigDecryptedCredential(
public val authToken: AuthConfigDecryptedCredentialAuthToken? = null,
public val credentialType: String,
public val jwt: AuthConfigDecryptedCredentialJwt? = null,
public val oauth2AuthorizationCode: AuthConfigDecryptedCredentialOauth2AuthorizationCode? = null,
public val oauth2ClientCredentials: AuthConfigDecryptedCredentialOauth2ClientCredentials? = null,
public val oidcToken: AuthConfigDecryptedCredentialOidcToken? = null,
public val serviceAccountCredentials: AuthConfigDecryptedCredentialServiceAccountCredentials? =
null,
public val usernameAndPassword: AuthConfigDecryptedCredentialUsernameAndPassword? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.applicationintegration.outputs.AuthConfigDecryptedCredential): AuthConfigDecryptedCredential = AuthConfigDecryptedCredential(
authToken = javaType.authToken().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialAuthToken.Companion.toKotlin(args0)
})
}).orElse(null),
credentialType = javaType.credentialType(),
jwt = javaType.jwt().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialJwt.Companion.toKotlin(args0)
})
}).orElse(null),
oauth2AuthorizationCode = javaType.oauth2AuthorizationCode().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialOauth2AuthorizationCode.Companion.toKotlin(args0)
})
}).orElse(null),
oauth2ClientCredentials = javaType.oauth2ClientCredentials().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialOauth2ClientCredentials.Companion.toKotlin(args0)
})
}).orElse(null),
oidcToken = javaType.oidcToken().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialOidcToken.Companion.toKotlin(args0)
})
}).orElse(null),
serviceAccountCredentials = javaType.serviceAccountCredentials().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialServiceAccountCredentials.Companion.toKotlin(args0)
})
}).orElse(null),
usernameAndPassword = javaType.usernameAndPassword().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.applicationintegration.kotlin.outputs.AuthConfigDecryptedCredentialUsernameAndPassword.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy