# Compute V1 Client - Class ReservationSlot (2.10.0)

2.10.0 (latest) 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.0.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.1 1.21.0 1.20.0 1.19.0 1.18.1 1.17.0 1.16.2 1.14.0 1.13.0 1.12.1 1.11.1 1.10.1 1.9.1 1.8.3 1.7.1 1.6.1 1.5.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSlotPhysicalTopology|null` |   |

### hasPhysicalTopology

### clearPhysicalTopology

### setPhysicalTopology

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSlotPhysicalTopology` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSelfLink

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSelfLink

### clearSelfLink

### setSelfLink

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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSlotStatus|null` |   |

### hasStatus

### clearStatus

### setStatus

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.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` |   |