Class: Google::Apis::DataprocV1::WorkflowTemplatePlacement

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

Overview

Specifies workflow execution target.Either managed_cluster or cluster_selector is required.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WorkflowTemplatePlacement

Returns a new instance of WorkflowTemplatePlacement



2638
2639
2640
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2638

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

Instance Attribute Details

#cluster_selectorGoogle::Apis::DataprocV1::ClusterSelector

A selector that chooses target cluster for jobs based on metadata. Corresponds to the JSON property clusterSelector



2631
2632
2633
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2631

def cluster_selector
  @cluster_selector
end

#managed_clusterGoogle::Apis::DataprocV1::ManagedCluster

Cluster that is managed by the workflow. Corresponds to the JSON property managedCluster



2636
2637
2638
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2636

def managed_cluster
  @managed_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2643
2644
2645
2646
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2643

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