Compute V1 Client - Class InstanceConsumptionData (2.4.0)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ consumption_info InstanceConsumptionInfo

Output only. Resources consumed by the instance.

↳ instance string

Output only. Server-defined URL for the instance.

getConsumptionInfo

Output only. Resources consumed by the instance.

Returns
Type Description
InstanceConsumptionInfo|null

hasConsumptionInfo

clearConsumptionInfo

setConsumptionInfo

Output only. Resources consumed by the instance.

Parameter
Name Description
var InstanceConsumptionInfo
Returns
Type Description
$this

getInstance

Output only. Server-defined URL for the instance.

Returns
Type Description
string

hasInstance

clearInstance

setInstance

Output only. Server-defined URL for the instance.

Parameter
Name Description
var string
Returns
Type Description
$this