Reference documentation and code samples for the Backup and DR Service V1 API class Google::Cloud::BackupDR::V1::BackupRule.
BackupRule
binds the backup schedule to a retention policy.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#backup_retention_days
def backup_retention_days() -> ::Integer
-
(::Integer) — 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 90 for hourly backups. Minimum value is 1 and maximum value is 90 for daily backups. Minimum value is 7 and maximum value is 186 for weekly backups. Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and maximum value is 36159 for yearly backups.
#backup_retention_days=
def backup_retention_days=(value) -> ::Integer
-
value (::Integer) — 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 90 for hourly backups. Minimum value is 1 and maximum value is 90 for daily backups. Minimum value is 7 and maximum value is 186 for weekly backups. Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and maximum value is 36159 for yearly backups.
-
(::Integer) — 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 90 for hourly backups. Minimum value is 1 and maximum value is 90 for daily backups. Minimum value is 7 and maximum value is 186 for weekly backups. Minimum value is 30 and maximum value is 732 for monthly backups. Minimum value is 365 and maximum value is 36159 for yearly backups.
#rule_id
def rule_id() -> ::String
-
(::String) — Required. Immutable. The unique id of this
BackupRule
. Therule_id
is unique perBackupPlan
.Therule_id
must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/.
#rule_id=
def rule_id=(value) -> ::String
-
value (::String) — Required. Immutable. The unique id of this
BackupRule
. Therule_id
is unique perBackupPlan
.Therule_id
must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/.
-
(::String) — Required. Immutable. The unique id of this
BackupRule
. Therule_id
is unique perBackupPlan
.Therule_id
must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /[a-z][a-z0-9-]{,62}/.
#standard_schedule
def standard_schedule() -> ::Google::Cloud::BackupDR::V1::StandardSchedule
- (::Google::Cloud::BackupDR::V1::StandardSchedule) — Required. Defines a schedule that runs within the confines of a defined window of time.
#standard_schedule=
def standard_schedule=(value) -> ::Google::Cloud::BackupDR::V1::StandardSchedule
- value (::Google::Cloud::BackupDR::V1::StandardSchedule) — Required. Defines a schedule that runs within the confines of a defined window of time.
- (::Google::Cloud::BackupDR::V1::StandardSchedule) — Required. Defines a schedule that runs within the confines of a defined window of time.