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\u003eThe \u003ccode\u003eViolatingResource\u003c/code\u003e class in the Google Cloud Web Security Scanner v1 API identifies resources like JavaScript sources, images, and audio files that are associated with vulnerabilities.\u003c/p\u003e\n"],["\u003cp\u003eThis 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 \u003ccode\u003eobject\u003c/code\u003e, providing functionalities for message handling, equality comparisons, deep cloning, and buffer message operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eViolatingResource\u003c/code\u003e instances can be created using a default constructor or a copy constructor, and they expose properties for \u003ccode\u003eContentType\u003c/code\u003e (MIME type) and \u003ccode\u003eResourceUrl\u003c/code\u003e (URL of the resource).\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eViolatingResource\u003c/code\u003e documentation is available in version 2.5.0, with documentation also available for prior versions dating back to version 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eViolatingResource\u003c/code\u003e class is found within the \u003ccode\u003eGoogle.Cloud.WebSecurityScanner.V1\u003c/code\u003e namespace, and it is located in the \u003ccode\u003eGoogle.Cloud.WebSecurityScanner.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]