Class: Google::Apis::DataprocV1::SparkPlanGraphCluster

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 tree of spark plan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SparkPlanGraphCluster

Returns a new instance of SparkPlanGraphCluster.



8504
8505
8506
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8504

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

Instance Attribute Details

#descString

Corresponds to the JSON property desc

Returns:

  • (String)


8482
8483
8484
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8482

def desc
  @desc
end

#metricsArray<Google::Apis::DataprocV1::SqlPlanMetric>

Corresponds to the JSON property metrics



8487
8488
8489
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8487

def metrics
  @metrics
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


8492
8493
8494
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8492

def name
  @name
end

#nodesArray<Google::Apis::DataprocV1::SparkPlanGraphNodeWrapper>

Corresponds to the JSON property nodes



8497
8498
8499
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8497

def nodes
  @nodes
end

#spark_plan_graph_cluster_idFixnum

Corresponds to the JSON property sparkPlanGraphClusterId

Returns:

  • (Fixnum)


8502
8503
8504
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8502

def spark_plan_graph_cluster_id
  @spark_plan_graph_cluster_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8509
8510
8511
8512
8513
8514
8515
# File 'lib/google/apis/dataproc_v1/classes.rb', line 8509

def update!(**args)
  @desc = args[:desc] if args.key?(:desc)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
  @nodes = args[:nodes] if args.key?(:nodes)
  @spark_plan_graph_cluster_id = args[:spark_plan_graph_cluster_id] if args.key?(:spark_plan_graph_cluster_id)
end