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
-
azure.mgmt.containerregistry._serialization.ModelRetentionPolicy
Constructor
RetentionPolicy(*, days: int = 7, status: str | _models.PolicyStatus | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
days
|
The number of days to retain an untagged manifest after which it gets purged. Default value: 7
|
status
|
str or
PolicyStatus
The value that indicates whether the policy is enabled or not. Known values are: "enabled" and "disabled". |
Variables
Name | Description |
---|---|
days
|
The number of days to retain an untagged manifest after which it gets purged. |
last_updated_time
|
The timestamp when the policy was last updated. |
status
|
str or
PolicyStatus
The value that indicates whether the policy is enabled or not. Known values are: "enabled" and "disabled". |
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for