public sealed class ViolatingResource : IMessage<ViolatingResource>, IEquatable<ViolatingResource>, IDeepCloneable<ViolatingResource>, IBufferMessage, IMessage
Reference documentation and code samples for the Web Security Scanner v1 API class ViolatingResource.
Information regarding any resource causing the vulnerability such
as JavaScript sources, image, audio files, etc.
[[["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-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eViolatingResource\u003c/code\u003e class within the Google Cloud Web Security Scanner v1 API, with the latest version being 2.5.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eViolatingResource\u003c/code\u003e class identifies resources, such as JavaScript sources or image files, that are involved in a vulnerability.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eViolatingResource\u003c/code\u003e has properties such as \u003ccode\u003eContentType\u003c/code\u003e, representing the MIME type, and \u003ccode\u003eResourceUrl\u003c/code\u003e, indicating the resource's URL.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, one being the empty \u003ccode\u003eViolatingResource()\u003c/code\u003e and the other allowing for a copy of another resource via the \u003ccode\u003eViolatingResource(ViolatingResource other)\u003c/code\u003e constructor.\u003c/p\u003e\n"]]],[],null,[]]