# Class FleetPackage (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.3

    FleetPackage(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` 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` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Time at which the `FleetPackage` was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Most recent time at which the `FleetPackage` was updated. |
| `labels` | `MutableMapping[str, str]` 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/python/docs/reference/google-cloud-configdelivery/latest/google.cloud.configdelivery_v1alpha.types.FleetPackage.ResourceBundleSelector` Required. Information specifying the source of kubernetes configuration to deploy. |
| `target` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-configdelivery/latest/google.cloud.configdelivery_v1alpha.types.FleetPackage.Target` Optional. Configuration to select target clusters to deploy kubernetes configuration to. |
| `rollout_strategy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-configdelivery/latest/google.cloud.configdelivery_v1alpha.types.RolloutStrategy` Optional. The strategy to use to deploy kubernetes configuration to clusters. |
| `variant_selector` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-configdelivery/latest/google.cloud.configdelivery_v1alpha.types.FleetPackage.VariantSelector` Required. Information specifying how to map a `ResourceBundle` variant to a target cluster. |
| `info` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-configdelivery/latest/google.cloud.configdelivery_v1alpha.types.FleetPackageInfo` Output only. Information containing the rollout status of the `FleetPackage` across all the target clusters. |
| `deletion_propagation_policy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-configdelivery/latest/google.cloud.configdelivery_v1alpha.types.DeletionPropagationPolicy` Optional. Information around how to handle kubernetes resources at the target clusters when the `FleetPackage` is deleted. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-configdelivery/latest/google.cloud.configdelivery_v1alpha.types.FleetPackage.State` Optional. The desired state of the fleet package. |

## Classes

### CloudBuildRepository

    CloudBuildRepository(mapping=None, *, ignore_unknown_fields=False, **kwargs)

CloudBuildRepository contains information about fetching Kubernetes
configuration from a `CloudBuildRepository`.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### LabelsEntry

    LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### ResourceBundleSelector

    ResourceBundleSelector(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Information specifying the source of kubernetes configuration
to deploy.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### ResourceBundleTag

    ResourceBundleTag(mapping=None, *, ignore_unknown_fields=False, **kwargs)

ResourceBundleTag contains the information to refer to a release for
a `ResourceBundle`.

### State

    State(value)

State indicates the desired state for the fleet package. Unspecified
value is equivalent to `ACTIVE`. If state is set to `SUSPENDED`,
active rollout (if any) will continue but no new rollouts will be
scheduled.

### Target

    Target(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The target defines different ways to target set of kubernetes
clusters.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### VariantSelector

    VariantSelector(mapping=None, *, ignore_unknown_fields=False, **kwargs)

VariantSelector contains information for selecting a variant in
`ResourceBundle` to deploy to a target cluster.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>