RetentionPolicyDetails defines a Backup retention policy for
a BackupPlan.
Attributes
Name
Description
backup_delete_lock_days
int
Optional. Minimum age for Backups created via this
BackupPlan (in days). This field MUST be an integer value
between 0-90 (inclusive). A Backup created under this
BackupPlan will NOT be deletable until it reaches Backup's
(create_time + backup_delete_lock_days). Updating this field
of a BackupPlan does NOT affect existing Backups under it.
Backups created AFTER a successful update will inherit the
new value.
Default: 0 (no delete blocking)
backup_retain_days
int
Optional. The default maximum age of a Backup created via
this BackupPlan. This field MUST be an integer value >= 0
and <= 365.="" if="" specified,="" a="" backup="" created="" under="" this="" backupplan="" will="" be="" automatically="" deleted="" after="" its="" age="" reaches="" (create_time="" +="" backup_retain_days).="" if="" not="" specified,="" backups="" created="" under="" this="" backupplan="" will="" not="" be="" subject="" to="" automatic="" deletion.="" default:="" 0="" (no="" automatic="" deletion)="">
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class RetentionPolicyDetails (0.5.19)\n\nVersion latestkeyboard_arrow_down\n\n- [0.5.19 (latest)](/python/docs/reference/gkebackup/latest/google.cloud.gke_backup_v1.types.BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails)\n- [0.5.18](/python/docs/reference/gkebackup/0.5.18/google.cloud.gke_backup_v1.types.BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails)\n- [0.4.4](/python/docs/reference/gkebackup/0.4.4/google.cloud.gke_backup_v1.types.BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails)\n- [0.3.0](/python/docs/reference/gkebackup/0.3.0/google.cloud.gke_backup_v1.types.BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails)\n- [0.2.2](/python/docs/reference/gkebackup/0.2.2/google.cloud.gke_backup_v1.types.BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails)\n- [0.1.1](/python/docs/reference/gkebackup/0.1.1/google.cloud.gke_backup_v1.types.BackupPlanBinding.BackupPlanDetails.RetentionPolicyDetails) \n\n RetentionPolicyDetails(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nRetentionPolicyDetails defines a Backup retention policy for\na BackupPlan."]]