Class: Google::Apis::AlloydbV1::StorageDatabasecenterPartnerapiV1mainMachineConfiguration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1/classes.rb,
lib/google/apis/alloydb_v1/representations.rb,
lib/google/apis/alloydb_v1/representations.rb

Overview

Disable validation warnings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainMachineConfiguration

Returns a new instance of StorageDatabasecenterPartnerapiV1mainMachineConfiguration.



4468
4469
4470
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4468

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

Instance Attribute Details

#baseline_slotsFixnum

Optional. Disable validation warnings Corresponds to the JSON property baselineSlots

Returns:

  • (Fixnum)


4441
4442
4443
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4441

def baseline_slots
  @baseline_slots
end

#cpu_countFixnum

Disable validation warnings Corresponds to the JSON property cpuCount

Returns:

  • (Fixnum)


4446
4447
4448
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4446

def cpu_count
  @cpu_count
end

#max_reservation_slotsFixnum

Optional. Disable validation warnings Corresponds to the JSON property maxReservationSlots

Returns:

  • (Fixnum)


4451
4452
4453
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4451

def max_reservation_slots
  @max_reservation_slots
end

#memory_size_in_bytesFixnum

Disable validation warnings Corresponds to the JSON property memorySizeInBytes

Returns:

  • (Fixnum)


4456
4457
4458
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4456

def memory_size_in_bytes
  @memory_size_in_bytes
end

#shard_countFixnum

Optional. Disable validation warnings Corresponds to the JSON property shardCount

Returns:

  • (Fixnum)


4461
4462
4463
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4461

def shard_count
  @shard_count
end

#vcpu_countFloat

Optional. Disable validation warnings Corresponds to the JSON property vcpuCount

Returns:

  • (Float)


4466
4467
4468
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4466

def vcpu_count
  @vcpu_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4473
4474
4475
4476
4477
4478
4479
4480
# File 'lib/google/apis/alloydb_v1/classes.rb', line 4473

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