Compute V1 Client - Class ReservationSlot (2.7.0)

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

Represents a reservation slot resource.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ creation_timestamp string

Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.

↳ id int|string

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

↳ kind string

Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.

↳ name string

Output only. [Output Only] The name of the reservation slot.

↳ physical_topology ReservationSlotPhysicalTopology

Output only. [Output Only] The physical topology of the reservation slot.

↳ self_link string

Output only. [Output Only] A server-defined fully-qualified URL for this resource.

↳ self_link_with_id string

Output only. [Output Only] A server-defined URL for this resource with the resource ID.

↳ share_settings ShareSettings

Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource.

↳ state string

Output only. [Output Only] The state of the reservation slot. Check the State enum for the list of possible values.

↳ status ReservationSlotStatus

Output only. [Output Only] The status of the reservation slot.

↳ zone string

Output only. [Output Only] The zone in which the reservation slot resides.

getCreationTimestamp

Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.

Returns
Type Description
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.

Parameter
Name Description
var string
Returns
Type Description
$this

getId

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

Returns
Type Description
int|string

hasId

clearId

setId

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

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

getKind

Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.

Returns
Type Description
string

hasKind

clearKind

setKind

Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Output only. [Output Only] The name of the reservation slot.

Returns
Type Description
string

hasName

clearName

setName

Output only. [Output Only] The name of the reservation slot.

Parameter
Name Description
var string
Returns
Type Description
$this

getPhysicalTopology

Output only. [Output Only] The physical topology of the reservation slot.

Returns
Type Description
ReservationSlotPhysicalTopology|null

hasPhysicalTopology

clearPhysicalTopology

setPhysicalTopology

Output only. [Output Only] The physical topology of the reservation slot.

Parameter
Name Description
var ReservationSlotPhysicalTopology
Returns
Type Description
$this

Output only. [Output Only] A server-defined fully-qualified URL for this resource.

Returns
Type Description
string

Output only. [Output Only] A server-defined fully-qualified URL for this resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getSelfLinkWithId

Output only. [Output Only] A server-defined URL for this resource with the resource ID.

Returns
Type Description
string

hasSelfLinkWithId

clearSelfLinkWithId

setSelfLinkWithId

Output only. [Output Only] A server-defined URL for this resource with the resource ID.

Parameter
Name Description
var string
Returns
Type Description
$this

getShareSettings

Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource.

Returns
Type Description
ShareSettings|null

hasShareSettings

clearShareSettings

setShareSettings

Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource.

Parameter
Name Description
var ShareSettings
Returns
Type Description
$this

getState

Output only. [Output Only] The state of the reservation slot.

Check the State enum for the list of possible values.

Returns
Type Description
string

hasState

clearState

setState

Output only. [Output Only] The state of the reservation slot.

Check the State enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this

getStatus

Output only. [Output Only] The status of the reservation slot.

Returns
Type Description
ReservationSlotStatus|null

hasStatus

clearStatus

setStatus

Output only. [Output Only] The status of the reservation slot.

Parameter
Name Description
var ReservationSlotStatus
Returns
Type Description
$this

getZone

Output only. [Output Only] The zone in which the reservation slot resides.

Returns
Type Description
string

hasZone

clearZone

setZone

Output only. [Output Only] The zone in which the reservation slot resides.

Parameter
Name Description
var string
Returns
Type Description
$this