Class: Google::Apis::ContainerV1::NodeLabels

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



3396
3397
3398
# File 'lib/google/apis/container_v1/classes.rb', line 3396

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>)


3394
3395
3396
# File 'lib/google/apis/container_v1/classes.rb', line 3394

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3401
3402
3403
# File 'lib/google/apis/container_v1/classes.rb', line 3401

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