com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerSourceToBuild.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
/**
*
* @property bitbucketServerConfig The full resource name of the bitbucket server config.
* Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{id}.
* @property githubEnterpriseConfig The full resource name of the github enterprise config.
* Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.
* @property ref The branch or tag to use. Must start with "refs/" (required).
* @property repoType The type of the repo, since it may not be explicit from the repo field (e.g from a URL).
* Values can be UNKNOWN, CLOUD_SOURCE_REPOSITORIES, GITHUB, BITBUCKET_SERVER
* Possible values are: `UNKNOWN`, `CLOUD_SOURCE_REPOSITORIES`, `GITHUB`, `BITBUCKET_SERVER`.
* @property repository The qualified resource name of the Repo API repository.
* Either uri or repository can be specified and is required.
* @property uri The URI of the repo.
*/
public data class TriggerSourceToBuild(
public val bitbucketServerConfig: String? = null,
public val githubEnterpriseConfig: String? = null,
public val ref: String,
public val repoType: String,
public val repository: String? = null,
public val uri: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerSourceToBuild): TriggerSourceToBuild = TriggerSourceToBuild(
bitbucketServerConfig = javaType.bitbucketServerConfig().map({ args0 -> args0 }).orElse(null),
githubEnterpriseConfig = javaType.githubEnterpriseConfig().map({ args0 -> args0 }).orElse(null),
ref = javaType.ref(),
repoType = javaType.repoType(),
repository = javaType.repository().map({ args0 -> args0 }).orElse(null),
uri = javaType.uri().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy