Compute V1 Client - Class AcceleratorConfig (1.5.0)

Reference documentation and code samples for the Compute V1 Client class AcceleratorConfig.

A specification of the type and number of accelerator cards attached to the instance.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ accelerator_count int

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

↳ accelerator_type string

Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.

getAcceleratorCount

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

Generated from protobuf field optional int32 accelerator_count = 504879675;

Returns
TypeDescription
int

hasAcceleratorCount

clearAcceleratorCount

setAcceleratorCount

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

Generated from protobuf field optional int32 accelerator_count = 504879675;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAcceleratorType

Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.

Generated from protobuf field optional string accelerator_type = 138031246;

Returns
TypeDescription
string

hasAcceleratorType

clearAcceleratorType

setAcceleratorType

Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types.

Generated from protobuf field optional string accelerator_type = 138031246;

Parameter
NameDescription
var string
Returns
TypeDescription
$this