0.15.1 (latest) 0.15.0 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::ScanRun.

A ScanRun is a output-only resource representing an actual run of the scan.
Next id: 12

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Protobuf-Timestamp)) --- The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

### #end_time=

    def end_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Protobuf-Timestamp)) --- The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Protobuf-Timestamp)) --- The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.

### #error_trace

    def error_trace() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanRunErrorTrace

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRunErrorTrace](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRunErrorTrace)) --- If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

### #error_trace=

    def error_trace=(value) -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanRunErrorTrace

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRunErrorTrace](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRunErrorTrace)) --- If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRunErrorTrace](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRunErrorTrace)) --- If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available.

### #execution_state

    def execution_state() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanRun::ExecutionState

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun::ExecutionState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun-ExecutionState)) --- The execution state of the ScanRun.

### #execution_state=

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

**Parameter**

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

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun::ExecutionState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun-ExecutionState)) --- The execution state of the ScanRun.

### #has_vulnerabilities

    def has_vulnerabilities() -> ::Boolean

**Returns**

- (::Boolean) --- Whether the scan run has found any vulnerabilities.

### #has_vulnerabilities=

    def has_vulnerabilities=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether the scan run has found any vulnerabilities.
**Returns**

- (::Boolean) --- Whether the scan run has found any vulnerabilities.

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

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

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

### #progress_percent

    def progress_percent() -> ::Integer

**Returns**

- (::Integer) --- The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.

### #progress_percent=

    def progress_percent=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.
**Returns**

- (::Integer) --- The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100.

### #result_state

    def result_state() -> ::Google::Cloud::WebSecurityScanner::V1beta::ScanRun::ResultState

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun::ResultState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun-ResultState)) --- The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

### #result_state=

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

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun::ResultState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun-ResultState)) --- The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1beta::ScanRun::ResultState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRun-ResultState)) --- The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Protobuf-Timestamp)) --- The time at which the ScanRun started.

### #start_time=

    def start_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Protobuf-Timestamp)) --- The time at which the ScanRun started.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Protobuf-Timestamp)) --- The time at which the ScanRun started.

### #urls_crawled_count

    def urls_crawled_count() -> ::Integer

**Returns**

- (::Integer) --- The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.

### #urls_crawled_count=

    def urls_crawled_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.
**Returns**

- (::Integer) --- The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.

### #urls_tested_count

    def urls_tested_count() -> ::Integer

**Returns**

- (::Integer) --- The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.

### #urls_tested_count=

    def urls_tested_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.
**Returns**

- (::Integer) --- The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.

### #warning_traces

    def warning_traces() -> ::Array<::Google::Cloud::WebSecurityScanner::V1beta::ScanRunWarningTrace>

**Returns**

- (::Array\<[::Google::Cloud::WebSecurityScanner::V1beta::ScanRunWarningTrace](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRunWarningTrace)\>) --- A list of warnings, if such are encountered during this scan run.

### #warning_traces=

    def warning_traces=(value) -> ::Array<::Google::Cloud::WebSecurityScanner::V1beta::ScanRunWarningTrace>

**Parameter**

- **value** (::Array\<[::Google::Cloud::WebSecurityScanner::V1beta::ScanRunWarningTrace](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRunWarningTrace)\>) --- A list of warnings, if such are encountered during this scan run.
**Returns**

- (::Array\<[::Google::Cloud::WebSecurityScanner::V1beta::ScanRunWarningTrace](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1beta/latest/Google-Cloud-WebSecurityScanner-V1beta-ScanRunWarningTrace)\>) --- A list of warnings, if such are encountered during this scan run.