Class: Google::Apis::DataformV1beta1::BranchMetadata

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

Overview

Contains metadata about a branch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BranchMetadata

Returns a new instance of BranchMetadata.



345
346
347
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 345

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

Instance Attribute Details

#branch_nameString

The branch name. Corresponds to the JSON property branchName

Returns:

  • (String)


338
339
340
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 338

def branch_name
  @branch_name
end

#last_commitGoogle::Apis::DataformV1beta1::CommitLogEntry

Represents a single commit log. Corresponds to the JSON property lastCommit



343
344
345
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 343

def last_commit
  @last_commit
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



350
351
352
353
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 350

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