TriggerGitFileSource

data class TriggerGitFileSource(val githubEnterpriseConfig: String? = null, val path: String, val repoType: String, val revision: String? = null, val uri: String? = null)

Constructors

Link copied to clipboard
fun TriggerGitFileSource(githubEnterpriseConfig: String? = null, path: String, repoType: String, revision: String? = null, uri: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.

Link copied to clipboard

The path of the file, with the repo root as the root of the path.

Link copied to clipboard

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, and BITBUCKET_SERVER.

Link copied to clipboard
val revision: String? = null

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.

Link copied to clipboard
val uri: String? = null

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.