Class: Google::Apis::SecuresourcemanagerV1::Branch
- Inherits:
-
Object
- Object
- Google::Apis::SecuresourcemanagerV1::Branch
- 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
-
#ref ⇒ String
Required.
-
#sha ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Branch
constructor
A new instance of Branch.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#ref ⇒ String
Required. Name of the branch.
Corresponds to the JSON property ref
226 227 228 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 226 def ref @ref end |
#sha ⇒ String
Output only. The commit at the tip of the branch.
Corresponds to the JSON property sha
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 |