com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerTriggerTemplate.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.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @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 TriggerTriggerTemplate(
public val branchName: String? = null,
public val commitSha: String? = null,
public val dir: String? = null,
public val invertRegex: Boolean? = null,
public val projectId: String? = null,
public val repoName: String? = null,
public val tagName: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerTriggerTemplate): TriggerTriggerTemplate = TriggerTriggerTemplate(
branchName = javaType.branchName().map({ args0 -> args0 }).orElse(null),
commitSha = javaType.commitSha().map({ args0 -> args0 }).orElse(null),
dir = javaType.dir().map({ args0 -> args0 }).orElse(null),
invertRegex = javaType.invertRegex().map({ args0 -> args0 }).orElse(null),
projectId = javaType.projectId().map({ args0 -> args0 }).orElse(null),
repoName = javaType.repoName().map({ args0 -> args0 }).orElse(null),
tagName = javaType.tagName().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy