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::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
impl<T> WebSecurityScannerClient<T>where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
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>
Auto Trait Implementations§
impl<T> Freeze for WebSecurityScannerClient<T>where
T: Freeze,
impl<T> !RefUnwindSafe for WebSecurityScannerClient<T>
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>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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