# Compute V1 Client - Class ReservationSubBlock (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 ReservationSubBlock.

Represents a reservation subBlock resource.

Generated from protobuf message `google.cloud.compute.v1.ReservationSubBlock`

## Namespace

Google \\ Cloud \\ Compute \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ accelerator_topologies_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.AcceleratorTopologiesInfo` Output only. \[Output Only\] Slice info for the reservation subBlock. |
| `↳ count` | `int` Output only. \[Output Only\] The number of hosts that are allocated in this reservation subBlock. |
| `↳ creation_timestamp` | `string` Output only. \[Output Only\] Creation timestamp inRFC3339 text format. |
| `↳ health_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSubBlockHealthInfo` Output only. \[Output Only\] Health information for the reservation subBlock. |
| `↳ id` | `int|string` Output only. \[Output Only\] The unique identifier for the resource. This identifier is defined by the server. |
| `↳ in_use_count` | `int` Output only. \[Output Only\] The number of instances that are currently in use on this reservation subBlock. |
| `↳ in_use_host_count` | `int` Output only. Number of hosts currently in use. If there is one or more Instances running on the host, it is considered in use. |
| `↳ kind` | `string` Output only. \[Output Only\] Type of the resource. Alwayscompute#reservationSubBlock for reservation subBlocks. |
| `↳ name` | `string` Output only. \[Output Only\] The name of this reservation subBlock generated by Google Compute Engine. The name must be 1-63 characters long, and comply with RFC1035 @pattern [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSubBlock?:%5B-a-z0-9%5D%7B0,61%7D%5Ba-z0-9%5D)? |
| `↳ physical_topology` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSubBlockPhysicalTopology` Output only. \[Output Only\] The physical topology of the reservation subBlock. |
| `↳ reservation_sub_block_maintenance` | `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.GroupMaintenanceInfo` Output only. Maintenance information for this reservation subBlock. |
| `↳ self_link` | `string` Output only. \[Output Only\] Server-defined fully-qualified URL for this resource. |
| `↳ self_link_with_id` | `string` Output only. \[Output Only\] Server-defined URL for this resource with the resource id. |
| `↳ status` | `string` Output only. \[Output Only\] Status of the reservation subBlock. Check the Status enum for the list of possible values. |
| `↳ zone` | `string` Output only. \[Output Only\] Zone in which the reservation subBlock resides. |

### getAcceleratorTopologiesInfo

Output only. \[Output Only\] Slice info for the reservation subBlock.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.AcceleratorTopologiesInfo|null` |   |

### hasAcceleratorTopologiesInfo

### clearAcceleratorTopologiesInfo

### setAcceleratorTopologiesInfo

Output only. \[Output Only\] Slice info for the reservation subBlock.

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

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

### getCount

Output only. \[Output Only\] The number of hosts that are allocated in this
reservation subBlock.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasCount

### clearCount

### setCount

Output only. \[Output Only\] The number of hosts that are allocated in this
reservation subBlock.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getCreationTimestamp

Output only. \[Output Only\] Creation timestamp inRFC3339 text format.

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

### hasCreationTimestamp

### clearCreationTimestamp

### setCreationTimestamp

Output only. \[Output Only\] Creation timestamp inRFC3339 text format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getHealthInfo

Output only. \[Output Only\] Health information for the reservation subBlock.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSubBlockHealthInfo|null` |   |

### hasHealthInfo

### clearHealthInfo

### setHealthInfo

Output only. \[Output Only\] Health information for the reservation subBlock.

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

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

### getId

Output only. \[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. \[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. \[Output Only\] The number of instances that are currently in use on this
reservation subBlock.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasInUseCount

### clearInUseCount

### setInUseCount

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getInUseHostCount

Output only. Number of hosts currently in use. If there is one or more Instances running
on the host, it is considered in use.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasInUseHostCount

### clearInUseHostCount

### setInUseHostCount

Output only. Number of hosts currently in use. If there is one or more Instances running
on the host, it is considered in use.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

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

### getKind

Output only. \[Output Only\] Type of the resource. Alwayscompute#reservationSubBlock for reservation subBlocks.

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

### hasKind

### clearKind

### setKind

Output only. \[Output Only\] Type of the resource. Alwayscompute#reservationSubBlock for reservation subBlocks.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getName

Output only. \[Output Only\] The name of this reservation subBlock generated by Google
Compute Engine. The name must be 1-63 characters long, and comply with
RFC1035 @pattern [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSubBlock?:%5B-a-z0-9%5D%7B0,61%7D%5Ba-z0-9%5D)?

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

### hasName

### clearName

### setName

Output only. \[Output Only\] The name of this reservation subBlock generated by Google
Compute Engine. The name must be 1-63 characters long, and comply with
RFC1035 @pattern [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSubBlock?:%5B-a-z0-9%5D%7B0,61%7D%5Ba-z0-9%5D)?

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getPhysicalTopology

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.ReservationSubBlockPhysicalTopology|null` |   |

### hasPhysicalTopology

### clearPhysicalTopology

### setPhysicalTopology

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

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

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

### getReservationSubBlockMaintenance

Output only. Maintenance information for this reservation subBlock.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-compute/latest/V1.GroupMaintenanceInfo|null` |   |

### hasReservationSubBlockMaintenance

### clearReservationSubBlockMaintenance

### setReservationSubBlockMaintenance

Output only. Maintenance information for this reservation subBlock.

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

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

### getSelfLink

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

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

### hasSelfLink

### clearSelfLink

### setSelfLink

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getSelfLinkWithId

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

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

### hasSelfLinkWithId

### clearSelfLinkWithId

### setSelfLinkWithId

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getStatus

Output only. \[Output Only\] Status of the reservation subBlock.

Check the Status enum for the list of possible values.

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

### hasStatus

### clearStatus

### setStatus

Output only. \[Output Only\] Status of the reservation subBlock.

Check the Status enum for the list of possible values.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getZone

Output only. \[Output Only\] Zone in which the reservation subBlock resides.

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

### hasZone

### clearZone

### setZone

Output only. \[Output Only\] Zone in which the reservation subBlock resides.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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