Struct googapis::google::cloud::websecurityscanner::v1::ScanConfig[][src]

pub struct ScanConfig {
    pub name: String,
    pub display_name: String,
    pub max_qps: i32,
    pub starting_urls: Vec<String>,
    pub authentication: Option<Authentication>,
    pub user_agent: i32,
    pub blacklist_patterns: Vec<String>,
    pub schedule: Option<Schedule>,
    pub export_to_security_command_center: i32,
    pub risk_level: i32,
    pub managed_scan: bool,
    pub static_ip_scan: bool,
}
Expand description

A ScanConfig resource contains the configurations to launch a scan.

Fields

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: i32

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: Vec<String>

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

authentication: Option<Authentication>

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

user_agent: i32

The user agent used during scanning.

blacklist_patterns: Vec<String>

The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls

schedule: Option<Schedule>

The schedule of the ScanConfig.

export_to_security_command_center: i32

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

risk_level: i32

The risk level selected for the scan

managed_scan: bool

Whether the scan config is managed by Web Security Scanner, output only.

static_ip_scan: bool

Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.

Implementations

Returns the enum value of user_agent, or the default if the field is set to an invalid enum value.

Sets user_agent to the provided enum value.

Returns the enum value of export_to_security_command_center, or the default if the field is set to an invalid enum value.

Sets export_to_security_command_center to the provided enum value.

Returns the enum value of risk_level, or the default if the field is set to an invalid enum value.

Sets risk_level to the provided enum value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more