# Google Cloud Config Delivery V1beta Client - Class FleetPackage (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 FleetPackage.

A `FleetPackage` resource in the Config Delivery API.

A `FleetPackage` defines a package through which kubernetes
configuration is deployed to a fleet of kubernetes clusters.

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

## Namespace

Google \\ Cloud \\ ConfigDelivery \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Name of the `FleetPackage`. Format is `projects/{project}/locations/{location}/fleetPackages/{fleetPackage}`. The `fleetPackage` component must match `[a-z][a-z0-9\-]{0,62}` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time at which the `FleetPackage` was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Most recent time at which the `FleetPackage` was updated. |
| `↳ labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. Labels are attributes that can be set and used by both the user and by Config Delivery. Labels must meet the following constraints: \* \* Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. \* \* All characters must use UTF-8 encoding, and international characters are allowed. \* \* Keys must start with a lowercase letter or international character. \* \* Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \<= 128 bytes. |
| `↳ resource_bundle_selector` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.FleetPackage.ResourceBundleSelector` Required. Information specifying the source of kubernetes configuration to deploy. |
| `↳ target` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.FleetPackage.Target` Optional. Configuration to select target clusters to deploy kubernetes configuration to. |
| `↳ rollout_strategy` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.RolloutStrategy` Optional. The strategy to use to deploy kubernetes configuration to clusters. |
| `↳ variant_selector` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.FleetPackage.VariantSelector` Required. Information specifying how to map a `ResourceBundle` variant to a target cluster. |
| `↳ info` | `https://docs.cloud.google.com/php/docs/reference/cloud-configdelivery/latest/V1beta.FleetPackageInfo` Output only. Information containing the rollout status of the `FleetPackage` across all the target clusters. |
| `↳ deletion_propagation_policy` | `int` Optional. Information around how to handle kubernetes resources at the target clusters when the `FleetPackage` is deleted. |
| `↳ state` | `int` Optional. The desired state of the fleet package. |

### getName

Identifier. Name of the `FleetPackage`. Format is
`projects/{project}/locations/{location}/fleetPackages/{fleetPackage}`.

The `fleetPackage` component must match
`[a-z][a-z0-9\-]{0,62}`

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

### setName

Identifier. Name of the `FleetPackage`. Format is
`projects/{project}/locations/{location}/fleetPackages/{fleetPackage}`.

The `fleetPackage` component must match
`[a-z][a-z0-9\-]{0,62}`

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

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

### getCreateTime

Output only. Time at which the `FleetPackage` was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time at which the `FleetPackage` was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Most recent time at which the `FleetPackage` was updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Most recent time at which the `FleetPackage` was updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLabels

Optional. Labels are attributes that can be set and used by both the
user and by Config Delivery. Labels must meet the following constraints:

- Keys and values can contain only lowercase letters, numeric characters,
  underscores, and dashes.

- All characters must use UTF-8 encoding, and international characters are
  allowed.

- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \<= 128 bytes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setLabels

Optional. Labels are attributes that can be set and used by both the
user and by Config Delivery. Labels must meet the following constraints:

- Keys and values can contain only lowercase letters, numeric characters,
  underscores, and dashes.

- All characters must use UTF-8 encoding, and international characters are
  allowed.

- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \<= 128 bytes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getResourceBundleSelector

Required. Information specifying the source of kubernetes configuration to
deploy.

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

### hasResourceBundleSelector

### clearResourceBundleSelector

### setResourceBundleSelector

Required. Information specifying the source of kubernetes configuration to
deploy.

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

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

### getTarget

Optional. Configuration to select target clusters to deploy kubernetes
configuration to.

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

### hasTarget

### clearTarget

### setTarget

Optional. Configuration to select target clusters to deploy kubernetes
configuration to.

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

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

### getRolloutStrategy

Optional. The strategy to use to deploy kubernetes configuration to
clusters.

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

### hasRolloutStrategy

### clearRolloutStrategy

### setRolloutStrategy

Optional. The strategy to use to deploy kubernetes configuration to
clusters.

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

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

### getVariantSelector

Required. Information specifying how to map a `ResourceBundle` variant to a
target cluster.

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

### hasVariantSelector

### clearVariantSelector

### setVariantSelector

Required. Information specifying how to map a `ResourceBundle` variant to a
target cluster.

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

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

### getInfo

Output only. Information containing the rollout status of the
`FleetPackage` across all the target clusters.

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

### hasInfo

### clearInfo

### setInfo

Output only. Information containing the rollout status of the
`FleetPackage` across all the target clusters.

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

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

### getDeletionPropagationPolicy

Optional. Information around how to handle kubernetes resources at the
target clusters when the `FleetPackage` is deleted.

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

### setDeletionPropagationPolicy

Optional. Information around how to handle kubernetes resources at the
target clusters when the `FleetPackage` is deleted.

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

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

### getState

Optional. The desired state of the fleet package.

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

### setState

Optional. The desired state of the fleet package.

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

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