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.



9333
9334
9335
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9333

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

Instance Attribute Details

#descString

Corresponds to the JSON property desc

Returns:

  • (String)


9306
9307
9308
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9306

def desc
  @desc
end

#metadataHash<String,String>

Optional. Additional metadata for the spark plan graph cluster. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


9311
9312
9313
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9311

def 
  @metadata
end

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

Corresponds to the JSON property metrics



9316
9317
9318
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9316

def metrics
  @metrics
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9321
9322
9323
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9321

def name
  @name
end

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

Corresponds to the JSON property nodes



9326
9327
9328
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9326

def nodes
  @nodes
end

#spark_plan_graph_cluster_idFixnum

Corresponds to the JSON property sparkPlanGraphClusterId

Returns:

  • (Fixnum)


9331
9332
9333
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9331

def spark_plan_graph_cluster_id
  @spark_plan_graph_cluster_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9338
9339
9340
9341
9342
9343
9344
9345
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9338

def update!(**args)
  @desc = args[:desc] if args.key?(:desc)
  @metadata = args[:metadata] if args.key?(:metadata)
  @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