Cloud Dataproc V1 API - Class Google::Cloud::Dataproc::V1::AcceleratorConfig (v0.10.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

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

#accelerator_count=

def accelerator_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

def accelerator_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/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
    • projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
    • nvidia-tesla-k80

    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-k80.

#accelerator_type_uri=

def accelerator_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/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
    • projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
    • nvidia-tesla-k80

    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-k80.

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/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
    • projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
    • nvidia-tesla-k80

    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-k80.