@google-cloud/containeranalysis 6.0.0 → 6.2.0

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.
@@ -5281,8 +5281,8 @@
5281
5281
  "java_multiple_files": true,
5282
5282
  "java_package": "com.google.containeranalysis.v1",
5283
5283
  "objc_class_prefix": "GCA",
5284
- "ruby_package": "Google::Cloud::ContainerAnalysis::V1",
5285
- "php_namespace": "Google\\Cloud\\ContainerAnalysis\\V1"
5284
+ "php_namespace": "Google\\Cloud\\ContainerAnalysis\\V1",
5285
+ "ruby_package": "Google::Cloud::ContainerAnalysis::V1"
5286
5286
  },
5287
5287
  "nested": {
5288
5288
  "ContainerAnalysis": {
@@ -5297,7 +5297,7 @@
5297
5297
  "options": {
5298
5298
  "(google.api.http).post": "/v1/{resource=projects/*/notes/*}:setIamPolicy",
5299
5299
  "(google.api.http).body": "*",
5300
- "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/occurrences/*}:setIamPolicy",
5300
+ "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/locations/*/occurrences/*}:setIamPolicy",
5301
5301
  "(google.api.http).additional_bindings.body": "*",
5302
5302
  "(google.api.method_signature)": "resource,policy"
5303
5303
  },
@@ -5306,10 +5306,20 @@
5306
5306
  "(google.api.http)": {
5307
5307
  "post": "/v1/{resource=projects/*/notes/*}:setIamPolicy",
5308
5308
  "body": "*",
5309
- "additional_bindings": {
5310
- "post": "/v1/{resource=projects/*/occurrences/*}:setIamPolicy",
5311
- "body": "*"
5312
- }
5309
+ "additional_bindings": [
5310
+ {
5311
+ "post": "/v1/{resource=projects/*/occurrences/*}:setIamPolicy",
5312
+ "body": "*"
5313
+ },
5314
+ {
5315
+ "post": "/v1/{resource=projects/*/locations/*/notes/*}:setIamPolicy",
5316
+ "body": "*"
5317
+ },
5318
+ {
5319
+ "post": "/v1/{resource=projects/*/locations/*/occurrences/*}:setIamPolicy",
5320
+ "body": "*"
5321
+ }
5322
+ ]
5313
5323
  }
5314
5324
  },
5315
5325
  {
@@ -5323,7 +5333,7 @@
5323
5333
  "options": {
5324
5334
  "(google.api.http).post": "/v1/{resource=projects/*/notes/*}:getIamPolicy",
5325
5335
  "(google.api.http).body": "*",
5326
- "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/occurrences/*}:getIamPolicy",
5336
+ "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/locations/*/occurrences/*}:getIamPolicy",
5327
5337
  "(google.api.http).additional_bindings.body": "*",
5328
5338
  "(google.api.method_signature)": "resource"
5329
5339
  },
@@ -5332,10 +5342,20 @@
5332
5342
  "(google.api.http)": {
5333
5343
  "post": "/v1/{resource=projects/*/notes/*}:getIamPolicy",
5334
5344
  "body": "*",
5335
- "additional_bindings": {
5336
- "post": "/v1/{resource=projects/*/occurrences/*}:getIamPolicy",
5337
- "body": "*"
5338
- }
5345
+ "additional_bindings": [
5346
+ {
5347
+ "post": "/v1/{resource=projects/*/occurrences/*}:getIamPolicy",
5348
+ "body": "*"
5349
+ },
5350
+ {
5351
+ "post": "/v1/{resource=projects/*/locations/*/notes/*}:getIamPolicy",
5352
+ "body": "*"
5353
+ },
5354
+ {
5355
+ "post": "/v1/{resource=projects/*/locations/*/occurrences/*}:getIamPolicy",
5356
+ "body": "*"
5357
+ }
5358
+ ]
5339
5359
  }
5340
5360
  },
5341
5361
  {
@@ -5349,7 +5369,7 @@
5349
5369
  "options": {
5350
5370
  "(google.api.http).post": "/v1/{resource=projects/*/notes/*}:testIamPermissions",
5351
5371
  "(google.api.http).body": "*",
5352
- "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/occurrences/*}:testIamPermissions",
5372
+ "(google.api.http).additional_bindings.post": "/v1/{resource=projects/*/locations/*/occurrences/*}:testIamPermissions",
5353
5373
  "(google.api.http).additional_bindings.body": "*",
5354
5374
  "(google.api.method_signature)": "resource,permissions"
5355
5375
  },
@@ -5358,10 +5378,20 @@
5358
5378
  "(google.api.http)": {
5359
5379
  "post": "/v1/{resource=projects/*/notes/*}:testIamPermissions",
5360
5380
  "body": "*",
5361
- "additional_bindings": {
5362
- "post": "/v1/{resource=projects/*/occurrences/*}:testIamPermissions",
5363
- "body": "*"
5364
- }
5381
+ "additional_bindings": [
5382
+ {
5383
+ "post": "/v1/{resource=projects/*/occurrences/*}:testIamPermissions",
5384
+ "body": "*"
5385
+ },
5386
+ {
5387
+ "post": "/v1/{resource=projects/*/locations/*/notes/*}:testIamPermissions",
5388
+ "body": "*"
5389
+ },
5390
+ {
5391
+ "post": "/v1/{resource=projects/*/locations/*/occurrences/*}:testIamPermissions",
5392
+ "body": "*"
5393
+ }
5394
+ ]
5365
5395
  }
5366
5396
  },
5367
5397
  {
@@ -5374,18 +5404,82 @@
5374
5404
  "responseType": "VulnerabilityOccurrencesSummary",
5375
5405
  "options": {
5376
5406
  "(google.api.http).get": "/v1/{parent=projects/*}/occurrences:vulnerabilitySummary",
5407
+ "(google.api.http).additional_bindings.get": "/v1/{parent=projects/*/locations/*}/occurrences:vulnerabilitySummary",
5377
5408
  "(google.api.method_signature)": "parent,filter"
5378
5409
  },
5379
5410
  "parsedOptions": [
5380
5411
  {
5381
5412
  "(google.api.http)": {
5382
- "get": "/v1/{parent=projects/*}/occurrences:vulnerabilitySummary"
5413
+ "get": "/v1/{parent=projects/*}/occurrences:vulnerabilitySummary",
5414
+ "additional_bindings": {
5415
+ "get": "/v1/{parent=projects/*/locations/*}/occurrences:vulnerabilitySummary"
5416
+ }
5383
5417
  }
5384
5418
  },
5385
5419
  {
5386
5420
  "(google.api.method_signature)": "parent,filter"
5387
5421
  }
5388
5422
  ]
5423
+ },
5424
+ "ExportSBOM": {
5425
+ "requestType": "ExportSBOMRequest",
5426
+ "responseType": "ExportSBOMResponse",
5427
+ "options": {
5428
+ "(google.api.http).post": "/v1/{name=projects/*/resources/**}:exportSBOM",
5429
+ "(google.api.http).body": "*",
5430
+ "(google.api.http).additional_bindings.post": "/v1/{name=projects/*/locations/*/resources/**}:exportSBOM",
5431
+ "(google.api.http).additional_bindings.body": "*"
5432
+ },
5433
+ "parsedOptions": [
5434
+ {
5435
+ "(google.api.http)": {
5436
+ "post": "/v1/{name=projects/*/resources/**}:exportSBOM",
5437
+ "body": "*",
5438
+ "additional_bindings": {
5439
+ "post": "/v1/{name=projects/*/locations/*/resources/**}:exportSBOM",
5440
+ "body": "*"
5441
+ }
5442
+ }
5443
+ }
5444
+ ]
5445
+ }
5446
+ }
5447
+ },
5448
+ "ExportSBOMRequest": {
5449
+ "oneofs": {
5450
+ "target": {
5451
+ "oneof": [
5452
+ "cloudStorageLocation"
5453
+ ]
5454
+ }
5455
+ },
5456
+ "fields": {
5457
+ "name": {
5458
+ "type": "string",
5459
+ "id": 1,
5460
+ "options": {
5461
+ "(google.api.field_behavior)": "REQUIRED"
5462
+ }
5463
+ },
5464
+ "cloudStorageLocation": {
5465
+ "type": "CloudStorageLocation",
5466
+ "id": 2,
5467
+ "options": {
5468
+ "(google.api.field_behavior)": "OPTIONAL"
5469
+ }
5470
+ }
5471
+ },
5472
+ "nested": {
5473
+ "CloudStorageLocation": {
5474
+ "fields": {}
5475
+ }
5476
+ }
5477
+ },
5478
+ "ExportSBOMResponse": {
5479
+ "fields": {
5480
+ "discoveryOccurrence": {
5481
+ "type": "string",
5482
+ "id": 1
5389
5483
  }
5390
5484
  }
5391
5485
  },
