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.



3742
3743
3744
# File 'lib/google/apis/redis_v1/classes.rb', line 3742

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


3735
3736
3737
# File 'lib/google/apis/redis_v1/classes.rb', line 3735

def key
  @key
end

#valueString

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

Returns:

  • (String)


3740
3741
3742
# File 'lib/google/apis/redis_v1/classes.rb', line 3740

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3747
3748
3749
3750
# File 'lib/google/apis/redis_v1/classes.rb', line 3747

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