Class: Google::Apis::CloudbuildV1::GitRepoSource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v1/classes.rb,
lib/google/apis/cloudbuild_v1/representations.rb,
lib/google/apis/cloudbuild_v1/representations.rb

Overview

GitRepoSource describes a repo and ref of a code repository.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GitRepoSource

Returns a new instance of GitRepoSource.



2039
2040
2041
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2039

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#refString

The branch or tag to use. Must start with "refs/" (required). Corresponds to the JSON property ref

Returns:

  • (String)


2027
2028
2029
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2027

def ref
  @ref
end

#repo_typeString

See RepoType below. Corresponds to the JSON property repoType

Returns:

  • (String)


2032
2033
2034
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2032

def repo_type
  @repo_type
end

#uriString

The URI of the repo (required). Corresponds to the JSON property uri

Returns:

  • (String)


2037
2038
2039
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2037

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2044
2045
2046
2047
2048
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 2044

def update!(**args)
  @ref = args[:ref] if args.key?(:ref)
  @repo_type = args[:repo_type] if args.key?(:repo_type)
  @uri = args[:uri] if args.key?(:uri)
end