# Class BackupConfig (0.8.1)

0.8.1 (latest) 0.8.0 0.7.0 0.6.0 0.5.19 0.4.4 0.3.0 0.2.2 0.1.1

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

BackupConfig defines the configuration of Backups created via
this BackupPlan.

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>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `all_namespaces` | `bool` If True, include all namespaced resources This field is a member of `oneof`_ `backup_scope`. |
| `selected_namespaces` | `https://docs.cloud.google.com/python/docs/reference/gkebackup/latest/google.cloud.gke_backup_v1.types.Namespaces` If set, include just the resources in the listed namespaces. This field is a member of `oneof`_ `backup_scope`. |
| `selected_applications` | `https://docs.cloud.google.com/python/docs/reference/gkebackup/latest/google.cloud.gke_backup_v1.types.NamespacedNames` If set, include just the resources referenced by the listed ProtectedApplications. This field is a member of `oneof`_ `backup_scope`. |
| `include_volume_data` | `bool` Optional. This flag specifies whether volume data should be backed up when PVCs are included in the scope of a Backup. Default: False |
| `include_secrets` | `bool` Optional. This flag specifies whether Kubernetes Secret resources should be included when they fall into the scope of Backups. Default: False |
| `encryption_key` | `https://docs.cloud.google.com/python/docs/reference/gkebackup/latest/google.cloud.gke_backup_v1.types.EncryptionKey` Optional. This defines a customer managed encryption key that will be used to encrypt the "config" portion (the Kubernetes resources) of Backups created via this plan. Default (empty): Config backup artifacts will not be encrypted. |
| `permissive_mode` | `bool` Optional. If false, Backups will fail when Backup for GKE detects Kubernetes configuration that is non-standard or requires additional setup to restore. Default: False |