Class: Google::Apis::DataformV1beta1::CommitMetadata

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

Represents a Dataform Git commit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitMetadata

Returns a new instance of CommitMetadata.



359
360
361
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 359

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

Instance Attribute Details

#authorGoogle::Apis::DataformV1beta1::CommitAuthor

Represents the author of a Git commit. Corresponds to the JSON property author



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

def author
  @author
end

#commit_messageString

Optional. The commit's message. Corresponds to the JSON property commitMessage

Returns:

  • (String)


357
358
359
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 357

def commit_message
  @commit_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



364
365
366
367
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 364

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