Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig.



2368
2369
2370
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2368

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

Instance Attribute Details

#accelerator_countFixnum

The number of guest accelerator cards exposed to each VM. Corresponds to the JSON property acceleratorCount

Returns:

  • (Fixnum)


2360
2361
2362
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2360

def accelerator_count
  @accelerator_count
end

#accelerator_typeString

The type of accelerator to attach to each VM, e.g. "nvidia-tesla-k80" for nVidia Tesla K80. Corresponds to the JSON property acceleratorType

Returns:

  • (String)


2366
2367
2368
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2366

def accelerator_type
  @accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2373
2374
2375
2376
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2373

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