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.



9089
9090
9091
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9089

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

Instance Attribute Details

#descString

Corresponds to the JSON property desc

Returns:

  • (String)


9062
9063
9064
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9062

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>)


9067
9068
9069
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9067

def 
  @metadata
end

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

Corresponds to the JSON property metrics



9072
9073
9074
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9072

def metrics
  @metrics
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9077
9078
9079
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9077

def name
  @name
end

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

Corresponds to the JSON property nodes



9082
9083
9084
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9082

def nodes
  @nodes
end

#spark_plan_graph_cluster_idFixnum

Corresponds to the JSON property sparkPlanGraphClusterId

Returns:

  • (Fixnum)


9087
9088
9089
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9087

def spark_plan_graph_cluster_id
  @spark_plan_graph_cluster_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9094
9095
9096
9097
9098
9099
9100
9101
# File 'lib/google/apis/dataproc_v1/classes.rb', line 9094

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