class Google::Apis::DataprocV1beta2::AcceleratorConfig

Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (cloud.google.com/ compute/docs/gpus/)).

Attributes

accelerator_count[RW]

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

accelerator_type_uri[RW]

Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (cloud. google.com/compute/docs/reference/beta/acceleratorTypes)Examples * www. googleapis.com/compute/beta/projects//zones/us-east1-a/ acceleratorTypes/nvidia-tesla-k80 * projects//zones/us-east1-a/ acceleratorTypes/nvidia-tesla-k80 * nvidia-tesla-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (cloud.google.com/ dataproc/docs/concepts/configuring-clusters/auto-zone# using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80. Corresponds to the JSON property `acceleratorTypeUri` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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