Class: Google::Apis::MemcacheV1beta2::MemcacheParameters

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

Overview

The unique ID associated with this set of parameters. Users can use this id to determine if the parameters associated with the instance differ from the parameters associated with the nodes. A discrepancy between parameter ids can inform users that they may need to take action to apply parameters on nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MemcacheParameters

Returns a new instance of MemcacheParameters.



1187
1188
1189
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1187

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

Instance Attribute Details

#idString

Output only. Corresponds to the JSON property id

Returns:

  • (String)


1180
1181
1182
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1180

def id
  @id
end

#paramsHash<String,String>

User defined set of parameters to use in the memcached process. Corresponds to the JSON property params

Returns:

  • (Hash<String,String>)


1185
1186
1187
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1185

def params
  @params
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1192
1193
1194
1195
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 1192

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