@google-cloud/containeranalysis 4.6.1 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -146,9 +146,8 @@ export declare class ContainerAnalysisClient {
146
146
  * @param {object} [options]
147
147
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
148
148
  * @returns {Promise} - The promise which resolves to an array.
149
- * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}.
150
- * Please see the
151
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
149
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
150
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
152
151
  * for more details and examples.
153
152
  * @example <caption>include:samples/generated/v1/container_analysis.set_iam_policy.js</caption>
154
153
  * region_tag:containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_async
@@ -181,9 +180,8 @@ export declare class ContainerAnalysisClient {
181
180
  * @param {object} [options]
182
181
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
183
182
  * @returns {Promise} - The promise which resolves to an array.
184
- * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}.
185
- * Please see the
186
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
183
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
184
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
187
185
  * for more details and examples.
188
186
  * @example <caption>include:samples/generated/v1/container_analysis.get_iam_policy.js</caption>
189
187
  * region_tag:containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_async
@@ -217,9 +215,8 @@ export declare class ContainerAnalysisClient {
217
215
  * @param {object} [options]
218
216
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
219
217
  * @returns {Promise} - The promise which resolves to an array.
220
- * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
221
- * Please see the
222
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
218
+ * The first element of the array is an object representing {@link protos.google.iam.v1.TestIamPermissionsResponse|TestIamPermissionsResponse}.
219
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
223
220
  * for more details and examples.
224
221
  * @example <caption>include:samples/generated/v1/container_analysis.test_iam_permissions.js</caption>
225
222
  * region_tag:containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_async
@@ -244,9 +241,8 @@ export declare class ContainerAnalysisClient {
244
241
  * @param {object} [options]
245
242
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
246
243
  * @returns {Promise} - The promise which resolves to an array.
247
- * The first element of the array is an object representing {@link google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary | VulnerabilityOccurrencesSummary}.
248
- * Please see the
249
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
244
+ * The first element of the array is an object representing {@link protos.google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary|VulnerabilityOccurrencesSummary}.
245
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
250
246
  * for more details and examples.
251
247
  * @example <caption>include:samples/generated/v1/container_analysis.get_vulnerability_occurrences_summary.js</caption>
252
248
  * region_tag:containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_async
@@ -143,9 +143,8 @@ export declare class ContainerAnalysisV1Beta1Client {
143
143
  * @param {object} [options]
144
144
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
145
145
  * @returns {Promise} - The promise which resolves to an array.
146
- * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}.
147
- * Please see the
148
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
146
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
147
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
149
148
  * for more details and examples.
150
149
  * @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.set_iam_policy.js</caption>
151
150
  * region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_SetIamPolicy_async
@@ -178,9 +177,8 @@ export declare class ContainerAnalysisV1Beta1Client {
178
177
  * @param {object} [options]
179
178
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
180
179
  * @returns {Promise} - The promise which resolves to an array.
181
- * The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}.
182
- * Please see the
183
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
180
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
181
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
184
182
  * for more details and examples.
185
183
  * @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.get_iam_policy.js</caption>
186
184
  * region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetIamPolicy_async
@@ -214,9 +212,8 @@ export declare class ContainerAnalysisV1Beta1Client {
214
212
  * @param {object} [options]
215
213
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
216
214
  * @returns {Promise} - The promise which resolves to an array.
217
- * The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
218
- * Please see the
219
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
215
+ * The first element of the array is an object representing {@link protos.google.iam.v1.TestIamPermissionsResponse|TestIamPermissionsResponse}.
216
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
220
217
  * for more details and examples.
221
218
  * @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.test_iam_permissions.js</caption>
222
219
  * region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_TestIamPermissions_async
@@ -239,9 +236,8 @@ export declare class ContainerAnalysisV1Beta1Client {
239
236
  * @param {object} [options]
240
237
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
241
238
  * @returns {Promise} - The promise which resolves to an array.
242
- * The first element of the array is an object representing {@link google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse | PackagesSummaryResponse}.
243
- * Please see the
244
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
239
+ * The first element of the array is an object representing {@link protos.google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse|PackagesSummaryResponse}.
240
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
245
241
  * for more details and examples.
246
242
  * @example <caption>include:samples/generated/v1beta1/container_analysis_v1_beta1.generate_packages_summary.js</caption>
247
243
  * region_tag:containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GeneratePackagesSummary_async
@@ -308,6 +308,7 @@ class ContainerAnalysisV1Beta1Client {
308
308
  return this.innerApiCalls.testIamPermissions(request, options, callback);
309
309
  }
310
310
  generatePackagesSummary(request, optionsOrCallback, callback) {
311
+ var _a;
311
312
  request = request || {};
312
313
  let options;
313
314
  if (typeof optionsOrCallback === 'function' && callback === undefined) {
@@ -320,6 +321,10 @@ class ContainerAnalysisV1Beta1Client {
320
321
  options = options || {};
321
322
  options.otherArgs = options.otherArgs || {};
322
323
  options.otherArgs.headers = options.otherArgs.headers || {};
324
+ options.otherArgs.headers['x-goog-request-params'] =
325
+ this._gaxModule.routingHeader.fromParams({
326
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
327
+ });
323
328
  this.initialize();
324
329
  return this.innerApiCalls.generatePackagesSummary(request, options, callback);
325
330
  }
@@ -128,9 +128,8 @@ export declare class GrafeasV1Beta1Client {
128
128
  * @param {object} [options]
129
129
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
130
130
  * @returns {Promise} - The promise which resolves to an array.
131
- * The first element of the array is an object representing {@link grafeas.v1beta1.Occurrence | Occurrence}.
132
- * Please see the
133
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
131
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.Occurrence|Occurrence}.
132
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
134
133
  * for more details and examples.
135
134
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence.js</caption>
136
135
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_async
@@ -155,9 +154,8 @@ export declare class GrafeasV1Beta1Client {
155
154
  * @param {object} [options]
156
155
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
157
156
  * @returns {Promise} - The promise which resolves to an array.
158
- * The first element of the array is an object representing {@link google.protobuf.Empty | Empty}.
159
- * Please see the
160
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
157
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
158
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
161
159
  * for more details and examples.
162
160
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.delete_occurrence.js</caption>
163
161
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_async
@@ -182,9 +180,8 @@ export declare class GrafeasV1Beta1Client {
182
180
  * @param {object} [options]
183
181
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
184
182
  * @returns {Promise} - The promise which resolves to an array.
185
- * The first element of the array is an object representing {@link grafeas.v1beta1.Occurrence | Occurrence}.
186
- * Please see the
187
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
183
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.Occurrence|Occurrence}.
184
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
188
185
  * for more details and examples.
189
186
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.create_occurrence.js</caption>
190
187
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_async
@@ -209,9 +206,8 @@ export declare class GrafeasV1Beta1Client {
209
206
  * @param {object} [options]
210
207
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
211
208
  * @returns {Promise} - The promise which resolves to an array.
212
- * The first element of the array is an object representing {@link grafeas.v1beta1.BatchCreateOccurrencesResponse | BatchCreateOccurrencesResponse}.
213
- * Please see the
214
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
209
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.BatchCreateOccurrencesResponse|BatchCreateOccurrencesResponse}.
210
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
215
211
  * for more details and examples.
216
212
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.batch_create_occurrences.js</caption>
217
213
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_async
@@ -238,9 +234,8 @@ export declare class GrafeasV1Beta1Client {
238
234
  * @param {object} [options]
239
235
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
240
236
  * @returns {Promise} - The promise which resolves to an array.
241
- * The first element of the array is an object representing {@link grafeas.v1beta1.Occurrence | Occurrence}.
242
- * Please see the
243
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
237
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.Occurrence|Occurrence}.
238
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
244
239
  * for more details and examples.
245
240
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.update_occurrence.js</caption>
246
241
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_async
@@ -264,9 +259,8 @@ export declare class GrafeasV1Beta1Client {
264
259
  * @param {object} [options]
265
260
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
266
261
  * @returns {Promise} - The promise which resolves to an array.
267
- * The first element of the array is an object representing {@link grafeas.v1beta1.Note | Note}.
268
- * Please see the
269
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
262
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.Note|Note}.
263
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
270
264
  * for more details and examples.
271
265
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_occurrence_note.js</caption>
272
266
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_async
@@ -289,9 +283,8 @@ export declare class GrafeasV1Beta1Client {
289
283
  * @param {object} [options]
290
284
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
291
285
  * @returns {Promise} - The promise which resolves to an array.
292
- * The first element of the array is an object representing {@link grafeas.v1beta1.Note | Note}.
293
- * Please see the
294
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
286
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.Note|Note}.
287
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
295
288
  * for more details and examples.
296
289
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_note.js</caption>
297
290
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_async
@@ -314,9 +307,8 @@ export declare class GrafeasV1Beta1Client {
314
307
  * @param {object} [options]
315
308
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
316
309
  * @returns {Promise} - The promise which resolves to an array.
317
- * The first element of the array is an object representing {@link google.protobuf.Empty | Empty}.
318
- * Please see the
319
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
310
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
311
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
320
312
  * for more details and examples.
321
313
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.delete_note.js</caption>
322
314
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_async
@@ -343,9 +335,8 @@ export declare class GrafeasV1Beta1Client {
343
335
  * @param {object} [options]
344
336
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
345
337
  * @returns {Promise} - The promise which resolves to an array.
346
- * The first element of the array is an object representing {@link grafeas.v1beta1.Note | Note}.
347
- * Please see the
348
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
338
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.Note|Note}.
339
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
349
340
  * for more details and examples.
350
341
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.create_note.js</caption>
351
342
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_async
@@ -370,9 +361,8 @@ export declare class GrafeasV1Beta1Client {
370
361
  * @param {object} [options]
371
362
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
372
363
  * @returns {Promise} - The promise which resolves to an array.
373
- * The first element of the array is an object representing {@link grafeas.v1beta1.BatchCreateNotesResponse | BatchCreateNotesResponse}.
374
- * Please see the
375
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
364
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.BatchCreateNotesResponse|BatchCreateNotesResponse}.
365
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
376
366
  * for more details and examples.
377
367
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.batch_create_notes.js</caption>
378
368
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_async
@@ -399,9 +389,8 @@ export declare class GrafeasV1Beta1Client {
399
389
  * @param {object} [options]
400
390
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
401
391
  * @returns {Promise} - The promise which resolves to an array.
402
- * The first element of the array is an object representing {@link grafeas.v1beta1.Note | Note}.
403
- * Please see the
404
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
392
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.Note|Note}.
393
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
405
394
  * for more details and examples.
406
395
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.update_note.js</caption>
407
396
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_async
@@ -426,9 +415,8 @@ export declare class GrafeasV1Beta1Client {
426
415
  * @param {object} [options]
427
416
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
428
417
  * @returns {Promise} - The promise which resolves to an array.
429
- * The first element of the array is an object representing {@link grafeas.v1beta1.VulnerabilityOccurrencesSummary | VulnerabilityOccurrencesSummary}.
430
- * Please see the
431
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
418
+ * The first element of the array is an object representing {@link protos.grafeas.v1beta1.VulnerabilityOccurrencesSummary|VulnerabilityOccurrencesSummary}.
419
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
432
420
  * for more details and examples.
433
421
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.get_vulnerability_occurrences_summary.js</caption>
434
422
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_async
@@ -457,14 +445,13 @@ export declare class GrafeasV1Beta1Client {
457
445
  * @param {object} [options]
458
446
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
459
447
  * @returns {Promise} - The promise which resolves to an array.
460
- * The first element of the array is Array of {@link grafeas.v1beta1.Occurrence | Occurrence}.
448
+ * The first element of the array is Array of {@link protos.grafeas.v1beta1.Occurrence|Occurrence}.
461
449
  * The client library will perform auto-pagination by default: it will call the API as many
462
450
  * times as needed and will merge results from all the pages into this array.
463
451
  * Note that it can affect your quota.
464
452
  * We recommend using `listOccurrencesAsync()`
465
453
  * method described below for async iteration which you can stop as needed.
466
- * Please see the
467
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
454
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
468
455
  * for more details and examples.
469
456
  */
470
457
  listOccurrences(request?: protos.grafeas.v1beta1.IListOccurrencesRequest, options?: CallOptions): Promise<[
@@ -490,13 +477,12 @@ export declare class GrafeasV1Beta1Client {
490
477
  * @param {object} [options]
491
478
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
492
479
  * @returns {Stream}
493
- * An object stream which emits an object representing {@link grafeas.v1beta1.Occurrence | Occurrence} on 'data' event.
480
+ * An object stream which emits an object representing {@link protos.grafeas.v1beta1.Occurrence|Occurrence} on 'data' event.
494
481
  * The client library will perform auto-pagination by default: it will call the API as many
495
482
  * times as needed. Note that it can affect your quota.
496
483
  * We recommend using `listOccurrencesAsync()`
497
484
  * method described below for async iteration which you can stop as needed.
498
- * Please see the
499
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
485
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
500
486
  * for more details and examples.
501
487
  */
502
488
  listOccurrencesStream(request?: protos.grafeas.v1beta1.IListOccurrencesRequest, options?: CallOptions): Transform;
@@ -518,12 +504,11 @@ export declare class GrafeasV1Beta1Client {
518
504
  * @param {object} [options]
519
505
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
520
506
  * @returns {Object}
521
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
507
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
522
508
  * When you iterate the returned iterable, each element will be an object representing
523
- * {@link grafeas.v1beta1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
509
+ * {@link protos.grafeas.v1beta1.Occurrence|Occurrence}. The API will be called under the hood as needed, once per the page,
524
510
  * so you can stop the iteration when you don't need more results.
525
- * Please see the
526
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
511
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
527
512
  * for more details and examples.
528
513
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js</caption>
529
514
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_async
@@ -546,14 +531,13 @@ export declare class GrafeasV1Beta1Client {
546
531
  * @param {object} [options]
547
532
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
548
533
  * @returns {Promise} - The promise which resolves to an array.
549
- * The first element of the array is Array of {@link grafeas.v1beta1.Note | Note}.
534
+ * The first element of the array is Array of {@link protos.grafeas.v1beta1.Note|Note}.
550
535
  * The client library will perform auto-pagination by default: it will call the API as many
551
536
  * times as needed and will merge results from all the pages into this array.
552
537
  * Note that it can affect your quota.
553
538
  * We recommend using `listNotesAsync()`
554
539
  * method described below for async iteration which you can stop as needed.
555
- * Please see the
556
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
540
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
557
541
  * for more details and examples.
558
542
  */
559
543
  listNotes(request?: protos.grafeas.v1beta1.IListNotesRequest, options?: CallOptions): Promise<[
@@ -579,13 +563,12 @@ export declare class GrafeasV1Beta1Client {
579
563
  * @param {object} [options]
580
564
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
581
565
  * @returns {Stream}
582
- * An object stream which emits an object representing {@link grafeas.v1beta1.Note | Note} on 'data' event.
566
+ * An object stream which emits an object representing {@link protos.grafeas.v1beta1.Note|Note} on 'data' event.
583
567
  * The client library will perform auto-pagination by default: it will call the API as many
584
568
  * times as needed. Note that it can affect your quota.
585
569
  * We recommend using `listNotesAsync()`
586
570
  * method described below for async iteration which you can stop as needed.
587
- * Please see the
588
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
571
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
589
572
  * for more details and examples.
590
573
  */
591
574
  listNotesStream(request?: protos.grafeas.v1beta1.IListNotesRequest, options?: CallOptions): Transform;
@@ -607,12 +590,11 @@ export declare class GrafeasV1Beta1Client {
607
590
  * @param {object} [options]
608
591
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
609
592
  * @returns {Object}
610
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
593
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
611
594
  * When you iterate the returned iterable, each element will be an object representing
612
- * {@link grafeas.v1beta1.Note | Note}. The API will be called under the hood as needed, once per the page,
595
+ * {@link protos.grafeas.v1beta1.Note|Note}. The API will be called under the hood as needed, once per the page,
613
596
  * so you can stop the iteration when you don't need more results.
614
- * Please see the
615
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
597
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
616
598
  * for more details and examples.
617
599
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js</caption>
618
600
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_async
@@ -637,14 +619,13 @@ export declare class GrafeasV1Beta1Client {
637
619
  * @param {object} [options]
638
620
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
639
621
  * @returns {Promise} - The promise which resolves to an array.
640
- * The first element of the array is Array of {@link grafeas.v1beta1.Occurrence | Occurrence}.
622
+ * The first element of the array is Array of {@link protos.grafeas.v1beta1.Occurrence|Occurrence}.
641
623
  * The client library will perform auto-pagination by default: it will call the API as many
642
624
  * times as needed and will merge results from all the pages into this array.
643
625
  * Note that it can affect your quota.
644
626
  * We recommend using `listNoteOccurrencesAsync()`
645
627
  * method described below for async iteration which you can stop as needed.
646
- * Please see the
647
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
628
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
648
629
  * for more details and examples.
649
630
  */
650
631
  listNoteOccurrences(request?: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options?: CallOptions): Promise<[
@@ -670,13 +651,12 @@ export declare class GrafeasV1Beta1Client {
670
651
  * @param {object} [options]
671
652
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
672
653
  * @returns {Stream}
673
- * An object stream which emits an object representing {@link grafeas.v1beta1.Occurrence | Occurrence} on 'data' event.
654
+ * An object stream which emits an object representing {@link protos.grafeas.v1beta1.Occurrence|Occurrence} on 'data' event.
674
655
  * The client library will perform auto-pagination by default: it will call the API as many
675
656
  * times as needed. Note that it can affect your quota.
676
657
  * We recommend using `listNoteOccurrencesAsync()`
677
658
  * method described below for async iteration which you can stop as needed.
678
- * Please see the
679
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
659
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
680
660
  * for more details and examples.
681
661
  */
682
662
  listNoteOccurrencesStream(request?: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options?: CallOptions): Transform;
@@ -698,12 +678,11 @@ export declare class GrafeasV1Beta1Client {
698
678
  * @param {object} [options]
699
679
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
700
680
  * @returns {Object}
701
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
681
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
702
682
  * When you iterate the returned iterable, each element will be an object representing
703
- * {@link grafeas.v1beta1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
683
+ * {@link protos.grafeas.v1beta1.Occurrence|Occurrence}. The API will be called under the hood as needed, once per the page,
704
684
  * so you can stop the iteration when you don't need more results.
705
- * Please see the
706
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
685
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
707
686
  * for more details and examples.
708
687
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js</caption>
709
688
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_async
@@ -551,13 +551,12 @@ class GrafeasV1Beta1Client {
551
551
  * @param {object} [options]
552
552
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
553
553
  * @returns {Stream}
554
- * An object stream which emits an object representing {@link grafeas.v1beta1.Occurrence | Occurrence} on 'data' event.
554
+ * An object stream which emits an object representing {@link protos.grafeas.v1beta1.Occurrence|Occurrence} on 'data' event.
555
555
  * The client library will perform auto-pagination by default: it will call the API as many
556
556
  * times as needed. Note that it can affect your quota.
557
557
  * We recommend using `listOccurrencesAsync()`
558
558
  * method described below for async iteration which you can stop as needed.
559
- * Please see the
560
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
559
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
561
560
  * for more details and examples.
562
561
  */
563
562
  listOccurrencesStream(request, options) {
@@ -593,12 +592,11 @@ class GrafeasV1Beta1Client {
593
592
  * @param {object} [options]
594
593
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
595
594
  * @returns {Object}
596
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
595
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
597
596
  * When you iterate the returned iterable, each element will be an object representing
598
- * {@link grafeas.v1beta1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
597
+ * {@link protos.grafeas.v1beta1.Occurrence|Occurrence}. The API will be called under the hood as needed, once per the page,
599
598
  * so you can stop the iteration when you don't need more results.
600
- * Please see the
601
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
599
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
602
600
  * for more details and examples.
603
601
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_occurrences.js</caption>
604
602
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_async
@@ -655,13 +653,12 @@ class GrafeasV1Beta1Client {
655
653
  * @param {object} [options]
656
654
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
657
655
  * @returns {Stream}
658
- * An object stream which emits an object representing {@link grafeas.v1beta1.Note | Note} on 'data' event.
656
+ * An object stream which emits an object representing {@link protos.grafeas.v1beta1.Note|Note} on 'data' event.
659
657
  * The client library will perform auto-pagination by default: it will call the API as many
660
658
  * times as needed. Note that it can affect your quota.
661
659
  * We recommend using `listNotesAsync()`
662
660
  * method described below for async iteration which you can stop as needed.
663
- * Please see the
664
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
661
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
665
662
  * for more details and examples.
666
663
  */
667
664
  listNotesStream(request, options) {
@@ -697,12 +694,11 @@ class GrafeasV1Beta1Client {
697
694
  * @param {object} [options]
698
695
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
699
696
  * @returns {Object}
700
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
697
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
701
698
  * When you iterate the returned iterable, each element will be an object representing
702
- * {@link grafeas.v1beta1.Note | Note}. The API will be called under the hood as needed, once per the page,
699
+ * {@link protos.grafeas.v1beta1.Note|Note}. The API will be called under the hood as needed, once per the page,
703
700
  * so you can stop the iteration when you don't need more results.
704
- * Please see the
705
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
701
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
706
702
  * for more details and examples.
707
703
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_notes.js</caption>
708
704
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_async
@@ -759,13 +755,12 @@ class GrafeasV1Beta1Client {
759
755
  * @param {object} [options]
760
756
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
761
757
  * @returns {Stream}
762
- * An object stream which emits an object representing {@link grafeas.v1beta1.Occurrence | Occurrence} on 'data' event.
758
+ * An object stream which emits an object representing {@link protos.grafeas.v1beta1.Occurrence|Occurrence} on 'data' event.
763
759
  * The client library will perform auto-pagination by default: it will call the API as many
764
760
  * times as needed. Note that it can affect your quota.
765
761
  * We recommend using `listNoteOccurrencesAsync()`
766
762
  * method described below for async iteration which you can stop as needed.
767
- * Please see the
768
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
763
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
769
764
  * for more details and examples.
770
765
  */
771
766
  listNoteOccurrencesStream(request, options) {
@@ -801,12 +796,11 @@ class GrafeasV1Beta1Client {
801
796
  * @param {object} [options]
802
797
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
803
798
  * @returns {Object}
804
- * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
799
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
805
800
  * When you iterate the returned iterable, each element will be an object representing
806
- * {@link grafeas.v1beta1.Occurrence | Occurrence}. The API will be called under the hood as needed, once per the page,
801
+ * {@link protos.grafeas.v1beta1.Occurrence|Occurrence}. The API will be called under the hood as needed, once per the page,
807
802
  * so you can stop the iteration when you don't need more results.
808
- * Please see the
809
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
803
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
810
804
  * for more details and examples.
811
805
  * @example <caption>include:samples/generated/v1beta1/grafeas_v1_beta1.list_note_occurrences.js</caption>
812
806
  * region_tag:containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_async
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/containeranalysis",
3
- "version": "4.6.1",
3
+ "version": "5.0.1",
4
4
  "description": "Containeranalysis client for Node.js",
5
5
  "repository": "googleapis/nodejs-containeranalysis",
6
6
  "license": "Apache-2.0",
@@ -27,44 +27,42 @@
27
27
  ],
28
28
  "scripts": {
29
29
  "clean": "gts clean",
30
- "compile": "tsc -p . && cp -r protos build/ && minifyProtoJson",
30
+ "compile": "tsc -p . && cp -r protos build/",
31
31
  "compile-protos": "compileProtos src",
32
32
  "docs": "jsdoc -c .jsdoc.js",
33
33
  "predocs-test": "npm run docs",
34
34
  "docs-test": "linkinator docs",
35
35
  "fix": "gts fix",
36
36
  "lint": "gts check",
37
- "prelint": "cd samples; npm link ../; npm i",
38
37
  "prepare": "npm run compile-protos && npm run compile",
39
- "system-test": "npm run compile && c8 mocha build/system-test",
40
- "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
38
+ "prelint": "cd samples; npm link ../; npm i",
39
+ "postpack": "minifyProtoJson",
40
+ "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
41
+ "system-test": "c8 mocha build/system-test",
41
42
  "test": "c8 mocha build/test"
42
43
  },
43
44
  "dependencies": {
44
- "@google-cloud/grafeas": "^4.2.1",
45
- "google-gax": "^3.5.6"
45
+ "@google-cloud/grafeas": "^5.0.0",
46
+ "google-gax": "^4.0.3"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@types/mocha": "^10.0.1",
49
- "@types/node": "^18.11.18",
50
+ "@types/node": "^20.4.5",
50
51
  "@types/sinon": "^10.0.13",
51
- "c8": "^7.12.0",
52
- "gts": "^3.1.1",
52
+ "c8": "^8.0.1",
53
+ "gapic-tools": "^0.1.8",
54
+ "gts": "^5.0.0",
53
55
  "jsdoc": "^4.0.0",
54
- "jsdoc-fresh": "^2.0.1",
55
- "jsdoc-region-tag": "^2.0.1",
56
- "linkinator": "^4.1.2",
56
+ "jsdoc-fresh": "^3.0.0",
57
+ "jsdoc-region-tag": "^3.0.0",
58
+ "linkinator": "4.1.2",
59
+ "long": "^5.2.3",
57
60
  "mocha": "^10.2.0",
58
- "null-loader": "^4.0.1",
59
61
  "pack-n-play": "^1.0.0-2",
60
62
  "sinon": "^15.0.1",
61
- "ts-loader": "^8.4.0",
62
- "typescript": "^4.8.4",
63
- "webpack": "^4.46.0",
64
- "webpack-cli": "^4.10.0"
63
+ "typescript": "^5.1.6"
65
64
  },
66
65
  "engines": {
67
- "node": ">=v12"
66
+ "node": ">=14.0.0"
68
67
  }
69
68
  }
70
-