PolicyViolation Class

A policy violation reported against a gallery artifact.

Constructor

PolicyViolation()

Variables

Name Description
category
Union[str, <xref:"PolicyViolationCategory">]

Describes the nature of the policy violation. Known values are: "Other", "ImageFlaggedUnsafe", "CopyrightValidation", and "IpTheft".

details
str

Describes specific details about why this policy violation was reported.

Attributes

category

"Other", "ImageFlaggedUnsafe", "CopyrightValidation", and "IpTheft".

category: str | PolicyViolationCategory

details

Describes specific details about why this policy violation was reported.

details: str