Class: Google::Apis::WebsecurityscannerV1alpha::ViolatingResource
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::WebsecurityscannerV1alpha::ViolatingResource
 
- 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
- 
  
    
      #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. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ViolatingResource
Returns a new instance of ViolatingResource
| 704 705 706 | # File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 704 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#content_type ⇒ String
The MIME type of this resource.
Corresponds to the JSON property contentType
| 697 698 699 | # File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 697 def content_type @content_type end | 
#resource_url ⇒ String
URL of this violating resource.
Corresponds to the JSON property resourceUrl
| 702 703 704 | # File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 702 def resource_url @resource_url end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 709 710 711 712 | # File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 709 def update!(**args) @content_type = args[:content_type] if args.key?(:content_type) @resource_url = args[:resource_url] if args.key?(:resource_url) end |