# Google Cloud Capacity Planner V1beta Client - Class ReservationData (0.1.2)

0.1.2 (latest) 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class ReservationData.

Response entity for reservations data.

Generated from protobuf message `google.cloud.capacityplanner.v1beta.ReservationData`

## Namespace

Google \\ Cloud \\ CapacityPlanner \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the connection in the form of: `projects/{project_id}/locations/{location_id}/reservations/{reservation_id}` or `organizations/{organization_id}/locations/{location_id}/reservations/{reservation_id}` or `folders/{folder_id}/locations/{location_id}/reservations/{reservation_id}` |
| `↳ time_series` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.TimeSeries` The collection of data points that represent the aggregated reserved value for reservations filtered by the criteria. |
| `↳ used_reservation_values` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.TimeSeries` The collection of data points that represent the aggregated used value for reservations filtered by the criteria. |
| `↳ future_reservations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.FutureReservation>` Future reservations filtered by the criteria. |
| `↳ allocations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation>` Allocations filtered by the criteria. |

### getName

Identifier. The resource name of the connection in the form of:
`projects/{project_id}/locations/{location_id}/reservations/{reservation_id}`
or
`organizations/{organization_id}/locations/{location_id}/reservations/{reservation_id}`
or
`folders/{folder_id}/locations/{location_id}/reservations/{reservation_id}`

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

### setName

Identifier. The resource name of the connection in the form of:
`projects/{project_id}/locations/{location_id}/reservations/{reservation_id}`
or
`organizations/{organization_id}/locations/{location_id}/reservations/{reservation_id}`
or
`folders/{folder_id}/locations/{location_id}/reservations/{reservation_id}`

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

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

### getTimeSeries

The collection of data points that represent the aggregated reserved value
for reservations filtered by the criteria.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.TimeSeries|null` |   |

### hasTimeSeries

### clearTimeSeries

### setTimeSeries

The collection of data points that represent the aggregated reserved value
for reservations filtered by the criteria.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.TimeSeries` |

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

### getUsedReservationValues

The collection of data points that represent the aggregated used value for
reservations filtered by the criteria.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.TimeSeries|null` |   |

### hasUsedReservationValues

### clearUsedReservationValues

### setUsedReservationValues

The collection of data points that represent the aggregated used value for
reservations filtered by the criteria.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.TimeSeries` |

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

### getFutureReservations

Future reservations filtered by the criteria.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.FutureReservation>` |   |

### setFutureReservations

Future reservations filtered by the criteria.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.FutureReservation>` |

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

### getAllocations

Allocations filtered by the criteria.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation>` |   |

### setAllocations

Allocations filtered by the criteria.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-capacityplanner/latest/V1beta.Allocation>` |

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