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

Reference documentation and code samples for the Google Cloud Web Security Scanner V1beta Client class 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.

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

Namespace

Google \ Cloud \ WebSecurityScanner \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ code int

Indicates the reason code for a configuration failure.

↳ field_name string

Indicates the full name of the ScanConfig field that triggers this error, for example "scan_config.max_qps". This field is provided for troubleshooting purposes only and its actual value can change in the future.

getCode

Indicates the reason code for a configuration failure.

Returns
TypeDescription
int

setCode

Indicates the reason code for a configuration failure.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFieldName

Indicates the full name of the ScanConfig field that triggers this error, for example "scan_config.max_qps". This field is provided for troubleshooting purposes only and its actual value can change in the future.

Returns
TypeDescription
string

setFieldName

Indicates the full name of the ScanConfig field that triggers this error, for example "scan_config.max_qps". This field is provided for troubleshooting purposes only and its actual value can change in the future.

Parameter
NameDescription
var string
Returns
TypeDescription
$this