All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerGithubPullRequestArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudbuild.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerGithubPullRequestArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 TriggerGithubPullRequestArgs(
    public val branch: Output,
    public val commentControl: Output? = null,
    public val invertRegex: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerGithubPullRequestArgs =
        com.pulumi.gcp.cloudbuild.inputs.TriggerGithubPullRequestArgs.builder()
            .branch(branch.applyValue({ args0 -> args0 }))
            .commentControl(commentControl?.applyValue({ args0 -> args0 }))
            .invertRegex(invertRegex?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TriggerGithubPullRequestArgs].
 */
@PulumiTagMarker
public class TriggerGithubPullRequestArgsBuilder internal constructor() {
    private var branch: Output? = null

    private var commentControl: Output? = null

    private var invertRegex: Output? = null

    /**
     * @param value 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
     */
    @JvmName("ctgeugsifaepcdsm")
    public suspend fun branch(`value`: Output) {
        this.branch = value
    }

    /**
     * @param value 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`.
     */
    @JvmName("peoabhfqeujklugk")
    public suspend fun commentControl(`value`: Output) {
        this.commentControl = value
    }

    /**
     * @param value If true, branches that do NOT match the git_ref will trigger a build.
     */
    @JvmName("scyhwhvjaowvwdax")
    public suspend fun invertRegex(`value`: Output) {
        this.invertRegex = value
    }

    /**
     * @param value 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
     */
    @JvmName("itcttuyeymytdmfq")
    public suspend fun branch(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.branch = mapped
    }

    /**
     * @param value 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`.
     */
    @JvmName("gohstphasiuyvpkv")
    public suspend fun commentControl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.commentControl = mapped
    }

    /**
     * @param value If true, branches that do NOT match the git_ref will trigger a build.
     */
    @JvmName("ybeqpapneahsqdoa")
    public suspend fun invertRegex(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.invertRegex = mapped
    }

    internal fun build(): TriggerGithubPullRequestArgs = TriggerGithubPullRequestArgs(
        branch = branch ?: throw PulumiNullFieldException("branch"),
        commentControl = commentControl,
        invertRegex = invertRegex,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy