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\u003eThe latest version of the \u003ccode\u003ePolicyViolation\u003c/code\u003e class within the Google Cloud Deploy v1 API is 3.4.0, with documentation available at \u003ccode\u003e/dotnet/docs/reference/Google.Cloud.Deploy.V1/latest/Google.Cloud.Deploy.V1.PolicyViolation\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis API class is used when an action is prevented due to one or more violated policies and contains information on why it was prevented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePolicyViolation\u003c/code\u003e class implements multiple interfaces, including \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 \u003ccode\u003ePolicyViolationDetails\u003c/code\u003e property provides specific details about policy violations through a \u003ccode\u003eRepeatedField\u003c/code\u003e containing instances of \u003ccode\u003ePolicyViolationDetails\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDocumentation for \u003ccode\u003ePolicyViolation\u003c/code\u003e class is available in versions ranging from 1.0.0 up to the latest 3.4.0, offering access to historical documentation.\u003c/p\u003e\n"]]],[],null,[]]