Class WebSecurityScannerConnection (2.19.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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::CreateScanConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::ScanConfig >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::DeleteScanConfigRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::GetScanConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::ScanConfig >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::ListScanConfigsRequest
Returns
TypeDescription
StreamRange< google::cloud::websecurityscanner::v1::ScanConfig >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::UpdateScanConfigRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::ScanConfig >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::StartScanRunRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::ScanRun >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::GetScanRunRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::ScanRun >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::ListScanRunsRequest
Returns
TypeDescription
StreamRange< google::cloud::websecurityscanner::v1::ScanRun >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::StopScanRunRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::ScanRun >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::ListCrawledUrlsRequest
Returns
TypeDescription
StreamRange< google::cloud::websecurityscanner::v1::CrawledUrl >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::GetFindingRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::Finding >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::ListFindingsRequest
Returns
TypeDescription
StreamRange< google::cloud::websecurityscanner::v1::Finding >

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

Parameter
NameDescription
request google::cloud::websecurityscanner::v1::ListFindingTypeStatsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::websecurityscanner::v1::ListFindingTypeStatsResponse >