Artifact Registry v1 API - Class CleanupPolicy (2.5.0)

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

Reference documentation and code samples for the Artifact Registry v1 API class CleanupPolicy.

Artifact policy configuration for repository cleanup policies.

Inheritance

object > CleanupPolicy

Namespace

Google.Cloud.ArtifactRegistry.V1

Assembly

Google.Cloud.ArtifactRegistry.V1.dll

Constructors

CleanupPolicy()

public CleanupPolicy()

CleanupPolicy(CleanupPolicy)

public CleanupPolicy(CleanupPolicy other)
Parameter
NameDescription
otherCleanupPolicy

Properties

Action

public CleanupPolicy.Types.Action Action { get; set; }

Policy action.

Property Value
TypeDescription
CleanupPolicyTypesAction

Condition

public CleanupPolicyCondition Condition { get; set; }

Policy condition for matching versions.

Property Value
TypeDescription
CleanupPolicyCondition

ConditionTypeCase

public CleanupPolicy.ConditionTypeOneofCase ConditionTypeCase { get; }
Property Value
TypeDescription
CleanupPolicyConditionTypeOneofCase

Id

public string Id { get; set; }

The user-provided ID of the cleanup policy.

Property Value
TypeDescription
string

MostRecentVersions

public CleanupPolicyMostRecentVersions MostRecentVersions { get; set; }

Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.

Property Value
TypeDescription
CleanupPolicyMostRecentVersions