Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/remotebuildexecution_v1alpha/classes.rb,
lib/google/apis/remotebuildexecution_v1alpha/representations.rb,
lib/google/apis/remotebuildexecution_v1alpha/representations.rb

Overview

AcceleratorConfig defines the accelerator cards to attach to the VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig.



1730
1731
1732
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1730

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)


1722
1723
1724
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1722

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)


1728
1729
1730
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1728

def accelerator_type
  @accelerator_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1735
1736
1737
1738
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1735

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