Class: Google::Apis::DatabasecenterV1beta::MachineConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_countFixnum

Optional. Baseline slots for BigQuery Reservations. Baseline slots are in increments of 50. Corresponds to the JSON property baselineSlotCount

Returns:

  • (Fixnum)


1213
1214
1215
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1213

def baseline_slot_count
  @baseline_slot_count
end

#max_reservation_slot_countFixnum

Optional. Max slots for BigQuery Reservations. Max slots are in increments of 50. Corresponds to the JSON property maxReservationSlotCount

Returns:

  • (Fixnum)


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_bytesFixnum

Memory size in bytes. Corresponds to the JSON property memorySizeBytes

Returns:

  • (Fixnum)


1224
1225
1226
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1224

def memory_size_bytes
  @memory_size_bytes
end

#shard_countFixnum

Optional. The number of Shards (if applicable). Corresponds to the JSON property shardCount

Returns:

  • (Fixnum)


1229
1230
1231
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 1229

def shard_count
  @shard_count
end

#vcpu_countFloat

Optional. The number of vCPUs (if applicable). Corresponds to the JSON property vcpuCount

Returns:

  • (Float)


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