ProjectContainerExpirationPolicy

data class ProjectContainerExpirationPolicy(val cadence: String? = null, val enabled: Boolean? = null, val keepN: Int? = null, val nameRegexDelete: String? = null, val nameRegexKeep: String? = null, val nextRunAt: String? = null, val olderThan: String? = null)

Constructors

Link copied to clipboard
constructor(cadence: String? = null, enabled: Boolean? = null, keepN: Int? = null, nameRegexDelete: String? = null, nameRegexKeep: String? = null, nextRunAt: String? = null, olderThan: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cadence: String? = null

The cadence of the policy. Valid values are: 1d, 7d, 14d, 1month, 3month.

Link copied to clipboard
val enabled: Boolean? = null

If true, the policy is enabled.

Link copied to clipboard
val keepN: Int? = null

The number of images to keep.

Link copied to clipboard
val nameRegexDelete: String? = null

The regular expression to match image names to delete. Note: the upstream API has some inconsistencies with the name_regex field here. It's basically unusable at the moment.

Link copied to clipboard
val nameRegexKeep: String? = null

The regular expression to match image names to keep.

Link copied to clipboard
val nextRunAt: String? = null

The next time the policy will run.

Link copied to clipboard
val olderThan: String? = null

The number of days to keep images.