@google-cloud/containeranalysis 5.6.0 → 6.0.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 +21 -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 +94 -31
- 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 +107 -34
- 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 +262 -79
- package/build/src/v1beta1/grafeas_v1_beta1_proto_list.json +15 -0
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,27 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/@google-cloud/containeranalysis?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [6.0.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.6.0...containeranalysis-v6.0.0) (2025-03-18)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096))
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Add request/response debug logging to gapics, update templates to gax 5 and node 18 ([#1671](https://github.com/googleapis/google-cloud-node/issues/1671)) ([7a23322](https://github.com/googleapis/google-cloud-node/commit/7a23322530b610eec2fe4c18fe1854048f31c811))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* Add json files to tsconfig templates ([#1692](https://github.com/googleapis/google-cloud-node/issues/1692)) (ba6be1d) ([7a23322](https://github.com/googleapis/google-cloud-node/commit/7a23322530b610eec2fe4c18fe1854048f31c811))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Miscellaneous Chores
|
|
25
|
+
|
|
26
|
+
* Upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096)) ([eadae64](https://github.com/googleapis/google-cloud-node/commit/eadae64d54e07aa2c65097ea52e65008d4e87436))
|
|
27
|
+
|
|
7
28
|
## [5.6.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.5.0...containeranalysis-v5.6.0) (2024-08-09)
|
|
8
29
|
|
|
9
30
|
|
package/build/protos/protos.d.ts
CHANGED
package/build/protos/protos.js
CHANGED
package/build/src/index.js
CHANGED
|
@@ -28,6 +28,7 @@ export declare class ContainerAnalysisClient {
|
|
|
28
28
|
private _defaults;
|
|
29
29
|
private _universeDomain;
|
|
30
30
|
private _servicePath;
|
|
31
|
+
private _log;
|
|
31
32
|
auth: gax.GoogleAuth;
|
|
32
33
|
descriptors: Descriptors;
|
|
33
34
|
warn: (code: string, message: string, warnType?: string) => void;
|
|
@@ -62,7 +63,7 @@ export declare class ContainerAnalysisClient {
|
|
|
62
63
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
63
64
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
64
65
|
* app is running in an environment which supports
|
|
65
|
-
* {@link https://
|
|
66
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
66
67
|
* your project ID will be detected automatically.
|
|
67
68
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
68
69
|
* API remote host.
|
|
@@ -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.
|
|
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
exports.ContainerAnalysisClient = void 0;
|
|
21
21
|
const grafeas_1 = require("@google-cloud/grafeas");
|
|
22
22
|
const jsonProtos = require("../../protos/protos.json");
|
|
23
|
+
const google_gax_1 = require("google-gax");
|
|
23
24
|
/**
|
|
24
25
|
* Client JSON configuration object, loaded from
|
|
25
26
|
* `src/v1/container_analysis_client_config.json`.
|
|
@@ -45,6 +46,27 @@ const version = require('../../../package.json').version;
|
|
|
45
46
|
* @memberof v1
|
|
46
47
|
*/
|
|
47
48
|
class ContainerAnalysisClient {
|
|
49
|
+
_terminated = false;
|
|
50
|
+
_opts;
|
|
51
|
+
_providedCustomServicePath;
|
|
52
|
+
_gaxModule;
|
|
53
|
+
_gaxGrpc;
|
|
54
|
+
_protos;
|
|
55
|
+
_defaults;
|
|
56
|
+
_universeDomain;
|
|
57
|
+
_servicePath;
|
|
58
|
+
_log = google_gax_1.loggingUtils.log('containeranalysis');
|
|
59
|
+
auth;
|
|
60
|
+
descriptors = {
|
|
61
|
+
page: {},
|
|
62
|
+
stream: {},
|
|
63
|
+
longrunning: {},
|
|
64
|
+
batching: {},
|
|
65
|
+
};
|
|
66
|
+
warn;
|
|
67
|
+
innerApiCalls;
|
|
68
|
+
pathTemplates;
|
|
69
|
+
containerAnalysisStub;
|
|
48
70
|
/**
|
|
49
71
|
* Construct an instance of ContainerAnalysisClient.
|
|
50
72
|
*
|
|
@@ -67,7 +89,7 @@ class ContainerAnalysisClient {
|
|
|
67
89
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
68
90
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
69
91
|
* app is running in an environment which supports
|
|
70
|
-
* {@link https://
|
|
92
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
71
93
|
* your project ID will be detected automatically.
|
|
72
94
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
73
95
|
* API remote host.
|
|
@@ -85,32 +107,28 @@ class ContainerAnalysisClient {
|
|
|
85
107
|
* ```
|
|
86
108
|
*/
|
|
87
109
|
constructor(opts, gaxInstance) {
|
|
88
|
-
var _a, _b, _c, _d, _e;
|
|
89
|
-
this._terminated = false;
|
|
90
|
-
this.descriptors = {
|
|
91
|
-
page: {},
|
|
92
|
-
stream: {},
|
|
93
|
-
longrunning: {},
|
|
94
|
-
batching: {},
|
|
95
|
-
};
|
|
96
110
|
// Ensure that options include all the required fields.
|
|
97
111
|
const staticMembers = this.constructor;
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
|
|
112
|
+
if (opts?.universe_domain &&
|
|
113
|
+
opts?.universeDomain &&
|
|
114
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
101
115
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
102
116
|
}
|
|
103
117
|
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
104
118
|
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
105
119
|
: undefined;
|
|
106
120
|
this._universeDomain =
|
|
107
|
-
|
|
121
|
+
opts?.universeDomain ??
|
|
122
|
+
opts?.universe_domain ??
|
|
123
|
+
universeDomainEnvVar ??
|
|
124
|
+
'googleapis.com';
|
|
108
125
|
this._servicePath = 'containeranalysis.' + this._universeDomain;
|
|
109
|
-
const servicePath =
|
|
110
|
-
this._providedCustomServicePath = !!(
|
|
111
|
-
const port =
|
|
112
|
-
const clientConfig =
|
|
113
|
-
const fallback =
|
|
126
|
+
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
127
|
+
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
128
|
+
const port = opts?.port || staticMembers.port;
|
|
129
|
+
const clientConfig = opts?.clientConfig ?? {};
|
|
130
|
+
const fallback = opts?.fallback ??
|
|
131
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
114
132
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
115
133
|
// Request numeric enum values if REST transport is used.
|
|
116
134
|
opts.numericEnums = true;
|
|
@@ -282,7 +300,6 @@ class ContainerAnalysisClient {
|
|
|
282
300
|
return this.auth.getProjectId();
|
|
283
301
|
}
|
|
284
302
|
setIamPolicy(request, optionsOrCallback, callback) {
|
|
285
|
-
var _a;
|
|
286
303
|
request = request || {};
|
|
287
304
|
let options;
|
|
288
305
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -297,13 +314,24 @@ class ContainerAnalysisClient {
|
|
|
297
314
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
298
315
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
299
316
|
this._gaxModule.routingHeader.fromParams({
|
|
300
|
-
resource:
|
|
317
|
+
resource: request.resource ?? '',
|
|
301
318
|
});
|
|
302
319
|
this.initialize();
|
|
303
|
-
|
|
320
|
+
this._log.info('setIamPolicy request %j', request);
|
|
321
|
+
const wrappedCallback = callback
|
|
322
|
+
? (error, response, options, rawResponse) => {
|
|
323
|
+
this._log.info('setIamPolicy response %j', response);
|
|
324
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
325
|
+
}
|
|
326
|
+
: undefined;
|
|
327
|
+
return this.innerApiCalls
|
|
328
|
+
.setIamPolicy(request, options, wrappedCallback)
|
|
329
|
+
?.then(([response, options, rawResponse]) => {
|
|
330
|
+
this._log.info('setIamPolicy response %j', response);
|
|
331
|
+
return [response, options, rawResponse];
|
|
332
|
+
});
|
|
304
333
|
}
|
|
305
334
|
getIamPolicy(request, optionsOrCallback, callback) {
|
|
306
|
-
var _a;
|
|
307
335
|
request = request || {};
|
|
308
336
|
let options;
|
|
309
337
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -318,13 +346,24 @@ class ContainerAnalysisClient {
|
|
|
318
346
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
319
347
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
320
348
|
this._gaxModule.routingHeader.fromParams({
|
|
321
|
-
resource:
|
|
349
|
+
resource: request.resource ?? '',
|
|
322
350
|
});
|
|
323
351
|
this.initialize();
|
|
324
|
-
|
|
352
|
+
this._log.info('getIamPolicy request %j', request);
|
|
353
|
+
const wrappedCallback = callback
|
|
354
|
+
? (error, response, options, rawResponse) => {
|
|
355
|
+
this._log.info('getIamPolicy response %j', response);
|
|
356
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
357
|
+
}
|
|
358
|
+
: undefined;
|
|
359
|
+
return this.innerApiCalls
|
|
360
|
+
.getIamPolicy(request, options, wrappedCallback)
|
|
361
|
+
?.then(([response, options, rawResponse]) => {
|
|
362
|
+
this._log.info('getIamPolicy response %j', response);
|
|
363
|
+
return [response, options, rawResponse];
|
|
364
|
+
});
|
|
325
365
|
}
|
|
326
366
|
testIamPermissions(request, optionsOrCallback, callback) {
|
|
327
|
-
var _a;
|
|
328
367
|
request = request || {};
|
|
329
368
|
let options;
|
|
330
369
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -339,13 +378,24 @@ class ContainerAnalysisClient {
|
|
|
339
378
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
340
379
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
341
380
|
this._gaxModule.routingHeader.fromParams({
|
|
342
|
-
resource:
|
|
381
|
+
resource: request.resource ?? '',
|
|
343
382
|
});
|
|
344
383
|
this.initialize();
|
|
345
|
-
|
|
384
|
+
this._log.info('testIamPermissions request %j', request);
|
|
385
|
+
const wrappedCallback = callback
|
|
386
|
+
? (error, response, options, rawResponse) => {
|
|
387
|
+
this._log.info('testIamPermissions response %j', response);
|
|
388
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
389
|
+
}
|
|
390
|
+
: undefined;
|
|
391
|
+
return this.innerApiCalls
|
|
392
|
+
.testIamPermissions(request, options, wrappedCallback)
|
|
393
|
+
?.then(([response, options, rawResponse]) => {
|
|
394
|
+
this._log.info('testIamPermissions response %j', response);
|
|
395
|
+
return [response, options, rawResponse];
|
|
396
|
+
});
|
|
346
397
|
}
|
|
347
398
|
getVulnerabilityOccurrencesSummary(request, optionsOrCallback, callback) {
|
|
348
|
-
var _a;
|
|
349
399
|
request = request || {};
|
|
350
400
|
let options;
|
|
351
401
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -360,10 +410,22 @@ class ContainerAnalysisClient {
|
|
|
360
410
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
361
411
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
362
412
|
this._gaxModule.routingHeader.fromParams({
|
|
363
|
-
parent:
|
|
413
|
+
parent: request.parent ?? '',
|
|
364
414
|
});
|
|
365
415
|
this.initialize();
|
|
366
|
-
|
|
416
|
+
this._log.info('getVulnerabilityOccurrencesSummary request %j', request);
|
|
417
|
+
const wrappedCallback = callback
|
|
418
|
+
? (error, response, options, rawResponse) => {
|
|
419
|
+
this._log.info('getVulnerabilityOccurrencesSummary response %j', response);
|
|
420
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
421
|
+
}
|
|
422
|
+
: undefined;
|
|
423
|
+
return this.innerApiCalls
|
|
424
|
+
.getVulnerabilityOccurrencesSummary(request, options, wrappedCallback)
|
|
425
|
+
?.then(([response, options, rawResponse]) => {
|
|
426
|
+
this._log.info('getVulnerabilityOccurrencesSummary response %j', response);
|
|
427
|
+
return [response, options, rawResponse];
|
|
428
|
+
});
|
|
367
429
|
}
|
|
368
430
|
// --------------------
|
|
369
431
|
// -- Path templates --
|
|
@@ -466,6 +528,7 @@ class ContainerAnalysisClient {
|
|
|
466
528
|
close() {
|
|
467
529
|
if (this.containerAnalysisStub && !this._terminated) {
|
|
468
530
|
return this.containerAnalysisStub.then(stub => {
|
|
531
|
+
this._log.info('ending gRPC channel');
|
|
469
532
|
this._terminated = true;
|
|
470
533
|
stub.close();
|
|
471
534
|
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
"../../protos/google/devtools/containeranalysis/v1/containeranalysis.proto",
|
|
3
|
+
"../../protos/grafeas/v1/attestation.proto",
|
|
4
|
+
"../../protos/grafeas/v1/build.proto",
|
|
5
|
+
"../../protos/grafeas/v1/common.proto",
|
|
6
|
+
"../../protos/grafeas/v1/compliance.proto",
|
|
7
|
+
"../../protos/grafeas/v1/cvss.proto",
|
|
8
|
+
"../../protos/grafeas/v1/deployment.proto",
|
|
9
|
+
"../../protos/grafeas/v1/discovery.proto",
|
|
10
|
+
"../../protos/grafeas/v1/dsse_attestation.proto",
|
|
11
|
+
"../../protos/grafeas/v1/grafeas.proto",
|
|
12
|
+
"../../protos/grafeas/v1/image.proto",
|
|
13
|
+
"../../protos/grafeas/v1/intoto_provenance.proto",
|
|
14
|
+
"../../protos/grafeas/v1/intoto_statement.proto",
|
|
15
|
+
"../../protos/grafeas/v1/package.proto",
|
|
16
|
+
"../../protos/grafeas/v1/provenance.proto",
|
|
17
|
+
"../../protos/grafeas/v1/sbom.proto",
|
|
18
|
+
"../../protos/grafeas/v1/severity.proto",
|
|
19
|
+
"../../protos/grafeas/v1/slsa_provenance.proto",
|
|
20
|
+
"../../protos/grafeas/v1/slsa_provenance_zero_two.proto",
|
|
21
|
+
"../../protos/grafeas/v1/upgrade.proto",
|
|
22
|
+
"../../protos/grafeas/v1/vex.proto",
|
|
23
|
+
"../../protos/grafeas/v1/vulnerability.proto"
|
|
24
|
+
]
|
|
@@ -0,0 +1,229 @@
|
|
|
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.v1",
|
|
6
|
+
"libraryPackage": "@google-cloud/containeranalysis",
|
|
7
|
+
"services": {
|
|
8
|
+
"ContainerAnalysis": {
|
|
9
|
+
"clients": {
|
|
10
|
+
"grpc": {
|
|
11
|
+
"libraryClient": "ContainerAnalysisClient",
|
|
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
|
+
"GetVulnerabilityOccurrencesSummary": {
|
|
29
|
+
"methods": [
|
|
30
|
+
"getVulnerabilityOccurrencesSummary"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"grpc-fallback": {
|
|
36
|
+
"libraryClient": "ContainerAnalysisClient",
|
|
37
|
+
"rpcs": {
|
|
38
|
+
"SetIamPolicy": {
|
|
39
|
+
"methods": [
|
|
40
|
+
"setIamPolicy"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"GetIamPolicy": {
|
|
44
|
+
"methods": [
|
|
45
|
+
"getIamPolicy"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"TestIamPermissions": {
|
|
49
|
+
"methods": [
|
|
50
|
+
"testIamPermissions"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"GetVulnerabilityOccurrencesSummary": {
|
|
54
|
+
"methods": [
|
|
55
|
+
"getVulnerabilityOccurrencesSummary"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"Grafeas": {
|
|
63
|
+
"clients": {
|
|
64
|
+
"grpc": {
|
|
65
|
+
"libraryClient": "GrafeasClient",
|
|
66
|
+
"rpcs": {
|
|
67
|
+
"GetOccurrence": {
|
|
68
|
+
"methods": [
|
|
69
|
+
"getOccurrence"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"DeleteOccurrence": {
|
|
73
|
+
"methods": [
|
|
74
|
+
"deleteOccurrence"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"CreateOccurrence": {
|
|
78
|
+
"methods": [
|
|
79
|
+
"createOccurrence"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"BatchCreateOccurrences": {
|
|
83
|
+
"methods": [
|
|
84
|
+
"batchCreateOccurrences"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"UpdateOccurrence": {
|
|
88
|
+
"methods": [
|
|
89
|
+
"updateOccurrence"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"GetOccurrenceNote": {
|
|
93
|
+
"methods": [
|
|
94
|
+
"getOccurrenceNote"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"GetNote": {
|
|
98
|
+
"methods": [
|
|
99
|
+
"getNote"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"DeleteNote": {
|
|
103
|
+
"methods": [
|
|
104
|
+
"deleteNote"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"CreateNote": {
|
|
108
|
+
"methods": [
|
|
109
|
+
"createNote"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"BatchCreateNotes": {
|
|
113
|
+
"methods": [
|
|
114
|
+
"batchCreateNotes"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"UpdateNote": {
|
|
118
|
+
"methods": [
|
|
119
|
+
"updateNote"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"ListOccurrences": {
|
|
123
|
+
"methods": [
|
|
124
|
+
"listOccurrences",
|
|
125
|
+
"listOccurrencesStream",
|
|
126
|
+
"listOccurrencesAsync"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"ListNotes": {
|
|
130
|
+
"methods": [
|
|
131
|
+
"listNotes",
|
|
132
|
+
"listNotesStream",
|
|
133
|
+
"listNotesAsync"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"ListNoteOccurrences": {
|
|
137
|
+
"methods": [
|
|
138
|
+
"listNoteOccurrences",
|
|
139
|
+
"listNoteOccurrencesStream",
|
|
140
|
+
"listNoteOccurrencesAsync"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"grpc-fallback": {
|
|
146
|
+
"libraryClient": "GrafeasClient",
|
|
147
|
+
"rpcs": {
|
|
148
|
+
"GetOccurrence": {
|
|
149
|
+
"methods": [
|
|
150
|
+
"getOccurrence"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"DeleteOccurrence": {
|
|
154
|
+
"methods": [
|
|
155
|
+
"deleteOccurrence"
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"CreateOccurrence": {
|
|
159
|
+
"methods": [
|
|
160
|
+
"createOccurrence"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"BatchCreateOccurrences": {
|
|
164
|
+
"methods": [
|
|
165
|
+
"batchCreateOccurrences"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"UpdateOccurrence": {
|
|
169
|
+
"methods": [
|
|
170
|
+
"updateOccurrence"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"GetOccurrenceNote": {
|
|
174
|
+
"methods": [
|
|
175
|
+
"getOccurrenceNote"
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"GetNote": {
|
|
179
|
+
"methods": [
|
|
180
|
+
"getNote"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"DeleteNote": {
|
|
184
|
+
"methods": [
|
|
185
|
+
"deleteNote"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"CreateNote": {
|
|
189
|
+
"methods": [
|
|
190
|
+
"createNote"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"BatchCreateNotes": {
|
|
194
|
+
"methods": [
|
|
195
|
+
"batchCreateNotes"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"UpdateNote": {
|
|
199
|
+
"methods": [
|
|
200
|
+
"updateNote"
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"ListOccurrences": {
|
|
204
|
+
"methods": [
|
|
205
|
+
"listOccurrences",
|
|
206
|
+
"listOccurrencesStream",
|
|
207
|
+
"listOccurrencesAsync"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
"ListNotes": {
|
|
211
|
+
"methods": [
|
|
212
|
+
"listNotes",
|
|
213
|
+
"listNotesStream",
|
|
214
|
+
"listNotesAsync"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"ListNoteOccurrences": {
|
|
218
|
+
"methods": [
|
|
219
|
+
"listNoteOccurrences",
|
|
220
|
+
"listNoteOccurrencesStream",
|
|
221
|
+
"listNoteOccurrencesAsync"
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
"../../protos/google/devtools/containeranalysis/v1/containeranalysis.proto",
|
|
3
|
+
"../../protos/grafeas/v1/attestation.proto",
|
|
4
|
+
"../../protos/grafeas/v1/build.proto",
|
|
5
|
+
"../../protos/grafeas/v1/common.proto",
|
|
6
|
+
"../../protos/grafeas/v1/compliance.proto",
|
|
7
|
+
"../../protos/grafeas/v1/cvss.proto",
|
|
8
|
+
"../../protos/grafeas/v1/deployment.proto",
|
|
9
|
+
"../../protos/grafeas/v1/discovery.proto",
|
|
10
|
+
"../../protos/grafeas/v1/dsse_attestation.proto",
|
|
11
|
+
"../../protos/grafeas/v1/grafeas.proto",
|
|
12
|
+
"../../protos/grafeas/v1/image.proto",
|
|
13
|
+
"../../protos/grafeas/v1/intoto_provenance.proto",
|
|
14
|
+
"../../protos/grafeas/v1/intoto_statement.proto",
|
|
15
|
+
"../../protos/grafeas/v1/package.proto",
|
|
16
|
+
"../../protos/grafeas/v1/provenance.proto",
|
|
17
|
+
"../../protos/grafeas/v1/sbom.proto",
|
|
18
|
+
"../../protos/grafeas/v1/severity.proto",
|
|
19
|
+
"../../protos/grafeas/v1/slsa_provenance.proto",
|
|
20
|
+
"../../protos/grafeas/v1/slsa_provenance_zero_two.proto",
|
|
21
|
+
"../../protos/grafeas/v1/upgrade.proto",
|
|
22
|
+
"../../protos/grafeas/v1/vex.proto",
|
|
23
|
+
"../../protos/grafeas/v1/vulnerability.proto"
|
|
24
|
+
]
|
|
@@ -28,6 +28,7 @@ export declare class ContainerAnalysisV1Beta1Client {
|
|
|
28
28
|
private _defaults;
|
|
29
29
|
private _universeDomain;
|
|
30
30
|
private _servicePath;
|
|
31
|
+
private _log;
|
|
31
32
|
auth: gax.GoogleAuth;
|
|
32
33
|
descriptors: Descriptors;
|
|
33
34
|
warn: (code: string, message: string, warnType?: string) => void;
|
|
@@ -59,7 +60,7 @@ export declare class ContainerAnalysisV1Beta1Client {
|
|
|
59
60
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
60
61
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
61
62
|
* app is running in an environment which supports
|
|
62
|
-
* {@link https://
|
|
63
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
63
64
|
* your project ID will be detected automatically.
|
|
64
65
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
65
66
|
* API remote host.
|