CleanupPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Artifact policy configuration for repository cleanup policies.
This message has oneof
_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes | |
---|---|
Name | Description |
condition |
google.cloud.artifactregistry_v1.types.CleanupPolicyCondition
Policy condition for matching versions. This field is a member of oneof _ condition_type .
|
most_recent_versions |
google.cloud.artifactregistry_v1.types.CleanupPolicyMostRecentVersions
Policy condition for retaining a minimum number of versions. May only be specified with a Keep action. This field is a member of oneof _ condition_type .
|
id |
str
The user-provided ID of the cleanup policy. |
action |
google.cloud.artifactregistry_v1.types.CleanupPolicy.Action
Policy action. |
Classes
Action
Action(value)
Action type for a cleanup policy.
Values: ACTION_UNSPECIFIED (0): Action not specified. DELETE (1): Delete action. KEEP (2): Keep action.