Class: Google::Apis::GameservicesV1::LabelSelector

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gameservices_v1/classes.rb,
lib/google/apis/gameservices_v1/representations.rb,
lib/google/apis/gameservices_v1/representations.rb

Overview

The label selector, used to group labels on the resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LabelSelector

Returns a new instance of LabelSelector.



1039
1040
1041
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1039

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

Instance Attribute Details

#labelsHash<String,String>

Resource labels for this selector. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1037
1038
1039
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1037

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1044
1045
1046
# File 'lib/google/apis/gameservices_v1/classes.rb', line 1044

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