Class: Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainMachineConfiguration
- Inherits:
-
Object
- Object
- Google::Apis::AlloydbV1beta::StorageDatabasecenterPartnerapiV1mainMachineConfiguration
- 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
Disable validation warnings
Instance Attribute Summary collapse
-
#baseline_slots ⇒ Fixnum
Optional.
-
#cpu_count ⇒ Fixnum
Disable validation warnings Corresponds to the JSON property
cpuCount. -
#max_reservation_slots ⇒ Fixnum
Optional.
-
#memory_size_in_bytes ⇒ Fixnum
Disable validation warnings Corresponds to the JSON property
memorySizeInBytes. -
#shard_count ⇒ Fixnum
Optional.
-
#vcpu_count ⇒ Float
Optional.
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.
4943 4944 4945 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4943 def initialize(**args) update!(**args) end |
Instance Attribute Details
#baseline_slots ⇒ Fixnum
Optional. Disable validation warnings
Corresponds to the JSON property baselineSlots
4916 4917 4918 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4916 def baseline_slots @baseline_slots end |
#cpu_count ⇒ Fixnum
Disable validation warnings
Corresponds to the JSON property cpuCount
4921 4922 4923 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4921 def cpu_count @cpu_count end |
#max_reservation_slots ⇒ Fixnum
Optional. Disable validation warnings
Corresponds to the JSON property maxReservationSlots
4926 4927 4928 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4926 def max_reservation_slots @max_reservation_slots end |
#memory_size_in_bytes ⇒ Fixnum
Disable validation warnings
Corresponds to the JSON property memorySizeInBytes
4931 4932 4933 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4931 def memory_size_in_bytes @memory_size_in_bytes end |
#shard_count ⇒ Fixnum
Optional. Disable validation warnings
Corresponds to the JSON property shardCount
4936 4937 4938 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4936 def shard_count @shard_count end |
#vcpu_count ⇒ Float
Optional. Disable validation warnings
Corresponds to the JSON property vcpuCount
4941 4942 4943 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4941 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4948 4949 4950 4951 4952 4953 4954 4955 |
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 4948 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 |