Compute V1 Client - Class AllocationSpecificSKUReservation (1.6.1)

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

This reservation type allows to pre allocate specific instance configuration. Next ID: 6

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ assured_count int|string

[Output Only] Indicates how many instances are actually usable currently.

↳ count int|string

Specifies the number of resources that are allocated.

↳ in_use_count int|string

[Output Only] Indicates how many instances are in use.

↳ instance_properties Google\Cloud\Compute\V1\AllocationSpecificSKUAllocationReservedInstanceProperties

The instance properties for the reservation.

getAssuredCount

[Output Only] Indicates how many instances are actually usable currently.

Returns
TypeDescription
int|string

hasAssuredCount

clearAssuredCount

setAssuredCount

[Output Only] Indicates how many instances are actually usable currently.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getCount

Specifies the number of resources that are allocated.

Returns
TypeDescription
int|string

hasCount

clearCount

setCount

Specifies the number of resources that are allocated.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getInUseCount

[Output Only] Indicates how many instances are in use.

Returns
TypeDescription
int|string

hasInUseCount

clearInUseCount

setInUseCount

[Output Only] Indicates how many instances are in use.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getInstanceProperties

The instance properties for the reservation.

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

hasInstanceProperties

clearInstanceProperties

setInstanceProperties

The instance properties for the reservation.

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