@@ -5458,7 +5552,7 @@
5458
5552
  "options": {
5459
5553
  "(google.api.http).post": "/v1beta1/{resource=projects/*/notes/*}:setIamPolicy",
5460
5554
  "(google.api.http).body": "*",
5461
- "(google.api.http).additional_bindings.post": "/v1beta1/{resource=projects/*/occurrences/*}:setIamPolicy",
5555
+ "(google.api.http).additional_bindings.post": "/v1beta1/{resource=projects/*/locations/*/occurrences/*}:setIamPolicy",
5462
5556
  "(google.api.http).additional_bindings.body": "*",
5463
5557
  "(google.api.method_signature)": "resource,policy"
5464
5558
  },
@@ -5467,10 +5561,20 @@
5467
5561
  "(google.api.http)": {
5468
5562
  "post": "/v1beta1/{resource=projects/*/notes/*}:setIamPolicy",
5469
5563
  "body": "*",
5470
- "additional_bindings": {
5471
- "post": "/v1beta1/{resource=projects/*/occurrences/*}:setIamPolicy",
5472
- "body": "*"
5473
- }
5564
+ "additional_bindings": [
5565
+ {
5566
+ "post": "/v1beta1/{resource=projects/*/occurrences/*}:setIamPolicy",
5567
+ "body": "*"
5568
+ },
5569
+ {
5570
+ "post": "/v1beta1/{resource=projects/*/locations/*/notes/*}:setIamPolicy",
5571
+ "body": "*"
5572
+ },
5573
+ {
5574
+ "post": "/v1beta1/{resource=projects/*/locations/*/occurrences/*}:setIamPolicy",
5575
+ "body": "*"
5576
+ }
5577
+ ]
5474
5578
  }
