Class: Google::Apis::DataformV1beta1::FetchGitAheadBehindResponse
- Inherits:
-
Object
- Object
- Google::Apis::DataformV1beta1::FetchGitAheadBehindResponse
- 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
FetchGitAheadBehind response message.
Instance Attribute Summary collapse
-
#commits_ahead ⇒ Fixnum
The number of commits in the remote branch that are not in the workspace.
-
#commits_behind ⇒ Fixnum
The number of commits in the workspace that are not in the remote branch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FetchGitAheadBehindResponse
constructor
A new instance of FetchGitAheadBehindResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FetchGitAheadBehindResponse
Returns a new instance of FetchGitAheadBehindResponse.
842 843 844 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 842 def initialize(**args) update!(**args) end |
Instance Attribute Details
#commits_ahead ⇒ Fixnum
The number of commits in the remote branch that are not in the workspace.
Corresponds to the JSON property commitsAhead
835 836 837 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 835 def commits_ahead @commits_ahead end |
#commits_behind ⇒ Fixnum
The number of commits in the workspace that are not in the remote branch.
Corresponds to the JSON property commitsBehind
840 841 842 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 840 def commits_behind @commits_behind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
847 848 849 850 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 847 def update!(**args) @commits_ahead = args[:commits_ahead] if args.key?(:commits_ahead) @commits_behind = args[:commits_behind] if args.key?(:commits_behind) end |