Web Security Scanner v1 API - Class WebSecurityScanner.WebSecurityScannerBase (2.1.0)

[BindServiceMethod(typeof(WebSecurityScanner), "BindService")]
public abstract class WebSecurityScannerBase

Reference documentation and code samples for the Web Security Scanner v1 API class WebSecurityScanner.WebSecurityScannerBase.

Base class for server-side implementations of WebSecurityScanner

Inheritance

Object > WebSecurityScanner.WebSecurityScannerBase

Namespace

Google.Cloud.WebSecurityScanner.V1

Assembly

Google.Cloud.WebSecurityScanner.V1.dll

Methods

CreateScanConfig(CreateScanConfigRequest, ServerCallContext)

public virtual Task<ScanConfig> CreateScanConfig(CreateScanConfigRequest request, ServerCallContext context)

Creates a new ScanConfig.

Parameters
NameDescription
requestCreateScanConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ScanConfig>

The response to send back to the client (wrapped by a task).

DeleteScanConfig(DeleteScanConfigRequest, ServerCallContext)

public virtual Task<Empty> DeleteScanConfig(DeleteScanConfigRequest request, ServerCallContext context)

Deletes an existing ScanConfig and its child resources.

Parameters
NameDescription
requestDeleteScanConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetFinding(GetFindingRequest, ServerCallContext)

public virtual Task<Finding> GetFinding(GetFindingRequest request, ServerCallContext context)

Gets a Finding.

Parameters
NameDescription
requestGetFindingRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Finding>

The response to send back to the client (wrapped by a task).

GetScanConfig(GetScanConfigRequest, ServerCallContext)

public virtual Task<ScanConfig> GetScanConfig(GetScanConfigRequest request, ServerCallContext context)

Gets a ScanConfig.

Parameters
NameDescription
requestGetScanConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ScanConfig>

The response to send back to the client (wrapped by a task).

GetScanRun(GetScanRunRequest, ServerCallContext)

public virtual Task<ScanRun> GetScanRun(GetScanRunRequest request, ServerCallContext context)

Gets a ScanRun.

Parameters
NameDescription
requestGetScanRunRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ScanRun>

The response to send back to the client (wrapped by a task).

ListCrawledUrls(ListCrawledUrlsRequest, ServerCallContext)

public virtual Task<ListCrawledUrlsResponse> ListCrawledUrls(ListCrawledUrlsRequest request, ServerCallContext context)

List CrawledUrls under a given ScanRun.

Parameters
NameDescription
requestListCrawledUrlsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListCrawledUrlsResponse>

The response to send back to the client (wrapped by a task).

ListFindings(ListFindingsRequest, ServerCallContext)

public virtual Task<ListFindingsResponse> ListFindings(ListFindingsRequest request, ServerCallContext context)

List Findings under a given ScanRun.

Parameters
NameDescription
requestListFindingsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListFindingsResponse>

The response to send back to the client (wrapped by a task).

ListFindingTypeStats(ListFindingTypeStatsRequest, ServerCallContext)

public virtual Task<ListFindingTypeStatsResponse> ListFindingTypeStats(ListFindingTypeStatsRequest request, ServerCallContext context)

List all FindingTypeStats under a given ScanRun.

Parameters
NameDescription
requestListFindingTypeStatsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListFindingTypeStatsResponse>

The response to send back to the client (wrapped by a task).

ListScanConfigs(ListScanConfigsRequest, ServerCallContext)

public virtual Task<ListScanConfigsResponse> ListScanConfigs(ListScanConfigsRequest request, ServerCallContext context)

Lists ScanConfigs under a given project.

Parameters
NameDescription
requestListScanConfigsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListScanConfigsResponse>

The response to send back to the client (wrapped by a task).

ListScanRuns(ListScanRunsRequest, ServerCallContext)

public virtual Task<ListScanRunsResponse> ListScanRuns(ListScanRunsRequest request, ServerCallContext context)

Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.

Parameters
NameDescription
requestListScanRunsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListScanRunsResponse>

The response to send back to the client (wrapped by a task).

StartScanRun(StartScanRunRequest, ServerCallContext)

public virtual Task<ScanRun> StartScanRun(StartScanRunRequest request, ServerCallContext context)

Start a ScanRun according to the given ScanConfig.

Parameters
NameDescription
requestStartScanRunRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ScanRun>

The response to send back to the client (wrapped by a task).

StopScanRun(StopScanRunRequest, ServerCallContext)

public virtual Task<ScanRun> StopScanRun(StopScanRunRequest request, ServerCallContext context)

Stops a ScanRun. The stopped ScanRun is returned.

Parameters
NameDescription
requestStopScanRunRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ScanRun>

The response to send back to the client (wrapped by a task).

UpdateScanConfig(UpdateScanConfigRequest, ServerCallContext)

public virtual Task<ScanConfig> UpdateScanConfig(UpdateScanConfigRequest request, ServerCallContext context)

Updates a ScanConfig. This method support partial update of a ScanConfig.

Parameters
NameDescription
requestUpdateScanConfigRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ScanConfig>

The response to send back to the client (wrapped by a task).