Struct google_api_proto::google::cloud::websecurityscanner::v1::ScanConfig
source · pub struct ScanConfig {Show 13 fields
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,
pub ignore_http_status_errors: 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.
ignore_http_status_errors: bool
Whether to keep scanning even if most requests return HTTP error codes.
Implementations§
source§impl ScanConfig
impl ScanConfig
sourcepub fn user_agent(&self) -> UserAgent
pub fn user_agent(&self) -> UserAgent
Returns the enum value of user_agent
, or the default if the field is set to an invalid enum value.
sourcepub fn set_user_agent(&mut self, value: UserAgent)
pub fn set_user_agent(&mut self, value: UserAgent)
Sets user_agent
to the provided enum value.
sourcepub fn export_to_security_command_center(&self) -> ExportToSecurityCommandCenter
pub fn export_to_security_command_center(&self) -> ExportToSecurityCommandCenter
Returns the enum value of export_to_security_command_center
, or the default if the field is set to an invalid enum value.
sourcepub fn set_export_to_security_command_center(
&mut self,
value: ExportToSecurityCommandCenter,
)
pub fn set_export_to_security_command_center( &mut self, value: ExportToSecurityCommandCenter, )
Sets export_to_security_command_center
to the provided enum value.
sourcepub fn risk_level(&self) -> RiskLevel
pub fn risk_level(&self) -> RiskLevel
Returns the enum value of risk_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_risk_level(&mut self, value: RiskLevel)
pub fn set_risk_level(&mut self, value: RiskLevel)
Sets risk_level
to the provided enum value.
Trait Implementations§
source§impl Clone for ScanConfig
impl Clone for ScanConfig
source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScanConfig
impl Debug for ScanConfig
source§impl Default for ScanConfig
impl Default for ScanConfig
source§impl Message for ScanConfig
impl Message for ScanConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ScanConfig
impl PartialEq for ScanConfig
source§fn eq(&self, other: &ScanConfig) -> bool
fn eq(&self, other: &ScanConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScanConfig
Auto Trait Implementations§
impl Freeze for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnwindSafe for ScanConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request