Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb
Overview
AcceleratorConfig defines the accelerator cards to attach to the VM.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
The number of guest accelerator cards exposed to each VM.
-
#accelerator_type ⇒ String
The type of accelerator to attach to each VM, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig
constructor
A new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig
Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig.
2270 2271 2272 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2270 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
The number of guest accelerator cards exposed to each VM.
Corresponds to the JSON property acceleratorCount
2262 2263 2264 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2262 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
The type of accelerator to attach to each VM, e.g. "nvidia-tesla-k80" for
nVidia Tesla K80.
Corresponds to the JSON property acceleratorType
2268 2269 2270 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2268 def accelerator_type @accelerator_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2275 2276 2277 2278 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2275 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) end |