com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBuildSourceRepoSource.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
import kotlin.collections.Map
/**
*
* @property branchName Regex matching branches to build. Exactly one a of branch name, tag, or commit SHA must be provided.
* 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. Exactly one a of 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.
* @property substitutions Substitutions to use in a triggered build. Should only be used with triggers.run
* @property tagName Regex matching tags to build. Exactly one a of branch name, tag, or commit SHA must be provided.
* 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 GetTriggerBuildSourceRepoSource(
public val branchName: String,
public val commitSha: String,
public val dir: String,
public val invertRegex: Boolean,
public val projectId: String,
public val repoName: String,
public val substitutions: Map,
public val tagName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.GetTriggerBuildSourceRepoSource): GetTriggerBuildSourceRepoSource = GetTriggerBuildSourceRepoSource(
branchName = javaType.branchName(),
commitSha = javaType.commitSha(),
dir = javaType.dir(),
invertRegex = javaType.invertRegex(),
projectId = javaType.projectId(),
repoName = javaType.repoName(),
substitutions = javaType.substitutions().map({ args0 -> args0.key.to(args0.value) }).toMap(),
tagName = javaType.tagName(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy