com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerTriggerTemplateArgs.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.cloudbuild.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerTriggerTemplateArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property branchName Name of the branch to build. Exactly one a of branch name, tag, or commit SHA must be provided.
* This field is a regular expression.
* @property commitSha Explicit commit SHA to build. Exactly one of a branch name, tag, or commit SHA must be provided.
* @property dir Directory, relative to the source root, in which to run the build.
* This must be a relative path. If a step's dir is specified and
* is an absolute path, this value is ignored for that step's
* execution.
* @property invertRegex Only trigger a build if the revision regex does NOT match the revision regex.
* @property projectId ID of the project that owns the Cloud Source Repository. If
* omitted, the project ID requesting the build is assumed.
* @property repoName Name of the Cloud Source Repository. If omitted, the name "default" is assumed.
* @property tagName Name of the tag to build. Exactly one of a branch name, tag, or commit SHA must be provided.
* This field is a regular expression.
*/
public data class TriggerTriggerTemplateArgs(
public val branchName: Output? = null,
public val commitSha: Output? = null,
public val dir: Output? = null,
public val invertRegex: Output? = null,
public val projectId: Output? = null,
public val repoName: Output? = null,
public val tagName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerTriggerTemplateArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerTriggerTemplateArgs.builder()
.branchName(branchName?.applyValue({ args0 -> args0 }))
.commitSha(commitSha?.applyValue({ args0 -> args0 }))
.dir(dir?.applyValue({ args0 -> args0 }))
.invertRegex(invertRegex?.applyValue({ args0 -> args0 }))
.projectId(projectId?.applyValue({ args0 -> args0 }))
.repoName(repoName?.applyValue({ args0 -> args0 }))
.tagName(tagName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerTriggerTemplateArgs].
*/
@PulumiTagMarker
public class TriggerTriggerTemplateArgsBuilder internal constructor() {
private var branchName: Output? = null
private var commitSha: Output? = null
private var dir: Output? = null
private var invertRegex: Output? = null
private var projectId: Output? = null
private var repoName: Output? = null
private var tagName: Output? = null
/**
* @param value Name of the branch to build. Exactly one a of branch name, tag, or commit SHA must be provided.
* This field is a regular expression.
*/
@JvmName("tjwjqmxvjejsxunq")
public suspend fun branchName(`value`: Output) {
this.branchName = value
}
/**
* @param value Explicit commit SHA to build. Exactly one of a branch name, tag, or commit SHA must be provided.
*/
@JvmName("aikxghguwulicbib")
public suspend fun commitSha(`value`: Output) {
this.commitSha = value
}
/**
* @param value Directory, relative to the source root, in which to run the build.
* This must be a relative path. If a step's dir is specified and
* is an absolute path, this value is ignored for that step's
* execution.
*/
@JvmName("uqfhkfyqeytbesna")
public suspend fun dir(`value`: Output) {
this.dir = value
}
/**
* @param value Only trigger a build if the revision regex does NOT match the revision regex.
*/
@JvmName("itxbekmseamysjmx")
public suspend fun invertRegex(`value`: Output) {
this.invertRegex = value
}
/**
* @param value ID of the project that owns the Cloud Source Repository. If
* omitted, the project ID requesting the build is assumed.
*/
@JvmName("shayhfqrkjbhshux")
public suspend fun projectId(`value`: Output) {
this.projectId = value
}
/**
* @param value Name of the Cloud Source Repository. If omitted, the name "default" is assumed.
*/
@JvmName("tqjkvsntwvqihhra")
public suspend fun repoName(`value`: Output) {
this.repoName = value
}
/**
* @param value Name of the tag to build. Exactly one of a branch name, tag, or commit SHA must be provided.
* This field is a regular expression.
*/
@JvmName("pbhdglmjymnwough")
public suspend fun tagName(`value`: Output) {
this.tagName = value
}
/**
* @param value Name of the branch to build. Exactly one a of branch name, tag, or commit SHA must be provided.
* This field is a regular expression.
*/
@JvmName("wlqhhehcgrfrllha")
public suspend fun branchName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.branchName = mapped
}
/**
* @param value Explicit commit SHA to build. Exactly one of a branch name, tag, or commit SHA must be provided.
*/
@JvmName("bbbqavswcxsmqpub")
public suspend fun commitSha(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.commitSha = mapped
}
/**
* @param value Directory, relative to the source root, in which to run the build.
* This must be a relative path. If a step's dir is specified and
* is an absolute path, this value is ignored for that step's
* execution.
*/
@JvmName("uxlatxsdybwyuhmt")
public suspend fun dir(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dir = mapped
}
/**
* @param value Only trigger a build if the revision regex does NOT match the revision regex.
*/
@JvmName("xiemacveduoapwev")
public suspend fun invertRegex(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.invertRegex = mapped
}
/**
* @param value ID of the project that owns the Cloud Source Repository. If
* omitted, the project ID requesting the build is assumed.
*/
@JvmName("dnryeprenscuofum")
public suspend fun projectId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.projectId = mapped
}
/**
* @param value Name of the Cloud Source Repository. If omitted, the name "default" is assumed.
*/
@JvmName("echayaxxckdmmbxp")
public suspend fun repoName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repoName = mapped
}
/**
* @param value Name of the tag to build. Exactly one of a branch name, tag, or commit SHA must be provided.
* This field is a regular expression.
*/
@JvmName("jksweaminaesihmb")
public suspend fun tagName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tagName = mapped
}
internal fun build(): TriggerTriggerTemplateArgs = TriggerTriggerTemplateArgs(
branchName = branchName,
commitSha = commitSha,
dir = dir,
invertRegex = invertRegex,
projectId = projectId,
repoName = repoName,
tagName = tagName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy