Class v1alpha.WebSecurityScannerClient (1.0.7)

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

Package

@google-cloud/web-security-scanner!

Constructors

(constructor)(opts)

constructor(opts?: ClientOptions);

Construct an instance of WebSecurityScannerClient.

Parameter
NameDescription
opts ClientOptions

Properties

apiEndpoint

static get apiEndpoint(): string;

The DNS address for this API service - same as servicePath(), exists for compatibility reasons.

Property Value
TypeDescription
string

auth

auth: gax.GoogleAuth;
Property Value
TypeDescription
gax.GoogleAuth

descriptors

descriptors: Descriptors;
Property Value
TypeDescription
Descriptors

innerApiCalls

innerApiCalls: {
        [name: string]: Function;
    };
Property Value
TypeDescription
{ [name: string]: Function; }

pathTemplates

pathTemplates: {
        [name: string]: gax.PathTemplate;
    };
Property Value
TypeDescription
{ [name: string]: gax.PathTemplate; }

port

static get port(): number;

The port for this API service.

Property Value
TypeDescription
number

scopes

static get scopes(): string[];

The scopes needed to make gRPC calls for every method defined in this service.

Property Value
TypeDescription
string[]

servicePath

static get servicePath(): string;

The DNS address for this API service.

Property Value
TypeDescription
string

warn

warn: (code: string, message: string, warnType?: string) => void;
Property Value
TypeDescription
(code: string, message: string, warnType?: string) => void

webSecurityScannerStub

webSecurityScannerStub?: Promise<{
        [name: string]: Function;
    }>;
Property Value
TypeDescription
Promise<{ [name: string]: Function; }>

Methods

close()

close(): Promise<void>;

Terminate the gRPC channel and close the client.

The client will no longer be usable and all future behavior is undefined.

Returns
TypeDescription
Promise<void>

{Promise} A promise that resolves when the client is closed.

createScanConfig(request, options)

createScanConfig(request?: protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanConfig,
        (protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, (protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest | undefined), {} | undefined ]>

createScanConfig(request, options, callback)

createScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

createScanConfig(request, callback)

createScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.ICreateScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteScanConfig(request, options)

deleteScanConfig(request?: protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest, options?: CallOptions): Promise<[
        protos.google.protobuf.IEmpty,
        (protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.protobuf.IEmpty, (protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest | undefined), {} | undefined ]>

deleteScanConfig(request, options, callback)

deleteScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest
options CallOptions
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

deleteScanConfig(request, callback)

deleteScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest
callback Callback<protos.google.protobuf.IEmpty, protos.google.cloud.websecurityscanner.v1alpha.IDeleteScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

findingPath(project, scanConfig, scanRun, finding)

findingPath(project: string, scanConfig: string, scanRun: string, finding: string): string;

Return a fully-qualified finding resource name string.

Parameters
NameDescription
project string
scanConfig string
scanRun string
finding string
Returns
TypeDescription
string

{string} Resource name string.

getFinding(request, options)

getFinding(request?: protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IFinding,
        (protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IFinding, (protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest | undefined), {} | undefined ]>

getFinding(request, options, callback)

getFinding(request: protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IFinding, protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IFinding, protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getFinding(request, callback)

getFinding(request: protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IFinding, protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IFinding, protos.google.cloud.websecurityscanner.v1alpha.IGetFindingRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getProjectId()

getProjectId(): Promise<string>;
Returns
TypeDescription
Promise<string>

getProjectId(callback)

getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
NameDescription
callback Callback<string, undefined, undefined>
Returns
TypeDescription
void

getScanConfig(request, options)

getScanConfig(request?: protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanConfig,
        (protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, (protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest | undefined), {} | undefined ]>

getScanConfig(request, options, callback)

getScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getScanConfig(request, callback)

getScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IGetScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getScanRun(request, options)

getScanRun(request?: protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanRun,
        (protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanRun, (protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest | undefined), {} | undefined ]>

getScanRun(request, options, callback)

getScanRun(request: protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

getScanRun(request, callback)

getScanRun(request: protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IGetScanRunRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

initialize()

initialize(): Promise<{
        [name: string]: Function;
    }>;

Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.

You can await on this method if you want to make sure the client is initialized.

Returns
TypeDescription
Promise<{ [name: string]: Function; }>

{Promise} A promise that resolves to an authenticated service stub.

listCrawledUrls(request, options)

listCrawledUrls(request?: protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl[],
        protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest | null,
        protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl[], protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest | null, protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse ]>

listCrawledUrls(request, options, callback)

listCrawledUrls(request: protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl>
Returns
TypeDescription
void

listCrawledUrls(request, callback)

listCrawledUrls(request: protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl>
Returns
TypeDescription
void

listCrawledUrlsAsync(request, options)

listCrawledUrlsAsync(request?: protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl>;

Equivalent to listCrawledUrls, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.ICrawledUrl>

{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [CrawledUrl]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listCrawledUrlsStream(request, options)

listCrawledUrlsStream(request?: protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListCrawledUrlsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing [CrawledUrl] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listCrawledUrlsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listFindings(request, options)

listFindings(request?: protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IFinding[],
        protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest | null,
        protos.google.cloud.websecurityscanner.v1alpha.IListFindingsResponse
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IFinding[], protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest | null, protos.google.cloud.websecurityscanner.v1alpha.IListFindingsResponse ]>

listFindings(request, options, callback)

listFindings(request: protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListFindingsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IFinding>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListFindingsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IFinding>
Returns
TypeDescription
void

listFindings(request, callback)

listFindings(request: protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListFindingsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IFinding>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListFindingsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IFinding>
Returns
TypeDescription
void

listFindingsAsync(request, options)

listFindingsAsync(request?: protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.IFinding>;

Equivalent to listFindings, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.IFinding>

{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [Finding]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listFindingsStream(request, options)

listFindingsStream(request?: protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing [Finding] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listFindingsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listFindingTypeStats(request, options)

listFindingTypeStats(request?: protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse,
        (protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse, (protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest | undefined), {} | undefined ]>

listFindingTypeStats(request, options, callback)

listFindingTypeStats(request: protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse, protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse, protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

listFindingTypeStats(request, callback)

listFindingTypeStats(request: protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse, protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsResponse, protos.google.cloud.websecurityscanner.v1alpha.IListFindingTypeStatsRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

listScanConfigs(request, options)

listScanConfigs(request?: protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanConfig[],
        protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest | null,
        protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanConfig[], protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest | null, protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse ]>

listScanConfigs(request, options, callback)

listScanConfigs(request: protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanConfig>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanConfig>
Returns
TypeDescription
void

listScanConfigs(request, callback)

listScanConfigs(request: protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanConfig>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanConfig>
Returns
TypeDescription
void

listScanConfigsAsync(request, options)

listScanConfigsAsync(request?: protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig>;

Equivalent to listScanConfigs, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig>

{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [ScanConfig]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listScanConfigsStream(request, options)

listScanConfigsStream(request?: protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanConfigsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing [ScanConfig] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listScanConfigsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listScanRuns(request, options)

listScanRuns(request?: protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanRun[],
        protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest | null,
        protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanRun[], protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest | null, protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse ]>

listScanRuns(request, options, callback)

listScanRuns(request: protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanRun>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest
options CallOptions
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanRun>
Returns
TypeDescription
void

listScanRuns(request, callback)

listScanRuns(request: protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, callback: PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanRun>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest
callback PaginationCallback<protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsResponse | null | undefined, protos.google.cloud.websecurityscanner.v1alpha.IScanRun>
Returns
TypeDescription
void

listScanRunsAsync(request, options)

listScanRunsAsync(request?: protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.IScanRun>;

Equivalent to listScanRuns, but returns an iterable object.

for-await-of syntax is used with the iterable to get response elements on-demand.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
AsyncIterable<protos.google.cloud.websecurityscanner.v1alpha.IScanRun>

{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [ScanRun]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listScanRunsStream(request, options)

listScanRunsStream(request?: protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest, options?: CallOptions): Transform;

Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.

Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IListScanRunsRequest

The request object that will be sent.

options CallOptions

Call options. See CallOptions for more details.

Returns
TypeDescription
Transform

{Stream} An object stream which emits an object representing [ScanRun] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listScanRunsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

matchFindingFromFindingName(findingName)

matchFindingFromFindingName(findingName: string): string | number;

Parse the finding from Finding resource.

Parameter
NameDescription
findingName string

A fully-qualified path representing Finding resource.

Returns
TypeDescription
string | number

{string} A string representing the finding.

matchProjectFromFindingName(findingName)

matchProjectFromFindingName(findingName: string): string | number;

Parse the project from Finding resource.

Parameter
NameDescription
findingName string

A fully-qualified path representing Finding resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromProjectName(projectName)

matchProjectFromProjectName(projectName: string): string | number;

Parse the project from Project resource.

Parameter
NameDescription
projectName string

A fully-qualified path representing Project resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromScanConfigName(scanConfigName)

matchProjectFromScanConfigName(scanConfigName: string): string | number;

Parse the project from ScanConfig resource.

Parameter
NameDescription
scanConfigName string

A fully-qualified path representing ScanConfig resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchProjectFromScanRunName(scanRunName)

matchProjectFromScanRunName(scanRunName: string): string | number;

Parse the project from ScanRun resource.

Parameter
NameDescription
scanRunName string

A fully-qualified path representing ScanRun resource.

Returns
TypeDescription
string | number

{string} A string representing the project.

matchScanConfigFromFindingName(findingName)

matchScanConfigFromFindingName(findingName: string): string | number;

Parse the scan_config from Finding resource.

Parameter
NameDescription
findingName string

A fully-qualified path representing Finding resource.

Returns
TypeDescription
string | number

{string} A string representing the scan_config.

matchScanConfigFromScanConfigName(scanConfigName)

matchScanConfigFromScanConfigName(scanConfigName: string): string | number;

Parse the scan_config from ScanConfig resource.

Parameter
NameDescription
scanConfigName string

A fully-qualified path representing ScanConfig resource.

Returns
TypeDescription
string | number

{string} A string representing the scan_config.

matchScanConfigFromScanRunName(scanRunName)

matchScanConfigFromScanRunName(scanRunName: string): string | number;

Parse the scan_config from ScanRun resource.

Parameter
NameDescription
scanRunName string

A fully-qualified path representing ScanRun resource.

Returns
TypeDescription
string | number

{string} A string representing the scan_config.

matchScanRunFromFindingName(findingName)

matchScanRunFromFindingName(findingName: string): string | number;

Parse the scan_run from Finding resource.

Parameter
NameDescription
findingName string

A fully-qualified path representing Finding resource.

Returns
TypeDescription
string | number

{string} A string representing the scan_run.

matchScanRunFromScanRunName(scanRunName)

matchScanRunFromScanRunName(scanRunName: string): string | number;

Parse the scan_run from ScanRun resource.

Parameter
NameDescription
scanRunName string

A fully-qualified path representing ScanRun resource.

Returns
TypeDescription
string | number

{string} A string representing the scan_run.

projectPath(project)

projectPath(project: string): string;

Return a fully-qualified project resource name string.

Parameter
NameDescription
project string
Returns
TypeDescription
string

{string} Resource name string.

scanConfigPath(project, scanConfig)

scanConfigPath(project: string, scanConfig: string): string;

Return a fully-qualified scanConfig resource name string.

Parameters
NameDescription
project string
scanConfig string
Returns
TypeDescription
string

{string} Resource name string.

scanRunPath(project, scanConfig, scanRun)

scanRunPath(project: string, scanConfig: string, scanRun: string): string;

Return a fully-qualified scanRun resource name string.

Parameters
NameDescription
project string
scanConfig string
scanRun string
Returns
TypeDescription
string

{string} Resource name string.

startScanRun(request, options)

startScanRun(request?: protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanRun,
        (protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanRun, (protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest | undefined), {} | undefined ]>

startScanRun(request, options, callback)

startScanRun(request: protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

startScanRun(request, callback)

startScanRun(request: protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStartScanRunRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

stopScanRun(request, options)

stopScanRun(request?: protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanRun,
        (protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanRun, (protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest | undefined), {} | undefined ]>

stopScanRun(request, options, callback)

stopScanRun(request: protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

stopScanRun(request, callback)

stopScanRun(request: protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanRun, protos.google.cloud.websecurityscanner.v1alpha.IStopScanRunRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateScanConfig(request, options)

updateScanConfig(request?: protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest, options?: CallOptions): Promise<[
        protos.google.cloud.websecurityscanner.v1alpha.IScanConfig,
        (protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest | undefined),
        {} | undefined
    ]>;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest
options CallOptions
Returns
TypeDescription
Promise<[ protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, (protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest | undefined), {} | undefined ]>

updateScanConfig(request, options, callback)

updateScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest, options: CallOptions, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest
options CallOptions
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void

updateScanConfig(request, callback)

updateScanConfig(request: protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest, callback: Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest | null | undefined, {} | null | undefined>): void;
Parameters
NameDescription
request protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest
callback Callback<protos.google.cloud.websecurityscanner.v1alpha.IScanConfig, protos.google.cloud.websecurityscanner.v1alpha.IUpdateScanConfigRequest | null | undefined, {} | null | undefined>
Returns
TypeDescription
void