Compute V1 Client - Class Accelerators (1.14.0)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ guest_accelerator_count int

Number of accelerator cards exposed to the guest.

↳ guest_accelerator_type string

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

getGuestAcceleratorCount

Number of accelerator cards exposed to the guest.

Returns
TypeDescription
int

hasGuestAcceleratorCount

clearGuestAcceleratorCount

setGuestAcceleratorCount

Number of accelerator cards exposed to the guest.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getGuestAcceleratorType

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

Returns
TypeDescription
string

hasGuestAcceleratorType

clearGuestAcceleratorType

setGuestAcceleratorType

The accelerator type resource name, not a full URL, e.g. nvidia-tesla-t4.

Parameter
NameDescription
var string
Returns
TypeDescription
$this