Class: Google::Apis::MemcacheV1beta2::NodeConfig

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

Overview

Configuration for a Memcached Node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NodeConfig

Returns a new instance of NodeConfig.



1176
1177
1178
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1176

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

Instance Attribute Details

#cpu_countFixnum

Required. Number of cpus per Memcached node. Corresponds to the JSON property cpuCount

Returns:

  • (Fixnum)


1169
1170
1171
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1169

def cpu_count
  @cpu_count
end

#memory_size_mbFixnum

Required. Memory size in MiB for each Memcached node. Corresponds to the JSON property memorySizeMb

Returns:

  • (Fixnum)


1174
1175
1176
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1174

def memory_size_mb
  @memory_size_mb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1181
1182
1183
1184
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1181

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