5475
5579
  },
5476
5580
  {
@@ -5484,7 +5588,7 @@
5484
5588
  "options": {
5485
5589
  "(google.api.http).post": "/v1beta1/{resource=projects/*/notes/*}:getIamPolicy",
5486
5590
  "(google.api.http).body": "*",
5487
- "(google.api.http).additional_bindings.post": "/v1beta1/{resource=projects/*/occurrences/*}:getIamPolicy",
5591
+ "(google.api.http).additional_bindings.post": "/v1beta1/{resource=projects/*/locations/*/occurrences/*}:getIamPolicy",
5488
5592
  "(google.api.http).additional_bindings.body": "*",
5489
5593
  "(google.api.method_signature)": "resource"
5490
5594
  },
@@ -5493,10 +5597,20 @@
5493
5597
  "(google.api.http)": {
5494
5598
  "post": "/v1beta1/{resource=projects/*/notes/*}:getIamPolicy",
5495
5599
  "body": "*",
5496
- "additional_bindings": {
5497
- "post": "/v1beta1/{resource=projects/*/occurrences/*}:getIamPolicy",
5498
- "body": "*"
5499
- }
5600
+ "additional_bindings": [
5601
+ {
5602
+ "post": "/v1beta1/{resource=projects/*/occurrences/*}:getIamPolicy",
5603
+ "body": "*"
5604
+ },
5605
+ {
5606
+ "post": "/v1beta1/{resource=projects/*/locations/*/notes/*}:getIamPolicy",
5607
+ "body": "*"
5608
+ },
5609
+ {
5610
+ "post": "/v1beta1/{resource=projects/*/locations/*/occurrences/*}:getIamPolicy",
5611
+ "body": "*"
5612
+ }
5613
+ ]
5500
5614
  }
5501
5615
  },
