View Source GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy (google_api_artifact_registry v0.15.0)

Artifact policy configuration for repository cleanup policies.

Attributes

  • action (type: String.t, default: nil) - Policy action.
  • condition (type: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition.t, default: nil) - Policy condition for matching versions.
  • id (type: String.t, default: nil) - The user-provided ID of the cleanup policy.
  • mostRecentVersions (type: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions.t, default: nil) - Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy{
  action: String.t() | nil,
  condition:
    GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyCondition.t() | nil,
  id: String.t() | nil,
  mostRecentVersions:
    GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicyMostRecentVersions.t()
    | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.