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 document provides reference documentation for the \u003ccode\u003ePolicyViolation\u003c/code\u003e class within the Google Cloud Deploy v1 API, detailing its structure and functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003ePolicyViolation\u003c/code\u003e is 3.4.0, and the page specifically details version 3.3.0 while including links to past versions down to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicyViolation\u003c/code\u003e class, used to report policy violations, inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains a \u003ccode\u003ePolicyViolationDetails\u003c/code\u003e property, which is a \u003ccode\u003eRepeatedField\u003c/code\u003e that provides specific details about any violations that have occurred.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003ePolicyViolation\u003c/code\u003e, one being parameterless and the other taking another \u003ccode\u003ePolicyViolation\u003c/code\u003e object as a parameter for copying.\u003c/p\u003e\n"]]],[],null,[]]