Class: Google::Apis::RedisV1::MachineConfiguration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MachineConfiguration

Returns a new instance of MachineConfiguration.



1855
1856
1857
# File 'lib/google/apis/redis_v1/classes.rb', line 1855

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cpu_countFixnum

The number of CPUs. TODO(b/342344482, b/342346271) add proto validations again after bug fix. Corresponds to the JSON property cpuCount

Returns:

  • (Fixnum)


1847
1848
1849
# File 'lib/google/apis/redis_v1/classes.rb', line 1847

def cpu_count
  @cpu_count
end

#memory_size_in_bytesFixnum

Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix. Corresponds to the JSON property memorySizeInBytes

Returns:

  • (Fixnum)


1853
1854
1855
# File 'lib/google/apis/redis_v1/classes.rb', line 1853

def memory_size_in_bytes
  @memory_size_in_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1860
1861
1862
1863
# File 'lib/google/apis/redis_v1/classes.rb', line 1860

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)
end