Cloud Build V1 API - Class Google::Cloud::Build::V1::GitFileSource (v0.27.1)

Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::GitFileSource.

GitFileSource describes a file within a (possibly remote) code repository.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#github_enterprise_config

def github_enterprise_config() -> ::String
Returns
  • (::String) — The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.

#github_enterprise_config=

def github_enterprise_config=(value) -> ::String
Parameter
  • value (::String) — The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.
Returns
  • (::String) — The full resource name of the github enterprise config. Format: projects/{project}/locations/{location}/githubEnterpriseConfigs/{id}. projects/{project}/githubEnterpriseConfigs/{id}.

#path

def path() -> ::String
Returns
  • (::String) — The path of the file, with the repo root as the root of the path.

#path=

def path=(value) -> ::String
Parameter
  • value (::String) — The path of the file, with the repo root as the root of the path.
Returns
  • (::String) — The path of the file, with the repo root as the root of the path.

#repo_type

def repo_type() -> ::Google::Cloud::Build::V1::GitFileSource::RepoType
Returns

#repo_type=

def repo_type=(value) -> ::Google::Cloud::Build::V1::GitFileSource::RepoType
Parameter
Returns

#repository

def repository() -> ::String
Returns
  • (::String) — The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

#repository=

def repository=(value) -> ::String
Parameter
  • value (::String) — The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
Returns
  • (::String) — The fully qualified resource name of the Repos API repository. Either URI or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

#revision

def revision() -> ::String
Returns
  • (::String) — 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.

#revision=

def revision=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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

def uri() -> ::String
Returns
  • (::String) — The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.

#uri=

def uri=(value) -> ::String
Parameter
  • value (::String) — The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.
Returns
  • (::String) — The URI of the repo. Either uri or repository can be specified. If unspecified, the repo from which the trigger invocation originated is assumed to be the repo from which to read the specified path.