# Google Cloud Net App V1 Client - Class BackupConfig (1.12.0)

1.12.0 (latest) 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.4.0 1.3.1 1.2.1 1.1.1 1.0.1 0.3.1 0.2.6 0.1.1 Reference documentation and code samples for the Google Cloud Net App V1 Client class BackupConfig.

BackupConfig contains backup related config on a volume.

Generated from protobuf message `google.cloud.netapp.v1.BackupConfig`

## Namespace

Google \\ Cloud \\ NetApp \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ backup_policies` | `string[]` Optional. When specified, schedule backups will be created based on the policy configuration. |
| `↳ backup_vault` | `string` Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id} |
| `↳ scheduled_backup_enabled` | `bool` Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached. |
| `↳ backup_chain_bytes` | `int|string` Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size). |

### getBackupPolicies

Optional. When specified, schedule backups will be created based on the
policy configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setBackupPolicies

Optional. When specified, schedule backups will be created based on the
policy configuration.

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

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

### getBackupVault

Optional. Name of backup vault.

Format:
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

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

### setBackupVault

Optional. Name of backup vault.

Format:
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

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

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

### getScheduledBackupEnabled

Optional. When set to true, scheduled backup is enabled on the volume.

This field should be nil when there's no backup policy attached.

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

### hasScheduledBackupEnabled

### clearScheduledBackupEnabled

### setScheduledBackupEnabled

Optional. When set to true, scheduled backup is enabled on the volume.

This field should be nil when there's no backup policy attached.

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

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

### getBackupChainBytes

Output only. Total size of all backups in a chain in bytes = baseline
backup size + sum(incremental backup size).

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

### hasBackupChainBytes

### clearBackupChainBytes

### setBackupChainBytes

Output only. Total size of all backups in a chain in bytes = baseline
backup size + sum(incremental backup size).

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

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