class Google::Apis::ComputeBeta::AcceleratorConfig

A specification of the type and number of accelerator cards attached to the instance.

Attributes

accelerator_count[RW]

The number of the guest accelerator cards exposed to this instance. Corresponds to the JSON property `acceleratorCount` @return [Fixnum]

accelerator_type[RW]

Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/ acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. Corresponds to the JSON property `acceleratorType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/compute_beta/classes.rb, line 44
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/compute_beta/classes.rb, line 49
def update!(**args)
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
  @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type)
end