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

com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBitbucketServerTriggerConfig.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.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property bitbucketServerConfigResource The Bitbucket server config resource that this trigger config maps to.
 * @property projectKey Key of the project that the repo is in. For example: The key for https://mybitbucket.server/projects/TEST/repos/test-repo is "TEST".
 * @property pullRequest Filter to match changes in pull requests.
 * Structure is documented below.
 * @property push Filter to match changes in refs like branches, tags.
 * Structure is documented below.
 * @property repoSlug Slug of the repository. A repository slug is a URL-friendly version of a repository name, automatically generated by Bitbucket for use in the URL.
 * For example, if the repository name is 'test repo', in the URL it would become 'test-repo' as in https://mybitbucket.server/projects/TEST/repos/test-repo.
 */
public data class TriggerBitbucketServerTriggerConfig(
    public val bitbucketServerConfigResource: String,
    public val projectKey: String,
    public val pullRequest: TriggerBitbucketServerTriggerConfigPullRequest? = null,
    public val push: TriggerBitbucketServerTriggerConfigPush? = null,
    public val repoSlug: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerBitbucketServerTriggerConfig): TriggerBitbucketServerTriggerConfig = TriggerBitbucketServerTriggerConfig(
            bitbucketServerConfigResource = javaType.bitbucketServerConfigResource(),
            projectKey = javaType.projectKey(),
            pullRequest = javaType.pullRequest().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBitbucketServerTriggerConfigPullRequest.Companion.toKotlin(args0)
                })
            }).orElse(null),
            push = javaType.push().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerBitbucketServerTriggerConfigPush.Companion.toKotlin(args0)
                })
            }).orElse(null),
            repoSlug = javaType.repoSlug(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy