Class: Google::Apis::GameservicesV1beta::LabelSelector

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



983
984
985
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 983

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


981
982
983
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 981

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



988
989
990
# File 'generated/google/apis/gameservices_v1beta/classes.rb', line 988

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