Class: Google::Apis::WebsecurityscannerV1beta::ViolatingResource
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1beta::ViolatingResource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/websecurityscanner_v1beta/classes.rb,
lib/google/apis/websecurityscanner_v1beta/representations.rb,
lib/google/apis/websecurityscanner_v1beta/representations.rb
Overview
Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.
Instance Attribute Summary collapse
-
#content_type ⇒ String
The MIME type of this resource.
-
#resource_url ⇒ String
URL of this violating resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ViolatingResource
constructor
A new instance of ViolatingResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ViolatingResource
Returns a new instance of ViolatingResource.
927 928 929 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 927 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_type ⇒ String
The MIME type of this resource.
Corresponds to the JSON property contentType
920 921 922 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 920 def content_type @content_type end |
#resource_url ⇒ String
URL of this violating resource.
Corresponds to the JSON property resourceUrl
925 926 927 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 925 def resource_url @resource_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
932 933 934 935 |
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 932 def update!(**args) @content_type = args[:content_type] if args.key?(:content_type) @resource_url = args[:resource_url] if args.key?(:resource_url) end |