com.pulumi.gcp.cloudbuildv2.kotlin.outputs.ConnectionGitlabConfig.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.String
import kotlin.Suppress
/**
*
* @property authorizerCredential Required. A GitLab personal access token with the `api` scope access.
* Structure is documented below.
* @property hostUri The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
* @property readAuthorizerCredential Required. A GitLab personal access token with the minimum `read_api` scope access.
* Structure is documented below.
* @property serverVersion (Output)
* Output only. Version of the GitLab Enterprise server running on the `host_uri`.
* @property serviceDirectoryConfig Configuration for using Service Directory to privately connect to a GitLab Enterprise server. This should only be set if the GitLab Enterprise server is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the GitLab Enterprise server will be made over the public internet.
* Structure is documented below.
* @property sslCa SSL certificate to use for requests to GitLab Enterprise.
* @property webhookSecretSecretVersion Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.
* */*/*/
*/
public data class ConnectionGitlabConfig(
public val authorizerCredential: ConnectionGitlabConfigAuthorizerCredential,
public val hostUri: String? = null,
public val readAuthorizerCredential: ConnectionGitlabConfigReadAuthorizerCredential,
public val serverVersion: String? = null,
public val serviceDirectoryConfig: ConnectionGitlabConfigServiceDirectoryConfig? = null,
public val sslCa: String? = null,
public val webhookSecretSecretVersion: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuildv2.outputs.ConnectionGitlabConfig): ConnectionGitlabConfig = ConnectionGitlabConfig(
authorizerCredential = javaType.authorizerCredential().let({ args0 ->
com.pulumi.gcp.cloudbuildv2.kotlin.outputs.ConnectionGitlabConfigAuthorizerCredential.Companion.toKotlin(args0)
}),
hostUri = javaType.hostUri().map({ args0 -> args0 }).orElse(null),
readAuthorizerCredential = javaType.readAuthorizerCredential().let({ args0 ->
com.pulumi.gcp.cloudbuildv2.kotlin.outputs.ConnectionGitlabConfigReadAuthorizerCredential.Companion.toKotlin(args0)
}),
serverVersion = javaType.serverVersion().map({ args0 -> args0 }).orElse(null),
serviceDirectoryConfig = javaType.serviceDirectoryConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuildv2.kotlin.outputs.ConnectionGitlabConfigServiceDirectoryConfig.Companion.toKotlin(args0)
})
}).orElse(null),
sslCa = javaType.sslCa().map({ args0 -> args0 }).orElse(null),
webhookSecretSecretVersion = javaType.webhookSecretSecretVersion(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy