Class WebSecurityScanner.WebSecurityScannerBase

[BindServiceMethod(typeof(WebSecurityScanner), "BindService")]
public abstract class 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
TypeNameDescription
CreateScanConfigRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
DeleteScanConfigRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
GetFindingRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
GetScanConfigRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
GetScanRunRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
ListCrawledUrlsRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
ListFindingsRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
ListFindingTypeStatsRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
ListScanConfigsRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
ListScanRunsRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
StartScanRunRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
StopScanRunRequestrequest

The request received from the client.

ServerCallContextcontext

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
TypeNameDescription
UpdateScanConfigRequestrequest

The request received from the client.

ServerCallContextcontext

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).