Class: Google::Apis::DataprocV1::AcceleratorConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AcceleratorConfig

Returns a new instance of AcceleratorConfig



1637
1638
1639
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1637

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#accelerator_countFixnum

The number of the accelerator cards of this type exposed to this instance. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


1635
1636
1637
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1635

def accelerator_count
  @accelerator_count
end

#accelerator_type_uriString

Full or partial URI of the accelerator type resource to expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/docs/reference/ beta/acceleratorTypes) Corresponds to the JSON property acceleratorTypeUri

Returns:

  • (String)


1630
1631
1632
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1630

def accelerator_type_uri
  @accelerator_type_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1642
1643
1644
1645
# File 'generated/google/apis/dataproc_v1/classes.rb', line 1642

def update!(**args)
  @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri)
  @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
end