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

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_countFixnum

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

Returns:

  • (Fixnum)


1134
1135
1136
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 1134

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)


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