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.



4075
4076
4077
# File 'lib/google/apis/redis_v1/classes.rb', line 4075

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

Instance Attribute Details

#keyString

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

Returns:

  • (String)


4068
4069
4070
# File 'lib/google/apis/redis_v1/classes.rb', line 4068

def key
  @key
end

#valueString

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

Returns:

  • (String)


4073
4074
4075
# File 'lib/google/apis/redis_v1/classes.rb', line 4073

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4080
4081
4082
4083
# File 'lib/google/apis/redis_v1/classes.rb', line 4080

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