Class: Google::Apis::WebsecurityscannerV1alpha::ViolatingResource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/websecurityscanner_v1alpha/classes.rb,
generated/google/apis/websecurityscanner_v1alpha/representations.rb,
generated/google/apis/websecurityscanner_v1alpha/representations.rb

Overview

Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ViolatingResource

Returns a new instance of ViolatingResource



735
736
737
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 735

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#content_typeString

The MIME type of this resource. Corresponds to the JSON property contentType

Returns:

  • (String)


728
729
730
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 728

def content_type
  @content_type
end

#resource_urlString

URL of this violating resource. Corresponds to the JSON property resourceUrl

Returns:

  • (String)


733
734
735
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 733

def resource_url
  @resource_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



740
741
742
743
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 740

def update!(**args)
  @content_type = args[:content_type] if args.key?(:content_type)
  @resource_url = args[:resource_url] if args.key?(:resource_url)
end