public sealed class PolicyViolation : IMessage<PolicyViolation>, IEquatable<PolicyViolation>, IDeepCloneable<PolicyViolation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Deploy v1 API class PolicyViolation.
Returned from an action if one or more policies were
violated, and therefore the action was prevented. Contains information about
what policies were violated and why.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `PolicyViolation` class within the Google Cloud Deploy v1 API, covering multiple versions."],["Version 3.4.0 is the latest documented version of the API, while 3.1.0 is the current version shown as the default version, with all versions from 1.0.0 to 3.4.0 included in the list."],["The `PolicyViolation` class is used to detail instances where an action was prevented due to policy violations, containing information about which policies were broken and why."],["The `PolicyViolation` class inherits from `object`, and it implements `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The class contains a property, `PolicyViolationDetails`, which holds a collection of detailed information about the policy violations that are of type `PolicyViolationDetails`."]]],[]]