CacheRule Class 
An object that represents a cache rule for a container registry.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
CacheRule(*, credential_set_resource_id: str | None = None, source_repository: str | None = None, target_repository: str | None = None, **kwargs: Any)Keyword-Only Parameters
| Name | Description | 
|---|---|
| credential_set_resource_id | The ARM resource ID of the credential store which is associated with the cache rule. Default value: None | 
| source_repository | Source repository pulled from upstream. Default value: None | 
| target_repository | Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}. Default value: None | 
Variables
| Name | Description | 
|---|---|
| id | The resource ID. | 
| name | The name of the resource. | 
| type | The type of the resource. | 
| system_data | Metadata pertaining to creation and last modification of the resource. | 
| credential_set_resource_id | The ARM resource ID of the credential store which is associated with the cache rule. | 
| source_repository | Source repository pulled from upstream. | 
| target_repository | Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}. | 
| creation_date | The creation date of the cache rule. | 
| provisioning_state | Provisioning state of the resource. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". |