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.



3020
3021
3022
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3020

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

Instance Attribute Details

#cpu_countFixnum

The number of CPUs. Corresponds to the JSON property cpuCount

Returns:

  • (Fixnum)


3013
3014
3015
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3013

def cpu_count
  @cpu_count
end

#memory_size_in_bytesFixnum

Memory size in bytes. Corresponds to the JSON property memorySizeInBytes

Returns:

  • (Fixnum)


3018
3019
3020
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3018

def memory_size_in_bytes
  @memory_size_in_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3025
3026
3027
3028
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 3025

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