Class TriggerGitFileSource


  • public final class TriggerGitFileSource
    extends java.lang.Object
    • Method Detail

      • bitbucketServerConfig

        public java.util.Optional<java.lang.String> bitbucketServerConfig()
        Returns:
        The full resource name of the bitbucket server config. Format: projects/{project}/locations/{location}/bitbucketServerConfigs/{id}.
      • githubEnterpriseConfig

        public java.util.Optional<java.lang.String> githubEnterpriseConfig()
        Returns:
        The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.
      • path

        public java.lang.String path()
        Returns:
        The path of the file, with the repo root as the root of the path.
      • repoType

        public java.lang.String repoType()
        Returns:
        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`.
      • repository

        public java.util.Optional<java.lang.String> repository()
        Returns:
        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.
      • revision

        public java.util.Optional<java.lang.String> revision()
        Returns:
        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.
      • uri

        public java.util.Optional<java.lang.String> uri()
        Returns:
        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.