Compute V1 Client - Class AllocationAggregateReservationReservedResourceInfoAccelerator (1.16.2)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ accelerator_count int

Number of accelerators of specified type.

↳ accelerator_type string

Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l"

getAcceleratorCount

Number of accelerators of specified type.

Returns
Type Description
int

hasAcceleratorCount

clearAcceleratorCount

setAcceleratorCount

Number of accelerators of specified type.

Parameter
Name Description
var int
Returns
Type Description
$this

getAcceleratorType

Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l"

Returns
Type Description
string

hasAcceleratorType

clearAcceleratorType

setAcceleratorType

Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l"

Parameter
Name Description
var string
Returns
Type Description
$this