Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainMachineConfiguration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alloydb_v1beta/classes.rb,
lib/google/apis/alloydb_v1beta/representations.rb,
lib/google/apis/alloydb_v1beta/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) ⇒ StorageDatabasecenterPartnerapiV1mainMachineConfiguration

Returns a new instance of StorageDatabasecenterPartnerapiV1mainMachineConfiguration.



3450
3451
3452
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3450

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)


3431
3432
3433
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3431

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)


3437
3438
3439
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3437

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)


3442
3443
3444
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3442

def shard_count
  @shard_count
end

#vcpu_countFloat

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

Returns:

  • (Float)


3448
3449
3450
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3448

def vcpu_count
  @vcpu_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3455
3456
3457
3458
3459
3460
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3455

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