# Web Security Scanner V1 API - Class Google::Cloud::WebSecurityScanner::V1::ScanConfigError (v1.6.0)

1.6.0 (latest) 1.5.1 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.1 0.6.0 0.5.0 0.4.1 0.3.5 Reference documentation and code samples for the Web Security Scanner V1 API class Google::Cloud::WebSecurityScanner::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::Google::Cloud::WebSecurityScanner::V1::ScanConfigError::Code

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1::ScanConfigError::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanConfigError-Code)) --- Output only. Indicates the reason code for a configuration failure.

### #code=

    def code=(value) -> ::Google::Cloud::WebSecurityScanner::V1::ScanConfigError::Code

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1::ScanConfigError::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanConfigError-Code)) --- Output only. Indicates the reason code for a configuration failure.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1::ScanConfigError::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanConfigError-Code)) --- Output only. Indicates the reason code for a configuration failure.

### #field_name

    def field_name() -> ::String

**Returns**

- (::String) --- Output only. 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.

### #field_name=

    def field_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. 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**

- (::String) --- Output only. 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.