@google-cloud/containeranalysis 5.6.0 → 6.1.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.
- package/CHANGELOG.md +34 -0
- package/build/protos/google/devtools/containeranalysis/v1/containeranalysis.proto +1 -1
- package/build/protos/google/devtools/containeranalysis/v1beta1/containeranalysis.proto +1 -1
- package/build/protos/protos.d.ts +1 -1
- package/build/protos/protos.js +1 -1
- package/build/src/index.js +1 -1
- package/build/src/v1/container_analysis_client.d.ts +2 -1
- package/build/src/v1/container_analysis_client.js +106 -35
- package/build/src/v1/container_analysis_proto_list.json +24 -0
- package/build/src/v1/gapic_metadata.json +229 -0
- package/build/src/v1/grafeas_proto_list.json +24 -0
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +2 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +122 -39
- package/build/src/v1beta1/container_analysis_v1_beta1_proto_list.json +15 -0
- package/build/src/v1beta1/gapic_metadata.json +249 -0
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +5 -4
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +325 -100
- package/build/src/v1beta1/grafeas_v1_beta1_proto_list.json +15 -0
- package/package.json +17 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2025 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.ContainerAnalysisV1Beta1Client = void 0;
|
|
21
21
|
const jsonProtos = require("../../protos/protos.json");
|
|
22
|
+
const google_gax_1 = require("google-gax");
|
|
22
23
|
/**
|
|
23
24
|
* Client JSON configuration object, loaded from
|
|
24
25
|
* `src/v1beta1/container_analysis_v1_beta1_client_config.json`.
|
|
@@ -44,6 +45,26 @@ const version = require('../../../package.json').version;
|
|
|
44
45
|
* @memberof v1beta1
|
|
45
46
|
*/
|
|
46
47
|
class ContainerAnalysisV1Beta1Client {
|
|
48
|
+
_terminated = false;
|
|
49
|
+
_opts;
|
|
50
|
+
_providedCustomServicePath;
|
|
51
|
+
_gaxModule;
|
|
52
|
+
_gaxGrpc;
|
|
53
|
+
_protos;
|
|
54
|
+
_defaults;
|
|
55
|
+
_universeDomain;
|
|
56
|
+
_servicePath;
|
|
57
|
+
_log = google_gax_1.loggingUtils.log('containeranalysis');
|
|
58
|
+
auth;
|
|
59
|
+
descriptors = {
|
|
60
|
+
page: {},
|
|
61
|
+
stream: {},
|
|
62
|
+
longrunning: {},
|
|
63
|
+
batching: {},
|
|
64
|
+
};
|
|
65
|
+
warn;
|
|
66
|
+
innerApiCalls;
|
|
67
|
+
containerAnalysisV1Beta1Stub;
|
|
47
68
|
/**
|
|
48
69
|
* Construct an instance of ContainerAnalysisV1Beta1Client.
|
|
49
70
|
*
|
|
@@ -66,7 +87,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
66
87
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
67
88
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
68
89
|
* app is running in an environment which supports
|
|
69
|
-
* {@link https://
|
|
90
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
70
91
|
* your project ID will be detected automatically.
|
|
71
92
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
72
93
|
* API remote host.
|
|
@@ -84,33 +105,29 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
84
105
|
* ```
|
|
85
106
|
*/
|
|
86
107
|
constructor(opts, gaxInstance) {
|
|
87
|
-
var _a, _b, _c, _d, _e;
|
|
88
|
-
this._terminated = false;
|
|
89
|
-
this.descriptors = {
|
|
90
|
-
page: {},
|
|
91
|
-
stream: {},
|
|
92
|
-
longrunning: {},
|
|
93
|
-
batching: {},
|
|
94
|
-
};
|
|
95
108
|
// Ensure that options include all the required fields.
|
|
96
109
|
const staticMembers = this
|
|
97
110
|
.constructor;
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
|
|
111
|
+
if (opts?.universe_domain &&
|
|
112
|
+
opts?.universeDomain &&
|
|
113
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
101
114
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
102
115
|
}
|
|
103
116
|
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
104
117
|
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
105
118
|
: undefined;
|
|
106
119
|
this._universeDomain =
|
|
107
|
-
|
|
120
|
+
opts?.universeDomain ??
|
|
121
|
+
opts?.universe_domain ??
|
|
122
|
+
universeDomainEnvVar ??
|
|
123
|
+
'googleapis.com';
|
|
108
124
|
this._servicePath = 'containeranalysis.' + this._universeDomain;
|
|
109
|
-
const servicePath =
|
|
110
|
-
this._providedCustomServicePath = !!(
|
|
111
|
-
const port =
|
|
112
|
-
const clientConfig =
|
|
113
|
-
const fallback =
|
|
125
|
+
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
126
|
+
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
127
|
+
const port = opts?.port || staticMembers.port;
|
|
128
|
+
const clientConfig = opts?.clientConfig ?? {};
|
|
129
|
+
const fallback = opts?.fallback ??
|
|
130
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
114
131
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
115
132
|
// Request numeric enum values if REST transport is used.
|
|
116
133
|
opts.numericEnums = true;
|
|
@@ -275,7 +292,6 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
275
292
|
return this.auth.getProjectId();
|
|
276
293
|
}
|
|
277
294
|
setIamPolicy(request, optionsOrCallback, callback) {
|
|
278
|
-
var _a;
|
|
279
295
|
request = request || {};
|
|
280
296
|
let options;
|
|
281
297
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -290,13 +306,26 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
290
306
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
291
307
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
292
308
|
this._gaxModule.routingHeader.fromParams({
|
|
293
|
-
resource:
|
|
309
|
+
resource: request.resource ?? '',
|
|
294
310
|
});
|
|
295
|
-
this.initialize()
|
|
296
|
-
|
|
311
|
+
this.initialize().catch(err => {
|
|
312
|
+
throw err;
|
|
313
|
+
});
|
|
314
|
+
this._log.info('setIamPolicy request %j', request);
|
|
315
|
+
const wrappedCallback = callback
|
|
316
|
+
? (error, response, options, rawResponse) => {
|
|
317
|
+
this._log.info('setIamPolicy response %j', response);
|
|
318
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
319
|
+
}
|
|
320
|
+
: undefined;
|
|
321
|
+
return this.innerApiCalls
|
|
322
|
+
.setIamPolicy(request, options, wrappedCallback)
|
|
323
|
+
?.then(([response, options, rawResponse]) => {
|
|
324
|
+
this._log.info('setIamPolicy response %j', response);
|
|
325
|
+
return [response, options, rawResponse];
|
|
326
|
+
});
|
|
297
327
|
}
|
|
298
328
|
getIamPolicy(request, optionsOrCallback, callback) {
|
|
299
|
-
var _a;
|
|
300
329
|
request = request || {};
|
|
301
330
|
let options;
|
|
302
331
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -311,13 +340,26 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
311
340
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
312
341
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
313
342
|
this._gaxModule.routingHeader.fromParams({
|
|
314
|
-
resource:
|
|
343
|
+
resource: request.resource ?? '',
|
|
315
344
|
});
|
|
316
|
-
this.initialize()
|
|
317
|
-
|
|
345
|
+
this.initialize().catch(err => {
|
|
346
|
+
throw err;
|
|
347
|
+
});
|
|
348
|
+
this._log.info('getIamPolicy request %j', request);
|
|
349
|
+
const wrappedCallback = callback
|
|
350
|
+
? (error, response, options, rawResponse) => {
|
|
351
|
+
this._log.info('getIamPolicy response %j', response);
|
|
352
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
353
|
+
}
|
|
354
|
+
: undefined;
|
|
355
|
+
return this.innerApiCalls
|
|
356
|
+
.getIamPolicy(request, options, wrappedCallback)
|
|
357
|
+
?.then(([response, options, rawResponse]) => {
|
|
358
|
+
this._log.info('getIamPolicy response %j', response);
|
|
359
|
+
return [response, options, rawResponse];
|
|
360
|
+
});
|
|
318
361
|
}
|
|
319
362
|
testIamPermissions(request, optionsOrCallback, callback) {
|
|
320
|
-
var _a;
|
|
321
363
|
request = request || {};
|
|
322
364
|
let options;
|
|
323
365
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -332,13 +374,26 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
332
374
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
333
375
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
334
376
|
this._gaxModule.routingHeader.fromParams({
|
|
335
|
-
resource:
|
|
377
|
+
resource: request.resource ?? '',
|
|
336
378
|
});
|
|
337
|
-
this.initialize()
|
|
338
|
-
|
|
379
|
+
this.initialize().catch(err => {
|
|
380
|
+
throw err;
|
|
381
|
+
});
|
|
382
|
+
this._log.info('testIamPermissions request %j', request);
|
|
383
|
+
const wrappedCallback = callback
|
|
384
|
+
? (error, response, options, rawResponse) => {
|
|
385
|
+
this._log.info('testIamPermissions response %j', response);
|
|
386
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
387
|
+
}
|
|
388
|
+
: undefined;
|
|
389
|
+
return this.innerApiCalls
|
|
390
|
+
.testIamPermissions(request, options, wrappedCallback)
|
|
391
|
+
?.then(([response, options, rawResponse]) => {
|
|
392
|
+
this._log.info('testIamPermissions response %j', response);
|
|
393
|
+
return [response, options, rawResponse];
|
|
394
|
+
});
|
|
339
395
|
}
|
|
340
396
|
generatePackagesSummary(request, optionsOrCallback, callback) {
|
|
341
|
-
var _a;
|
|
342
397
|
request = request || {};
|
|
343
398
|
let options;
|
|
344
399
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -353,13 +408,26 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
353
408
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
354
409
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
355
410
|
this._gaxModule.routingHeader.fromParams({
|
|
356
|
-
name:
|
|
411
|
+
name: request.name ?? '',
|
|
357
412
|
});
|
|
358
|
-
this.initialize()
|
|
359
|
-
|
|
413
|
+
this.initialize().catch(err => {
|
|
414
|
+
throw err;
|
|
415
|
+
});
|
|
416
|
+
this._log.info('generatePackagesSummary request %j', request);
|
|
417
|
+
const wrappedCallback = callback
|
|
418
|
+
? (error, response, options, rawResponse) => {
|
|
419
|
+
this._log.info('generatePackagesSummary response %j', response);
|
|
420
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
421
|
+
}
|
|
422
|
+
: undefined;
|
|
423
|
+
return this.innerApiCalls
|
|
424
|
+
.generatePackagesSummary(request, options, wrappedCallback)
|
|
425
|
+
?.then(([response, options, rawResponse]) => {
|
|
426
|
+
this._log.info('generatePackagesSummary response %j', response);
|
|
427
|
+
return [response, options, rawResponse];
|
|
428
|
+
});
|
|
360
429
|
}
|
|
361
430
|
exportSBOM(request, optionsOrCallback, callback) {
|
|
362
|
-
var _a;
|
|
363
431
|
request = request || {};
|
|
364
432
|
let options;
|
|
365
433
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -374,10 +442,24 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
374
442
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
375
443
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
376
444
|
this._gaxModule.routingHeader.fromParams({
|
|
377
|
-
name:
|
|
445
|
+
name: request.name ?? '',
|
|
378
446
|
});
|
|
379
|
-
this.initialize()
|
|
380
|
-
|
|
447
|
+
this.initialize().catch(err => {
|
|
448
|
+
throw err;
|
|
449
|
+
});
|
|
450
|
+
this._log.info('exportSBOM request %j', request);
|
|
451
|
+
const wrappedCallback = callback
|
|
452
|
+
? (error, response, options, rawResponse) => {
|
|
453
|
+
this._log.info('exportSBOM response %j', response);
|
|
454
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
455
|
+
}
|
|
456
|
+
: undefined;
|
|
457
|
+
return this.innerApiCalls
|
|
458
|
+
.exportSboM(request, options, wrappedCallback)
|
|
459
|
+
?.then(([response, options, rawResponse]) => {
|
|
460
|
+
this._log.info('exportSBOM response %j', response);
|
|
461
|
+
return [response, options, rawResponse];
|
|
462
|
+
});
|
|
381
463
|
}
|
|
382
464
|
/**
|
|
383
465
|
* Terminate the gRPC channel and close the client.
|
|
@@ -388,6 +470,7 @@ class ContainerAnalysisV1Beta1Client {
|
|
|
388
470
|
close() {
|
|
389
471
|
if (this.containerAnalysisV1Beta1Stub && !this._terminated) {
|
|
390
472
|
return this.containerAnalysisV1Beta1Stub.then(stub => {
|
|
473
|
+
this._log.info('ending gRPC channel');
|
|
391
474
|
this._terminated = true;
|
|
392
475
|
stub.close();
|
|
393
476
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/attestation/attestation.proto",
|
|
3
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/build/build.proto",
|
|
4
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/common/common.proto",
|
|
5
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/containeranalysis.proto",
|
|
6
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/cvss/cvss.proto",
|
|
7
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/deployment/deployment.proto",
|
|
8
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/discovery/discovery.proto",
|
|
9
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto",
|
|
10
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/image/image.proto",
|
|
11
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/package/package.proto",
|
|
12
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/provenance/provenance.proto",
|
|
13
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/source/source.proto",
|
|
14
|
+
"../../protos/google/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.proto"
|
|
15
|
+
]
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "1.0",
|
|
3
|
+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
|
|
4
|
+
"language": "typescript",
|
|
5
|
+
"protoPackage": "google.devtools.containeranalysis.v1beta1",
|
|
6
|
+
"libraryPackage": "@google-cloud/containeranalysis",
|
|
7
|
+
"services": {
|
|
8
|
+
"ContainerAnalysisV1Beta1": {
|
|
9
|
+
"clients": {
|
|
10
|
+
"grpc": {
|
|
11
|
+
"libraryClient": "ContainerAnalysisV1Beta1Client",
|
|
12
|
+
"rpcs": {
|
|
13
|
+
"SetIamPolicy": {
|
|
14
|
+
"methods": [
|
|
15
|
+
"setIamPolicy"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"GetIamPolicy": {
|
|
19
|
+
"methods": [
|
|
20
|
+
"getIamPolicy"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"TestIamPermissions": {
|
|
24
|
+
"methods": [
|
|
25
|
+
"testIamPermissions"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"GeneratePackagesSummary": {
|
|
29
|
+
"methods": [
|
|
30
|
+
"generatePackagesSummary"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"ExportSBOM": {
|
|
34
|
+
"methods": [
|
|
35
|
+
"exportSBOM"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"grpc-fallback": {
|
|
41
|
+
"libraryClient": "ContainerAnalysisV1Beta1Client",
|
|
42
|
+
"rpcs": {
|
|
43
|
+
"SetIamPolicy": {
|
|
44
|
+
"methods": [
|
|
45
|
+
"setIamPolicy"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"GetIamPolicy": {
|
|
49
|
+
"methods": [
|
|
50
|
+
"getIamPolicy"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"TestIamPermissions": {
|
|
54
|
+
"methods": [
|
|
55
|
+
"testIamPermissions"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"GeneratePackagesSummary": {
|
|
59
|
+
"methods": [
|
|
60
|
+
"generatePackagesSummary"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"ExportSBOM": {
|
|
64
|
+
"methods": [
|
|
65
|
+
"exportSBOM"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"GrafeasV1Beta1": {
|
|
73
|
+
"clients": {
|
|
74
|
+
"grpc": {
|
|
75
|
+
"libraryClient": "GrafeasV1Beta1Client",
|
|
76
|
+
"rpcs": {
|
|
77
|
+
"GetOccurrence": {
|
|
78
|
+
"methods": [
|
|
79
|
+
"getOccurrence"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"DeleteOccurrence": {
|
|
83
|
+
"methods": [
|
|
84
|
+
"deleteOccurrence"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"CreateOccurrence": {
|
|
88
|
+
"methods": [
|
|
89
|
+
"createOccurrence"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"BatchCreateOccurrences": {
|
|
93
|
+
"methods": [
|
|
94
|
+
"batchCreateOccurrences"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"UpdateOccurrence": {
|
|
98
|
+
"methods": [
|
|
99
|
+
"updateOccurrence"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"GetOccurrenceNote": {
|
|
103
|
+
"methods": [
|
|
104
|
+
"getOccurrenceNote"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"GetNote": {
|
|
108
|
+
"methods": [
|
|
109
|
+
"getNote"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"DeleteNote": {
|
|
113
|
+
"methods": [
|
|
114
|
+
"deleteNote"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"CreateNote": {
|
|
118
|
+
"methods": [
|
|
119
|
+
"createNote"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"BatchCreateNotes": {
|
|
123
|
+
"methods": [
|
|
124
|
+
"batchCreateNotes"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"UpdateNote": {
|
|
128
|
+
"methods": [
|
|
129
|
+
"updateNote"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"GetVulnerabilityOccurrencesSummary": {
|
|
133
|
+
"methods": [
|
|
134
|
+
"getVulnerabilityOccurrencesSummary"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"ListOccurrences": {
|
|
138
|
+
"methods": [
|
|
139
|
+
"listOccurrences",
|
|
140
|
+
"listOccurrencesStream",
|
|
141
|
+
"listOccurrencesAsync"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"ListNotes": {
|
|
145
|
+
"methods": [
|
|
146
|
+
"listNotes",
|
|
147
|
+
"listNotesStream",
|
|
148
|
+
"listNotesAsync"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"ListNoteOccurrences": {
|
|
152
|
+
"methods": [
|
|
153
|
+
"listNoteOccurrences",
|
|
154
|
+
"listNoteOccurrencesStream",
|
|
155
|
+
"listNoteOccurrencesAsync"
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"grpc-fallback": {
|
|
161
|
+
"libraryClient": "GrafeasV1Beta1Client",
|
|
162
|
+
"rpcs": {
|
|
163
|
+
"GetOccurrence": {
|
|
164
|
+
"methods": [
|
|
165
|
+
"getOccurrence"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"DeleteOccurrence": {
|
|
169
|
+
"methods": [
|
|
170
|
+
"deleteOccurrence"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"CreateOccurrence": {
|
|
174
|
+
"methods": [
|
|
175
|
+
"createOccurrence"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"BatchCreateOccurrences": {
|
|
179
|
+
"methods": [
|
|
180
|
+
"batchCreateOccurrences"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"UpdateOccurrence": {
|
|
184
|
+
"methods": [
|
|
185
|
+
"updateOccurrence"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"GetOccurrenceNote": {
|
|
189
|
+
"methods": [
|
|
190
|
+
"getOccurrenceNote"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"GetNote": {
|
|
194
|
+
"methods": [
|
|
195
|
+
"getNote"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"DeleteNote": {
|
|
199
|
+
"methods": [
|
|
200
|
+
"deleteNote"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"CreateNote": {
|
|
204
|
+
"methods": [
|
|
205
|
+
"createNote"
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"BatchCreateNotes": {
|
|
209
|
+
"methods": [
|
|
210
|
+
"batchCreateNotes"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"UpdateNote": {
|
|
214
|
+
"methods": [
|
|
215
|
+
"updateNote"
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"GetVulnerabilityOccurrencesSummary": {
|
|
219
|
+
"methods": [
|
|
220
|
+
"getVulnerabilityOccurrencesSummary"
|
|
221
|
+
]
|
|
222
|
+
},
|
|
223
|
+
"ListOccurrences": {
|
|
224
|
+
"methods": [
|
|
225
|
+
"listOccurrences",
|
|
226
|
+
"listOccurrencesStream",
|
|
227
|
+
"listOccurrencesAsync"
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"ListNotes": {
|
|
231
|
+
"methods": [
|
|
232
|
+
"listNotes",
|
|
233
|
+
"listNotesStream",
|
|
234
|
+
"listNotesAsync"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"ListNoteOccurrences": {
|
|
238
|
+
"methods": [
|
|
239
|
+
"listNoteOccurrences",
|
|
240
|
+
"listNoteOccurrencesStream",
|
|
241
|
+
"listNoteOccurrencesAsync"
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
@@ -30,6 +30,7 @@ export declare class GrafeasV1Beta1Client {
|
|
|
30
30
|
private _defaults;
|
|
31
31
|
private _universeDomain;
|
|
32
32
|
private _servicePath;
|
|
33
|
+
private _log;
|
|
33
34
|
auth: gax.GoogleAuth;
|
|
34
35
|
descriptors: Descriptors;
|
|
35
36
|
warn: (code: string, message: string, warnType?: string) => void;
|
|
@@ -61,7 +62,7 @@ export declare class GrafeasV1Beta1Client {
|
|
|
61
62
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
62
63
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
63
64
|
* app is running in an environment which supports
|
|
64
|
-
* {@link https://
|
|
65
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
65
66
|
* your project ID will be detected automatically.
|
|
66
67
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
67
68
|
* API remote host.
|
|
@@ -469,7 +470,7 @@ export declare class GrafeasV1Beta1Client {
|
|
|
469
470
|
listOccurrences(request: protos.grafeas.v1beta1.IListOccurrencesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1beta1.IListOccurrencesRequest, protos.grafeas.v1beta1.IListOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
470
471
|
listOccurrences(request: protos.grafeas.v1beta1.IListOccurrencesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListOccurrencesRequest, protos.grafeas.v1beta1.IListOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
471
472
|
/**
|
|
472
|
-
* Equivalent to `
|
|
473
|
+
* Equivalent to `listOccurrences`, but returns a NodeJS Stream object.
|
|
473
474
|
* @param {Object} request
|
|
474
475
|
* The request object that will be sent.
|
|
475
476
|
* @param {string} request.parent
|
|
@@ -555,7 +556,7 @@ export declare class GrafeasV1Beta1Client {
|
|
|
555
556
|
listNotes(request: protos.grafeas.v1beta1.IListNotesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1beta1.IListNotesRequest, protos.grafeas.v1beta1.IListNotesResponse | null | undefined, protos.grafeas.v1beta1.INote>): void;
|
|
556
557
|
listNotes(request: protos.grafeas.v1beta1.IListNotesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListNotesRequest, protos.grafeas.v1beta1.IListNotesResponse | null | undefined, protos.grafeas.v1beta1.INote>): void;
|
|
557
558
|
/**
|
|
558
|
-
* Equivalent to `
|
|
559
|
+
* Equivalent to `listNotes`, but returns a NodeJS Stream object.
|
|
559
560
|
* @param {Object} request
|
|
560
561
|
* The request object that will be sent.
|
|
561
562
|
* @param {string} request.parent
|
|
@@ -643,7 +644,7 @@ export declare class GrafeasV1Beta1Client {
|
|
|
643
644
|
listNoteOccurrences(request: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, options: CallOptions, callback: PaginationCallback<protos.grafeas.v1beta1.IListNoteOccurrencesRequest, protos.grafeas.v1beta1.IListNoteOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
644
645
|
listNoteOccurrences(request: protos.grafeas.v1beta1.IListNoteOccurrencesRequest, callback: PaginationCallback<protos.grafeas.v1beta1.IListNoteOccurrencesRequest, protos.grafeas.v1beta1.IListNoteOccurrencesResponse | null | undefined, protos.grafeas.v1beta1.IOccurrence>): void;
|
|
645
646
|
/**
|
|
646
|
-
* Equivalent to `
|
|
647
|
+
* Equivalent to `listNoteOccurrences`, but returns a NodeJS Stream object.
|
|
647
648
|
* @param {Object} request
|
|
648
649
|
* The request object that will be sent.
|
|
649
650
|
* @param {string} request.name
|