# Google Cloud Gke Backup V1 Client - Class BackupConfigDetails (1.3.3)

1.3.3 (latest) 1.3.2 1.2.1 1.0.3 0.8.1 0.7.2 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Gke Backup V1 Client class BackupConfigDetails.

BackupConfigDetails defines the configuration of Backups created via this
BackupPlan.

Generated from protobuf message `google.cloud.gkebackup.v1.BackupPlanBinding.BackupPlanDetails.BackupConfigDetails`

## Namespace

Google \\ Cloud \\ GkeBackup \\ V1 \\ BackupPlanBinding \\ BackupPlanDetails

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ all_namespaces` | `bool` Output only. If True, include all namespaced resources |
| `↳ selected_namespaces` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.Namespaces` Output only. If set, include just the resources in the listed namespaces. |
| `↳ selected_applications` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.NamespacedNames` Output only. If set, include just the resources referenced by the listed ProtectedApplications. |
| `↳ include_volume_data` | `bool` Output only. 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` Output only. 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/php/docs/reference/cloud-gke-backup/latest/V1.EncryptionKey` Output only. 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. |

### getAllNamespaces

Output only. If True, include all namespaced resources

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasAllNamespaces

### setAllNamespaces

Output only. If True, include all namespaced resources

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

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

### getSelectedNamespaces

Output only. If set, include just the resources in the listed
namespaces.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.Namespaces|null` |   |

### hasSelectedNamespaces

### setSelectedNamespaces

Output only. If set, include just the resources in the listed
namespaces.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.Namespaces` |

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

### getSelectedApplications

Output only. If set, include just the resources referenced by the
listed ProtectedApplications.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.NamespacedNames|null` |   |

### hasSelectedApplications

### setSelectedApplications

Output only. If set, include just the resources referenced by the
listed ProtectedApplications.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.NamespacedNames` |

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

### getIncludeVolumeData

Output only. This flag specifies whether volume data should be backed
up when PVCs are included in the scope of a Backup.

Default: False

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIncludeVolumeData

Output only. This flag specifies whether volume data should be backed
up when PVCs are included in the scope of a Backup.

Default: False

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

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

### getIncludeSecrets

Output only. This flag specifies whether Kubernetes Secret resources
should be included when they fall into the scope of Backups.

Default: False

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIncludeSecrets

Output only. This flag specifies whether Kubernetes Secret resources
should be included when they fall into the scope of Backups.

Default: False

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

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

### getEncryptionKey

Output only. 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.EncryptionKey|null` |   |

### hasEncryptionKey

### clearEncryptionKey

### setEncryptionKey

Output only. 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-backup/latest/V1.EncryptionKey` |

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

### getBackupScope

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