com.pulumi.gcp.cloudbuild.kotlin.outputs.TriggerGitFileSource.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 path The path of the file, with the repo root as the root of the path.
* @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 fully qualified resource name of the Repo API repository. The fully qualified resource name of the Repo API repository.
* If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
* @property revision The branch, tag, arbitrary ref, or SHA version of the repo to use when resolving the
* filename (optional). This field respects the same syntax/resolution as described here: https://git-scm.com/docs/gitrevisions
* If unspecified, the revision from which the trigger invocation originated is assumed to be the revision from which to read the specified path.
* @property uri The URI of the repo (optional). If unspecified, the repo from which the trigger
* invocation originated is assumed to be the repo from which to read the specified path.
*/
public data class TriggerGitFileSource(
public val bitbucketServerConfig: String? = null,
public val githubEnterpriseConfig: String? = null,
public val path: String,
public val repoType: String,
public val repository: String? = null,
public val revision: String? = null,
public val uri: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudbuild.outputs.TriggerGitFileSource): TriggerGitFileSource = TriggerGitFileSource(
bitbucketServerConfig = javaType.bitbucketServerConfig().map({ args0 -> args0 }).orElse(null),
githubEnterpriseConfig = javaType.githubEnterpriseConfig().map({ args0 -> args0 }).orElse(null),
path = javaType.path(),
repoType = javaType.repoType(),
repository = javaType.repository().map({ args0 -> args0 }).orElse(null),
revision = javaType.revision().map({ args0 -> args0 }).orElse(null),
uri = javaType.uri().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy