Class: Google::Apis::DataprocV1::SparkPlanGraphNodeWrapper

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

Wrapper user to represent either a node or a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SparkPlanGraphNodeWrapper

Returns a new instance of SparkPlanGraphNodeWrapper.



8883
8884
8885
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8883

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

Instance Attribute Details

#clusterGoogle::Apis::DataprocV1::SparkPlanGraphCluster

Represents a tree of spark plan. Corresponds to the JSON property cluster



8876
8877
8878
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8876

def cluster
  @cluster
end

#nodeGoogle::Apis::DataprocV1::SparkPlanGraphNode

Represents a node in the spark plan tree. Corresponds to the JSON property node



8881
8882
8883
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8881

def node
  @node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8888
8889
8890
8891
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8888

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