
com.pulumi.googlenative.cloudfunctions.v2alpha.kotlin.inputs.RepoSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.cloudfunctions.v2alpha.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.cloudfunctions.v2alpha.inputs.RepoSourceArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Location of the source in a Google Cloud Source Repository.
* @property branchName Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
* @property commitSha Explicit commit SHA to build.
* @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. eg. helloworld (no leading slash allowed)
* @property invertRegex Only trigger a build if the revision regex does NOT match the revision regex.
* @property project 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.
* @property tagName Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
*/
public data class RepoSourceArgs(
public val branchName: Output? = null,
public val commitSha: Output? = null,
public val dir: Output? = null,
public val invertRegex: Output? = null,
public val project: Output? = null,
public val repoName: Output? = null,
public val tagName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.cloudfunctions.v2alpha.inputs.RepoSourceArgs =
com.pulumi.googlenative.cloudfunctions.v2alpha.inputs.RepoSourceArgs.builder()
.branchName(branchName?.applyValue({ args0 -> args0 }))
.commitSha(commitSha?.applyValue({ args0 -> args0 }))
.dir(dir?.applyValue({ args0 -> args0 }))
.invertRegex(invertRegex?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.repoName(repoName?.applyValue({ args0 -> args0 }))
.tagName(tagName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RepoSourceArgs].
*/
@PulumiTagMarker
public class RepoSourceArgsBuilder internal constructor() {
private var branchName: Output? = null
private var commitSha: Output? = null
private var dir: Output? = null
private var invertRegex: Output? = null
private var project: Output? = null
private var repoName: Output? = null
private var tagName: Output? = null
/**
* @param value Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
*/
@JvmName("apuovchbfxpeqtno")
public suspend fun branchName(`value`: Output) {
this.branchName = value
}
/**
* @param value Explicit commit SHA to build.
*/
@JvmName("qlmfqchmetoquipy")
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. eg. helloworld (no leading slash allowed)
*/
@JvmName("cskiofslbsyeiorv")
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("elitdvjjjsmyqard")
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("mymcrltidkcnpyvj")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Name of the Cloud Source Repository.
*/
@JvmName("ydffnpfwmttrhvrd")
public suspend fun repoName(`value`: Output) {
this.repoName = value
}
/**
* @param value Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
*/
@JvmName("poxiojxrhsqdlman")
public suspend fun tagName(`value`: Output) {
this.tagName = value
}
/**
* @param value Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
*/
@JvmName("lujwkrtbbxpjneim")
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.
*/
@JvmName("mctckgwyymkuijbd")
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. eg. helloworld (no leading slash allowed)
*/
@JvmName("qbvxunhtxkqkbxiq")
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("qhfnpwslerxrstqh")
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("qxfobxmpkxqwhkfp")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value Name of the Cloud Source Repository.
*/
@JvmName("rrqppfwqnmwmipxk")
public suspend fun repoName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repoName = mapped
}
/**
* @param value Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
*/
@JvmName("tghvjklgyfwpqvqf")
public suspend fun tagName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tagName = mapped
}
internal fun build(): RepoSourceArgs = RepoSourceArgs(
branchName = branchName,
commitSha = commitSha,
dir = dir,
invertRegex = invertRegex,
project = project,
repoName = repoName,
tagName = tagName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy