Class: Google::Apis::ContainerV1beta1::ResourceLabels
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::ResourceLabels
- 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 Resource Manager labels.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Map of node label keys and node label values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceLabels
constructor
A new instance of ResourceLabels.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceLabels
Returns a new instance of ResourceLabels.
8334 8335 8336 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8334 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
8332 8333 8334 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8332 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8339 8340 8341 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8339 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |