class Google::Apis::DataprocV1beta2::ClusterSelector

A selector that chooses target cluster for jobs based on metadata.

Attributes

cluster_labels[RW]

Required. The cluster labels. Cluster must have all labels to match. Corresponds to the JSON property `clusterLabels` @return [Hash<String,String>]

zone[RW]

Optional. The zone where workflow process executes. This parameter does not affect the selection of the cluster.If unspecified, the zone of the first cluster matching the selector is used. Corresponds to the JSON property `zone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1beta2/classes.rb, line 682
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_v1beta2/classes.rb, line 687
def update!(**args)
  @cluster_labels = args[:cluster_labels] if args.key?(:cluster_labels)
  @zone = args[:zone] if args.key?(:zone)
end