# Google Cloud Config Delivery V1beta Client - Class FleetPackageInfo (0.3.3)

0.3.3 (latest) 0.3.2 0.2.1 0.1.0

> [!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 Config Delivery V1beta Client class FleetPackageInfo.

FleetPackageInfo represents the status of the `FleetPackage` across all the
target clusters.

Generated from protobuf message `google.cloud.configdelivery.v1beta.FleetPackageInfo`

## Namespace

Google \\ Cloud \\ ConfigDelivery \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ active_rollout` | `string` Optional. The active rollout, if any. Format is `projects/{project}/locations/{location}/fleetPackages/{fleet_package}/rollouts/{rollout}`. |
| `↳ last_completed_rollout` | `string` Optional. The last completed rollout, if any. Format is `projects/{project}/locations/{location}/fleetPackages/{fleet_package}/rollouts/{rollout}`. |
| `↳ state` | `int` Optional. Output only. The current state of the `FleetPackage`. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.FleetPackageError>` Optional. Output only. Errors encountered during configuration deployment (if any). |

### getActiveRollout

Optional. The active rollout, if any. Format is
`projects/{project}/locations/{location}/fleetPackages/{fleet_package}/rollouts/{rollout}`.

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

### setActiveRollout

Optional. The active rollout, if any. Format is
`projects/{project}/locations/{location}/fleetPackages/{fleet_package}/rollouts/{rollout}`.

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

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

### getLastCompletedRollout

Optional. The last completed rollout, if any. Format is
`projects/{project}/locations/{location}/fleetPackages/{fleet_package}/rollouts/{rollout}`.

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

### setLastCompletedRollout

Optional. The last completed rollout, if any. Format is
`projects/{project}/locations/{location}/fleetPackages/{fleet_package}/rollouts/{rollout}`.

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

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

### getState

Optional. Output only. The current state of the `FleetPackage`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.FleetPackageInfo.State). |

### setState

Optional. Output only. The current state of the `FleetPackage`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.FleetPackageInfo.State). |

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

### getErrors

Optional. Output only. Errors encountered during configuration deployment
(if any).

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

### setErrors

Optional. Output only. Errors encountered during configuration deployment
(if any).

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

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