Class: Google::Apis::DataprocV1::SparkPlanGraphEdge

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

Overview

Represents a directed edge in the spark plan tree from child to parent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SparkPlanGraphEdge

Returns a new instance of SparkPlanGraphEdge.



9134
9135
9136
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9134

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

Instance Attribute Details

#from_idFixnum

Corresponds to the JSON property fromId

Returns:

  • (Fixnum)


9127
9128
9129
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9127

def from_id
  @from_id
end

#to_idFixnum

Corresponds to the JSON property toId

Returns:

  • (Fixnum)


9132
9133
9134
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9132

def to_id
  @to_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9139
9140
9141
9142
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9139

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