Edit File: v1alpha.d.ts
/// <reference types="node" /> import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; export declare namespace websecurityscanner_v1alpha { export interface Options extends GlobalOptions { version: 'v1alpha'; } interface StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; /** * V1 error format. */ '$.xgafv'?: string; /** * OAuth access token. */ access_token?: string; /** * Data format for response. */ alt?: string; /** * JSONP */ callback?: string; /** * Selector specifying which fields to include in a partial response. */ fields?: string; /** * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** * OAuth 2.0 token for the current user. */ oauth_token?: string; /** * Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** * Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** * Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; } /** * Web Security Scanner API * * Scans your Compute and App Engine apps for common web vulnerabilities. * * @example * ```js * const {google} = require('googleapis'); * const websecurityscanner = google.websecurityscanner('v1alpha'); * ``` */ export class Websecurityscanner { context: APIRequestContext; projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable); } /** * Scan authentication configuration. */ export interface Schema$Authentication { /** * Authentication using a custom account. */ customAccount?: Schema$CustomAccount; /** * Authentication using a Google account. */ googleAccount?: Schema$GoogleAccount; } /** * A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web Security Scanner Service crawls the web applications, following all links within the scope of sites, to find the URLs to test against. */ export interface Schema$CrawledUrl { /** * Output only. The body of the request that was used to visit the URL. */ body?: string | null; /** * Output only. The http method of the request that was used to visit the URL, in uppercase. */ httpMethod?: string | null; /** * Output only. The URL that was crawled. */ url?: string | null; } /** * Describes authentication configuration that uses a custom account. */ export interface Schema$CustomAccount { /** * Required. The login form URL of the website. */ loginUrl?: string | null; /** * Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs. */ password?: string | null; /** * Required. The user name of the custom account. */ username?: string | null; } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ export interface Schema$Empty { } /** * A Finding resource represents a vulnerability instance identified during a ScanRun. */ export interface Schema$Finding { /** * The body of the request that triggered the vulnerability. */ body?: string | null; /** * The description of the vulnerability. */ description?: string | null; /** * The URL where the browser lands when the vulnerability is detected. */ finalUrl?: string | null; /** * The type of the Finding. */ findingType?: string | null; /** * If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported. */ frameUrl?: string | null; /** * The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability. */ fuzzedUrl?: string | null; /** * The http method of the request that triggered the vulnerability, in uppercase. */ httpMethod?: string | null; /** * The resource name of the Finding. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanruns/{scanRunId\}/findings/{findingId\}'. The finding IDs are generated by the system. */ name?: string | null; /** * An addon containing information about outdated libraries. */ outdatedLibrary?: Schema$OutdatedLibrary; /** * The URL containing human-readable payload that user can leverage to reproduce the vulnerability. */ reproductionUrl?: string | null; /** * The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns. */ trackingId?: string | null; /** * An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. */ violatingResource?: Schema$ViolatingResource; /** * An addon containing information about vulnerable or missing HTTP headers. */ vulnerableHeaders?: Schema$VulnerableHeaders; /** * An addon containing information about request parameters which were found to be vulnerable. */ vulnerableParameters?: Schema$VulnerableParameters; /** * An addon containing information reported for an XSS, if any. */ xss?: Schema$Xss; } /** * A FindingTypeStats resource represents stats regarding a specific FindingType of Findings under a given ScanRun. */ export interface Schema$FindingTypeStats { /** * The count of findings belonging to this finding type. */ findingCount?: number | null; /** * The finding type associated with the stats. */ findingType?: string | null; } /** * Describes authentication configuration that uses a Google account. */ export interface Schema$GoogleAccount { /** * Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs. */ password?: string | null; /** * Required. The user name of the Google account. */ username?: string | null; } /** * Describes a HTTP Header. */ export interface Schema$Header { /** * Header name. */ name?: string | null; /** * Header value. */ value?: string | null; } /** * Response for the `ListCrawledUrls` method. */ export interface Schema$ListCrawledUrlsResponse { /** * The list of CrawledUrls returned. */ crawledUrls?: Schema$CrawledUrl[]; /** * Token to retrieve the next page of results, or empty if there are no more results in the list. */ nextPageToken?: string | null; } /** * Response for the `ListFindings` method. */ export interface Schema$ListFindingsResponse { /** * The list of Findings returned. */ findings?: Schema$Finding[]; /** * Token to retrieve the next page of results, or empty if there are no more results in the list. */ nextPageToken?: string | null; } /** * Response for the `ListFindingTypeStats` method. */ export interface Schema$ListFindingTypeStatsResponse { /** * The list of FindingTypeStats returned. */ findingTypeStats?: Schema$FindingTypeStats[]; } /** * Response for the `ListScanConfigs` method. */ export interface Schema$ListScanConfigsResponse { /** * Token to retrieve the next page of results, or empty if there are no more results in the list. */ nextPageToken?: string | null; /** * The list of ScanConfigs returned. */ scanConfigs?: Schema$ScanConfig[]; } /** * Response for the `ListScanRuns` method. */ export interface Schema$ListScanRunsResponse { /** * Token to retrieve the next page of results, or empty if there are no more results in the list. */ nextPageToken?: string | null; /** * The list of ScanRuns returned. */ scanRuns?: Schema$ScanRun[]; } /** * Information reported for an outdated library. */ export interface Schema$OutdatedLibrary { /** * URLs to learn more information about the vulnerabilities in the library. */ learnMoreUrls?: string[] | null; /** * The name of the outdated library. */ libraryName?: string | null; /** * The version number. */ version?: string | null; } /** * A ScanConfig resource contains the configurations to launch a scan. next id: 12 */ export interface Schema$ScanConfig { /** * The authentication configuration. If specified, service will use the authentication configuration during scanning. */ authentication?: Schema$Authentication; /** * The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls */ blacklistPatterns?: string[] | null; /** * Required. The user provided display name of the ScanConfig. */ displayName?: string | null; /** * Latest ScanRun if available. */ latestRun?: Schema$ScanRun; /** * The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error. */ maxQps?: number | null; /** * The resource name of the ScanConfig. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. The ScanConfig IDs are generated by the system. */ name?: string | null; /** * The schedule of the ScanConfig. */ schedule?: Schema$Schedule; /** * Required. The starting URLs from which the scanner finds site pages. */ startingUrls?: string[] | null; /** * Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default. */ targetPlatforms?: string[] | null; /** * The user agent used during scanning. */ userAgent?: string | null; } /** * A ScanRun is a output-only resource representing an actual run of the scan. */ export interface Schema$ScanRun { /** * The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user. */ endTime?: string | null; /** * The execution state of the ScanRun. */ executionState?: string | null; /** * Whether the scan run has found any vulnerabilities. */ hasVulnerabilities?: boolean | null; /** * The resource name of the ScanRun. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'. The ScanRun IDs are generated by the system. */ name?: string | null; /** * The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan is finished, the value is 100. */ progressPercent?: number | null; /** * The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED". */ resultState?: string | null; /** * The time at which the ScanRun started. */ startTime?: string | null; /** * The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now. */ urlsCrawledCount?: string | null; /** * The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads. */ urlsTestedCount?: string | null; } /** * Scan schedule configuration. */ export interface Schema$Schedule { /** * Required. The duration of time between executions in days. */ intervalDurationDays?: number | null; /** * A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means the scan will be scheduled to start immediately. */ scheduleTime?: string | null; } /** * Request for the `StartScanRun` method. */ export interface Schema$StartScanRunRequest { } /** * Request for the `StopScanRun` method. */ export interface Schema$StopScanRunRequest { } /** * Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. */ export interface Schema$ViolatingResource { /** * The MIME type of this resource. */ contentType?: string | null; /** * URL of this violating resource. */ resourceUrl?: string | null; } /** * Information about vulnerable or missing HTTP Headers. */ export interface Schema$VulnerableHeaders { /** * List of vulnerable headers. */ headers?: Schema$Header[]; /** * List of missing headers. */ missingHeaders?: Schema$Header[]; } /** * Information about vulnerable request parameters. */ export interface Schema$VulnerableParameters { /** * The vulnerable parameter names. */ parameterNames?: string[] | null; } /** * Information reported for an XSS. */ export interface Schema$Xss { /** * An error message generated by a javascript breakage. */ errorMessage?: string | null; /** * Stack traces leading to the point where the XSS occurred. */ stackTraces?: string[] | null; } export class Resource$Projects { context: APIRequestContext; scanConfigs: Resource$Projects$Scanconfigs; constructor(context: APIRequestContext); } export class Resource$Projects$Scanconfigs { context: APIRequestContext; scanRuns: Resource$Projects$Scanconfigs$Scanruns; constructor(context: APIRequestContext); /** * Creates a new ScanConfig. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ create(params: Params$Resource$Projects$Scanconfigs$Create, options: StreamMethodOptions): GaxiosPromise<Readable>; create(params?: Params$Resource$Projects$Scanconfigs$Create, options?: MethodOptions): GaxiosPromise<Schema$ScanConfig>; create(params: Params$Resource$Projects$Scanconfigs$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; create(params: Params$Resource$Projects$Scanconfigs$Create, options: MethodOptions | BodyResponseCallback<Schema$ScanConfig>, callback: BodyResponseCallback<Schema$ScanConfig>): void; create(params: Params$Resource$Projects$Scanconfigs$Create, callback: BodyResponseCallback<Schema$ScanConfig>): void; create(callback: BodyResponseCallback<Schema$ScanConfig>): void; /** * Deletes an existing ScanConfig and its child resources. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ delete(params: Params$Resource$Projects$Scanconfigs$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>; delete(params?: Params$Resource$Projects$Scanconfigs$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>; delete(params: Params$Resource$Projects$Scanconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; delete(params: Params$Resource$Projects$Scanconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void; delete(params: Params$Resource$Projects$Scanconfigs$Delete, callback: BodyResponseCallback<Schema$Empty>): void; delete(callback: BodyResponseCallback<Schema$Empty>): void; /** * Gets a ScanConfig. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Scanconfigs$Get, options: StreamMethodOptions): GaxiosPromise<Readable>; get(params?: Params$Resource$Projects$Scanconfigs$Get, options?: MethodOptions): GaxiosPromise<Schema$ScanConfig>; get(params: Params$Resource$Projects$Scanconfigs$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; get(params: Params$Resource$Projects$Scanconfigs$Get, options: MethodOptions | BodyResponseCallback<Schema$ScanConfig>, callback: BodyResponseCallback<Schema$ScanConfig>): void; get(params: Params$Resource$Projects$Scanconfigs$Get, callback: BodyResponseCallback<Schema$ScanConfig>): void; get(callback: BodyResponseCallback<Schema$ScanConfig>): void; /** * Lists ScanConfigs under a given project. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Scanconfigs$List, options: StreamMethodOptions): GaxiosPromise<Readable>; list(params?: Params$Resource$Projects$Scanconfigs$List, options?: MethodOptions): GaxiosPromise<Schema$ListScanConfigsResponse>; list(params: Params$Resource$Projects$Scanconfigs$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; list(params: Params$Resource$Projects$Scanconfigs$List, options: MethodOptions | BodyResponseCallback<Schema$ListScanConfigsResponse>, callback: BodyResponseCallback<Schema$ListScanConfigsResponse>): void; list(params: Params$Resource$Projects$Scanconfigs$List, callback: BodyResponseCallback<Schema$ListScanConfigsResponse>): void; list(callback: BodyResponseCallback<Schema$ListScanConfigsResponse>): void; /** * Updates a ScanConfig. This method support partial update of a ScanConfig. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ patch(params: Params$Resource$Projects$Scanconfigs$Patch, options: StreamMethodOptions): GaxiosPromise<Readable>; patch(params?: Params$Resource$Projects$Scanconfigs$Patch, options?: MethodOptions): GaxiosPromise<Schema$ScanConfig>; patch(params: Params$Resource$Projects$Scanconfigs$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; patch(params: Params$Resource$Projects$Scanconfigs$Patch, options: MethodOptions | BodyResponseCallback<Schema$ScanConfig>, callback: BodyResponseCallback<Schema$ScanConfig>): void; patch(params: Params$Resource$Projects$Scanconfigs$Patch, callback: BodyResponseCallback<Schema$ScanConfig>): void; patch(callback: BodyResponseCallback<Schema$ScanConfig>): void; /** * Start a ScanRun according to the given ScanConfig. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ start(params: Params$Resource$Projects$Scanconfigs$Start, options: StreamMethodOptions): GaxiosPromise<Readable>; start(params?: Params$Resource$Projects$Scanconfigs$Start, options?: MethodOptions): GaxiosPromise<Schema$ScanRun>; start(params: Params$Resource$Projects$Scanconfigs$Start, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; start(params: Params$Resource$Projects$Scanconfigs$Start, options: MethodOptions | BodyResponseCallback<Schema$ScanRun>, callback: BodyResponseCallback<Schema$ScanRun>): void; start(params: Params$Resource$Projects$Scanconfigs$Start, callback: BodyResponseCallback<Schema$ScanRun>): void; start(callback: BodyResponseCallback<Schema$ScanRun>): void; } export interface Params$Resource$Projects$Scanconfigs$Create extends StandardParameters { /** * Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId\}'. */ parent?: string; /** * Request body metadata */ requestBody?: Schema$ScanConfig; } export interface Params$Resource$Projects$Scanconfigs$Delete extends StandardParameters { /** * Required. The resource name of the ScanConfig to be deleted. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. */ name?: string; } export interface Params$Resource$Projects$Scanconfigs$Get extends StandardParameters { /** * Required. The resource name of the ScanConfig to be returned. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. */ name?: string; } export interface Params$Resource$Projects$Scanconfigs$List extends StandardParameters { /** * The maximum number of ScanConfigs to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */ pageSize?: number; /** * A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned. */ pageToken?: string; /** * Required. The parent resource name, which should be a project resource name in the format 'projects/{projectId\}'. */ parent?: string; } export interface Params$Resource$Projects$Scanconfigs$Patch extends StandardParameters { /** * The resource name of the ScanConfig. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. The ScanConfig IDs are generated by the system. */ name?: string; /** * Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */ updateMask?: string; /** * Request body metadata */ requestBody?: Schema$ScanConfig; } export interface Params$Resource$Projects$Scanconfigs$Start extends StandardParameters { /** * Required. The resource name of the ScanConfig to be used. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. */ name?: string; /** * Request body metadata */ requestBody?: Schema$StartScanRunRequest; } export class Resource$Projects$Scanconfigs$Scanruns { context: APIRequestContext; crawledUrls: Resource$Projects$Scanconfigs$Scanruns$Crawledurls; findings: Resource$Projects$Scanconfigs$Scanruns$Findings; findingTypeStats: Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; constructor(context: APIRequestContext); /** * Gets a ScanRun. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Get, options: StreamMethodOptions): GaxiosPromise<Readable>; get(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Get, options?: MethodOptions): GaxiosPromise<Schema$ScanRun>; get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Get, options: MethodOptions | BodyResponseCallback<Schema$ScanRun>, callback: BodyResponseCallback<Schema$ScanRun>): void; get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Get, callback: BodyResponseCallback<Schema$ScanRun>): void; get(callback: BodyResponseCallback<Schema$ScanRun>): void; /** * Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Scanconfigs$Scanruns$List, options: StreamMethodOptions): GaxiosPromise<Readable>; list(params?: Params$Resource$Projects$Scanconfigs$Scanruns$List, options?: MethodOptions): GaxiosPromise<Schema$ListScanRunsResponse>; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$List, options: MethodOptions | BodyResponseCallback<Schema$ListScanRunsResponse>, callback: BodyResponseCallback<Schema$ListScanRunsResponse>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$List, callback: BodyResponseCallback<Schema$ListScanRunsResponse>): void; list(callback: BodyResponseCallback<Schema$ListScanRunsResponse>): void; /** * Stops a ScanRun. The stopped ScanRun is returned. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ stop(params: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, options: StreamMethodOptions): GaxiosPromise<Readable>; stop(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, options?: MethodOptions): GaxiosPromise<Schema$ScanRun>; stop(params: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; stop(params: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, options: MethodOptions | BodyResponseCallback<Schema$ScanRun>, callback: BodyResponseCallback<Schema$ScanRun>): void; stop(params: Params$Resource$Projects$Scanconfigs$Scanruns$Stop, callback: BodyResponseCallback<Schema$ScanRun>): void; stop(callback: BodyResponseCallback<Schema$ScanRun>): void; } export interface Params$Resource$Projects$Scanconfigs$Scanruns$Get extends StandardParameters { /** * Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'. */ name?: string; } export interface Params$Resource$Projects$Scanconfigs$Scanruns$List extends StandardParameters { /** * The maximum number of ScanRuns to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */ pageSize?: number; /** * A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned. */ pageToken?: string; /** * Required. The parent resource name, which should be a scan resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}'. */ parent?: string; } export interface Params$Resource$Projects$Scanconfigs$Scanruns$Stop extends StandardParameters { /** * Required. The resource name of the ScanRun to be stopped. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'. */ name?: string; /** * Request body metadata */ requestBody?: Schema$StopScanRunRequest; } export class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { context: APIRequestContext; constructor(context: APIRequestContext); /** * List CrawledUrls under a given ScanRun. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, options: StreamMethodOptions): GaxiosPromise<Readable>; list(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, options?: MethodOptions): GaxiosPromise<Schema$ListCrawledUrlsResponse>; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, options: MethodOptions | BodyResponseCallback<Schema$ListCrawledUrlsResponse>, callback: BodyResponseCallback<Schema$ListCrawledUrlsResponse>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List, callback: BodyResponseCallback<Schema$ListCrawledUrlsResponse>): void; list(callback: BodyResponseCallback<Schema$ListCrawledUrlsResponse>): void; } export interface Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List extends StandardParameters { /** * The maximum number of CrawledUrls to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */ pageSize?: number; /** * A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned. */ pageToken?: string; /** * Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'. */ parent?: string; } export class Resource$Projects$Scanconfigs$Scanruns$Findings { context: APIRequestContext; constructor(context: APIRequestContext); /** * Gets a Finding. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, options: StreamMethodOptions): GaxiosPromise<Readable>; get(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, options?: MethodOptions): GaxiosPromise<Schema$Finding>; get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, options: MethodOptions | BodyResponseCallback<Schema$Finding>, callback: BodyResponseCallback<Schema$Finding>): void; get(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get, callback: BodyResponseCallback<Schema$Finding>): void; get(callback: BodyResponseCallback<Schema$Finding>): void; /** * List Findings under a given ScanRun. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, options: StreamMethodOptions): GaxiosPromise<Readable>; list(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, options?: MethodOptions): GaxiosPromise<Schema$ListFindingsResponse>; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, options: MethodOptions | BodyResponseCallback<Schema$ListFindingsResponse>, callback: BodyResponseCallback<Schema$ListFindingsResponse>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List, callback: BodyResponseCallback<Schema$ListFindingsResponse>): void; list(callback: BodyResponseCallback<Schema$ListFindingsResponse>): void; } export interface Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get extends StandardParameters { /** * Required. The resource name of the Finding to be returned. The name follows the format of 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}/findings/{findingId\}'. */ name?: string; } export interface Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List extends StandardParameters { /** * Required. The filter expression. The expression must be in the format: . Supported field: 'finding_type'. Supported operator: '='. */ filter?: string; /** * The maximum number of Findings to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */ pageSize?: number; /** * A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results is returned. */ pageToken?: string; /** * Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'. */ parent?: string; } export class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { context: APIRequestContext; constructor(context: APIRequestContext); /** * List all FindingTypeStats under a given ScanRun. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, options: StreamMethodOptions): GaxiosPromise<Readable>; list(params?: Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, options?: MethodOptions): GaxiosPromise<Schema$ListFindingTypeStatsResponse>; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, options: MethodOptions | BodyResponseCallback<Schema$ListFindingTypeStatsResponse>, callback: BodyResponseCallback<Schema$ListFindingTypeStatsResponse>): void; list(params: Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List, callback: BodyResponseCallback<Schema$ListFindingTypeStatsResponse>): void; list(callback: BodyResponseCallback<Schema$ListFindingTypeStatsResponse>): void; } export interface Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List extends StandardParameters { /** * Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'. */ parent?: string; } export {}; }
Back to File Manager