Class: Google::Apis::GkehubV1::ClusterSelector

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/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.



407
408
409
# File 'lib/google/apis/gkehub_v1/classes.rb', line 407

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

Instance Attribute Details

#label_selectorString

Required. A valid CEL (Common Expression Language) expression which evaluates resource.labels. Corresponds to the JSON property labelSelector

Returns:

  • (String)


405
406
407
# File 'lib/google/apis/gkehub_v1/classes.rb', line 405

def label_selector
  @label_selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



412
413
414
# File 'lib/google/apis/gkehub_v1/classes.rb', line 412

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