Google Cloud Web Security Scanner V1beta Client - Class ScanRunErrorTrace (0.7.18)

Reference documentation and code samples for the Google Cloud Web Security Scanner V1beta Client class ScanRunErrorTrace.

Output only.

Defines an error trace message for a ScanRun.

Generated from protobuf message google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace

Namespace

Google \ Cloud \ WebSecurityScanner \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ code int

Indicates the error reason code.

↳ scan_config_error Google\Cloud\WebSecurityScanner\V1beta\ScanConfigError

If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.

↳ most_common_http_error_code int

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.

getCode

Indicates the error reason code.

Returns
TypeDescription
int

setCode

Indicates the error reason code.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getScanConfigError

If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.

Returns
TypeDescription
Google\Cloud\WebSecurityScanner\V1beta\ScanConfigError|null

hasScanConfigError

clearScanConfigError

setScanConfigError

If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.

Parameter
NameDescription
var Google\Cloud\WebSecurityScanner\V1beta\ScanConfigError
Returns
TypeDescription
$this

getMostCommonHttpErrorCode

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.

Returns
TypeDescription
int

setMostCommonHttpErrorCode

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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this