Cloud Dataproc V1 API - Class Google::Cloud::Dataproc::V1::AcceleratorConfig (v1.6.0)

Reference documentation and code samples for the Cloud Dataproc V1 API class Google::Cloud::Dataproc::V1::AcceleratorConfig.

Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#accelerator_count

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

#accelerator_count=

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

#accelerator_type_uri

defaccelerator_type_uri()->::String
Returns
  • (::String) — Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes.

    Examples:

    • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4
    • projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4
    • nvidia-tesla-t4

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4.

#accelerator_type_uri=

defaccelerator_type_uri=(value)->::String
Parameter
  • value (::String) — Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes.

    Examples:

    • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4
    • projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4
    • nvidia-tesla-t4

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4.

Returns
  • (::String) — Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes.

    Examples:

    • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4
    • projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-t4
    • nvidia-tesla-t4

    Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-t4.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.