Google Cloud Web Security Scanner V1beta Client - Class ScanConfig (0.7.18)

Reference documentation and code samples for the Google Cloud Web Security Scanner V1beta Client class ScanConfig.

A ScanConfig resource contains the configurations to launch a scan.

Generated from protobuf message google.cloud.websecurityscanner.v1beta.ScanConfig

Namespace

Google \ Cloud \ WebSecurityScanner \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name 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.

↳ display_name string

Required. The user provided display name of the ScanConfig.

↳ max_qps int

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.

↳ starting_urls array

Required. The starting URLs from which the scanner finds site pages.

↳ authentication Google\Cloud\WebSecurityScanner\V1beta\ScanConfig\Authentication

The authentication configuration. If specified, service will use the authentication configuration during scanning.

↳ user_agent int

The user agent used during scanning.

↳ blacklist_patterns array

The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

↳ schedule Google\Cloud\WebSecurityScanner\V1beta\ScanConfig\Schedule

The schedule of the ScanConfig.

↳ target_platforms array

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

↳ export_to_security_command_center int

Controls export of scan configurations and results to Cloud Security Command Center.

↳ latest_run Google\Cloud\WebSecurityScanner\V1beta\ScanRun

Latest ScanRun if available.

↳ risk_level int

The risk level selected for the scan

getName

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
TypeDescription
string

setName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. The user provided display name of the ScanConfig.

Returns
TypeDescription
string

setDisplayName

Required. The user provided display name of the ScanConfig.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMaxQps

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
TypeDescription
int

setMaxQps

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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStartingUrls

Required. The starting URLs from which the scanner finds site pages.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setStartingUrls

Required. The starting URLs from which the scanner finds site pages.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAuthentication

The authentication configuration. If specified, service will use the authentication configuration during scanning.

Returns
TypeDescription
Google\Cloud\WebSecurityScanner\V1beta\ScanConfig\Authentication|null

hasAuthentication

clearAuthentication

setAuthentication

The authentication configuration. If specified, service will use the authentication configuration during scanning.

Parameter
NameDescription
var Google\Cloud\WebSecurityScanner\V1beta\ScanConfig\Authentication
Returns
TypeDescription
$this

getUserAgent

The user agent used during scanning.

Returns
TypeDescription
int

setUserAgent

The user agent used during scanning.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBlacklistPatterns

The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBlacklistPatterns

The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSchedule

The schedule of the ScanConfig.

Returns
TypeDescription
Google\Cloud\WebSecurityScanner\V1beta\ScanConfig\Schedule|null

hasSchedule

clearSchedule

setSchedule

The schedule of the ScanConfig.

Parameter
NameDescription
var Google\Cloud\WebSecurityScanner\V1beta\ScanConfig\Schedule
Returns
TypeDescription
$this

getTargetPlatforms

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTargetPlatforms

Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getExportToSecurityCommandCenter

Controls export of scan configurations and results to Cloud Security Command Center.

Returns
TypeDescription
int

setExportToSecurityCommandCenter

Controls export of scan configurations and results to Cloud Security Command Center.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLatestRun

Latest ScanRun if available.

Returns
TypeDescription
Google\Cloud\WebSecurityScanner\V1beta\ScanRun|null

hasLatestRun

clearLatestRun

setLatestRun

Latest ScanRun if available.

Parameter
NameDescription
var Google\Cloud\WebSecurityScanner\V1beta\ScanRun
Returns
TypeDescription
$this

getRiskLevel

The risk level selected for the scan

Returns
TypeDescription
int

setRiskLevel

The risk level selected for the scan

Parameter
NameDescription
var int
Returns
TypeDescription
$this