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\u003eThis document provides reference documentation for the \u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e class within the Google Cloud Artifact Registry v1 API, specifically version 2.6.0, and contains a list of other versions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e is a class used to define conditions within a \u003ccode\u003eCleanupPolicy\u003c/code\u003e, where multiple conditions must be satisfied simultaneously.\u003c/p\u003e\n"],["\u003cp\u003eThe 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, enabling functionalities like message handling, equality comparisons, deep cloning, and buffered message processing.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e 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 allow filtering versions based on age, package name prefix, tag prefix, tag status, and version name prefix, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere is a constructor to either create an empty \u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e object, or one from an existing \u003ccode\u003eCleanupPolicyCondition\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]