[][src]Struct gcp_client::google::cloud::websecurityscanner::v1beta::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 target_platforms: Vec<i32>,
    pub export_to_security_command_center: i32,
    pub latest_run: Option<ScanRun>,
    pub risk_level: i32,
}

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 blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls

schedule: Option<Schedule>

The schedule of the ScanConfig.

target_platforms: Vec<i32>

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

export_to_security_command_center: i32

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

latest_run: Option<ScanRun>

Latest ScanRun if available.

risk_level: i32

The risk level selected for the scan

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 target_platforms(
    &self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<TargetPlatform>>
[src]

Returns an iterator which yields the valid enum values contained in target_platforms.

pub fn push_target_platforms(&mut self, value: TargetPlatform)[src]

Appends the provided enum value to target_platforms.

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]