Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class Allocation.
Repesents Allocation which is part of aggregated reservations data response of "QueryReservations".
Generated from protobuf message google.cloud.capacityplanner.v1beta.Allocation
Namespace
Google \ Cloud \ CapacityPlanner \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ specific_allocation
↳ id
int|string
The unique identifier for the resource. This identifier is defined by the server.
↳ create_time
↳ zone
string
Zone in which the reservation resides.
↳ description
string
A description while creating reservation.
↳ allocation
string
The reservation resource name.
↳ owner_project_id
string
↳ status
int
The status of the reservation.
↳ share_settings
↳ auto_delete_time
Google\Protobuf\Timestamp
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
getSpecificAllocation
Reservation for instances with specific machine shapes.
hasSpecificAllocation
setSpecificAllocation
Reservation for instances with specific machine shapes.
$this
getId
The unique identifier for the resource. This identifier is defined by the server.
int|string
setId
The unique identifier for the resource. This identifier is defined by the server.
var
int|string
$this
getCreateTime
The creation timestamp for this allocation.
hasCreateTime
clearCreateTime
setCreateTime
The creation timestamp for this allocation.
$this
getZone
Zone in which the reservation resides.
string
setZone
Zone in which the reservation resides.
var
string
$this
getDescription
A description while creating reservation.
string
setDescription
A description while creating reservation.
var
string
$this
getAllocation
The reservation resource name.
string
setAllocation
The reservation resource name.
var
string
$this
getOwnerProjectId
Generated from protobuf field string owner_project_id = 10;
string
setOwnerProjectId
Generated from protobuf field string owner_project_id = 10;
var
string
$this
getStatus
The status of the reservation.
setStatus
The status of the reservation.
$this
getShareSettings
Specify share-settings to create a shared reservation.
hasShareSettings
clearShareSettings
setShareSettings
Specify share-settings to create a shared reservation.
$this
getAutoDeleteTime
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
hasAutoDeleteTime
clearAutoDeleteTime
setAutoDeleteTime
Absolute time in future when the reservation will be auto-deleted by Compute Engine.
$this
getType
string

