Compute V1 Client - Class InstanceConsumptionData (1.9.1)

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

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ consumption_info Google\Cloud\Compute\V1\InstanceConsumptionInfo

Resources consumed by the instance.

↳ instance string

Server-defined URL for the instance.

getConsumptionInfo

Resources consumed by the instance.

Returns
TypeDescription
Google\Cloud\Compute\V1\InstanceConsumptionInfo|null

hasConsumptionInfo

clearConsumptionInfo

setConsumptionInfo

Resources consumed by the instance.

Parameter
NameDescription
var Google\Cloud\Compute\V1\InstanceConsumptionInfo
Returns
TypeDescription
$this

getInstance

Server-defined URL for the instance.

Returns
TypeDescription
string

hasInstance

clearInstance

setInstance

Server-defined URL for the instance.

Parameter
NameDescription
var string
Returns
TypeDescription
$this