backupRetainDays property
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.
Updating this field does NOT affect existing Backups under it. Backups
created AFTER a successful update will automatically pick up the new
value.
NOTE: backup_retain_days must be >=
google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days
.
If
google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule
is defined, then this must be
<= 360 * the creation interval.
Default: 0 (no automatic deletion)
Implementation
@$pb.TagNumber(2)
$core.int get backupRetainDays => $_getIZ(1);
Implementation
@$pb.TagNumber(2)
set backupRetainDays($core.int v) { $_setSignedInt32(1, v); }