Class: Google::Apis::SecuresourcemanagerV1::Branch

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

Overview

Branch represents a branch involved in a pull request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Branch

Returns a new instance of Branch.



233
234
235
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 233

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

Instance Attribute Details

#refString

Required. Name of the branch. Corresponds to the JSON property ref

Returns:

  • (String)


226
227
228
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 226

def ref
  @ref
end

#shaString

Output only. The commit at the tip of the branch. Corresponds to the JSON property sha

Returns:

  • (String)


231
232
233
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 231

def sha
  @sha
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



238
239
240
241
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 238

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