Compute V1 Client - Class ReservationBlock (1.30.0)

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

Represents a reservation block resource.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ count int

[Output Only] The number of resources that are allocated in this reservation block.

↳ creation_timestamp string

[Output Only] Creation timestamp in RFC3339 text format.

↳ id int|string

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

↳ in_use_count int

[Output Only] The number of instances that are currently in use on this reservation block.

↳ kind string

[Output Only] Type of the resource. Always compute#reservationBlock for reservation blocks.

↳ name string

[Output Only] The name of this reservation block generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern a-z?

↳ physical_topology ReservationBlockPhysicalTopology

[Output Only] The physical topology of the reservation block.

↳ reservation_maintenance GroupMaintenanceInfo

[Output Only] Maintenance information for this reservation block.

↳ self_link string

[Output Only] Server-defined fully-qualified URL for this resource.

↳ self_link_with_id string

[Output Only] Server-defined URL for this resource with the resource id.

↳ status string

[Output Only] Status of the reservation block. Check the Status enum for the list of possible values.

↳ zone string

[Output Only] Zone in which the reservation block resides.

getCount

[Output Only] The number of resources that are allocated in this reservation block.

Returns
Type Description
int

hasCount

clearCount

setCount

[Output Only] The number of resources that are allocated in this reservation block.

Parameter
Name Description
var int
Returns
Type Description
$this

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Returns
Type Description
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Parameter
Name Description
var string
Returns
Type Description
$this

getId

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns
Type Description
int|string

hasId

clearId

setId

[Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getInUseCount

[Output Only] The number of instances that are currently in use on this reservation block.

Returns
Type Description
int

hasInUseCount

clearInUseCount

setInUseCount

[Output Only] The number of instances that are currently in use on this reservation block.

Parameter
Name Description
var int
Returns
Type Description
$this

getKind

[Output Only] Type of the resource. Always compute#reservationBlock for reservation blocks.

Returns
Type Description
string

hasKind

clearKind

setKind

[Output Only] Type of the resource. Always compute#reservationBlock for reservation blocks.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

[Output Only] The name of this reservation block generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern a-z?

Returns
Type Description
string

hasName

clearName

setName

[Output Only] The name of this reservation block generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern a-z?

Parameter
Name Description
var string
Returns
Type Description
$this

getPhysicalTopology

[Output Only] The physical topology of the reservation block.

Returns
Type Description
ReservationBlockPhysicalTopology|null

hasPhysicalTopology

clearPhysicalTopology

setPhysicalTopology

[Output Only] The physical topology of the reservation block.

Parameter
Name Description
var ReservationBlockPhysicalTopology
Returns
Type Description
$this

getReservationMaintenance

[Output Only] Maintenance information for this reservation block.

Returns
Type Description
GroupMaintenanceInfo|null

hasReservationMaintenance

clearReservationMaintenance

setReservationMaintenance

[Output Only] Maintenance information for this reservation block.

Parameter
Name Description
var GroupMaintenanceInfo
Returns
Type Description
$this

[Output Only] Server-defined fully-qualified URL for this resource.

Returns
Type Description
string

[Output Only] Server-defined fully-qualified URL for this resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getSelfLinkWithId

[Output Only] Server-defined URL for this resource with the resource id.

Returns
Type Description
string

hasSelfLinkWithId

clearSelfLinkWithId

setSelfLinkWithId

[Output Only] Server-defined URL for this resource with the resource id.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

[Output Only] Status of the reservation block.

Check the Status enum for the list of possible values.

Returns
Type Description
string

hasStatus

clearStatus

setStatus

[Output Only] Status of the reservation block.

Check the Status enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getZone

[Output Only] Zone in which the reservation block resides.

Returns
Type Description
string

hasZone

clearZone

setZone

[Output Only] Zone in which the reservation block resides.

Parameter
Name Description
var string
Returns
Type Description
$this