RetentionPolicy Class

The retention policy for a container registry.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
RetentionPolicy

Constructor

RetentionPolicy(*, days: Optional[int] = 7, status: Optional[Union[str, azure.mgmt.containerregistry.v2021_08_01_preview.models._container_registry_management_client_enums.PolicyStatus]] = None, **kwargs)

Variables

days
int

The number of days to retain an untagged manifest after which it gets purged.

last_updated_time
datetime

The timestamp when the policy was last updated.

status
str or PolicyStatus

The value that indicates whether the policy is enabled or not. Possible values include: "enabled", "disabled".