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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003ePolicyViolation\u003c/code\u003e class within the Google Cloud Deploy v1 API, covering multiple versions.\u003c/p\u003e\n"],["\u003cp\u003eVersion 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicyViolation\u003c/code\u003e class is used to detail instances where an action was prevented due to policy violations, containing information about which policies were broken and why.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicyViolation\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e, and it implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains a property, \u003ccode\u003ePolicyViolationDetails\u003c/code\u003e, which holds a collection of detailed information about the policy violations that are of type \u003ccode\u003ePolicyViolationDetails\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]