Reference documentation and code samples for the Compute V1 Client class InstanceConsumptionData.
Generated from protobuf message google.cloud.compute.v1.InstanceConsumptionData
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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.
Generated from protobuf field optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;
Returns | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\InstanceConsumptionInfo|null |
hasConsumptionInfo
clearConsumptionInfo
setConsumptionInfo
Resources consumed by the instance.
Generated from protobuf field optional .google.cloud.compute.v1.InstanceConsumptionInfo consumption_info = 146354898;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\InstanceConsumptionInfo
|
Returns | |
---|---|
Type | Description |
$this |
getInstance
Server-defined URL for the instance.
Generated from protobuf field optional string instance = 18257045;
Returns | |
---|---|
Type | Description |
string |
hasInstance
clearInstance
setInstance
Server-defined URL for the instance.
Generated from protobuf field optional string instance = 18257045;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |