Class: Google::Apis::WebsecurityscannerV1::Xxe

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

Overview

Information reported for an XXE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Xxe

Returns a new instance of Xxe.



1023
1024
1025
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1023

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

Instance Attribute Details

#payload_locationString

Location within the request where the payload was placed. Corresponds to the JSON property payloadLocation

Returns:

  • (String)


1015
1016
1017
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1015

def payload_location
  @payload_location
end

#payload_valueString

The XML string that triggered the XXE vulnerability. Non-payload values might be redacted. Corresponds to the JSON property payloadValue

Returns:

  • (String)


1021
1022
1023
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1021

def payload_value
  @payload_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1028
1029
1030
1031
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1028

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