com.pulumi.gcp.cloudbuildv2.kotlin.outputs.ConnectionGithubConfig.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.cloudbuildv2.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
*
* @property appInstallationId GitHub App installation id.
* @property authorizerCredential OAuth credential of the account that authorized the Cloud Build GitHub App. It is recommended to use a robot account instead of a human user account. The OAuth token must be tied to the Cloud Build GitHub App.
* Structure is documented below.
*/
public data class ConnectionGithubConfig(
public val appInstallationId: Int? = null,
public val authorizerCredential: ConnectionGithubConfigAuthorizerCredential? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuildv2.outputs.ConnectionGithubConfig): ConnectionGithubConfig = ConnectionGithubConfig(
appInstallationId = javaType.appInstallationId().map({ args0 -> args0 }).orElse(null),
authorizerCredential = javaType.authorizerCredential().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuildv2.kotlin.outputs.ConnectionGithubConfigAuthorizerCredential.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy