Class WebSecurityScannerConnection (2.27.0)

This interface defines virtual methods for each of the user-facing overload sets in WebSecurityScannerClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type WebSecurityScannerClient.

To create a concrete instance, see MakeWebSecurityScannerConnection().

For mocking, see websecurityscanner_v1_mocks::MockWebSecurityScannerConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateScanConfig(google::cloud::websecurityscanner::v1::CreateScanConfigRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::CreateScanConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::ScanConfig >

virtual DeleteScanConfig(google::cloud::websecurityscanner::v1::DeleteScanConfigRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::DeleteScanConfigRequest const &
Returns
Type Description
Status

virtual GetScanConfig(google::cloud::websecurityscanner::v1::GetScanConfigRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::GetScanConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::ScanConfig >

virtual ListScanConfigs(google::cloud::websecurityscanner::v1::ListScanConfigsRequest)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::ListScanConfigsRequest
Returns
Type Description
StreamRange< google::cloud::websecurityscanner::v1::ScanConfig >

virtual UpdateScanConfig(google::cloud::websecurityscanner::v1::UpdateScanConfigRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::UpdateScanConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::ScanConfig >

virtual StartScanRun(google::cloud::websecurityscanner::v1::StartScanRunRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::StartScanRunRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::ScanRun >

virtual GetScanRun(google::cloud::websecurityscanner::v1::GetScanRunRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::GetScanRunRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::ScanRun >

virtual ListScanRuns(google::cloud::websecurityscanner::v1::ListScanRunsRequest)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::ListScanRunsRequest
Returns
Type Description
StreamRange< google::cloud::websecurityscanner::v1::ScanRun >

virtual StopScanRun(google::cloud::websecurityscanner::v1::StopScanRunRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::StopScanRunRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::ScanRun >

virtual ListCrawledUrls(google::cloud::websecurityscanner::v1::ListCrawledUrlsRequest)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::ListCrawledUrlsRequest
Returns
Type Description
StreamRange< google::cloud::websecurityscanner::v1::CrawledUrl >

virtual GetFinding(google::cloud::websecurityscanner::v1::GetFindingRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::GetFindingRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::Finding >

virtual ListFindings(google::cloud::websecurityscanner::v1::ListFindingsRequest)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::ListFindingsRequest
Returns
Type Description
StreamRange< google::cloud::websecurityscanner::v1::Finding >

virtual ListFindingTypeStats(google::cloud::websecurityscanner::v1::ListFindingTypeStatsRequest const &)

Parameter
Name Description
request google::cloud::websecurityscanner::v1::ListFindingTypeStatsRequest const &
Returns
Type Description
StatusOr< google::cloud::websecurityscanner::v1::ListFindingTypeStatsResponse >