Class: Google::Apis::RedisV1beta1::UserLabels

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

Overview

Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserLabels

Returns a new instance of UserLabels.



2525
2526
2527
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2525

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

Instance Attribute Details

#labelsHash<String,String>

Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2523
2524
2525
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2523

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2530
2531
2532
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2530

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