Backup and DR Service v1 API - Class BackupRule (1.2.0)

public sealed class BackupRule : IMessage<BackupRule>, IEquatable<BackupRule>, IDeepCloneable<BackupRule>, IBufferMessage, IMessage

Reference documentation and code samples for the Backup and DR Service v1 API class BackupRule.

BackupRule binds the backup schedule to a retention policy.

Inheritance

object > BackupRule

Namespace

Google.Cloud.BackupDR.V1

Assembly

Google.Cloud.BackupDR.V1.dll

Constructors

BackupRule()

public BackupRule()

BackupRule(BackupRule)

public BackupRule(BackupRule other)
Parameter
Name Description
other BackupRule

Properties

BackupRetentionDays

public int BackupRetentionDays { get; set; }

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.

Property Value
Type Description
int

BackupScheduleOneofCase

public BackupRule.BackupScheduleOneofOneofCase BackupScheduleOneofCase { get; }
Property Value
Type Description
BackupRuleBackupScheduleOneofOneofCase

RuleId

public string RuleId { get; set; }

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}/.

Property Value
Type Description
string

StandardSchedule

public StandardSchedule StandardSchedule { get; set; }

Required. Defines a schedule that runs within the confines of a defined window of time.

Property Value
Type Description
StandardSchedule