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.



1037
1038
1039
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1037

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)


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

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)


1035
1036
1037
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1035

def payload_value
  @payload_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1042
1043
1044
1045
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 1042

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