Class: Google::Apis::MemcacheV1::NodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1::NodeConfig
- 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
-
#cpu_count ⇒ Fixnum
Required.
-
#memory_size_mb ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeConfig
constructor
A new instance of NodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_count ⇒ Fixnum
Required. Number of cpus per Memcached node.
Corresponds to the JSON property cpuCount
1635 1636 1637 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1635 def cpu_count @cpu_count end |
#memory_size_mb ⇒ Fixnum
Required. Memory size in MiB for each Memcached node.
Corresponds to the JSON property memorySizeMb
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 |