Compute V1 Client - Class ResourceStatusReservationConsumptionInfo (2.14.1)

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

Reservation consumption information that the instance is consuming from.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ consumed_reservation string

Output only. [Output Only] The full resource name of the reservation that this instance is consuming from.

↳ consumed_reservation_block string

Output only. [Output Only] The full resource name of the reservation block that this instance is consuming from.

↳ consumed_reservation_sub_block string

Output only. [Output Only] The full resource name of the reservation sub-block that this instance is consuming from.

getConsumedReservation

Output only. [Output Only] The full resource name of the reservation that this instance is consuming from.

Returns
Type Description
string

hasConsumedReservation

clearConsumedReservation

setConsumedReservation

Output only. [Output Only] The full resource name of the reservation that this instance is consuming from.

Parameter
Name Description
var string
Returns
Type Description
$this

getConsumedReservationBlock

Output only. [Output Only] The full resource name of the reservation block that this instance is consuming from.

Returns
Type Description
string

hasConsumedReservationBlock

clearConsumedReservationBlock

setConsumedReservationBlock

Output only. [Output Only] The full resource name of the reservation block that this instance is consuming from.

Parameter
Name Description
var string
Returns
Type Description
$this

getConsumedReservationSubBlock

Output only. [Output Only] The full resource name of the reservation sub-block that this instance is consuming from.

Returns
Type Description
string

hasConsumedReservationSubBlock

clearConsumedReservationSubBlock

setConsumedReservationSubBlock

Output only. [Output Only] The full resource name of the reservation sub-block that this instance is consuming from.

Parameter
Name Description
var string
Returns
Type Description
$this