Compartilhar via


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.

Inheritance
azure.mgmt.containerregistry.v2023_01_01_preview.models._models_py3.ProxyResource
CacheRule

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
str

The ARM resource ID of the credential store which is associated with the cache rule.

source_repository
str

Source repository pulled from upstream.

target_repository
str

Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag}.

Variables

Name Description
id
str

The resource ID.

name
str

The name of the resource.

type
str

The type of the resource.

system_data

Metadata pertaining to creation and last modification of the resource.

credential_set_resource_id
str

The ARM resource ID of the credential store which is associated with the cache rule.

source_repository
str

Source repository pulled from upstream.

target_repository
str

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".