com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBitbucketServerTriggerConfig.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.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 pullRequests Filter to match changes in pull requests.
* @property pushes Filter to match changes in refs like branches, tags.
* @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 GetTriggerBitbucketServerTriggerConfig(
public val bitbucketServerConfigResource: String,
public val projectKey: String,
public val pullRequests: List,
public val pushes: List,
public val repoSlug: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.GetTriggerBitbucketServerTriggerConfig): GetTriggerBitbucketServerTriggerConfig = GetTriggerBitbucketServerTriggerConfig(
bitbucketServerConfigResource = javaType.bitbucketServerConfigResource(),
projectKey = javaType.projectKey(),
pullRequests = javaType.pullRequests().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBitbucketServerTriggerConfigPullRequest.Companion.toKotlin(args0)
})
}),
pushes = javaType.pushes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudbuild.kotlin.outputs.GetTriggerBitbucketServerTriggerConfigPush.Companion.toKotlin(args0)
})
}),
repoSlug = javaType.repoSlug(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy