0.16.0 (latest) 0.15.1 0.14.1 0.13.1 0.12.0 0.11.1 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.5 Reference documentation and code samples for the Web Security Scanner V1beta API class Google::Cloud::WebSecurityScanner::V1beta::ScanConfig.

A ScanConfig resource contains the configurations to launch a scan.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #authentication

    def authentication() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Authentication

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Authentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-Authentication)) --- The authentication configuration. If specified, service will use the authentication configuration during scanning.

### #authentication=

    def authentication=(value) -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Authentication

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Authentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-Authentication)) --- The authentication configuration. If specified, service will use the authentication configuration during scanning.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Authentication](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-Authentication)) --- The authentication configuration. If specified, service will use the authentication configuration during scanning.

### #blacklist_patterns

    def blacklist_patterns() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

### #blacklist_patterns=

    def blacklist_patterns=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls
**Returns**

- (::Array\<::String\>) --- The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The user provided display name of the ScanConfig.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The user provided display name of the ScanConfig.
**Returns**

- (::String) --- Required. The user provided display name of the ScanConfig.

### #export_to_security_command_center

    def export_to_security_command_center() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::ExportToSecurityCommandCenter

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::ExportToSecurityCommandCenter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-ExportToSecurityCommandCenter)) --- Controls export of scan configurations and results to Cloud Security Command Center.

### #export_to_security_command_center=

    def export_to_security_command_center=(value) -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::ExportToSecurityCommandCenter

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::ExportToSecurityCommandCenter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-ExportToSecurityCommandCenter)) --- Controls export of scan configurations and results to Cloud Security Command Center.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::ExportToSecurityCommandCenter](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-ExportToSecurityCommandCenter)) --- Controls export of scan configurations and results to Cloud Security Command Center.

### #latest_run

    def latest_run() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanRun

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun)) --- Latest ScanRun if available.

### #latest_run=

    def latest_run=(value) -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanRun

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun)) --- Latest ScanRun if available.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun)) --- Latest ScanRun if available.

### #max_qps

    def max_qps() -> ::Integer

**Returns**

- (::Integer) --- The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of \[5, 20\] range will be rejected with INVALID_ARGUMENT error.

### #max_qps=

    def max_qps=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of \[5, 20\] range will be rejected with INVALID_ARGUMENT error.
**Returns**

- (::Integer) --- The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of \[5, 20\] range will be rejected with INVALID_ARGUMENT error.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.
**Returns**

- (::String) --- The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.

### #risk_level

    def risk_level() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::RiskLevel

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::RiskLevel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-RiskLevel)) --- The risk level selected for the scan

### #risk_level=

    def risk_level=(value) -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::RiskLevel

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::RiskLevel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-RiskLevel)) --- The risk level selected for the scan
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::RiskLevel](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-RiskLevel)) --- The risk level selected for the scan

### #schedule

    def schedule() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Schedule

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-Schedule)) --- The schedule of the ScanConfig.

### #schedule=

    def schedule=(value) -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Schedule

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-Schedule)) --- The schedule of the ScanConfig.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::Schedule](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-Schedule)) --- The schedule of the ScanConfig.

### #starting_urls

    def starting_urls() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. The starting URLs from which the scanner finds site pages.

### #starting_urls=

    def starting_urls=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. The starting URLs from which the scanner finds site pages.
**Returns**

- (::Array\<::String\>) --- Required. The starting URLs from which the scanner finds site pages.

### #target_platforms

    def target_platforms() -> ::Array<::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::TargetPlatform>

**Returns**

- (::Array\<[::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::TargetPlatform](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-TargetPlatform)\>) --- Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

### #target_platforms=

    def target_platforms=(value) -> ::Array<::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::TargetPlatform>

**Parameter**

- **value** (::Array\<[::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::TargetPlatform](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-TargetPlatform)\>) --- Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.
**Returns**

- (::Array\<[::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::TargetPlatform](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-TargetPlatform)\>) --- Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

### #user_agent

    def user_agent() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::UserAgent

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::UserAgent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-UserAgent)) --- The user agent used during scanning.

### #user_agent=

    def user_agent=(value) -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::UserAgent

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::UserAgent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-UserAgent)) --- The user agent used during scanning.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanConfig::UserAgent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanConfig-UserAgent)) --- The user agent used during scanning.