Google Cloud Dataproc V1 Client - Class AcceleratorConfig (3.2.2)

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/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_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/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.

Generated from protobuf field string accelerator_type_uri = 1;

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

Generated from protobuf field string accelerator_type_uri = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAcceleratorCount

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

Generated from protobuf field int32 accelerator_count = 2;

Returns
TypeDescription
int

setAcceleratorCount

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

Generated from protobuf field int32 accelerator_count = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this