Class: Google::Apis::RedisV1beta1::MachineConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1beta1::MachineConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1beta1/classes.rb,
lib/google/apis/redis_v1beta1/representations.rb,
lib/google/apis/redis_v1beta1/representations.rb
Overview
MachineConfiguration describes the configuration of a machine specific to Database Resource.
Instance Attribute Summary collapse
-
#baseline_slots ⇒ Fixnum
Optional.
-
#cpu_count ⇒ Fixnum
The number of CPUs.
-
#max_reservation_slots ⇒ Fixnum
Optional.
-
#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.
2838 2839 2840 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2838 def initialize(**args) update!(**args) end |
Instance Attribute Details
#baseline_slots ⇒ Fixnum
Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
increments of 50.
Corresponds to the JSON property baselineSlots
2807 2808 2809 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2807 def baseline_slots @baseline_slots end |
#cpu_count ⇒ Fixnum
The number of CPUs. Deprecated. Use vcpu_count instead. TODO(b/342344482) add
proto validations again after bug fix.
Corresponds to the JSON property cpuCount
2813 2814 2815 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2813 def cpu_count @cpu_count end |
#max_reservation_slots ⇒ Fixnum
Optional. Max slots for BigQuery Reservations. Max slots are in increments of
50.
Corresponds to the JSON property maxReservationSlots
2819 2820 2821 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2819 def max_reservation_slots @max_reservation_slots end |
#memory_size_in_bytes ⇒ Fixnum
Memory size in bytes. TODO(b/342344482) add proto validations again after bug
fix.
Corresponds to the JSON property memorySizeInBytes
2825 2826 2827 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2825 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
2830 2831 2832 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2830 def shard_count @shard_count end |
#vcpu_count ⇒ Float
Optional. The number of vCPUs. TODO(b/342344482) add proto validations again
after bug fix.
Corresponds to the JSON property vcpuCount
2836 2837 2838 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2836 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2843 2844 2845 2846 2847 2848 2849 2850 |
# File 'lib/google/apis/redis_v1beta1/classes.rb', line 2843 def update!(**args) @baseline_slots = args[:baseline_slots] if args.key?(:baseline_slots) @cpu_count = args[:cpu_count] if args.key?(:cpu_count) @max_reservation_slots = args[:max_reservation_slots] if args.key?(:max_reservation_slots) @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 |