Class: Google::Apis::DataformV1beta1::CommitWorkspaceChangesRequest

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

CommitWorkspaceChanges request message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CommitWorkspaceChangesRequest

Returns a new instance of CommitWorkspaceChangesRequest.



416
417
418
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 416

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



403
404
405
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 403

def author
  @author
end

#commit_messageString

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

Returns:

  • (String)


408
409
410
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 408

def commit_message
  @commit_message
end

#pathsArray<String>

Optional. Full file paths to commit including filename, rooted at workspace root. If left empty, all files will be committed. Corresponds to the JSON property paths

Returns:

  • (Array<String>)


414
415
416
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 414

def paths
  @paths
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



421
422
423
424
425
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 421

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