com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerRepositoryEventConfigPullRequest.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 branch Regex of branches to match.
* The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https://github.com/google/re2/wiki/Syntax
* @property commentControl Configure builds to run whether a repository owner or collaborator need to comment /gcbrun.
* Possible values are: `COMMENTS_DISABLED`, `COMMENTS_ENABLED`, `COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY`.
* @property invertRegex If true, branches that do NOT match the git_ref will trigger a build.
*/
public data class TriggerRepositoryEventConfigPullRequest(
public val branch: String? = null,
public val commentControl: String? = null,
public val invertRegex: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerRepositoryEventConfigPullRequest): TriggerRepositoryEventConfigPullRequest = TriggerRepositoryEventConfigPullRequest(
branch = javaType.branch().map({ args0 -> args0 }).orElse(null),
commentControl = javaType.commentControl().map({ args0 -> args0 }).orElse(null),
invertRegex = javaType.invertRegex().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy