Class: Google::Apis::DataformV1::PullGitCommitsRequest

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

Overview

PullGitCommits request message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PullGitCommitsRequest

Returns a new instance of PullGitCommitsRequest.



2743
2744
2745
# File 'lib/google/apis/dataform_v1/classes.rb', line 2743

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

Instance Attribute Details

#authorGoogle::Apis::DataformV1::CommitAuthor

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



2735
2736
2737
# File 'lib/google/apis/dataform_v1/classes.rb', line 2735

def author
  @author
end

#remote_branchString

Optional. The name of the branch in the Git remote from which to pull commits. If left unset, the repository's default branch name will be used. Corresponds to the JSON property remoteBranch

Returns:

  • (String)


2741
2742
2743
# File 'lib/google/apis/dataform_v1/classes.rb', line 2741

def remote_branch
  @remote_branch
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2748
2749
2750
2751
# File 'lib/google/apis/dataform_v1/classes.rb', line 2748

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