Class: Google::Apis::ContainerV1beta1::NodeLabels

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeLabels

Returns a new instance of NodeLabels.



4668
4669
4670
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4668

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

Instance Attribute Details

#labelsHash<String,String>

Map of node label keys and node label values. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


4666
4667
4668
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4666

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4673
4674
4675
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4673

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