Struct google_api_proto::google::cloud::websecurityscanner::v1alpha::ScanConfig
source · 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 latest_run: Option<ScanRun>,
}
Expand description
A ScanConfig resource contains the configurations to launch a scan. next id: 12
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.
latest_run: Option<ScanRun>
Latest ScanRun if available.
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 target_platforms(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<TargetPlatform>>
pub fn target_platforms( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<TargetPlatform>>
Returns an iterator which yields the valid enum values contained in target_platforms
.
sourcepub fn push_target_platforms(&mut self, value: TargetPlatform)
pub fn push_target_platforms(&mut self, value: TargetPlatform)
Appends the provided enum value to target_platforms
.
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