Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class SpecificSKUAllocation.
This reservation type allows to pre allocate specific instance configuration.
Generated from protobuf message google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation
Namespace
Google \ Cloud \ CapacityPlanner \ V1beta \ AllocationMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ instance_properties |
SpecificSKUAllocation\AllocatedInstanceProperties
The instance properties for the reservation. |
↳ count |
int|string
Specifies the number of resources that are allocated. |
↳ used_count |
int|string
Indicates how many instances are in use. |
↳ assured_count |
int|string
Indicates how many instances are actually usable currently. |
getInstanceProperties
The instance properties for the reservation.
| Returns | |
|---|---|
| Type | Description |
SpecificSKUAllocation\AllocatedInstanceProperties|null |
|
hasInstanceProperties
clearInstanceProperties
setInstanceProperties
The instance properties for the reservation.
| Parameter | |
|---|---|
| Name | Description |
var |
SpecificSKUAllocation\AllocatedInstanceProperties
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCount
Specifies the number of resources that are allocated.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setCount
Specifies the number of resources that are allocated.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsedCount
Indicates how many instances are in use.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setUsedCount
Indicates how many instances are in use.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAssuredCount
Indicates how many instances are actually usable currently.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setAssuredCount
Indicates how many instances are actually usable currently.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|