str
Required. Immutable. The unique id of this BackupRule.
The rule_id is unique per BackupPlan.The rule_id
must start with a lowercase letter followed by up to 62
lowercase letters, numbers, or hyphens. Pattern,
/a-z][a-z0-9-]{,62}/.
backup_retention_days
int
Required. Configures the duration for which
backup data will be kept. It is defined in
“days”. The value should be greater than or
equal to minimum enforced retention of the
backup vault.
Minimum value is 1 and maximum value is 36159
for custom retention on-demand backup.
Minimum and maximum values are workload specific
for all other rules.
standard_schedule
google.cloud.backupdr_v1.types.StandardSchedule
Optional. Defines a schedule that runs within
the confines of a defined window of time.
This field is a member of oneof_ backup_schedule_oneof.
[[["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 BackupRule (0.2.5)\n\nVersion latestkeyboard_arrow_down\n\n- [0.2.5 (latest)](/python/docs/reference/backupdr/latest/google.cloud.backupdr_v1.types.BackupRule)\n- [0.2.4](/python/docs/reference/backupdr/0.2.4/google.cloud.backupdr_v1.types.BackupRule)\n- [0.1.7](/python/docs/reference/backupdr/0.1.7/google.cloud.backupdr_v1.types.BackupRule) \n\n BackupRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\n`BackupRule` binds the backup schedule to a retention policy.\n\n.. _oneof: \u003chttps://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields\u003e"]]