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
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
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.
↳ source_instance_template
string
Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
getAssuredCount
[Output Only] Indicates how many instances are actually usable currently.
int|string
hasAssuredCount
clearAssuredCount
setAssuredCount
[Output Only] Indicates how many instances are actually usable currently.
var
int|string
$this
getCount
Specifies the number of resources that are allocated.
int|string
hasCount
clearCount
setCount
Specifies the number of resources that are allocated.
var
int|string
$this
getInUseCount
[Output Only] Indicates how many instances are in use.
int|string
hasInUseCount
clearInUseCount
setInUseCount
[Output Only] Indicates how many instances are in use.
var
int|string
$this
getInstanceProperties
The instance properties for the reservation.
hasInstanceProperties
clearInstanceProperties
setInstanceProperties
The instance properties for the reservation.
$this
getSourceInstanceTemplate
Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
string
hasSourceInstanceTemplate
clearSourceInstanceTemplate
setSourceInstanceTemplate
Specifies the instance template to create the reservation. If you use this field, you must exclude the instanceProperties field. This field is optional, and it can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
var
string
$this