@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
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,40 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/@google-cloud/containeranalysis?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [6.1.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v6.0.0...containeranalysis-v6.1.0) (2025-03-19)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* [Many APIs] await/catch promises, and update listOperationsAsync return type ([#6182](https://github.com/googleapis/google-cloud-node/issues/6182)) ([c41ff07](https://github.com/googleapis/google-cloud-node/commit/c41ff0729b65a1207978b4029d6369cc0552e0bf))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* [Many APIs] await/catch promises, and update listOperationsAsync return type ([#6190](https://github.com/googleapis/google-cloud-node/issues/6190)) ([f4866df](https://github.com/googleapis/google-cloud-node/commit/f4866dfa6ab481163150f54928a9857d2dfef948))
|
|
18
|
+
* **deps:** Update dependency @google-cloud/grafeas to v6 ([#6172](https://github.com/googleapis/google-cloud-node/issues/6172)) ([f91a34f](https://github.com/googleapis/google-cloud-node/commit/f91a34f796895397c51e02f87197b601214d82f9))
|
|
19
|
+
|
|
20
|
+
## [6.0.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.6.0...containeranalysis-v6.0.0) (2025-03-18)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### ⚠ BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096))
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* 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))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* 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))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Miscellaneous Chores
|
|
38
|
+
|
|
39
|
+
* Upgrade to Node 18 ([#6096](https://github.com/googleapis/google-cloud-node/issues/6096)) ([eadae64](https://github.com/googleapis/google-cloud-node/commit/eadae64d54e07aa2c65097ea52e65008d4e87436))
|
|
40
|
+
|
|
7
41
|
## [5.6.0](https://github.com/googleapis/google-cloud-node/compare/containeranalysis-v5.5.0...containeranalysis-v5.6.0) (2024-08-09)
|
|
8
42
|
|
|
9
43
|
|
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,26 @@ 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
|
-
this.initialize()
|
|
303
|
-
|
|
319
|
+
this.initialize().catch(err => {
|
|
320
|
+
throw err;
|
|
321
|
+
});
|
|
322
|
+
this._log.info('setIamPolicy request %j', request);
|
|
323
|
+
const wrappedCallback = callback
|
|
324
|
+
? (error, response, options, rawResponse) => {
|
|
325
|
+
this._log.info('setIamPolicy response %j', response);
|
|
326
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
327
|
+
}
|
|
328
|
+
: undefined;
|
|
329
|
+
return this.innerApiCalls
|
|
330
|
+
.setIamPolicy(request, options, wrappedCallback)
|
|
331
|
+
?.then(([response, options, rawResponse]) => {
|
|
332
|
+
this._log.info('setIamPolicy response %j', response);
|
|
333
|
+
return [response, options, rawResponse];
|
|
334
|
+
});
|
|
304
335
|
}
|
|
305
336
|
getIamPolicy(request, optionsOrCallback, callback) {
|
|
306
|
-
var _a;
|
|
307
337
|
request = request || {};
|
|
308
338
|
let options;
|
|
309
339
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -318,13 +348,26 @@ class ContainerAnalysisClient {
|
|
|
318
348
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
319
349
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
320
350
|
this._gaxModule.routingHeader.fromParams({
|
|
321
|
-
resource:
|
|
351
|
+
resource: request.resource ?? '',
|
|
322
352
|
});
|
|
323
|
-
this.initialize()
|
|
324
|
-
|
|
353
|
+
this.initialize().catch(err => {
|
|
354
|
+
throw err;
|
|
355
|
+
});
|
|
356
|
+
this._log.info('getIamPolicy request %j', request);
|
|
357
|
+
const wrappedCallback = callback
|
|
358
|
+
? (error, response, options, rawResponse) => {
|
|
359
|
+
this._log.info('getIamPolicy response %j', response);
|
|
360
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
361
|
+
}
|
|
362
|
+
: undefined;
|
|
363
|
+
return this.innerApiCalls
|
|
364
|
+
.getIamPolicy(request, options, wrappedCallback)
|
|
365
|
+
?.then(([response, options, rawResponse]) => {
|
|
366
|
+
this._log.info('getIamPolicy response %j', response);
|
|
367
|
+
return [response, options, rawResponse];
|
|
368
|
+
});
|
|
325
369
|
}
|
|
326
370
|
testIamPermissions(request, optionsOrCallback, callback) {
|
|
327
|
-
var _a;
|
|
328
371
|
request = request || {};
|
|
329
372
|
let options;
|
|
330
373
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -339,13 +382,26 @@ class ContainerAnalysisClient {
|
|
|
339
382
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
340
383
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
341
384
|
this._gaxModule.routingHeader.fromParams({
|
|
342
|
-
resource:
|
|
385
|
+
resource: request.resource ?? '',
|
|
343
386
|
});
|
|
344
|
-
this.initialize()
|
|
345
|
-
|
|
387
|
+
this.initialize().catch(err => {
|
|
388
|
+
throw err;
|
|
389
|
+
});
|
|
390
|
+
this._log.info('testIamPermissions request %j', request);
|
|
391
|
+
const wrappedCallback = callback
|
|
392
|
+
? (error, response, options, rawResponse) => {
|
|
393
|
+
this._log.info('testIamPermissions response %j', response);
|
|
394
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
395
|
+
}
|
|
396
|
+
: undefined;
|
|
397
|
+
return this.innerApiCalls
|
|
398
|
+
.testIamPermissions(request, options, wrappedCallback)
|
|
399
|
+
?.then(([response, options, rawResponse]) => {
|
|
400
|
+
this._log.info('testIamPermissions response %j', response);
|
|
401
|
+
return [response, options, rawResponse];
|
|
402
|
+
});
|
|
346
403
|
}
|
|
347
404
|
getVulnerabilityOccurrencesSummary(request, optionsOrCallback, callback) {
|
|
348
|
-
var _a;
|
|
349
405
|
request = request || {};
|
|
350
406
|
let options;
|
|
351
407
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -360,10 +416,24 @@ class ContainerAnalysisClient {
|
|
|
360
416
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
361
417
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
362
418
|
this._gaxModule.routingHeader.fromParams({
|
|
363
|
-
parent:
|
|
419
|
+
parent: request.parent ?? '',
|
|
364
420
|
});
|
|
365
|
-
this.initialize()
|
|
366
|
-
|
|
421
|
+
this.initialize().catch(err => {
|
|
422
|
+
throw err;
|
|
423
|
+
});
|
|
424
|
+
this._log.info('getVulnerabilityOccurrencesSummary request %j', request);
|
|
425
|
+
const wrappedCallback = callback
|
|
426
|
+
? (error, response, options, rawResponse) => {
|
|
427
|
+
this._log.info('getVulnerabilityOccurrencesSummary response %j', response);
|
|
428
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
429
|
+
}
|
|
430
|
+
: undefined;
|
|
431
|
+
return this.innerApiCalls
|
|
432
|
+
.getVulnerabilityOccurrencesSummary(request, options, wrappedCallback)
|
|
433
|
+
?.then(([response, options, rawResponse]) => {
|
|
434
|
+
this._log.info('getVulnerabilityOccurrencesSummary response %j', response);
|
|
435
|
+
return [response, options, rawResponse];
|
|
436
|
+
});
|
|
367
437
|
}
|
|
368
438
|
// --------------------
|
|
369
439
|
// -- Path templates --
|
|
@@ -466,6 +536,7 @@ class ContainerAnalysisClient {
|
|
|
466
536
|
close() {
|
|
467
537
|
if (this.containerAnalysisStub && !this._terminated) {
|
|
468
538
|
return this.containerAnalysisStub.then(stub => {
|
|
539
|
+
this._log.info('ending gRPC channel');
|
|
469
540
|
this._terminated = true;
|
|
470
541
|
stub.close();
|
|
471
542
|
});
|
|
@@ -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.
|