5502
5616
  {
@@ -5510,7 +5624,7 @@
5510
5624
  "options": {
5511
5625
  "(google.api.http).post": "/v1beta1/{resource=projects/*/notes/*}:testIamPermissions",
5512
5626
  "(google.api.http).body": "*",
5513
- "(google.api.http).additional_bindings.post": "/v1beta1/{resource=projects/*/occurrences/*}:testIamPermissions",
5627
+ "(google.api.http).additional_bindings.post": "/v1beta1/{resource=projects/*/locations/*/occurrences/*}:testIamPermissions",
5514
5628
  "(google.api.http).additional_bindings.body": "*",
5515
5629
  "(google.api.method_signature)": "resource,permissions"
5516
5630
  },
@@ -5519,10 +5633,20 @@
5519
5633
  "(google.api.http)": {
5520
5634
  "post": "/v1beta1/{resource=projects/*/notes/*}:testIamPermissions",
5521
5635
  "body": "*",
5522
- "additional_bindings": {
5523
- "post": "/v1beta1/{resource=projects/*/occurrences/*}:testIamPermissions",
5524
- "body": "*"
5525
- }
5636
+ "additional_bindings": [
5637
+ {
5638
+ "post": "/v1beta1/{resource=projects/*/occurrences/*}:testIamPermissions",
5639
+ "body": "*"
5640
+ },
5641
+ {
5642
+ "post": "/v1beta1/{resource=projects/*/locations/*/notes/*}:testIamPermissions",
5643
+ "body": "*"
5644
+ },
5645
+ {
5646
+ "post": "/v1beta1/{resource=projects/*/locations/*/occurrences/*}:testIamPermissions",
5647
+ "body": "*"
5648
+ }
5649
+ ]
5526
5650
  }
5527
5651
  },
