![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.cloudbuildv2.kotlin.inputs.ConnectionBitbucketCloudConfigArgs.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.ConnectionBitbucketCloudConfigArgs.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. An access token with the `webhook`, `repository`, `repository:admin` and `pullrequest` scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.
* Structure is documented below.
* @property readAuthorizerCredential Required. An access token with the `repository` access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.
* Structure is documented below.
* @property webhookSecretSecretVersion Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as `projects/*/secrets/*/versions/*`.
* @property workspace The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
* */*/*/
*/
public data class ConnectionBitbucketCloudConfigArgs(
public val authorizerCredential: Output,
public val readAuthorizerCredential: Output,
public val webhookSecretSecretVersion: Output,
public val workspace: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuildv2.inputs.ConnectionBitbucketCloudConfigArgs =
com.pulumi.gcp.cloudbuildv2.inputs.ConnectionBitbucketCloudConfigArgs.builder()
.authorizerCredential(
authorizerCredential.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.readAuthorizerCredential(
readAuthorizerCredential.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.webhookSecretSecretVersion(webhookSecretSecretVersion.applyValue({ args0 -> args0 }))
.workspace(workspace.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ConnectionBitbucketCloudConfigArgs].
*/
@PulumiTagMarker
public class ConnectionBitbucketCloudConfigArgsBuilder internal constructor() {
private var authorizerCredential: Output? =
null
private var readAuthorizerCredential:
Output? = null
private var webhookSecretSecretVersion: Output? = null
private var workspace: Output? = null
/**
* @param value Required. An access token with the `webhook`, `repository`, `repository:admin` and `pullrequest` scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.
* Structure is documented below.
*/
@JvmName("yfstnhhmfhfuethi")
public suspend fun authorizerCredential(`value`: Output) {
this.authorizerCredential = value
}
/**
* @param value Required. An access token with the `repository` access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.
* Structure is documented below.
*/
@JvmName("hmduoecujyexxwma")
public suspend fun readAuthorizerCredential(`value`: Output) {
this.readAuthorizerCredential = value
}
/**
* @param value Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as `projects/*/secrets/*/versions/*`.
* */*/*/
*/
@JvmName("aldqctkphsftuyjo")
public suspend fun webhookSecretSecretVersion(`value`: Output) {
this.webhookSecretSecretVersion = value
}
/**
* @param value The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
*/
@JvmName("spvpwccavnvvxmbk")
public suspend fun workspace(`value`: Output) {
this.workspace = value
}
/**
* @param value Required. An access token with the `webhook`, `repository`, `repository:admin` and `pullrequest` scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.
* Structure is documented below.
*/
@JvmName("luxwdjnqewnbxgrw")
public suspend fun authorizerCredential(`value`: ConnectionBitbucketCloudConfigAuthorizerCredentialArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.authorizerCredential = mapped
}
/**
* @param argument Required. An access token with the `webhook`, `repository`, `repository:admin` and `pullrequest` scope access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate these credentials.
* Structure is documented below.
*/
@JvmName("efotogmxtvmfwfhs")
public suspend fun authorizerCredential(argument: suspend ConnectionBitbucketCloudConfigAuthorizerCredentialArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionBitbucketCloudConfigAuthorizerCredentialArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.authorizerCredential = mapped
}
/**
* @param value Required. An access token with the `repository` access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.
* Structure is documented below.
*/
@JvmName("plahiblfgmjdkssf")
public suspend fun readAuthorizerCredential(`value`: ConnectionBitbucketCloudConfigReadAuthorizerCredentialArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.readAuthorizerCredential = mapped
}
/**
* @param argument Required. An access token with the `repository` access. It can be either a workspace, project or repository access token. It's recommended to use a system account to generate the credentials.
* Structure is documented below.
*/
@JvmName("eqggrwsrjtjcvwtf")
public suspend fun readAuthorizerCredential(argument: suspend ConnectionBitbucketCloudConfigReadAuthorizerCredentialArgsBuilder.() -> Unit) {
val toBeMapped =
ConnectionBitbucketCloudConfigReadAuthorizerCredentialArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.readAuthorizerCredential = mapped
}
/**
* @param value Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as `projects/*/secrets/*/versions/*`.
* */*/*/
*/
@JvmName("lglvffvqwyrigmdw")
public suspend fun webhookSecretSecretVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.webhookSecretSecretVersion = mapped
}
/**
* @param value The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform.
*/
@JvmName("ccwsjowsmaqqeokq")
public suspend fun workspace(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.workspace = mapped
}
internal fun build(): ConnectionBitbucketCloudConfigArgs = ConnectionBitbucketCloudConfigArgs(
authorizerCredential = authorizerCredential ?: throw
PulumiNullFieldException("authorizerCredential"),
readAuthorizerCredential = readAuthorizerCredential ?: throw
PulumiNullFieldException("readAuthorizerCredential"),
webhookSecretSecretVersion = webhookSecretSecretVersion ?: throw
PulumiNullFieldException("webhookSecretSecretVersion"),
workspace = workspace ?: throw PulumiNullFieldException("workspace"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy