NAME
Google::Cloud::Websecurityscanner::V1alpha::ScanRun - Compiled Protocol Buffers messages for google/cloud/websecurityscanner/v1alpha/scan_run.proto
SYNOPSIS
use Google::Cloud::Websecurityscanner::V1alpha::ScanRun;
my $msg = Google::Cloud::Websecurityscanner::V1alpha::ScanRun::ScanRun->new({
name => $name,
execution_state => $execution_state,
result_state => $result_state,
start_time => $start_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Websecurityscanner::V1alpha::ScanRun::ScanRun->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/websecurityscanner/v1alpha/scan_run.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Websecurityscanner::V1alpha::ScanRun::ScanRun
A ScanRun is a output-only resource representing an actual run of the scan.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe 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.
$msg->execution_state()/$msg->execution_state($value)Type:
Enum(Google::Cloud::Websecurityscanner::V1alpha::ScanRun::ExecutionState)The execution state of the ScanRun.
$msg->result_state()/$msg->result_state($value)Type:
Enum(Google::Cloud::Websecurityscanner::V1alpha::ScanRun::ResultState)The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED".
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the ScanRun started.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user.
$msg->urls_crawled_count()/$msg->urls_crawled_count($value)Type:
Int64The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now.
$msg->urls_tested_count()/$msg->urls_tested_count($value)Type:
Int64The 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.
$msg->has_vulnerabilities()/$msg->has_vulnerabilities($value)Type:
BoolWhether the scan run has found any vulnerabilities.
$msg->progress_percent()/$msg->progress_percent($value)Type:
Int32The 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.
Enum: ScanRun::ExecutionState
EXECUTION_STATE_UNSPECIFIED=>0QUEUED=>1SCANNING=>2FINISHED=>3
Enum: ScanRun::ResultState
RESULT_STATE_UNSPECIFIED=>0SUCCESS=>1ERROR=>2KILLED=>3
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Websecurityscanner::V1alpha::ScanRun::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.