Google Cloud Dataproc V1 Client - Class AcceleratorConfig (3.6.1)

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

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

Generated from protobuf message google.cloud.dataproc.v1.AcceleratorConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ accelerator_type_uri 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-k80 * projects/[project_id]/zones/[zone]/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_count int

The number of the accelerator cards of this type exposed to this instance.

getAcceleratorTypeUri

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-k80
  • projects/[project_id]/zones/[zone]/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
TypeDescription
string

setAcceleratorTypeUri

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-k80
  • projects/[project_id]/zones/[zone]/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.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAcceleratorCount

The number of the accelerator cards of this type exposed to this instance.

Returns
TypeDescription
int

setAcceleratorCount

The number of the accelerator cards of this type exposed to this instance.

Parameter
NameDescription
var int
Returns
TypeDescription
$this