com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBuildSourceRepoSource.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 TriggerBuildSourceRepoSource(
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,
public val substitutions: Map? = null,
public val tagName: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerBuildSourceRepoSource): TriggerBuildSourceRepoSource = TriggerBuildSourceRepoSource(
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(),
substitutions = javaType.substitutions().map({ args0 -> args0.key.to(args0.value) }).toMap(),
tagName = javaType.tagName().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy