Class: Google::Apis::ContainerV1beta1::AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::AcceleratorConfig
- Defined in:
- generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb
Overview
AcceleratorConfig represents a Hardware Accelerator request.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
The number of the accelerator cards exposed to an instance.
-
#accelerator_type ⇒ String
The accelerator type resource name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceleratorConfig
constructor
A new instance of AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AcceleratorConfig
Returns a new instance of AcceleratorConfig
40 41 42 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 40 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
The number of the accelerator cards exposed to an instance.
Corresponds to the JSON property acceleratorCount
32 33 34 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 32 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
The accelerator type resource name. List of supported accelerators
here
Corresponds to the JSON property acceleratorType
38 39 40 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 38 def accelerator_type @accelerator_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
45 46 47 48 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 45 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) end |