Class: Google::Apis::WebsecurityscannerV1beta::ScanRunErrorTrace

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

Overview

Output only. Defines an error trace message for a ScanRun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScanRunErrorTrace

Returns a new instance of ScanRunErrorTrace.



813
814
815
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 813

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

Instance Attribute Details

#codeString

Indicates the error reason code. Corresponds to the JSON property code

Returns:

  • (String)


796
797
798
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 796

def code
  @code
end

#most_common_http_error_codeFixnum

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

Returns:

  • (Fixnum)


803
804
805
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 803

def most_common_http_error_code
  @most_common_http_error_code
end

#scan_config_errorGoogle::Apis::WebsecurityscannerV1beta::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



811
812
813
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 811

def scan_config_error
  @scan_config_error
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



818
819
820
821
822
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 818

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