Class: Google::Apis::WorkstationsV1beta::BoostConfig
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1beta::BoostConfig
- 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
-
#accelerators ⇒ Array<Google::Apis::WorkstationsV1beta::Accelerator>
Optional.
-
#id ⇒ String
Optional.
-
#machine_type ⇒ String
Optional.
-
#pool_size ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BoostConfig
constructor
A new instance of BoostConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#accelerators ⇒ Array<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 |
#id ⇒ String
Optional. Required. The id to be used for the boost config.
Corresponds to the JSON property id
236 237 238 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 236 def id @id end |
#machine_type ⇒ String
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
245 246 247 |
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 245 def machine_type @machine_type end |
#pool_size ⇒ Fixnum
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
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 |