Struct google_api_proto::google::cloud::websecurityscanner::v1alpha::web_security_scanner_client::WebSecurityScannerClient
source · pub struct WebSecurityScannerClient<T> { /* private fields */ }
Expand description
Cloud Web Security Scanner Service identifies security vulnerabilities in web applications hosted on Google Cloud Platform. It crawls your application, and attempts to exercise as many user inputs and event handlers as possible.
Implementations§
source§impl<T> WebSecurityScannerClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> WebSecurityScannerClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> WebSecurityScannerClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_scan_config(
&mut self,
request: impl IntoRequest<CreateScanConfigRequest>,
) -> Result<Response<ScanConfig>, Status>
pub async fn create_scan_config( &mut self, request: impl IntoRequest<CreateScanConfigRequest>, ) -> Result<Response<ScanConfig>, Status>
Creates a new ScanConfig.
sourcepub async fn delete_scan_config(
&mut self,
request: impl IntoRequest<DeleteScanConfigRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_scan_config( &mut self, request: impl IntoRequest<DeleteScanConfigRequest>, ) -> Result<Response<()>, Status>
Deletes an existing ScanConfig and its child resources.
sourcepub async fn get_scan_config(
&mut self,
request: impl IntoRequest<GetScanConfigRequest>,
) -> Result<Response<ScanConfig>, Status>
pub async fn get_scan_config( &mut self, request: impl IntoRequest<GetScanConfigRequest>, ) -> Result<Response<ScanConfig>, Status>
Gets a ScanConfig.
sourcepub async fn list_scan_configs(
&mut self,
request: impl IntoRequest<ListScanConfigsRequest>,
) -> Result<Response<ListScanConfigsResponse>, Status>
pub async fn list_scan_configs( &mut self, request: impl IntoRequest<ListScanConfigsRequest>, ) -> Result<Response<ListScanConfigsResponse>, Status>
Lists ScanConfigs under a given project.
sourcepub async fn update_scan_config(
&mut self,
request: impl IntoRequest<UpdateScanConfigRequest>,
) -> Result<Response<ScanConfig>, Status>
pub async fn update_scan_config( &mut self, request: impl IntoRequest<UpdateScanConfigRequest>, ) -> Result<Response<ScanConfig>, Status>
Updates a ScanConfig. This method support partial update of a ScanConfig.
sourcepub async fn start_scan_run(
&mut self,
request: impl IntoRequest<StartScanRunRequest>,
) -> Result<Response<ScanRun>, Status>
pub async fn start_scan_run( &mut self, request: impl IntoRequest<StartScanRunRequest>, ) -> Result<Response<ScanRun>, Status>
Start a ScanRun according to the given ScanConfig.
sourcepub async fn get_scan_run(
&mut self,
request: impl IntoRequest<GetScanRunRequest>,
) -> Result<Response<ScanRun>, Status>
pub async fn get_scan_run( &mut self, request: impl IntoRequest<GetScanRunRequest>, ) -> Result<Response<ScanRun>, Status>
Gets a ScanRun.
sourcepub async fn list_scan_runs(
&mut self,
request: impl IntoRequest<ListScanRunsRequest>,
) -> Result<Response<ListScanRunsResponse>, Status>
pub async fn list_scan_runs( &mut self, request: impl IntoRequest<ListScanRunsRequest>, ) -> Result<Response<ListScanRunsResponse>, Status>
Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.
sourcepub async fn stop_scan_run(
&mut self,
request: impl IntoRequest<StopScanRunRequest>,
) -> Result<Response<ScanRun>, Status>
pub async fn stop_scan_run( &mut self, request: impl IntoRequest<StopScanRunRequest>, ) -> Result<Response<ScanRun>, Status>
Stops a ScanRun. The stopped ScanRun is returned.
sourcepub async fn list_crawled_urls(
&mut self,
request: impl IntoRequest<ListCrawledUrlsRequest>,
) -> Result<Response<ListCrawledUrlsResponse>, Status>
pub async fn list_crawled_urls( &mut self, request: impl IntoRequest<ListCrawledUrlsRequest>, ) -> Result<Response<ListCrawledUrlsResponse>, Status>
List CrawledUrls under a given ScanRun.
sourcepub async fn get_finding(
&mut self,
request: impl IntoRequest<GetFindingRequest>,
) -> Result<Response<Finding>, Status>
pub async fn get_finding( &mut self, request: impl IntoRequest<GetFindingRequest>, ) -> Result<Response<Finding>, Status>
Gets a Finding.
sourcepub async fn list_findings(
&mut self,
request: impl IntoRequest<ListFindingsRequest>,
) -> Result<Response<ListFindingsResponse>, Status>
pub async fn list_findings( &mut self, request: impl IntoRequest<ListFindingsRequest>, ) -> Result<Response<ListFindingsResponse>, Status>
List Findings under a given ScanRun.
sourcepub async fn list_finding_type_stats(
&mut self,
request: impl IntoRequest<ListFindingTypeStatsRequest>,
) -> Result<Response<ListFindingTypeStatsResponse>, Status>
pub async fn list_finding_type_stats( &mut self, request: impl IntoRequest<ListFindingTypeStatsRequest>, ) -> Result<Response<ListFindingTypeStatsResponse>, Status>
List all FindingTypeStats under a given ScanRun.
Trait Implementations§
source§impl<T: Clone> Clone for WebSecurityScannerClient<T>
impl<T: Clone> Clone for WebSecurityScannerClient<T>
source§fn clone(&self) -> WebSecurityScannerClient<T>
fn clone(&self) -> WebSecurityScannerClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for WebSecurityScannerClient<T>
impl<T> RefUnwindSafe for WebSecurityScannerClient<T>where
T: RefUnwindSafe,
impl<T> Send for WebSecurityScannerClient<T>where
T: Send,
impl<T> Sync for WebSecurityScannerClient<T>where
T: Sync,
impl<T> Unpin for WebSecurityScannerClient<T>where
T: Unpin,
impl<T> UnwindSafe for WebSecurityScannerClient<T>where
T: UnwindSafe,
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