Class: Google::Apis::MemcacheV1beta2::NodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1beta2::NodeConfig
- 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
-
#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.
1141 1142 1143 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1141 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
1134 1135 1136 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1134 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
1139 1140 1141 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1139 def memory_size_mb @memory_size_mb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1146 1147 1148 1149 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1146 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 |