Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class CleanupPolicy.
Artifact policy configuration for repository cleanup policies.
Generated from protobuf message google.devtools.artifactregistry.v1.CleanupPolicy
Namespace
Google \ Cloud \ ArtifactRegistry \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ condition
↳ most_recent_versions
CleanupPolicyMostRecentVersions
Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.
↳ id
string
The user-provided ID of the cleanup policy.
↳ action
int
Policy action.
getCondition
Policy condition for matching versions.
hasCondition
setCondition
Policy condition for matching versions.
$this
getMostRecentVersions
Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.
hasMostRecentVersions
setMostRecentVersions
Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.
$this
getId
The user-provided ID of the cleanup policy.
string
setId
The user-provided ID of the cleanup policy.
var
string
$this
getAction
Policy action.
int
setAction
Policy action.
var
int
$this
getConditionType
string