Compute V1 Client - Class AllocationResourceStatus (1.30.0)

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

[Output Only] Contains output only fields.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ reservation_block_count int

The number of reservation blocks associated with this reservation.

↳ reservation_maintenance GroupMaintenanceInfo

Maintenance information for this reservation

↳ specific_sku_allocation AllocationResourceStatusSpecificSKUAllocation

Allocation Properties of this reservation.

getReservationBlockCount

The number of reservation blocks associated with this reservation.

Returns
Type Description
int

hasReservationBlockCount

clearReservationBlockCount

setReservationBlockCount

The number of reservation blocks associated with this reservation.

Parameter
Name Description
var int
Returns
Type Description
$this

getReservationMaintenance

Maintenance information for this reservation

Returns
Type Description
GroupMaintenanceInfo|null

hasReservationMaintenance

clearReservationMaintenance

setReservationMaintenance

Maintenance information for this reservation

Parameter
Name Description
var GroupMaintenanceInfo
Returns
Type Description
$this

getSpecificSkuAllocation

Allocation Properties of this reservation.

Returns
Type Description
AllocationResourceStatusSpecificSKUAllocation|null

hasSpecificSkuAllocation

clearSpecificSkuAllocation

setSpecificSkuAllocation

Allocation Properties of this reservation.

Parameter
Name Description
var AllocationResourceStatusSpecificSKUAllocation
Returns
Type Description
$this