Class: Google::Apis::DataprocV1beta2::WorkflowTemplatePlacement

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkflowTemplatePlacement

Returns a new instance of WorkflowTemplatePlacement.



3751
3752
3753
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3751

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

Instance Attribute Details

#cluster_selectorGoogle::Apis::DataprocV1beta2::ClusterSelector

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



3744
3745
3746
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3744

def cluster_selector
  @cluster_selector
end

#managed_clusterGoogle::Apis::DataprocV1beta2::ManagedCluster

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



3749
3750
3751
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3749

def managed_cluster
  @managed_cluster
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3756
3757
3758
3759
# File 'lib/google/apis/dataproc_v1beta2/classes.rb', line 3756

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