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
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
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
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
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
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnwindSafe for ScanConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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