Class: Google::Apis::GkehubV1beta::ClusterSelector
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::ClusterSelector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb
Overview
Selector for clusters.
Instance Attribute Summary collapse
-
#label_selector ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterSelector
constructor
A new instance of ClusterSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterSelector
Returns a new instance of ClusterSelector.
399 400 401 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 399 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label_selector ⇒ String
Required. A valid CEL (Common Expression Language) expression which evaluates
resource.labels.
Corresponds to the JSON property labelSelector
397 398 399 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 397 def label_selector @label_selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
404 405 406 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 404 def update!(**args) @label_selector = args[:label_selector] if args.key?(:label_selector) end |