class Google::Apis::WebsecurityscannerV1::ScanRun
A ScanRun
is a output-only resource representing an actual run of the scan. Next id: 12
Attributes
Output only. Defines an error trace message for a ScanRun
. Corresponds to the JSON property `errorTrace` @return [Google::Apis::WebsecurityscannerV1::ScanRunErrorTrace]
Output only. The execution state of the ScanRun
. Corresponds to the JSON property `executionState` @return [String]
Output only. Whether the scan run has found any vulnerabilities. Corresponds to the JSON property `hasVulnerabilities` @return [Boolean]
Output only. Whether the scan run has found any vulnerabilities. Corresponds to the JSON property `hasVulnerabilities` @return [Boolean]
Output only. 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. Corresponds to the JSON property `progressPercent` @return [Fixnum]
Output only. The result state of the ScanRun
. This field is only available after the execution state reaches “FINISHED”. Corresponds to the JSON property `resultState` @return [String]
Output only. The time at which the ScanRun
started. Corresponds to the JSON property `startTime` @return [String]
Output only. 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. Corresponds to the JSON property `urlsCrawledCount` @return [Fixnum]
Output only. 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. Corresponds to the JSON property `urlsTestedCount` @return [Fixnum]
Output only. A list of warnings, if such are encountered during this scan run. Corresponds to the JSON property `warningTraces` @return [Array<Google::Apis::WebsecurityscannerV1::ScanRunWarningTrace>]
Public Class Methods
# File lib/google/apis/websecurityscanner_v1/classes.rb, line 765 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/websecurityscanner_v1/classes.rb, line 770 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @error_trace = args[:error_trace] if args.key?(:error_trace) @execution_state = args[:execution_state] if args.key?(:execution_state) @has_vulnerabilities = args[:has_vulnerabilities] if args.key?(:has_vulnerabilities) @name = args[:name] if args.key?(:name) @progress_percent = args[:progress_percent] if args.key?(:progress_percent) @result_state = args[:result_state] if args.key?(:result_state) @start_time = args[:start_time] if args.key?(:start_time) @urls_crawled_count = args[:urls_crawled_count] if args.key?(:urls_crawled_count) @urls_tested_count = args[:urls_tested_count] if args.key?(:urls_tested_count) @warning_traces = args[:warning_traces] if args.key?(:warning_traces) end