Class: Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb
Overview
Specifies workflow execution target.Either managed_cluster or cluster_selector is required.
Instance Attribute Summary collapse
-
#cluster_selector ⇒ Google::Apis::DataprocV1beta2::ClusterSelector
A selector that chooses target cluster for jobs based on metadata.
-
#managed_cluster ⇒ Google::Apis::DataprocV1beta2::ManagedCluster
Cluster that is managed by the workflow.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkflowTemplatePlacement
constructor
A new instance of WorkflowTemplatePlacement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WorkflowTemplatePlacement
Returns a new instance of WorkflowTemplatePlacement
2384 2385 2386 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2384 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_selector ⇒ Google::Apis::DataprocV1beta2::ClusterSelector
A selector that chooses target cluster for jobs based on metadata.
Corresponds to the JSON property clusterSelector
2377 2378 2379 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2377 def cluster_selector @cluster_selector end |
#managed_cluster ⇒ Google::Apis::DataprocV1beta2::ManagedCluster
Cluster that is managed by the workflow.
Corresponds to the JSON property managedCluster
2382 2383 2384 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2382 def managed_cluster @managed_cluster end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2389 2390 2391 2392 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 2389 def update!(**args) @cluster_selector = args[:cluster_selector] if args.key?(:cluster_selector) @managed_cluster = args[:managed_cluster] if args.key?(:managed_cluster) end |