Compute V1 Client - Class InstancesSetMachineResourcesRequest (1.7.1)

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

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ guest_accelerators array<Google\Cloud\Compute\V1\AcceleratorConfig>

A list of the type and count of accelerator cards attached to the instance.

getGuestAccelerators

A list of the type and count of accelerator cards attached to the instance.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setGuestAccelerators

A list of the type and count of accelerator cards attached to the instance.

Parameter
NameDescription
var array<Google\Cloud\Compute\V1\AcceleratorConfig>
Returns
TypeDescription
$this