Class: Google::Apis::WebsecurityscannerV1alpha::Xss

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 reported for an XSS.

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) ⇒ Xss

Returns a new instance of Xss



804
805
806
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 804

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

Instance Attribute Details

#error_messageString

An error message generated by a javascript breakage. Corresponds to the JSON property errorMessage

Returns:

  • (String)


797
798
799
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 797

def error_message
  @error_message
end

#stack_tracesArray<String>

Stack traces leading to the point where the XSS occurred. Corresponds to the JSON property stackTraces

Returns:

  • (Array<String>)


802
803
804
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 802

def stack_traces
  @stack_traces
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



809
810
811
812
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 809

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