Cloud Build V1 API - Class Google::Cloud::Build::V1::GitRepoSource (v0.27.0)

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

GitRepoSource describes a repo and ref of a 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}.

#ref

def ref() -> ::String
Returns
  • (::String) — The branch or tag to use. Must start with "refs/" (required).

#ref=

def ref=(value) -> ::String
Parameter
  • value (::String) — The branch or tag to use. Must start with "refs/" (required).
Returns
  • (::String) — The branch or tag to use. Must start with "refs/" (required).

#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 connected repository resource name, in the format projects/*/locations/*/connections/*/repositories/*. Either uri or repository can be specified and is required.

#repository=

def repository=(value) -> ::String
Parameter
  • value (::String) — The connected repository resource name, in the format projects/*/locations/*/connections/*/repositories/*. Either uri or repository can be specified and is required.
Returns
  • (::String) — The connected repository resource name, in the format projects/*/locations/*/connections/*/repositories/*. Either uri or repository can be specified and is required.

#uri

def uri() -> ::String
Returns
  • (::String) — The URI of the repo (e.g. https://github.com/user/repo.git). Either uri or repository can be specified and is required.

#uri=

def uri=(value) -> ::String
Parameter
  • value (::String) — The URI of the repo (e.g. https://github.com/user/repo.git). Either uri or repository can be specified and is required.
Returns
  • (::String) — The URI of the repo (e.g. https://github.com/user/repo.git). Either uri or repository can be specified and is required.