Class: Google::Apis::RedisV1::MachineConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::MachineConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
MachineConfiguration describes the configuration of a machine specific to Database Resource.
Instance Attribute Summary collapse
-
#cpu_count ⇒ Fixnum
The number of CPUs.
-
#memory_size_in_bytes ⇒ Fixnum
Memory size in bytes.
-
#shard_count ⇒ Fixnum
Optional.
-
#vcpu_count ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MachineConfiguration
constructor
A new instance of MachineConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MachineConfiguration
Returns a new instance of MachineConfiguration.
2388 2389 2390 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2388 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_count ⇒ Fixnum
The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482, b/
342346271) add proto validations again after bug fix.
Corresponds to the JSON property cpuCount
2369 2370 2371 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2369 def cpu_count @cpu_count end |
#memory_size_in_bytes ⇒ Fixnum
Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations
again after bug fix.
Corresponds to the JSON property memorySizeInBytes
2375 2376 2377 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2375 def memory_size_in_bytes @memory_size_in_bytes end |
#shard_count ⇒ Fixnum
Optional. Number of shards (if applicable).
Corresponds to the JSON property shardCount
2380 2381 2382 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2380 def shard_count @shard_count end |
#vcpu_count ⇒ Float
Optional. The number of vCPUs. TODO(b/342344482, b/342346271) add proto
validations again after bug fix.
Corresponds to the JSON property vcpuCount
2386 2387 2388 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2386 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2393 2394 2395 2396 2397 2398 |
# File 'lib/google/apis/redis_v1/classes.rb', line 2393 def update!(**args) @cpu_count = args[:cpu_count] if args.key?(:cpu_count) @memory_size_in_bytes = args[:memory_size_in_bytes] if args.key?(:memory_size_in_bytes) @shard_count = args[:shard_count] if args.key?(:shard_count) @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count) end |