Class: Google::Apis::ContainerV1::ResourceLabels

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 GCP labels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceLabels

Returns a new instance of ResourceLabels.



5686
5687
5688
# File 'lib/google/apis/container_v1/classes.rb', line 5686

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


5684
5685
5686
# File 'lib/google/apis/container_v1/classes.rb', line 5684

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5691
5692
5693
# File 'lib/google/apis/container_v1/classes.rb', line 5691

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