5528
5652
  {
@@ -5535,13 +5659,19 @@
5535
5659
  "responseType": "PackagesSummaryResponse",
5536
5660
  "options": {
5537
5661
  "(google.api.http).post": "/v1beta1/{name=projects/*/resources/**}:generatePackagesSummary",
5538
- "(google.api.http).body": "*"
5662
+ "(google.api.http).body": "*",
5663
+ "(google.api.http).additional_bindings.post": "/v1beta1/{name=projects/*/locations/*/resources/**}:generatePackagesSummary",
5664
+ "(google.api.http).additional_bindings.body": "*"
5539
5665
  },
5540
5666
  "parsedOptions": [
5541
5667
  {
5542
5668
  "(google.api.http)": {
5543
5669
  "post": "/v1beta1/{name=projects/*/resources/**}:generatePackagesSummary",
5544
- "body": "*"
5670
+ "body": "*",
5671
+ "additional_bindings": {
5672
+ "post": "/v1beta1/{name=projects/*/locations/*/resources/**}:generatePackagesSummary",
5673
+ "body": "*"
5674
+ }
5545
5675
  }
5546
5676
  }
5547
5677
  ]
@@ -5551,13 +5681,19 @@
5551
5681
  "responseType": "ExportSBOMResponse",
5552
5682
  "options": {
5553
5683
  "(google.api.http).post": "/v1beta1/{name=projects/*/resources/**}:exportSBOM",
5554
- "(google.api.http).body": "*"
5684
+ "(google.api.http).body": "*",
5685
+ "(google.api.http).additional_bindings.post": "/v1beta1/{name=projects/*/locations/*/resources/**}:exportSBOM",
5686
+ "(google.api.http).additional_bindings.body": "*"
5555
5687
  },
5556
5688
  "parsedOptions": [
5557
5689
  {
5558
5690
  "(google.api.http)": {
5559
5691
  "post": "/v1beta1/{name=projects/*/resources/**}:exportSBOM",
5560
- "body": "*"
5692
+ "body": "*",
5693
+ "additional_bindings": {
5694
+ "post": "/v1beta1/{name=projects/*/locations/*/resources/**}:exportSBOM",
5695
+ "body": "*"
5696
+ }
5561
5697
  }
5562
5698
  }
5563
5699
  ]
@@ -243,8 +243,8 @@ export declare class ContainerAnalysisClient {
243
243
  * @param {Object} request
244
244
  * The request object that will be sent.
245
245
  * @param {string} request.parent
246
- * Required. The name of the project to get a vulnerability summary for in the form of
247
- * `projects/[PROJECT_ID]`.
246
+ * Required. The name of the project to get a vulnerability summary for in the
247
+ * form of `projects/[PROJECT_ID]`.
248
248
  * @param {string} request.filter
249
249
  * The filter expression.
250
250
  * @param {object} [options]
@@ -263,6 +263,33 @@ export declare class ContainerAnalysisClient {
263
263
  ]>;
264
264
  getVulnerabilityOccurrencesSummary(request: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest, options: CallOptions, callback: Callback<protos.google.devtools.containeranalysis.v1.IVulnerabilityOccurrencesSummary, protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
265
265
  getVulnerabilityOccurrencesSummary(request: protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest, callback: Callback<protos.google.devtools.containeranalysis.v1.IVulnerabilityOccurrencesSummary, protos.google.devtools.containeranalysis.v1.IGetVulnerabilityOccurrencesSummaryRequest | null | undefined, {} | null | undefined>): void;
266
+ /**
267
+ * Generates an SBOM for the given resource.
268
+ *
269
+ * @param {Object} request
270
+ * The request object that will be sent.
271
+ * @param {string} request.name
272
+ * Required. The name of the resource in the form of
273
+ * `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`.
274
+ * @param {google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation} [request.cloudStorageLocation]
275
+ * Optional. Empty placeholder to denote that this is a Google Cloud Storage
276
+ * export request.
277
+ * @param {object} [options]
278
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
279
+ * @returns {Promise} - The promise which resolves to an array.
280
+ * The first element of the array is an object representing {@link protos.google.devtools.containeranalysis.v1.ExportSBOMResponse|ExportSBOMResponse}.
281
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
282
+ * for more details and examples.
283
+ * @example <caption>include:samples/generated/v1/container_analysis.export_s_b_o_m.js</caption>
284
+ * region_tag:containeranalysis_v1_generated_ContainerAnalysis_ExportSBOM_async
285
+ */
286
+ exportSBOM(request?: protos.google.devtools.containeranalysis.v1.IExportSBOMRequest, options?: CallOptions): Promise<[
287
+ protos.google.devtools.containeranalysis.v1.IExportSBOMResponse,
288
+ (protos.google.devtools.containeranalysis.v1.IExportSBOMRequest | undefined),
289
+ {} | undefined
290
+ ]>;
291
+ exportSBOM(request: protos.google.devtools.containeranalysis.v1.IExportSBOMRequest, options: CallOptions, callback: Callback<protos.google.devtools.containeranalysis.v1.IExportSBOMResponse, protos.google.devtools.containeranalysis.v1.IExportSBOMRequest | null | undefined, {} | null | undefined>): void;
292
+ exportSBOM(request: protos.google.devtools.containeranalysis.v1.IExportSBOMRequest, callback: Callback<protos.google.devtools.containeranalysis.v1.IExportSBOMResponse, protos.google.devtools.containeranalysis.v1.IExportSBOMRequest | null | undefined, {} | null | undefined>): void;
266
293
  /**
267
294
  * Return a fully-qualified note resource name string.
268
295
  *
@@ -222,6 +222,7 @@ class ContainerAnalysisClient {
222
222
  'getIamPolicy',
223
223
  'testIamPermissions',
224
224
  'getVulnerabilityOccurrencesSummary',
225
+ 'exportSboM',
225
226
  ];
226
227
  for (const methodName of containerAnalysisStubMethods) {
227
228
  const callPromise = this.containerAnalysisStub.then(stub => (...args) => {
@@ -316,7 +317,9 @@ class ContainerAnalysisClient {
316
317
  this._gaxModule.routingHeader.fromParams({
317
318
  resource: request.resource ?? '',
318
319
  });
319
- this.initialize();
320
+ this.initialize().catch(err => {
321
+ throw err;
322
+ });
320
323
  this._log.info('setIamPolicy request %j', request);
321
324
  const wrappedCallback = callback
322
325
  ? (error, response, options, rawResponse) => {
@@ -348,7 +351,9 @@ class ContainerAnalysisClient {
348
351
  this._gaxModule.routingHeader.fromParams({
349
352
  resource: request.resource ?? '',
350
353
  });
351
- this.initialize();
354
+ this.initialize().catch(err => {
355
+ throw err;
356
+ });
352
357
  this._log.info('getIamPolicy request %j', request);
353
358
  const wrappedCallback = callback
354
359
  ? (error, response, options, rawResponse) => {
@@ -380,7 +385,9 @@ class ContainerAnalysisClient {
380
385
  this._gaxModule.routingHeader.fromParams({
381
386
  resource: request.resource ?? '',
382
387
  });
383
- this.initialize();
388
+ this.initialize().catch(err => {
389
+ throw err;
390
+ });
384
391
  this._log.info('testIamPermissions request %j', request);
385
392
  const wrappedCallback = callback
386
393
  ? (error, response, options, rawResponse) => {
@@ -412,7 +419,9 @@ class ContainerAnalysisClient {
412
419
  this._gaxModule.routingHeader.fromParams({
413
420
  parent: request.parent ?? '',
414
421
  });
415
- this.initialize();
422
+ this.initialize().catch(err => {
423
+ throw err;
424
+ });
416
425
  this._log.info('getVulnerabilityOccurrencesSummary request %j', request);
417
426
  const wrappedCallback = callback
418
427
  ? (error, response, options, rawResponse) => {
@@ -427,6 +436,40 @@ class ContainerAnalysisClient {
427
436
  return [response, options, rawResponse];
428
437
  });
429
438
  }
439
+ exportSBOM(request, optionsOrCallback, callback) {
440
+ request = request || {};
441
+ let options;
442
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
443
+ callback = optionsOrCallback;
444
+ options = {};
445
+ }
446
+ else {
447
+ options = optionsOrCallback;
448
+ }
449
+ options = options || {};
450
+ options.otherArgs = options.otherArgs || {};
451
+ options.otherArgs.headers = options.otherArgs.headers || {};
452
+ options.otherArgs.headers['x-goog-request-params'] =
453
+ this._gaxModule.routingHeader.fromParams({
454
+ name: request.name ?? '',
455
+ });
456
+ this.initialize().catch(err => {
457
+ throw err;
458
+ });
459
+ this._log.info('exportSBOM request %j', request);
460
+ const wrappedCallback = callback
461
+ ? (error, response, options, rawResponse) => {
462
+ this._log.info('exportSBOM response %j', response);
463
+ callback(error, response, options, rawResponse); // We verified callback above.
464
+ }
465
+ : undefined;
466
+ return this.innerApiCalls
467
+ .exportSboM(request, options, wrappedCallback)
468
+ ?.then(([response, options, rawResponse]) => {
469
+ this._log.info('exportSBOM response %j', response);
470
+ return [response, options, rawResponse];
471
+ });
472
+ }
430
473
  // --------------------
431
474
  // -- Path templates --
432
475
  // --------------------
@@ -35,6 +35,10 @@
35
35
  "GetVulnerabilityOccurrencesSummary": {
36
36
  "retry_codes_name": "non_idempotent",
37
37
  "retry_params_name": "default"
38
+ },
39
+ "ExportSBOM": {
40
+ "retry_codes_name": "non_idempotent",
41
+ "retry_params_name": "default"
38
42
  }
39
43
  }
40
44
  }
@@ -29,6 +29,11 @@
29
29
  "methods": [
30
30
  "getVulnerabilityOccurrencesSummary"
31
31
  ]
32
+ },
33
+ "ExportSBOM": {
34
+ "methods": [
35
+ "exportSBOM"
36
+ ]
32
37
  }
33
38
  }
34
39
  },
@@ -54,6 +59,11 @@
54
59
  "methods": [
55
60
  "getVulnerabilityOccurrencesSummary"
56
61
  ]
62
+ },
63
+ "ExportSBOM": {
64
+ "methods": [
65
+ "exportSBOM"
66
+ ]
57
67
  }
58
68
  }
59
69
  }
@@ -308,7 +308,9 @@ class ContainerAnalysisV1Beta1Client {
308
308
  this._gaxModule.routingHeader.fromParams({
309
309
  resource: request.resource ?? '',
310
310
  });
311
- this.initialize();
311
+ this.initialize().catch(err => {
312
+ throw err;
313
+ });
312
314
  this._log.info('setIamPolicy request %j', request);
313
315
  const wrappedCallback = callback
314
316
  ? (error, response, options, rawResponse) => {
@@ -340,7 +342,9 @@ class ContainerAnalysisV1Beta1Client {
340
342
  this._gaxModule.routingHeader.fromParams({
341
343
  resource: request.resource ?? '',
342
344
  });
343
- this.initialize();
345
+ this.initialize().catch(err => {
346
+ throw err;
347
+ });
344
348
  this._log.info('getIamPolicy request %j', request);
345
349
  const wrappedCallback = callback
346
350
  ? (error, response, options, rawResponse) => {
@@ -372,7 +376,9 @@ class ContainerAnalysisV1Beta1Client {
372
376
  this._gaxModule.routingHeader.fromParams({
373
377
  resource: request.resource ?? '',
374
378
  });
375
- this.initialize();
379
+ this.initialize().catch(err => {
380
+ throw err;
381
+ });
376
382
  this._log.info('testIamPermissions request %j', request);
377
383
  const wrappedCallback = callback
378
384
  ? (error, response, options, rawResponse) => {
@@ -404,7 +410,9 @@ class ContainerAnalysisV1Beta1Client {
404
410
  this._gaxModule.routingHeader.fromParams({
405
411
  name: request.name ?? '',
406
412
  });
407
- this.initialize();
413
+ this.initialize().catch(err => {
414
+ throw err;
415
+ });
408
416
  this._log.info('generatePackagesSummary request %j', request);
409
417
  const wrappedCallback = callback
410
418
  ? (error, response, options, rawResponse) => {
@@ -436,7 +444,9 @@ class ContainerAnalysisV1Beta1Client {
436
444
  this._gaxModule.routingHeader.fromParams({
437
445
  name: request.name ?? '',
438
446
  });
439
- this.initialize();
447
+ this.initialize().catch(err => {
448
+ throw err;
449
+ });
440
450
  this._log.info('exportSBOM request %j', request);
441
451
  const wrappedCallback = callback
442
452
  ? (error, response, options, rawResponse) => {