public sealed class Backup.Types.QuantityBasedExpiry : IMessage<Backup.Types.QuantityBasedExpiry>, IEquatable<Backup.Types.QuantityBasedExpiry>, IDeepCloneable<Backup.Types.QuantityBasedExpiry>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1 API class Backup.Types.QuantityBasedExpiry.
A backup's position in a quantity-based retention queue, of backups with
the same source cluster and type, with length, retention, specified by the
backup's retention policy.
Once the position is greater than the retention, the backup is eligible to
be garbage collected.
Example: 5 backups from the same source cluster and type with a
quantity-based retention of 3 and denoted by backup_id (position,
retention).
Output only. The backup's position among its backups with the same source
cluster and type, by descending chronological order create time(i.e.
newest first).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eBackup.Types.QuantityBasedExpiry\u003c/code\u003e class within the Google Cloud AlloyDB v1 API, detailing how backups are managed based on quantity-based retention policies.\u003c/p\u003e\n"],["\u003cp\u003eThe class, \u003ccode\u003eBackup.Types.QuantityBasedExpiry\u003c/code\u003e, tracks a backup's position in a retention queue relative to other backups of the same source cluster and type, with newer backups having lower position numbers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRetentionCount\u003c/code\u003e property indicates the current backup's position within the queue, while \u003ccode\u003eTotalRetentionCount\u003c/code\u003e represents the total length of the retention queue, as defined by the backup's retention policy.\u003c/p\u003e\n"],["\u003cp\u003eBackups with a position greater than the retention count are eligible for garbage collection, as shown by the example of backups outside the safe zone.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation covers multiple versions of the API, ranging from version 1.0.0 up to the latest version 1.9.0, showcasing the evolution of the \u003ccode\u003eQuantityBasedExpiry\u003c/code\u003e feature.\u003c/p\u003e\n"]]],[],null,[]]