Class: Google::Apis::DatabasecenterV1beta::MachineConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatabasecenterV1beta::MachineConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/databasecenter_v1beta/classes.rb,
lib/google/apis/databasecenter_v1beta/representations.rb,
lib/google/apis/databasecenter_v1beta/representations.rb
Overview
MachineConfig describes the configuration of a machine specific to a Database Resource.
Instance Attribute Summary collapse
-
#baseline_slot_count ⇒ Fixnum
Optional.
-
#max_reservation_slot_count ⇒ Fixnum
Optional.
-
#memory_size_bytes ⇒ Fixnum
Memory size in bytes.
-
#shard_count ⇒ Fixnum
Optional.
-
#vcpu_count ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MachineConfig
constructor
A new instance of MachineConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MachineConfig
Returns a new instance of MachineConfig.
1236 1237 1238 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1236 def initialize(**args) update!(**args) end |
Instance Attribute Details
#baseline_slot_count ⇒ Fixnum
Optional. Baseline slots for BigQuery Reservations. Baseline slots are in
increments of 50.
Corresponds to the JSON property baselineSlotCount
1213 1214 1215 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1213 def baseline_slot_count @baseline_slot_count end |
#max_reservation_slot_count ⇒ Fixnum
Optional. Max slots for BigQuery Reservations. Max slots are in increments of
50.
Corresponds to the JSON property maxReservationSlotCount
1219 1220 1221 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1219 def max_reservation_slot_count @max_reservation_slot_count end |
#memory_size_bytes ⇒ Fixnum
Memory size in bytes.
Corresponds to the JSON property memorySizeBytes
1224 1225 1226 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1224 def memory_size_bytes @memory_size_bytes end |
#shard_count ⇒ Fixnum
Optional. The number of Shards (if applicable).
Corresponds to the JSON property shardCount
1229 1230 1231 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1229 def shard_count @shard_count end |
#vcpu_count ⇒ Float
Optional. The number of vCPUs (if applicable).
Corresponds to the JSON property vcpuCount
1234 1235 1236 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1234 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1241 1242 1243 1244 1245 1246 1247 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1241 def update!(**args) @baseline_slot_count = args[:baseline_slot_count] if args.key?(:baseline_slot_count) @max_reservation_slot_count = args[:max_reservation_slot_count] if args.key?(:max_reservation_slot_count) @memory_size_bytes = args[:memory_size_bytes] if args.key?(:memory_size_bytes) @shard_count = args[:shard_count] if args.key?(:shard_count) @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count) end |