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"]],[["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\u003eViolatingResource\u003c/code\u003e class within the Google Cloud Web Security Scanner v1 API, specifically version 2.1.0, with links to other versions as well.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eViolatingResource\u003c/code\u003e represents a resource that is causing a vulnerability, including files such as JavaScript sources, images, or audio.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eViolatingResource\u003c/code\u003e 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, and inherits from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eViolatingResource\u003c/code\u003e include \u003ccode\u003eContentType\u003c/code\u003e, which represents the MIME type, and \u003ccode\u003eResourceUrl\u003c/code\u003e, which indicates the URL of the resource.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API in this documentation is 2.5.0, with previous versions available for reference, down to version 1.0.0.\u003c/p\u003e\n"]]],[],null,[]]