public sealed class CleanupPolicyCondition : IMessage<CleanupPolicyCondition>, IEquatable<CleanupPolicyCondition>, IDeepCloneable<CleanupPolicyCondition>, IBufferMessage, IMessage
Reference documentation and code samples for the Artifact Registry v1 API class CleanupPolicyCondition.
CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy.
If multiple entries are set, all must be satisfied for the condition to be
satisfied.
[[["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\u003eThe latest version of the Artifact Registry v1 API's \u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e class is 2.9.0, with this specific documentation page focusing on version 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e is a class used to define the conditions that must be met for a \u003ccode\u003eCleanupPolicy\u003c/code\u003e to be satisfied, where multiple set entries require all conditions to be true.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e class include \u003ccode\u003eNewerThan\u003c/code\u003e, \u003ccode\u003eOlderThan\u003c/code\u003e, \u003ccode\u003ePackageNamePrefixes\u003c/code\u003e, \u003ccode\u003eTagPrefixes\u003c/code\u003e, \u003ccode\u003eTagState\u003c/code\u003e, and \u003ccode\u003eVersionNamePrefixes\u003c/code\u003e, which are used to specify matching criteria for versions.\u003c/p\u003e\n"],["\u003cp\u003eIt includes documentation for two constructors, \u003ccode\u003eCleanupPolicyCondition()\u003c/code\u003e, and \u003ccode\u003eCleanupPolicyCondition(CleanupPolicyCondition other)\u003c/code\u003e, and lists inherited members like \u003ccode\u003eobject.GetHashCode()\u003c/code\u003e, \u003ccode\u003eobject.GetType()\u003c/code\u003e, and \u003ccode\u003eobject.ToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]