Class: Google::Apis::RedisV1::ResourceFlags

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

Overview

Message type for storing resource flags.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceFlags

Returns a new instance of ResourceFlags.



4030
4031
4032
# File 'lib/google/apis/redis_v1/classes.rb', line 4030

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

Instance Attribute Details

#keyString

Optional. Key of the resource flag. Corresponds to the JSON property key

Returns:

  • (String)


4023
4024
4025
# File 'lib/google/apis/redis_v1/classes.rb', line 4023

def key
  @key
end

#valueString

Optional. Value of the resource flag. Corresponds to the JSON property value

Returns:

  • (String)


4028
4029
4030
# File 'lib/google/apis/redis_v1/classes.rb', line 4028

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4035
4036
4037
4038
# File 'lib/google/apis/redis_v1/classes.rb', line 4035

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