Class: Google::Apis::MemcacheV1::NodeConfig

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

Overview

Configuration for a Memcached Node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeConfig

Returns a new instance of NodeConfig.



1642
1643
1644
# File 'lib/google/apis/memcache_v1/classes.rb', line 1642

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)


1635
1636
1637
# File 'lib/google/apis/memcache_v1/classes.rb', line 1635

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)


1640
1641
1642
# File 'lib/google/apis/memcache_v1/classes.rb', line 1640

def memory_size_mb
  @memory_size_mb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1647
1648
1649
1650
# File 'lib/google/apis/memcache_v1/classes.rb', line 1647

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