com.pulumi.gcp.cloudfunctionsv2.kotlin.inputs.FunctionBuildConfigSourceRepoSourceArgs.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.cloudfunctionsv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionBuildConfigSourceRepoSourceArgs.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 Regex matching branches to build.
* @property commitSha Regex matching tags to build.
* @property dir Directory, relative to the source root, in which to run the build.
* @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.
* @property tagName Regex matching tags to build.
*/
public data class FunctionBuildConfigSourceRepoSourceArgs(
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.cloudfunctionsv2.inputs.FunctionBuildConfigSourceRepoSourceArgs =
com.pulumi.gcp.cloudfunctionsv2.inputs.FunctionBuildConfigSourceRepoSourceArgs.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 [FunctionBuildConfigSourceRepoSourceArgs].
*/
@PulumiTagMarker
public class FunctionBuildConfigSourceRepoSourceArgsBuilder 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 Regex matching branches to build.
*/
@JvmName("sfnfhildljbteaqx")
public suspend fun branchName(`value`: Output) {
this.branchName = value
}
/**
* @param value Regex matching tags to build.
*/
@JvmName("cjrqegkmoeivldvc")
public suspend fun commitSha(`value`: Output) {
this.commitSha = value
}
/**
* @param value Directory, relative to the source root, in which to run the build.
*/
@JvmName("fpxvbgmauhwpctsd")
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("wwjbgkprqlntgrek")
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("vkcaycqogvwmofvq")
public suspend fun projectId(`value`: Output) {
this.projectId = value
}
/**
* @param value Name of the Cloud Source Repository.
*/
@JvmName("xwijptskjchvpwws")
public suspend fun repoName(`value`: Output) {
this.repoName = value
}
/**
* @param value Regex matching tags to build.
*/
@JvmName("eghkjxldvugcknwg")
public suspend fun tagName(`value`: Output) {
this.tagName = value
}
/**
* @param value Regex matching branches to build.
*/
@JvmName("ndtrmwkvblgbyqai")
public suspend fun branchName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.branchName = mapped
}
/**
* @param value Regex matching tags to build.
*/
@JvmName("sutbfqlkxetpfmym")
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.
*/
@JvmName("wbpuxsmhhygqbrnn")
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("rojwkatpqktiukwu")
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("pbkyjjrcpkvqljvo")
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.
*/
@JvmName("wjjrsncphrfoymwq")
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.
*/
@JvmName("haahawijwluqeshj")
public suspend fun tagName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tagName = mapped
}
internal fun build(): FunctionBuildConfigSourceRepoSourceArgs =
FunctionBuildConfigSourceRepoSourceArgs(
branchName = branchName,
commitSha = commitSha,
dir = dir,
invertRegex = invertRegex,
projectId = projectId,
repoName = repoName,
tagName = tagName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy