Class: Google::Apis::DataprocV1beta2::AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::AcceleratorConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb
Overview
Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine).
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
The number of the accelerator cards of this type exposed to this instance.
-
#accelerator_type_uri ⇒ String
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceleratorConfig
constructor
A new instance of AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AcceleratorConfig
Returns a new instance of AcceleratorConfig
47 48 49 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 47 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
The number of the accelerator cards of this type exposed to this instance.
Corresponds to the JSON property acceleratorCount
33 34 35 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 33 def accelerator_count @accelerator_count end |
#accelerator_type_uri ⇒ String
Full URL, partial URI, or short name of the accelerator type resource to
expose to this instance. See Compute Engine AcceleratorTypes( /compute/docs/
reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/compute/
beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 *
projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 *
nvidia-tesla-k80Auto Zone Exception: If you are using the Cloud Dataproc 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
45 46 47 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 45 def accelerator_type_uri @accelerator_type_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
52 53 54 55 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 52 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 |