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, spanning versions from 1.0.0 to the latest 3.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicyViolation\u003c/code\u003e class, which is part of the \u003ccode\u003eGoogle.Cloud.Deploy.V1\u003c/code\u003e namespace, represents an action that was prevented due to one or more policy violations.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, with inheritance from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a \u003ccode\u003ePolicyViolationDetails\u003c/code\u003e property, a \u003ccode\u003eRepeatedField\u003c/code\u003e that contains specific details about the policy violations that occurred.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also provides the inherited members, as well as the constuctors that can be used for the class, detailing the parameters and their descriptions.\u003c/p\u003e\n"]]],[],null,[]]