Skip to content

Commit

Permalink
fix(websecurityscanner): update the API
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent b7d464c commit 6f7c5c6
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 84 deletions.
58 changes: 30 additions & 28 deletions src/apis/websecurityscanner/v1.ts
Expand Up @@ -1595,9 +1595,10 @@ export namespace websecurityscanner_v1 {
this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(
this.context
);
this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(
this.context
);
this.findingTypeStats =
new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(
this.context
);
}

/**
Expand Down Expand Up @@ -2088,17 +2089,16 @@ export namespace websecurityscanner_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list(
* {
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list({
* // 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: 'placeholder-value',
* // 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: 'placeholder-value',
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2168,7 +2168,8 @@ export namespace websecurityscanner_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List;
options = {};
}

Expand Down Expand Up @@ -2254,13 +2255,11 @@ export namespace websecurityscanner_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.findings.get(
* {
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.findings.get({
* // 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:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun/findings/my-finding',
* }
* );
* name: 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun/findings/my-finding',
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2340,7 +2339,8 @@ export namespace websecurityscanner_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get;
options = {};
}

Expand Down Expand Up @@ -2400,8 +2400,8 @@ export namespace websecurityscanner_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.findings.list(
* {
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.findings.list({
* // The filter expression. The expression must be in the format: . Supported field: 'finding_type'. Supported operator: '='.
* filter: 'placeholder-value',
* // 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.
Expand All @@ -2411,8 +2411,7 @@ export namespace websecurityscanner_v1 {
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2482,7 +2481,8 @@ export namespace websecurityscanner_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List;
options = {};
}

Expand Down Expand Up @@ -2579,13 +2579,14 @@ export namespace websecurityscanner_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list(
* {
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list(
* {
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2656,7 +2657,8 @@ export namespace websecurityscanner_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List;
options = {};
}

Expand Down
58 changes: 30 additions & 28 deletions src/apis/websecurityscanner/v1alpha.ts
Expand Up @@ -1471,9 +1471,10 @@ export namespace websecurityscanner_v1alpha {
this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(
this.context
);
this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(
this.context
);
this.findingTypeStats =
new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(
this.context
);
}

/**
Expand Down Expand Up @@ -1963,17 +1964,16 @@ export namespace websecurityscanner_v1alpha {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list(
* {
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list({
* // 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: 'placeholder-value',
* // 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: 'placeholder-value',
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2043,7 +2043,8 @@ export namespace websecurityscanner_v1alpha {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Crawledurls$List;
options = {};
}

Expand Down Expand Up @@ -2129,13 +2130,11 @@ export namespace websecurityscanner_v1alpha {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.findings.get(
* {
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.findings.get({
* // 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:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun/findings/my-finding',
* }
* );
* name: 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun/findings/my-finding',
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2213,7 +2212,8 @@ export namespace websecurityscanner_v1alpha {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$Get;
options = {};
}

Expand Down Expand Up @@ -2273,8 +2273,8 @@ export namespace websecurityscanner_v1alpha {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.findings.list(
* {
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.findings.list({
* // Required. The filter expression. The expression must be in the format: . Supported field: 'finding_type'. Supported operator: '='.
* filter: 'placeholder-value',
* // 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.
Expand All @@ -2284,8 +2284,7 @@ export namespace websecurityscanner_v1alpha {
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2355,7 +2354,8 @@ export namespace websecurityscanner_v1alpha {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Findings$List;
options = {};
}

Expand Down Expand Up @@ -2452,13 +2452,14 @@ export namespace websecurityscanner_v1alpha {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list(
* {
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* const res =
* await websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list(
* {
* // Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId\}/scanConfigs/{scanConfigId\}/scanRuns/{scanRunId\}'.
* parent:
* 'projects/my-project/scanConfigs/my-scanConfig/scanRuns/my-scanRun',
* }
* );
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -2529,7 +2530,8 @@ export namespace websecurityscanner_v1alpha {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List;
params =
{} as Params$Resource$Projects$Scanconfigs$Scanruns$Findingtypestats$List;
options = {};
}

Expand Down

0 comments on commit 6f7c5c6

Please sign in to comment.