Class: Google::Apis::WorkstationsV1beta::BoostConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workstations_v1beta/classes.rb,
lib/google/apis/workstations_v1beta/representations.rb,
lib/google/apis/workstations_v1beta/representations.rb

Overview

A configuration that workstations can boost to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BoostConfig

Returns a new instance of BoostConfig.



253
254
255
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 253

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

Instance Attribute Details

#acceleratorsArray<Google::Apis::WorkstationsV1beta::Accelerator>

Optional. A list of the type and count of accelerator cards attached to the boost instance. Defaults to none. Corresponds to the JSON property accelerators



231
232
233
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 231

def accelerators
  @accelerators
end

#idString

Optional. Required. The id to be used for the boost config. Corresponds to the JSON property id

Returns:

  • (String)


236
237
238
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 236

def id
  @id
end

#machine_typeString

Optional. The type of machine that boosted VM instances will useā€”for example, e2-standard-4. For more information about machine types that Cloud Workstations supports, see the list of available machine types. Defaults to e2- standard-4. Corresponds to the JSON property machineType

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 245

def machine_type
  @machine_type
end

#pool_sizeFixnum

Optional. The number of boost VMs that the system should keep idle so that workstations can be boosted quickly. Defaults to 0. Corresponds to the JSON property poolSize

Returns:

  • (Fixnum)


251
252
253
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 251

def pool_size
  @pool_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



258
259
260
261
262
263
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 258

def update!(**args)
  @accelerators = args[:accelerators] if args.key?(:accelerators)
  @id = args[:id] if args.key?(:id)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @pool_size = args[:pool_size] if args.key?(:pool_size)
end