Class: Google::Apis::GkehubV1alpha::ClusterSelector

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

Overview

Selector for clusters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterSelector

Returns a new instance of ClusterSelector.



415
416
417
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 415

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

Instance Attribute Details

#label_selectorString

The label selector must be a valid CEL (go/cel) expression which evaluates resource.labels. Corresponds to the JSON property labelSelector

Returns:

  • (String)


413
414
415
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 413

def label_selector
  @label_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



420
421
422
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 420

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