Class Google::Cloud::Compute::V1::AcceleratorConfig (v1.1.0)

A specification of the type and number of accelerator cards attached to the instance.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#accelerator_count

def accelerator_count() -> ::Integer
Returns
  • (::Integer) — The number of the guest accelerator cards exposed to this instance.

#accelerator_count=

def accelerator_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The number of the guest accelerator cards exposed to this instance.
Returns
  • (::Integer) — The number of the guest accelerator cards exposed to this instance.

#accelerator_type

def accelerator_type() -> ::String
Returns
  • (::String) — Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.

#accelerator_type=

def accelerator_type=(value) -> ::String
Parameter
  • value (::String) — Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.
Returns
  • (::String) — Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.