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

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,
}

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

impl ScanConfig[src]

pub fn user_agent(&self) -> UserAgent[src]

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

pub fn set_user_agent(&mut self, value: UserAgent)[src]

Sets user_agent to the provided enum value.

pub fn export_to_security_command_center(&self) -> ExportToSecurityCommandCenter[src]

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

pub fn set_export_to_security_command_center(
    &mut self,
    value: ExportToSecurityCommandCenter
)
[src]

Sets export_to_security_command_center to the provided enum value.

pub fn risk_level(&self) -> RiskLevel[src]

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

pub fn set_risk_level(&mut self, value: RiskLevel)[src]

Sets risk_level to the provided enum value.

Trait Implementations

impl Clone for ScanConfig[src]

impl Debug for ScanConfig[src]

impl Default for ScanConfig[src]

impl Message for ScanConfig[src]

impl PartialEq<ScanConfig> for ScanConfig[src]

impl StructuralPartialEq for ScanConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]