![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.cloudbuildv2.kotlin.inputs.ConnectionGitlabConfigArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGitlabConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @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 ConnectionGitlabConfigArgs(
public val authorizerCredential: Output,
public val hostUri: Output? = null,
public val readAuthorizerCredential: Output,
public val serverVersion: Output? = null,
public val serviceDirectoryConfig: Output? =
null,
public val sslCa: Output? = null,
public val webhookSecretSecretVersion: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGitlabConfigArgs =
com.pulumi.gcp.cloudbuildv2.inputs.ConnectionGitlabConfigArgs.builder()
.authorizerCredential(
authorizerCredential.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.hostUri(hostUri?.applyValue({ args0 -> args0 }))
.readAuthorizerCredential(
readAuthorizerCredential.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.serverVersion(serverVersion?.applyValue({ args0 -> args0 }))
.serviceDirectoryConfig(
serviceDirectoryConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.sslCa(sslCa?.applyValue({ args0 -> args0 }))
.webhookSecretSecretVersion(webhookSecretSecretVersion.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionGitlabConfigArgs].
*/
@PulumiTagMarker
public class ConnectionGitlabConfigArgsBuilder internal constructor() {
private var authorizerCredential: Output? = null
private var hostUri: Output? = null
private var readAuthorizerCredential: Output? =
null
private var serverVersion: Output? = null
private var serviceDirectoryConfig: Output? =
null
private var sslCa: Output? = null
private var webhookSecretSecretVersion: Output? = null
/**
* @param value Required. A GitLab personal access token with the `api` scope access.
* Structure is documented below.
*/
@JvmName("cxhavkulvbuwjmbk")
public suspend fun authorizerCredential(`value`: Output) {
this.authorizerCredential = value
}
/**
* @param value The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
*/
@JvmName("oxwuwfsepeygbvym")
public suspend fun hostUri(`value`: Output) {
this.hostUri = value
}
/**
* @param value Required. A GitLab personal access token with the minimum `read_api` scope access.
* Structure is documented below.
*/
@JvmName("vpkocbnewrwnsncw")
public suspend fun readAuthorizerCredential(`value`: Output) {
this.readAuthorizerCredential = value
}
/**
* @param value (Output)
* Output only. Version of the GitLab Enterprise server running on the `host_uri`.
*/
@JvmName("oarkiqreachynmnc")
public suspend fun serverVersion(`value`: Output) {
this.serverVersion = value
}
/**
* @param value 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.
*/
@JvmName("dshefhdgaerynnfj")
public suspend fun serviceDirectoryConfig(`value`: Output) {
this.serviceDirectoryConfig = value
}
/**
* @param value SSL certificate to use for requests to GitLab Enterprise.
*/
@JvmName("smbxolkwqyvjawha")
public suspend fun sslCa(`value`: Output) {
this.sslCa = value
}
/**
* @param value Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.
* */*/*/
*/
@JvmName("rwesxnninsgrokox")
public suspend fun webhookSecretSecretVersion(`value`: Output) {
this.webhookSecretSecretVersion = value
}
/**
* @param value Required. A GitLab personal access token with the `api` scope access.
* Structure is documented below.
*/
@JvmName("mvfxpeavgwlmmmwq")
public suspend fun authorizerCredential(`value`: ConnectionGitlabConfigAuthorizerCredentialArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authorizerCredential = mapped
}
/**
* @param argument Required. A GitLab personal access token with the `api` scope access.
* Structure is documented below.
*/
@JvmName("ujchepjilsqfaqbi")
public suspend fun authorizerCredential(argument: suspend ConnectionGitlabConfigAuthorizerCredentialArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionGitlabConfigAuthorizerCredentialArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.authorizerCredential = mapped
}
/**
* @param value The URI of the GitLab Enterprise host this connection is for. If not specified, the default value is https://gitlab.com.
*/
@JvmName("ixwvwpojksrdqwqt")
public suspend fun hostUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.hostUri = mapped
}
/**
* @param value Required. A GitLab personal access token with the minimum `read_api` scope access.
* Structure is documented below.
*/
@JvmName("vpcrvspkqcgcyrwl")
public suspend fun readAuthorizerCredential(`value`: ConnectionGitlabConfigReadAuthorizerCredentialArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.readAuthorizerCredential = mapped
}
/**
* @param argument Required. A GitLab personal access token with the minimum `read_api` scope access.
* Structure is documented below.
*/
@JvmName("biyklxnppedniibg")
public suspend fun readAuthorizerCredential(argument: suspend ConnectionGitlabConfigReadAuthorizerCredentialArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionGitlabConfigReadAuthorizerCredentialArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.readAuthorizerCredential = mapped
}
/**
* @param value (Output)
* Output only. Version of the GitLab Enterprise server running on the `host_uri`.
*/
@JvmName("aureivqldbkvckqe")
public suspend fun serverVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serverVersion = mapped
}
/**
* @param value 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.
*/
@JvmName("hmxbigpctfrljoso")
public suspend fun serviceDirectoryConfig(`value`: ConnectionGitlabConfigServiceDirectoryConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceDirectoryConfig = mapped
}
/**
* @param argument 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.
*/
@JvmName("vlurdvrfruxjcgdb")
public suspend fun serviceDirectoryConfig(argument: suspend ConnectionGitlabConfigServiceDirectoryConfigArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionGitlabConfigServiceDirectoryConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.serviceDirectoryConfig = mapped
}
/**
* @param value SSL certificate to use for requests to GitLab Enterprise.
*/
@JvmName("ssajlijugwkeeefn")
public suspend fun sslCa(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sslCa = mapped
}
/**
* @param value Required. Immutable. SecretManager resource containing the webhook secret of a GitLab Enterprise project, formatted as `projects/*/secrets/*/versions/*`.
* */*/*/
*/
@JvmName("penaklxsrurbdlen")
public suspend fun webhookSecretSecretVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.webhookSecretSecretVersion = mapped
}
internal fun build(): ConnectionGitlabConfigArgs = ConnectionGitlabConfigArgs(
authorizerCredential = authorizerCredential ?: throw
PulumiNullFieldException("authorizerCredential"),
hostUri = hostUri,
readAuthorizerCredential = readAuthorizerCredential ?: throw
PulumiNullFieldException("readAuthorizerCredential"),
serverVersion = serverVersion,
serviceDirectoryConfig = serviceDirectoryConfig,
sslCa = sslCa,
webhookSecretSecretVersion = webhookSecretSecretVersion ?: throw
PulumiNullFieldException("webhookSecretSecretVersion"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy