Class: Google::Apis::ContainerV1beta1::NodeLabels
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::NodeLabels
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
Collection of node-level Kubernetes labels.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Map of node label keys and node label values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeLabels
constructor
A new instance of NodeLabels.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeLabels
Returns a new instance of NodeLabels.
3574 3575 3576 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
Map of node label keys and node label values.
Corresponds to the JSON property labels
3572 3573 3574 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3572 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3579 3580 3581 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3579 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |