Artifact Registry v1 API - Class CleanupPolicy (2.8.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
Name Description
other CleanupPolicy

Properties

Action

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

Policy action.

Property Value
Type Description
CleanupPolicyTypesAction

Condition

public CleanupPolicyCondition Condition { get; set; }

Policy condition for matching versions.

Property Value
Type Description
CleanupPolicyCondition

ConditionTypeCase

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

Id

public string Id { get; set; }

The user-provided ID of the cleanup policy.

Property Value
Type Description
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
Type Description
CleanupPolicyMostRecentVersions