Partilhar via


TrustPolicy Class

The content trust policy for a container registry.

Inheritance
azure.mgmt.containerregistry._serialization.Model
TrustPolicy

Constructor

TrustPolicy(*, type: str | _models.TrustPolicyType = 'Notary', status: str | _models.PolicyStatus | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
type
str or <xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.TrustPolicyType>

The type of trust policy. "Notary"

Default value: Notary
status
str or <xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.PolicyStatus>

The value that indicates whether the policy is enabled or not. Known values are: "enabled" and "disabled".

Variables

Name Description
type
str or <xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.TrustPolicyType>

The type of trust policy. "Notary"

status
str or <xref:azure.mgmt.containerregistry.v2023_06_06_preview.models.PolicyStatus>

The value that indicates whether the policy is enabled or not. Known values are: "enabled" and "disabled".