Google Cloud Batch V1 Client - Class Accelerator (0.2.2)

Reference documentation and code samples for the Google Cloud Batch V1 Client class Accelerator.

Accelerator describes Compute Engine accelerators to be attached to the VM.

Generated from protobuf message google.cloud.batch.v1.AllocationPolicy.Accelerator

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ type
string

The accelerator type. For example, "nvidia-tesla-t4". See gcloud compute accelerator-types list .

↳ count
int|string

The number of accelerators of this type.

↳ install_gpu_drivers
bool

Deprecated: please use instances[0].install_gpu_drivers instead.

getType

The accelerator type. For example, "nvidia-tesla-t4".

See gcloud compute accelerator-types list .

Generated from protobuf field string type = 1;

Returns
Type
Description
string

setType

The accelerator type. For example, "nvidia-tesla-t4".

See gcloud compute accelerator-types list .

Generated from protobuf field string type = 1;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCount

The number of accelerators of this type.

Generated from protobuf field int64 count = 2;

Returns
Type
Description
int|string

setCount

The number of accelerators of this type.

Generated from protobuf field int64 count = 2;

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getInstallGpuDrivers

Deprecated: please use instances[0].install_gpu_drivers instead.

Generated from protobuf field bool install_gpu_drivers = 3 [deprecated = true];

Returns
Type
Description
bool

setInstallGpuDrivers

Deprecated: please use instances[0].install_gpu_drivers instead.

Generated from protobuf field bool install_gpu_drivers = 3 [deprecated = true];

Parameter
Name
Description
var
bool
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: