Class CleanupPolicy
Artifact policy configuration for repository cleanup policies.
Implements
Inherited Members
Namespace: Google.Apis.ArtifactRegistry.v1.Data
Assembly: Google.Apis.ArtifactRegistry.v1.dll
Syntax
public class CleanupPolicy : IDirectResponseSchema
Properties
Action
Policy action.
Declaration
[JsonProperty("action")]
public virtual string Action { get; set; }
Property Value
Type | Description |
---|---|
string |
Condition
Policy condition for matching versions.
Declaration
[JsonProperty("condition")]
public virtual CleanupPolicyCondition Condition { get; set; }
Property Value
Type | Description |
---|---|
CleanupPolicyCondition |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
The user-provided ID of the cleanup policy.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
MostRecentVersions
Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.
Declaration
[JsonProperty("mostRecentVersions")]
public virtual CleanupPolicyMostRecentVersions MostRecentVersions { get; set; }
Property Value
Type | Description |
---|---|
CleanupPolicyMostRecentVersions |