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.



2863
2864
2865
# File 'lib/google/apis/redis_v1/classes.rb', line 2863

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

Instance Attribute Details

#baseline_slotsFixnum

Optional. Baseline slots for BigQuery Reservations. Baseline slots are in increments of 50. Corresponds to the JSON property baselineSlots

Returns:

  • (Fixnum)


2832
2833
2834
# File 'lib/google/apis/redis_v1/classes.rb', line 2832

def baseline_slots
  @baseline_slots
end

#cpu_countFixnum

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

Returns:

  • (Fixnum)


2838
2839
2840
# File 'lib/google/apis/redis_v1/classes.rb', line 2838

def cpu_count
  @cpu_count
end

#max_reservation_slotsFixnum

Optional. Max slots for BigQuery Reservations. Max slots are in increments of 50. Corresponds to the JSON property maxReservationSlots

Returns:

  • (Fixnum)


2844
2845
2846
# File 'lib/google/apis/redis_v1/classes.rb', line 2844

def max_reservation_slots
  @max_reservation_slots
end

#memory_size_in_bytesFixnum

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

Returns:

  • (Fixnum)


2850
2851
2852
# File 'lib/google/apis/redis_v1/classes.rb', line 2850

def memory_size_in_bytes
  @memory_size_in_bytes
end

#shard_countFixnum

Optional. Number of shards (if applicable). Corresponds to the JSON property shardCount

Returns:

  • (Fixnum)


2855
2856
2857
# File 'lib/google/apis/redis_v1/classes.rb', line 2855

def shard_count
  @shard_count
end

#vcpu_countFloat

Optional. The number of vCPUs. TODO(b/342344482) add proto validations again after bug fix. Corresponds to the JSON property vcpuCount

Returns:

  • (Float)


2861
2862
2863
# File 'lib/google/apis/redis_v1/classes.rb', line 2861

def vcpu_count
  @vcpu_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2868
2869
2870
2871
2872
2873
2874
2875
# File 'lib/google/apis/redis_v1/classes.rb', line 2868

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