class Google::Apis::CloudbuildV1::GitRepoSource

GitRepoSource describes a repo and ref of a code repository.

Attributes

ref[RW]

The branch or tag to use. Must start with “refs/” (required). Corresponds to the JSON property `ref` @return [String]

repo_type[RW]

See RepoType below. Corresponds to the JSON property `repoType` @return [String]

uri[RW]

The URI of the repo (required). Corresponds to the JSON property `uri` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 1452
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1/classes.rb, line 1457
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