你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PolicyViolation Class

A policy violation reported against a gallery artifact.

Constructor

PolicyViolation(*args: Any, **kwargs: Any)

Variables

Name Description
category

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 | _models.PolicyViolationCategory | None

details

Describes specific details about why this policy violation was reported.

details: str | None