@google-cloud/containeranalysis
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -23,4 +23,4 @@ "use strict"; | ||
const gax = require("google-gax"); | ||
const path = require("path"); | ||
const grafeas_1 = require("@google-cloud/grafeas"); | ||
const jsonProtos = require("../../protos/protos.json"); | ||
/** | ||
@@ -132,9 +132,3 @@ * Client JSON configuration object, loaded from | ||
// Load the applicable protos. | ||
// For Node.js, pass the path to JSON proto file. | ||
// For browsers, pass the JSON content. | ||
const nodejsProtoPath = path.join(__dirname, '..', '..', 'protos', 'protos.json'); | ||
this._protos = this._gaxGrpc.loadProto(opts.fallback | ||
? // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
require('../../protos/protos.json') | ||
: nodejsProtoPath); | ||
this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); | ||
// This API contains "path templates"; forward-slash-separated | ||
@@ -286,5 +280,6 @@ // identifiers to uniquely identify resources within the API. | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
this.initialize(); | ||
@@ -334,5 +329,6 @@ return this.innerApiCalls.setIamPolicy(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
this.initialize(); | ||
@@ -383,5 +379,6 @@ return this.innerApiCalls.getIamPolicy(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
this.initialize(); | ||
@@ -423,5 +420,6 @@ return this.innerApiCalls.testIamPermissions(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -428,0 +426,0 @@ return this.innerApiCalls.getVulnerabilityOccurrencesSummary(request, options, callback); |
@@ -23,3 +23,3 @@ "use strict"; | ||
const gax = require("google-gax"); | ||
const path = require("path"); | ||
const jsonProtos = require("../../protos/protos.json"); | ||
/** | ||
@@ -132,9 +132,3 @@ * Client JSON configuration object, loaded from | ||
// Load the applicable protos. | ||
// For Node.js, pass the path to JSON proto file. | ||
// For browsers, pass the JSON content. | ||
const nodejsProtoPath = path.join(__dirname, '..', '..', 'protos', 'protos.json'); | ||
this._protos = this._gaxGrpc.loadProto(opts.fallback | ||
? // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
require('../../protos/protos.json') | ||
: nodejsProtoPath); | ||
this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); | ||
// This API contains "path templates"; forward-slash-separated | ||
@@ -293,5 +287,6 @@ // identifiers to uniquely identify resources within the API. | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
this.initialize(); | ||
@@ -341,5 +336,6 @@ return this.innerApiCalls.setIamPolicy(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
this.initialize(); | ||
@@ -390,5 +386,6 @@ return this.innerApiCalls.getIamPolicy(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
resource: request.resource || '', | ||
}); | ||
this.initialize(); | ||
@@ -428,5 +425,6 @@ return this.innerApiCalls.testIamPermissions(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -468,5 +466,6 @@ return this.innerApiCalls.getScanConfig(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -515,5 +514,6 @@ return this.innerApiCalls.updateScanConfig(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -552,5 +552,6 @@ return this.innerApiCalls.listScanConfigs(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
const callSettings = new gax.CallSettings(options); | ||
@@ -596,5 +597,6 @@ this.initialize(); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options = options || {}; | ||
@@ -601,0 +603,0 @@ const callSettings = new gax.CallSettings(options); |
@@ -23,3 +23,3 @@ "use strict"; | ||
const gax = require("google-gax"); | ||
const path = require("path"); | ||
const jsonProtos = require("../../protos/protos.json"); | ||
/** | ||
@@ -132,9 +132,3 @@ * Client JSON configuration object, loaded from | ||
// Load the applicable protos. | ||
// For Node.js, pass the path to JSON proto file. | ||
// For browsers, pass the JSON content. | ||
const nodejsProtoPath = path.join(__dirname, '..', '..', 'protos', 'protos.json'); | ||
this._protos = this._gaxGrpc.loadProto(opts.fallback | ||
? // eslint-disable-next-line @typescript-eslint/no-var-requires | ||
require('../../protos/protos.json') | ||
: nodejsProtoPath); | ||
this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); | ||
// This API contains "path templates"; forward-slash-separated | ||
@@ -290,5 +284,6 @@ // identifiers to uniquely identify resources within the API. | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -330,5 +325,6 @@ return this.innerApiCalls.getOccurrence(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -370,5 +366,6 @@ return this.innerApiCalls.deleteOccurrence(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -410,5 +407,6 @@ return this.innerApiCalls.createOccurrence(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -452,5 +450,6 @@ return this.innerApiCalls.batchCreateOccurrences(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -491,5 +490,6 @@ return this.innerApiCalls.updateOccurrence(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -529,5 +529,6 @@ return this.innerApiCalls.getOccurrenceNote(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -567,5 +568,6 @@ return this.innerApiCalls.getNote(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -609,5 +611,6 @@ return this.innerApiCalls.deleteNote(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -649,5 +652,6 @@ return this.innerApiCalls.createNote(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -691,5 +695,6 @@ return this.innerApiCalls.batchCreateNotes(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -731,5 +736,6 @@ return this.innerApiCalls.updateNote(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -778,5 +784,6 @@ return this.innerApiCalls.getVulnerabilityOccurrencesSummary(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -815,5 +822,6 @@ return this.innerApiCalls.listOccurrences(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
const callSettings = new gax.CallSettings(options); | ||
@@ -859,5 +867,6 @@ this.initialize(); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options = options || {}; | ||
@@ -908,5 +917,6 @@ const callSettings = new gax.CallSettings(options); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
this.initialize(); | ||
@@ -945,5 +955,6 @@ return this.innerApiCalls.listNotes(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
const callSettings = new gax.CallSettings(options); | ||
@@ -989,5 +1000,6 @@ this.initialize(); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
parent: request.parent || '', | ||
}); | ||
options = options || {}; | ||
@@ -1040,5 +1052,6 @@ const callSettings = new gax.CallSettings(options); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
this.initialize(); | ||
@@ -1077,5 +1090,6 @@ return this.innerApiCalls.listNoteOccurrences(request, options, callback); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
const callSettings = new gax.CallSettings(options); | ||
@@ -1121,5 +1135,6 @@ this.initialize(); | ||
options.otherArgs.headers = options.otherArgs.headers || {}; | ||
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options.otherArgs.headers['x-goog-request-params'] = | ||
gax.routingHeader.fromParams({ | ||
name: request.name || '', | ||
}); | ||
options = options || {}; | ||
@@ -1126,0 +1141,0 @@ const callSettings = new gax.CallSettings(options); |
@@ -7,2 +7,9 @@ # Changelog | ||
### [3.1.3](https://www.github.com/googleapis/nodejs-containeranalysis/compare/v3.1.2...v3.1.3) (2021-05-12) | ||
### Bug Fixes | ||
* use require() to load JSON protos ([#301](https://www.github.com/googleapis/nodejs-containeranalysis/issues/301)) ([46bed2e](https://www.github.com/googleapis/nodejs-containeranalysis/commit/46bed2e0b0dadaae2504f2c765d13f2d46f4a0b0)) | ||
### [3.1.2](https://www.github.com/googleapis/nodejs-containeranalysis/compare/v3.1.1...v3.1.2) (2021-05-07) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"repository": "googleapis/nodejs-containeranalysis", | ||
"name": "@google-cloud/containeranalysis", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"author": "Google LLC", | ||
@@ -6,0 +6,0 @@ "description": "Container Analysis API client for Node.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80547
4737843