Class: Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainMachineConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1alpha::StorageDatabasecenterPartnerapiV1mainMachineConfiguration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/alloydb_v1alpha/classes.rb,
lib/google/apis/alloydb_v1alpha/representations.rb,
lib/google/apis/alloydb_v1alpha/representations.rb
Overview
MachineConfiguration describes the configuration of a machine specific to Database Resource.
Instance Attribute Summary collapse
-
#cpu_count ⇒ Fixnum
The number of CPUs.
-
#memory_size_in_bytes ⇒ Fixnum
Memory size in bytes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainMachineConfiguration
constructor
A new instance of StorageDatabasecenterPartnerapiV1mainMachineConfiguration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StorageDatabasecenterPartnerapiV1mainMachineConfiguration
Returns a new instance of StorageDatabasecenterPartnerapiV1mainMachineConfiguration.
3054 3055 3056 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3054 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_count ⇒ Fixnum
The number of CPUs.
Corresponds to the JSON property cpuCount
3047 3048 3049 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3047 def cpu_count @cpu_count end |
#memory_size_in_bytes ⇒ Fixnum
Memory size in bytes.
Corresponds to the JSON property memorySizeInBytes
3052 3053 3054 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3052 def memory_size_in_bytes @memory_size_in_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3059 3060 3061 3062 |
# File 'lib/google/apis/alloydb_v1alpha/classes.rb', line 3059 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 |