# Google Cloud Backup Dr V1 Client - Class BackupRetentionInheritance (0.13.0)

0.13.0 (latest) 0.12.1 0.11.1 0.10.0 0.9.0 0.8.1 0.7.0 0.6.2 0.5.1 0.4.2 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class BackupRetentionInheritance.

How a backup's enforced retention end time is inherited.

Protobuf type `google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance`

## Namespace

Google \\ Cloud \\ BackupDR \\ V1 \\ BackupVault

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### BACKUP_RETENTION_INHERITANCE_UNSPECIFIED

    Value: 0

Inheritance behavior not set. This will default to
`INHERIT_VAULT_RETENTION`.

Generated from protobuf enum `BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0;`

### INHERIT_VAULT_RETENTION

    Value: 1

The enforced retention end time of a backup will be inherited from the
backup vault's `backup_minimum_enforced_retention_duration` field.

This is the default behavior.

Generated from protobuf enum `INHERIT_VAULT_RETENTION = 1;`

### MATCH_BACKUP_EXPIRE_TIME

    Value: 2

The enforced retention end time of a backup will always match the expire
time of the backup.

If this is set, the backup's enforced retention end time will be set to
match the expire time during creation of the backup. When updating, the
ERET and expire time must be updated together and have the same value.
Invalid update requests will be rejected by the server.

Generated from protobuf enum `MATCH_BACKUP_EXPIRE_TIME = 2;`