class Google::Apis::DataprocV1::WorkflowTemplatePlacement

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

Attributes

cluster_selector[RW]

A selector that chooses target cluster for jobs based on metadata. Corresponds to the JSON property `clusterSelector` @return [Google::Apis::DataprocV1::ClusterSelector]

managed_cluster[RW]

Cluster that is managed by the workflow. Corresponds to the JSON property `managedCluster` @return [Google::Apis::DataprocV1::ManagedCluster]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1/classes.rb, line 3948
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1/classes.rb, line 3953
def update!(**args)
  @cluster_selector = args[:cluster_selector] if args.key?(:cluster_selector)
  @managed_cluster = args[:managed_cluster] if args.key?(:managed_cluster)
end