# Backup and DR Service V1 API - Module Google::Cloud::BackupDR::V1::BackupVault::BackupRetentionInheritance (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Backup and DR Service V1 API module Google::Cloud::BackupDR::V1::BackupVault::BackupRetentionInheritance.

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

## Constants

### BACKUP_RETENTION_INHERITANCE_UNSPECIFIED

**value:** 0  
Inheritance behavior not set. This will default to
`INHERIT_VAULT_RETENTION`.

### 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.


<br />

This is the default behavior.

### MATCH_BACKUP_EXPIRE_TIME

**value:** 2  
The enforced retention end time of a backup will always match the expire
time of the backup.


<br />

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.