Class: Google::Apis::WebsecurityscannerV1::ScanRunErrorTrace
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1::ScanRunErrorTrace
- 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
Output only. Defines an error trace message for a ScanRun.
Instance Attribute Summary collapse
-
#code ⇒ String
Output only.
-
#most_common_http_error_code ⇒ Fixnum
Output only.
-
#scan_config_error ⇒ Google::Apis::WebsecurityscannerV1::ScanConfigError
Defines a custom error message used by CreateScanConfig and UpdateScanConfig APIs when scan configuration validation fails.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScanRunErrorTrace
constructor
A new instance of ScanRunErrorTrace.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ScanRunErrorTrace
Returns a new instance of ScanRunErrorTrace.
814 815 816 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 814 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Output only. Indicates the error reason code.
Corresponds to the JSON property code
797 798 799 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 797 def code @code end |
#most_common_http_error_code ⇒ Fixnum
Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates
the most common HTTP error code, if such is available. For example, if this
code is 404, the scan has encountered too many NOT_FOUND responses.
Corresponds to the JSON property mostCommonHttpErrorCode
804 805 806 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 804 def most_common_http_error_code @most_common_http_error_code end |
#scan_config_error ⇒ Google::Apis::WebsecurityscannerV1::ScanConfigError
Defines a custom error message used by CreateScanConfig and UpdateScanConfig
APIs when scan configuration validation fails. It is also reported as part of
a ScanRunErrorTrace message if scan validation fails due to a scan
configuration error.
Corresponds to the JSON property scanConfigError
812 813 814 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 812 def scan_config_error @scan_config_error end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
819 820 821 822 823 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 819 def update!(**args) @code = args[:code] if args.key?(:code) @most_common_http_error_code = args[:most_common_http_error_code] if args.key?(:most_common_http_error_code) @scan_config_error = args[:scan_config_error] if args.key?(:scan_config_error) end |