Class: Google::Apis::WorkstationsV1::BoostConfig
- Inherits:
-
Object
- Object
- Google::Apis::WorkstationsV1::BoostConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workstations_v1/classes.rb,
lib/google/apis/workstations_v1/representations.rb,
lib/google/apis/workstations_v1/representations.rb
Overview
A configuration that workstations can boost to.
Instance Attribute Summary collapse
-
#accelerators ⇒ Array<Google::Apis::WorkstationsV1::Accelerator>
Optional.
-
#boot_disk_size_gb ⇒ Fixnum
Optional.
-
#enable_nested_virtualization ⇒ Boolean
(also: #enable_nested_virtualization?)
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.
282 283 284 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 282 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerators ⇒ Array<Google::Apis::WorkstationsV1::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_v1/classes.rb', line 231 def accelerators @accelerators end |
#boot_disk_size_gb ⇒ Fixnum
Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum
boot disk size is 30
GB. Defaults to 50
GB.
Corresponds to the JSON property bootDiskSizeGb
237 238 239 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 237 def boot_disk_size_gb @boot_disk_size_gb end |
#enable_nested_virtualization ⇒ Boolean Also known as: enable_nested_virtualization?
Optional. Whether to enable nested virtualization on boosted Cloud
Workstations VMs running using this boost configuration. Defaults to false.
Nested virtualization lets you run virtual machine (VM) instances inside your
workstation. Before enabling nested virtualization, consider the following
important considerations. Cloud Workstations instances are subject to the
same restrictions as Compute Engine instances: * **
Organization policy*: projects, folders, or organizations may be restricted
from creating nested VMs if the **Disable VM nested virtualization*
constraint is enforced in the organization policy. For more information, see
the Compute Engine section, Checking whether nested virtualization is allowed. * **
Performance*: nested VMs might experience a 10% or greater decrease in
performance for workloads that are CPU-bound and possibly greater than a 10%
decrease for workloads that are input/output bound. * **Machine Type*: nested
virtualization can only be enabled on boost configurations that specify a
machine_type in the N1 or N2 machine series.
Corresponds to the JSON property enableNestedVirtualization
259 260 261 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 259 def enable_nested_virtualization @enable_nested_virtualization end |
#id ⇒ String
Optional. Required. The id to be used for the boost configuration.
Corresponds to the JSON property id
265 266 267 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 265 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
274 275 276 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 274 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
280 281 282 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 280 def pool_size @pool_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
287 288 289 290 291 292 293 294 |
# File 'lib/google/apis/workstations_v1/classes.rb', line 287 def update!(**args) @accelerators = args[:accelerators] if args.key?(:accelerators) @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb) @enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization) @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 |