@google-cloud/dlp 6.2.0 → 6.3.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/build/protos/google/privacy/dlp/v2/dlp.proto +11 -3
- package/build/protos/protos.d.ts +118 -12
- package/build/protos/protos.js +1537 -426
- package/build/protos/protos.json +73 -19
- package/build/src/v2/dlp_service_client.d.ts +817 -817
- package/build/src/v2/dlp_service_client.js +634 -722
- package/package.json +4 -4
- package/CHANGELOG.md +0 -756
|
@@ -101,26 +101,17 @@ class DlpServiceClient {
|
|
|
101
101
|
constructor(opts, gaxInstance) {
|
|
102
102
|
// Ensure that options include all the required fields.
|
|
103
103
|
const staticMembers = this.constructor;
|
|
104
|
-
if (opts?.universe_domain &&
|
|
105
|
-
opts?.universeDomain &&
|
|
106
|
-
opts?.universe_domain !== opts?.universeDomain) {
|
|
104
|
+
if (opts?.universe_domain && opts?.universeDomain && opts?.universe_domain !== opts?.universeDomain) {
|
|
107
105
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
108
106
|
}
|
|
109
|
-
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
110
|
-
|
|
111
|
-
: undefined;
|
|
112
|
-
this._universeDomain =
|
|
113
|
-
opts?.universeDomain ??
|
|
114
|
-
opts?.universe_domain ??
|
|
115
|
-
universeDomainEnvVar ??
|
|
116
|
-
'googleapis.com';
|
|
107
|
+
const universeDomainEnvVar = (typeof process === 'object' && typeof process.env === 'object') ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN'] : undefined;
|
|
108
|
+
this._universeDomain = opts?.universeDomain ?? opts?.universe_domain ?? universeDomainEnvVar ?? 'googleapis.com';
|
|
117
109
|
this._servicePath = 'dlp.' + this._universeDomain;
|
|
118
110
|
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
119
111
|
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
120
112
|
const port = opts?.port || staticMembers.port;
|
|
121
113
|
const clientConfig = opts?.clientConfig ?? {};
|
|
122
|
-
const fallback = opts?.fallback ??
|
|
123
|
-
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
114
|
+
const fallback = opts?.fallback ?? (typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
124
115
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
125
116
|
// Request numeric enum values if REST transport is used.
|
|
126
117
|
opts.numericEnums = true;
|
|
@@ -150,7 +141,10 @@ class DlpServiceClient {
|
|
|
150
141
|
}
|
|
151
142
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
|
152
143
|
// Determine the client header string.
|
|
153
|
-
const clientHeader = [
|
|
144
|
+
const clientHeader = [
|
|
145
|
+
`gax/${this._gaxModule.version}`,
|
|
146
|
+
`gapic/${version}`,
|
|
147
|
+
];
|
|
154
148
|
if (typeof process === 'object' && 'versions' in process) {
|
|
155
149
|
clientHeader.push(`gl-node/${process.versions.node}`);
|
|
156
150
|
}
|
|
@@ -221,7 +215,7 @@ class DlpServiceClient {
|
|
|
221
215
|
listColumnDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'columnDataProfiles'),
|
|
222
216
|
listFileStoreDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'fileStoreDataProfiles'),
|
|
223
217
|
listConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connections'),
|
|
224
|
-
searchConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connections')
|
|
218
|
+
searchConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connections')
|
|
225
219
|
};
|
|
226
220
|
// Put together the default options sent with requests.
|
|
227
221
|
this._defaults = this._gaxGrpc.constructSettings('google.privacy.dlp.v2.DlpService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -250,69 +244,13 @@ class DlpServiceClient {
|
|
|
250
244
|
}
|
|
251
245
|
// Put together the "service stub" for
|
|
252
246
|
// google.privacy.dlp.v2.DlpService.
|
|
253
|
-
this.dlpServiceStub = this._gaxGrpc.createStub(this._opts.fallback
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
247
|
+
this.dlpServiceStub = this._gaxGrpc.createStub(this._opts.fallback ?
|
|
248
|
+
this._protos.lookupService('google.privacy.dlp.v2.DlpService') :
|
|
249
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
250
|
+
this._protos.google.privacy.dlp.v2.DlpService, this._opts, this._providedCustomServicePath);
|
|
257
251
|
// Iterate over each of the methods that the service provides
|
|
258
252
|
// and create an API call method for each.
|
|
259
|
-
const dlpServiceStubMethods = [
|
|
260
|
-
'inspectContent',
|
|
261
|
-
'redactImage',
|
|
262
|
-
'deidentifyContent',
|
|
263
|
-
'reidentifyContent',
|
|
264
|
-
'listInfoTypes',
|
|
265
|
-
'createInspectTemplate',
|
|
266
|
-
'updateInspectTemplate',
|
|
267
|
-
'getInspectTemplate',
|
|
268
|
-
'listInspectTemplates',
|
|
269
|
-
'deleteInspectTemplate',
|
|
270
|
-
'createDeidentifyTemplate',
|
|
271
|
-
'updateDeidentifyTemplate',
|
|
272
|
-
'getDeidentifyTemplate',
|
|
273
|
-
'listDeidentifyTemplates',
|
|
274
|
-
'deleteDeidentifyTemplate',
|
|
275
|
-
'createJobTrigger',
|
|
276
|
-
'updateJobTrigger',
|
|
277
|
-
'hybridInspectJobTrigger',
|
|
278
|
-
'getJobTrigger',
|
|
279
|
-
'listJobTriggers',
|
|
280
|
-
'deleteJobTrigger',
|
|
281
|
-
'activateJobTrigger',
|
|
282
|
-
'createDiscoveryConfig',
|
|
283
|
-
'updateDiscoveryConfig',
|
|
284
|
-
'getDiscoveryConfig',
|
|
285
|
-
'listDiscoveryConfigs',
|
|
286
|
-
'deleteDiscoveryConfig',
|
|
287
|
-
'createDlpJob',
|
|
288
|
-
'listDlpJobs',
|
|
289
|
-
'getDlpJob',
|
|
290
|
-
'deleteDlpJob',
|
|
291
|
-
'cancelDlpJob',
|
|
292
|
-
'createStoredInfoType',
|
|
293
|
-
'updateStoredInfoType',
|
|
294
|
-
'getStoredInfoType',
|
|
295
|
-
'listStoredInfoTypes',
|
|
296
|
-
'deleteStoredInfoType',
|
|
297
|
-
'listProjectDataProfiles',
|
|
298
|
-
'listTableDataProfiles',
|
|
299
|
-
'listColumnDataProfiles',
|
|
300
|
-
'getProjectDataProfile',
|
|
301
|
-
'listFileStoreDataProfiles',
|
|
302
|
-
'getFileStoreDataProfile',
|
|
303
|
-
'deleteFileStoreDataProfile',
|
|
304
|
-
'getTableDataProfile',
|
|
305
|
-
'getColumnDataProfile',
|
|
306
|
-
'deleteTableDataProfile',
|
|
307
|
-
'hybridInspectDlpJob',
|
|
308
|
-
'finishDlpJob',
|
|
309
|
-
'createConnection',
|
|
310
|
-
'getConnection',
|
|
311
|
-
'listConnections',
|
|
312
|
-
'searchConnections',
|
|
313
|
-
'deleteConnection',
|
|
314
|
-
'updateConnection',
|
|
315
|
-
];
|
|
253
|
+
const dlpServiceStubMethods = ['inspectContent', 'redactImage', 'deidentifyContent', 'reidentifyContent', 'listInfoTypes', 'createInspectTemplate', 'updateInspectTemplate', 'getInspectTemplate', 'listInspectTemplates', 'deleteInspectTemplate', 'createDeidentifyTemplate', 'updateDeidentifyTemplate', 'getDeidentifyTemplate', 'listDeidentifyTemplates', 'deleteDeidentifyTemplate', 'createJobTrigger', 'updateJobTrigger', 'hybridInspectJobTrigger', 'getJobTrigger', 'listJobTriggers', 'deleteJobTrigger', 'activateJobTrigger', 'createDiscoveryConfig', 'updateDiscoveryConfig', 'getDiscoveryConfig', 'listDiscoveryConfigs', 'deleteDiscoveryConfig', 'createDlpJob', 'listDlpJobs', 'getDlpJob', 'deleteDlpJob', 'cancelDlpJob', 'createStoredInfoType', 'updateStoredInfoType', 'getStoredInfoType', 'listStoredInfoTypes', 'deleteStoredInfoType', 'listProjectDataProfiles', 'listTableDataProfiles', 'listColumnDataProfiles', 'getProjectDataProfile', 'listFileStoreDataProfiles', 'getFileStoreDataProfile', 'deleteFileStoreDataProfile', 'getTableDataProfile', 'getColumnDataProfile', 'deleteTableDataProfile', 'hybridInspectDlpJob', 'finishDlpJob', 'createConnection', 'getConnection', 'listConnections', 'searchConnections', 'deleteConnection', 'updateConnection'];
|
|
316
254
|
for (const methodName of dlpServiceStubMethods) {
|
|
317
255
|
const callPromise = this.dlpServiceStub.then(stub => (...args) => {
|
|
318
256
|
if (this._terminated) {
|
|
@@ -323,7 +261,8 @@ class DlpServiceClient {
|
|
|
323
261
|
}, (err) => () => {
|
|
324
262
|
throw err;
|
|
325
263
|
});
|
|
326
|
-
const descriptor = this.descriptors.page[methodName] ||
|
|
264
|
+
const descriptor = this.descriptors.page[methodName] ||
|
|
265
|
+
undefined;
|
|
327
266
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
328
267
|
this.innerApiCalls[methodName] = apiCall;
|
|
329
268
|
}
|
|
@@ -335,8 +274,7 @@ class DlpServiceClient {
|
|
|
335
274
|
* @returns {string} The DNS address for this service.
|
|
336
275
|
*/
|
|
337
276
|
static get servicePath() {
|
|
338
|
-
if (typeof process === 'object' &&
|
|
339
|
-
typeof process.emitWarning === 'function') {
|
|
277
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
340
278
|
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
341
279
|
}
|
|
342
280
|
return 'dlp.googleapis.com';
|
|
@@ -347,8 +285,7 @@ class DlpServiceClient {
|
|
|
347
285
|
* @returns {string} The DNS address for this service.
|
|
348
286
|
*/
|
|
349
287
|
static get apiEndpoint() {
|
|
350
|
-
if (typeof process === 'object' &&
|
|
351
|
-
typeof process.emitWarning === 'function') {
|
|
288
|
+
if (typeof process === 'object' && typeof process.emitWarning === 'function') {
|
|
352
289
|
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
353
290
|
}
|
|
354
291
|
return 'dlp.googleapis.com';
|
|
@@ -376,7 +313,9 @@ class DlpServiceClient {
|
|
|
376
313
|
* @returns {string[]} List of default scopes.
|
|
377
314
|
*/
|
|
378
315
|
static get scopes() {
|
|
379
|
-
return [
|
|
316
|
+
return [
|
|
317
|
+
'https://www.googleapis.com/auth/cloud-platform'
|
|
318
|
+
];
|
|
380
319
|
}
|
|
381
320
|
/**
|
|
382
321
|
* Return the project ID used by this class.
|
|
@@ -402,13 +341,10 @@ class DlpServiceClient {
|
|
|
402
341
|
options = options || {};
|
|
403
342
|
options.otherArgs = options.otherArgs || {};
|
|
404
343
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
405
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
406
|
-
|
|
407
|
-
parent: request.parent ?? '',
|
|
408
|
-
});
|
|
409
|
-
this.initialize().catch(err => {
|
|
410
|
-
throw err;
|
|
344
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
345
|
+
'parent': request.parent ?? '',
|
|
411
346
|
});
|
|
347
|
+
this.initialize().catch(err => { throw err; });
|
|
412
348
|
this._log.info('inspectContent request %j', request);
|
|
413
349
|
const wrappedCallback = callback
|
|
414
350
|
? (error, response, options, rawResponse) => {
|
|
@@ -416,11 +352,16 @@ class DlpServiceClient {
|
|
|
416
352
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
417
353
|
}
|
|
418
354
|
: undefined;
|
|
419
|
-
return this.innerApiCalls
|
|
420
|
-
.inspectContent(request, options, wrappedCallback)
|
|
355
|
+
return this.innerApiCalls.inspectContent(request, options, wrappedCallback)
|
|
421
356
|
?.then(([response, options, rawResponse]) => {
|
|
422
357
|
this._log.info('inspectContent response %j', response);
|
|
423
358
|
return [response, options, rawResponse];
|
|
359
|
+
}).catch((error) => {
|
|
360
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
361
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
362
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
363
|
+
}
|
|
364
|
+
throw error;
|
|
424
365
|
});
|
|
425
366
|
}
|
|
426
367
|
redactImage(request, optionsOrCallback, callback) {
|
|
@@ -436,13 +377,10 @@ class DlpServiceClient {
|
|
|
436
377
|
options = options || {};
|
|
437
378
|
options.otherArgs = options.otherArgs || {};
|
|
438
379
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
439
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
440
|
-
|
|
441
|
-
parent: request.parent ?? '',
|
|
442
|
-
});
|
|
443
|
-
this.initialize().catch(err => {
|
|
444
|
-
throw err;
|
|
380
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
381
|
+
'parent': request.parent ?? '',
|
|
445
382
|
});
|
|
383
|
+
this.initialize().catch(err => { throw err; });
|
|
446
384
|
this._log.info('redactImage request %j', request);
|
|
447
385
|
const wrappedCallback = callback
|
|
448
386
|
? (error, response, options, rawResponse) => {
|
|
@@ -450,11 +388,16 @@ class DlpServiceClient {
|
|
|
450
388
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
451
389
|
}
|
|
452
390
|
: undefined;
|
|
453
|
-
return this.innerApiCalls
|
|
454
|
-
.redactImage(request, options, wrappedCallback)
|
|
391
|
+
return this.innerApiCalls.redactImage(request, options, wrappedCallback)
|
|
455
392
|
?.then(([response, options, rawResponse]) => {
|
|
456
393
|
this._log.info('redactImage response %j', response);
|
|
457
394
|
return [response, options, rawResponse];
|
|
395
|
+
}).catch((error) => {
|
|
396
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
397
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
398
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
399
|
+
}
|
|
400
|
+
throw error;
|
|
458
401
|
});
|
|
459
402
|
}
|
|
460
403
|
deidentifyContent(request, optionsOrCallback, callback) {
|
|
@@ -470,13 +413,10 @@ class DlpServiceClient {
|
|
|
470
413
|
options = options || {};
|
|
471
414
|
options.otherArgs = options.otherArgs || {};
|
|
472
415
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
473
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
474
|
-
|
|
475
|
-
parent: request.parent ?? '',
|
|
476
|
-
});
|
|
477
|
-
this.initialize().catch(err => {
|
|
478
|
-
throw err;
|
|
416
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
417
|
+
'parent': request.parent ?? '',
|
|
479
418
|
});
|
|
419
|
+
this.initialize().catch(err => { throw err; });
|
|
480
420
|
this._log.info('deidentifyContent request %j', request);
|
|
481
421
|
const wrappedCallback = callback
|
|
482
422
|
? (error, response, options, rawResponse) => {
|
|
@@ -484,11 +424,16 @@ class DlpServiceClient {
|
|
|
484
424
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
485
425
|
}
|
|
486
426
|
: undefined;
|
|
487
|
-
return this.innerApiCalls
|
|
488
|
-
.deidentifyContent(request, options, wrappedCallback)
|
|
427
|
+
return this.innerApiCalls.deidentifyContent(request, options, wrappedCallback)
|
|
489
428
|
?.then(([response, options, rawResponse]) => {
|
|
490
429
|
this._log.info('deidentifyContent response %j', response);
|
|
491
430
|
return [response, options, rawResponse];
|
|
431
|
+
}).catch((error) => {
|
|
432
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
433
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
434
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
435
|
+
}
|
|
436
|
+
throw error;
|
|
492
437
|
});
|
|
493
438
|
}
|
|
494
439
|
reidentifyContent(request, optionsOrCallback, callback) {
|
|
@@ -504,13 +449,10 @@ class DlpServiceClient {
|
|
|
504
449
|
options = options || {};
|
|
505
450
|
options.otherArgs = options.otherArgs || {};
|
|
506
451
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
507
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
508
|
-
|
|
509
|
-
parent: request.parent ?? '',
|
|
510
|
-
});
|
|
511
|
-
this.initialize().catch(err => {
|
|
512
|
-
throw err;
|
|
452
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
453
|
+
'parent': request.parent ?? '',
|
|
513
454
|
});
|
|
455
|
+
this.initialize().catch(err => { throw err; });
|
|
514
456
|
this._log.info('reidentifyContent request %j', request);
|
|
515
457
|
const wrappedCallback = callback
|
|
516
458
|
? (error, response, options, rawResponse) => {
|
|
@@ -518,11 +460,16 @@ class DlpServiceClient {
|
|
|
518
460
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
519
461
|
}
|
|
520
462
|
: undefined;
|
|
521
|
-
return this.innerApiCalls
|
|
522
|
-
.reidentifyContent(request, options, wrappedCallback)
|
|
463
|
+
return this.innerApiCalls.reidentifyContent(request, options, wrappedCallback)
|
|
523
464
|
?.then(([response, options, rawResponse]) => {
|
|
524
465
|
this._log.info('reidentifyContent response %j', response);
|
|
525
466
|
return [response, options, rawResponse];
|
|
467
|
+
}).catch((error) => {
|
|
468
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
469
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
470
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
471
|
+
}
|
|
472
|
+
throw error;
|
|
526
473
|
});
|
|
527
474
|
}
|
|
528
475
|
listInfoTypes(request, optionsOrCallback, callback) {
|
|
@@ -538,13 +485,10 @@ class DlpServiceClient {
|
|
|
538
485
|
options = options || {};
|
|
539
486
|
options.otherArgs = options.otherArgs || {};
|
|
540
487
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
541
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
542
|
-
|
|
543
|
-
parent: request.parent ?? '',
|
|
544
|
-
});
|
|
545
|
-
this.initialize().catch(err => {
|
|
546
|
-
throw err;
|
|
488
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
489
|
+
'parent': request.parent ?? '',
|
|
547
490
|
});
|
|
491
|
+
this.initialize().catch(err => { throw err; });
|
|
548
492
|
this._log.info('listInfoTypes request %j', request);
|
|
549
493
|
const wrappedCallback = callback
|
|
550
494
|
? (error, response, options, rawResponse) => {
|
|
@@ -552,11 +496,16 @@ class DlpServiceClient {
|
|
|
552
496
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
553
497
|
}
|
|
554
498
|
: undefined;
|
|
555
|
-
return this.innerApiCalls
|
|
556
|
-
.listInfoTypes(request, options, wrappedCallback)
|
|
499
|
+
return this.innerApiCalls.listInfoTypes(request, options, wrappedCallback)
|
|
557
500
|
?.then(([response, options, rawResponse]) => {
|
|
558
501
|
this._log.info('listInfoTypes response %j', response);
|
|
559
502
|
return [response, options, rawResponse];
|
|
503
|
+
}).catch((error) => {
|
|
504
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
505
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
506
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
507
|
+
}
|
|
508
|
+
throw error;
|
|
560
509
|
});
|
|
561
510
|
}
|
|
562
511
|
createInspectTemplate(request, optionsOrCallback, callback) {
|
|
@@ -572,13 +521,10 @@ class DlpServiceClient {
|
|
|
572
521
|
options = options || {};
|
|
573
522
|
options.otherArgs = options.otherArgs || {};
|
|
574
523
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
575
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
576
|
-
|
|
577
|
-
parent: request.parent ?? '',
|
|
578
|
-
});
|
|
579
|
-
this.initialize().catch(err => {
|
|
580
|
-
throw err;
|
|
524
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
525
|
+
'parent': request.parent ?? '',
|
|
581
526
|
});
|
|
527
|
+
this.initialize().catch(err => { throw err; });
|
|
582
528
|
this._log.info('createInspectTemplate request %j', request);
|
|
583
529
|
const wrappedCallback = callback
|
|
584
530
|
? (error, response, options, rawResponse) => {
|
|
@@ -586,11 +532,16 @@ class DlpServiceClient {
|
|
|
586
532
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
587
533
|
}
|
|
588
534
|
: undefined;
|
|
589
|
-
return this.innerApiCalls
|
|
590
|
-
.createInspectTemplate(request, options, wrappedCallback)
|
|
535
|
+
return this.innerApiCalls.createInspectTemplate(request, options, wrappedCallback)
|
|
591
536
|
?.then(([response, options, rawResponse]) => {
|
|
592
537
|
this._log.info('createInspectTemplate response %j', response);
|
|
593
538
|
return [response, options, rawResponse];
|
|
539
|
+
}).catch((error) => {
|
|
540
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
541
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
542
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
543
|
+
}
|
|
544
|
+
throw error;
|
|
594
545
|
});
|
|
595
546
|
}
|
|
596
547
|
updateInspectTemplate(request, optionsOrCallback, callback) {
|
|
@@ -606,13 +557,10 @@ class DlpServiceClient {
|
|
|
606
557
|
options = options || {};
|
|
607
558
|
options.otherArgs = options.otherArgs || {};
|
|
608
559
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
609
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
610
|
-
|
|
611
|
-
name: request.name ?? '',
|
|
612
|
-
});
|
|
613
|
-
this.initialize().catch(err => {
|
|
614
|
-
throw err;
|
|
560
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
561
|
+
'name': request.name ?? '',
|
|
615
562
|
});
|
|
563
|
+
this.initialize().catch(err => { throw err; });
|
|
616
564
|
this._log.info('updateInspectTemplate request %j', request);
|
|
617
565
|
const wrappedCallback = callback
|
|
618
566
|
? (error, response, options, rawResponse) => {
|
|
@@ -620,11 +568,16 @@ class DlpServiceClient {
|
|
|
620
568
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
621
569
|
}
|
|
622
570
|
: undefined;
|
|
623
|
-
return this.innerApiCalls
|
|
624
|
-
.updateInspectTemplate(request, options, wrappedCallback)
|
|
571
|
+
return this.innerApiCalls.updateInspectTemplate(request, options, wrappedCallback)
|
|
625
572
|
?.then(([response, options, rawResponse]) => {
|
|
626
573
|
this._log.info('updateInspectTemplate response %j', response);
|
|
627
574
|
return [response, options, rawResponse];
|
|
575
|
+
}).catch((error) => {
|
|
576
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
577
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
578
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
579
|
+
}
|
|
580
|
+
throw error;
|
|
628
581
|
});
|
|
629
582
|
}
|
|
630
583
|
getInspectTemplate(request, optionsOrCallback, callback) {
|
|
@@ -640,13 +593,10 @@ class DlpServiceClient {
|
|
|
640
593
|
options = options || {};
|
|
641
594
|
options.otherArgs = options.otherArgs || {};
|
|
642
595
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
643
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
644
|
-
|
|
645
|
-
name: request.name ?? '',
|
|
646
|
-
});
|
|
647
|
-
this.initialize().catch(err => {
|
|
648
|
-
throw err;
|
|
596
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
597
|
+
'name': request.name ?? '',
|
|
649
598
|
});
|
|
599
|
+
this.initialize().catch(err => { throw err; });
|
|
650
600
|
this._log.info('getInspectTemplate request %j', request);
|
|
651
601
|
const wrappedCallback = callback
|
|
652
602
|
? (error, response, options, rawResponse) => {
|
|
@@ -654,11 +604,16 @@ class DlpServiceClient {
|
|
|
654
604
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
655
605
|
}
|
|
656
606
|
: undefined;
|
|
657
|
-
return this.innerApiCalls
|
|
658
|
-
.getInspectTemplate(request, options, wrappedCallback)
|
|
607
|
+
return this.innerApiCalls.getInspectTemplate(request, options, wrappedCallback)
|
|
659
608
|
?.then(([response, options, rawResponse]) => {
|
|
660
609
|
this._log.info('getInspectTemplate response %j', response);
|
|
661
610
|
return [response, options, rawResponse];
|
|
611
|
+
}).catch((error) => {
|
|
612
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
613
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
614
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
615
|
+
}
|
|
616
|
+
throw error;
|
|
662
617
|
});
|
|
663
618
|
}
|
|
664
619
|
deleteInspectTemplate(request, optionsOrCallback, callback) {
|
|
@@ -674,13 +629,10 @@ class DlpServiceClient {
|
|
|
674
629
|
options = options || {};
|
|
675
630
|
options.otherArgs = options.otherArgs || {};
|
|
676
631
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
677
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
678
|
-
|
|
679
|
-
name: request.name ?? '',
|
|
680
|
-
});
|
|
681
|
-
this.initialize().catch(err => {
|
|
682
|
-
throw err;
|
|
632
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
633
|
+
'name': request.name ?? '',
|
|
683
634
|
});
|
|
635
|
+
this.initialize().catch(err => { throw err; });
|
|
684
636
|
this._log.info('deleteInspectTemplate request %j', request);
|
|
685
637
|
const wrappedCallback = callback
|
|
686
638
|
? (error, response, options, rawResponse) => {
|
|
@@ -688,11 +640,16 @@ class DlpServiceClient {
|
|
|
688
640
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
689
641
|
}
|
|
690
642
|
: undefined;
|
|
691
|
-
return this.innerApiCalls
|
|
692
|
-
.deleteInspectTemplate(request, options, wrappedCallback)
|
|
643
|
+
return this.innerApiCalls.deleteInspectTemplate(request, options, wrappedCallback)
|
|
693
644
|
?.then(([response, options, rawResponse]) => {
|
|
694
645
|
this._log.info('deleteInspectTemplate response %j', response);
|
|
695
646
|
return [response, options, rawResponse];
|
|
647
|
+
}).catch((error) => {
|
|
648
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
649
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
650
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
651
|
+
}
|
|
652
|
+
throw error;
|
|
696
653
|
});
|
|
697
654
|
}
|
|
698
655
|
createDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
@@ -708,13 +665,10 @@ class DlpServiceClient {
|
|
|
708
665
|
options = options || {};
|
|
709
666
|
options.otherArgs = options.otherArgs || {};
|
|
710
667
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
711
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
712
|
-
|
|
713
|
-
parent: request.parent ?? '',
|
|
714
|
-
});
|
|
715
|
-
this.initialize().catch(err => {
|
|
716
|
-
throw err;
|
|
668
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
669
|
+
'parent': request.parent ?? '',
|
|
717
670
|
});
|
|
671
|
+
this.initialize().catch(err => { throw err; });
|
|
718
672
|
this._log.info('createDeidentifyTemplate request %j', request);
|
|
719
673
|
const wrappedCallback = callback
|
|
720
674
|
? (error, response, options, rawResponse) => {
|
|
@@ -722,11 +676,16 @@ class DlpServiceClient {
|
|
|
722
676
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
723
677
|
}
|
|
724
678
|
: undefined;
|
|
725
|
-
return this.innerApiCalls
|
|
726
|
-
.createDeidentifyTemplate(request, options, wrappedCallback)
|
|
679
|
+
return this.innerApiCalls.createDeidentifyTemplate(request, options, wrappedCallback)
|
|
727
680
|
?.then(([response, options, rawResponse]) => {
|
|
728
681
|
this._log.info('createDeidentifyTemplate response %j', response);
|
|
729
682
|
return [response, options, rawResponse];
|
|
683
|
+
}).catch((error) => {
|
|
684
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
685
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
686
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
687
|
+
}
|
|
688
|
+
throw error;
|
|
730
689
|
});
|
|
731
690
|
}
|
|
732
691
|
updateDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
@@ -742,13 +701,10 @@ class DlpServiceClient {
|
|
|
742
701
|
options = options || {};
|
|
743
702
|
options.otherArgs = options.otherArgs || {};
|
|
744
703
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
745
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
746
|
-
|
|
747
|
-
name: request.name ?? '',
|
|
748
|
-
});
|
|
749
|
-
this.initialize().catch(err => {
|
|
750
|
-
throw err;
|
|
704
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
705
|
+
'name': request.name ?? '',
|
|
751
706
|
});
|
|
707
|
+
this.initialize().catch(err => { throw err; });
|
|
752
708
|
this._log.info('updateDeidentifyTemplate request %j', request);
|
|
753
709
|
const wrappedCallback = callback
|
|
754
710
|
? (error, response, options, rawResponse) => {
|
|
@@ -756,11 +712,16 @@ class DlpServiceClient {
|
|
|
756
712
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
757
713
|
}
|
|
758
714
|
: undefined;
|
|
759
|
-
return this.innerApiCalls
|
|
760
|
-
.updateDeidentifyTemplate(request, options, wrappedCallback)
|
|
715
|
+
return this.innerApiCalls.updateDeidentifyTemplate(request, options, wrappedCallback)
|
|
761
716
|
?.then(([response, options, rawResponse]) => {
|
|
762
717
|
this._log.info('updateDeidentifyTemplate response %j', response);
|
|
763
718
|
return [response, options, rawResponse];
|
|
719
|
+
}).catch((error) => {
|
|
720
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
721
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
722
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
723
|
+
}
|
|
724
|
+
throw error;
|
|
764
725
|
});
|
|
765
726
|
}
|
|
766
727
|
getDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
@@ -776,13 +737,10 @@ class DlpServiceClient {
|
|
|
776
737
|
options = options || {};
|
|
777
738
|
options.otherArgs = options.otherArgs || {};
|
|
778
739
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
779
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
780
|
-
|
|
781
|
-
name: request.name ?? '',
|
|
782
|
-
});
|
|
783
|
-
this.initialize().catch(err => {
|
|
784
|
-
throw err;
|
|
740
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
741
|
+
'name': request.name ?? '',
|
|
785
742
|
});
|
|
743
|
+
this.initialize().catch(err => { throw err; });
|
|
786
744
|
this._log.info('getDeidentifyTemplate request %j', request);
|
|
787
745
|
const wrappedCallback = callback
|
|
788
746
|
? (error, response, options, rawResponse) => {
|
|
@@ -790,11 +748,16 @@ class DlpServiceClient {
|
|
|
790
748
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
791
749
|
}
|
|
792
750
|
: undefined;
|
|
793
|
-
return this.innerApiCalls
|
|
794
|
-
.getDeidentifyTemplate(request, options, wrappedCallback)
|
|
751
|
+
return this.innerApiCalls.getDeidentifyTemplate(request, options, wrappedCallback)
|
|
795
752
|
?.then(([response, options, rawResponse]) => {
|
|
796
753
|
this._log.info('getDeidentifyTemplate response %j', response);
|
|
797
754
|
return [response, options, rawResponse];
|
|
755
|
+
}).catch((error) => {
|
|
756
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
757
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
758
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
759
|
+
}
|
|
760
|
+
throw error;
|
|
798
761
|
});
|
|
799
762
|
}
|
|
800
763
|
deleteDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
@@ -810,13 +773,10 @@ class DlpServiceClient {
|
|
|
810
773
|
options = options || {};
|
|
811
774
|
options.otherArgs = options.otherArgs || {};
|
|
812
775
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
813
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
814
|
-
|
|
815
|
-
name: request.name ?? '',
|
|
816
|
-
});
|
|
817
|
-
this.initialize().catch(err => {
|
|
818
|
-
throw err;
|
|
776
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
777
|
+
'name': request.name ?? '',
|
|
819
778
|
});
|
|
779
|
+
this.initialize().catch(err => { throw err; });
|
|
820
780
|
this._log.info('deleteDeidentifyTemplate request %j', request);
|
|
821
781
|
const wrappedCallback = callback
|
|
822
782
|
? (error, response, options, rawResponse) => {
|
|
@@ -824,11 +784,16 @@ class DlpServiceClient {
|
|
|
824
784
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
825
785
|
}
|
|
826
786
|
: undefined;
|
|
827
|
-
return this.innerApiCalls
|
|
828
|
-
.deleteDeidentifyTemplate(request, options, wrappedCallback)
|
|
787
|
+
return this.innerApiCalls.deleteDeidentifyTemplate(request, options, wrappedCallback)
|
|
829
788
|
?.then(([response, options, rawResponse]) => {
|
|
830
789
|
this._log.info('deleteDeidentifyTemplate response %j', response);
|
|
831
790
|
return [response, options, rawResponse];
|
|
791
|
+
}).catch((error) => {
|
|
792
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
793
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
794
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
795
|
+
}
|
|
796
|
+
throw error;
|
|
832
797
|
});
|
|
833
798
|
}
|
|
834
799
|
createJobTrigger(request, optionsOrCallback, callback) {
|
|
@@ -844,13 +809,10 @@ class DlpServiceClient {
|
|
|
844
809
|
options = options || {};
|
|
845
810
|
options.otherArgs = options.otherArgs || {};
|
|
846
811
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
847
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
848
|
-
|
|
849
|
-
parent: request.parent ?? '',
|
|
850
|
-
});
|
|
851
|
-
this.initialize().catch(err => {
|
|
852
|
-
throw err;
|
|
812
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
813
|
+
'parent': request.parent ?? '',
|
|
853
814
|
});
|
|
815
|
+
this.initialize().catch(err => { throw err; });
|
|
854
816
|
this._log.info('createJobTrigger request %j', request);
|
|
855
817
|
const wrappedCallback = callback
|
|
856
818
|
? (error, response, options, rawResponse) => {
|
|
@@ -858,11 +820,16 @@ class DlpServiceClient {
|
|
|
858
820
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
859
821
|
}
|
|
860
822
|
: undefined;
|
|
861
|
-
return this.innerApiCalls
|
|
862
|
-
.createJobTrigger(request, options, wrappedCallback)
|
|
823
|
+
return this.innerApiCalls.createJobTrigger(request, options, wrappedCallback)
|
|
863
824
|
?.then(([response, options, rawResponse]) => {
|
|
864
825
|
this._log.info('createJobTrigger response %j', response);
|
|
865
826
|
return [response, options, rawResponse];
|
|
827
|
+
}).catch((error) => {
|
|
828
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
829
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
830
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
831
|
+
}
|
|
832
|
+
throw error;
|
|
866
833
|
});
|
|
867
834
|
}
|
|
868
835
|
updateJobTrigger(request, optionsOrCallback, callback) {
|
|
@@ -878,13 +845,10 @@ class DlpServiceClient {
|
|
|
878
845
|
options = options || {};
|
|
879
846
|
options.otherArgs = options.otherArgs || {};
|
|
880
847
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
881
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
882
|
-
|
|
883
|
-
name: request.name ?? '',
|
|
884
|
-
});
|
|
885
|
-
this.initialize().catch(err => {
|
|
886
|
-
throw err;
|
|
848
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
849
|
+
'name': request.name ?? '',
|
|
887
850
|
});
|
|
851
|
+
this.initialize().catch(err => { throw err; });
|
|
888
852
|
this._log.info('updateJobTrigger request %j', request);
|
|
889
853
|
const wrappedCallback = callback
|
|
890
854
|
? (error, response, options, rawResponse) => {
|
|
@@ -892,11 +856,16 @@ class DlpServiceClient {
|
|
|
892
856
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
893
857
|
}
|
|
894
858
|
: undefined;
|
|
895
|
-
return this.innerApiCalls
|
|
896
|
-
.updateJobTrigger(request, options, wrappedCallback)
|
|
859
|
+
return this.innerApiCalls.updateJobTrigger(request, options, wrappedCallback)
|
|
897
860
|
?.then(([response, options, rawResponse]) => {
|
|
898
861
|
this._log.info('updateJobTrigger response %j', response);
|
|
899
862
|
return [response, options, rawResponse];
|
|
863
|
+
}).catch((error) => {
|
|
864
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
865
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
866
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
867
|
+
}
|
|
868
|
+
throw error;
|
|
900
869
|
});
|
|
901
870
|
}
|
|
902
871
|
hybridInspectJobTrigger(request, optionsOrCallback, callback) {
|
|
@@ -912,13 +881,10 @@ class DlpServiceClient {
|
|
|
912
881
|
options = options || {};
|
|
913
882
|
options.otherArgs = options.otherArgs || {};
|
|
914
883
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
915
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
916
|
-
|
|
917
|
-
name: request.name ?? '',
|
|
918
|
-
});
|
|
919
|
-
this.initialize().catch(err => {
|
|
920
|
-
throw err;
|
|
884
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
885
|
+
'name': request.name ?? '',
|
|
921
886
|
});
|
|
887
|
+
this.initialize().catch(err => { throw err; });
|
|
922
888
|
this._log.info('hybridInspectJobTrigger request %j', request);
|
|
923
889
|
const wrappedCallback = callback
|
|
924
890
|
? (error, response, options, rawResponse) => {
|
|
@@ -926,11 +892,16 @@ class DlpServiceClient {
|
|
|
926
892
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
927
893
|
}
|
|
928
894
|
: undefined;
|
|
929
|
-
return this.innerApiCalls
|
|
930
|
-
.hybridInspectJobTrigger(request, options, wrappedCallback)
|
|
895
|
+
return this.innerApiCalls.hybridInspectJobTrigger(request, options, wrappedCallback)
|
|
931
896
|
?.then(([response, options, rawResponse]) => {
|
|
932
897
|
this._log.info('hybridInspectJobTrigger response %j', response);
|
|
933
898
|
return [response, options, rawResponse];
|
|
899
|
+
}).catch((error) => {
|
|
900
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
901
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
902
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
903
|
+
}
|
|
904
|
+
throw error;
|
|
934
905
|
});
|
|
935
906
|
}
|
|
936
907
|
getJobTrigger(request, optionsOrCallback, callback) {
|
|
@@ -946,13 +917,10 @@ class DlpServiceClient {
|
|
|
946
917
|
options = options || {};
|
|
947
918
|
options.otherArgs = options.otherArgs || {};
|
|
948
919
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
949
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
950
|
-
|
|
951
|
-
name: request.name ?? '',
|
|
952
|
-
});
|
|
953
|
-
this.initialize().catch(err => {
|
|
954
|
-
throw err;
|
|
920
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
921
|
+
'name': request.name ?? '',
|
|
955
922
|
});
|
|
923
|
+
this.initialize().catch(err => { throw err; });
|
|
956
924
|
this._log.info('getJobTrigger request %j', request);
|
|
957
925
|
const wrappedCallback = callback
|
|
958
926
|
? (error, response, options, rawResponse) => {
|
|
@@ -960,11 +928,16 @@ class DlpServiceClient {
|
|
|
960
928
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
961
929
|
}
|
|
962
930
|
: undefined;
|
|
963
|
-
return this.innerApiCalls
|
|
964
|
-
.getJobTrigger(request, options, wrappedCallback)
|
|
931
|
+
return this.innerApiCalls.getJobTrigger(request, options, wrappedCallback)
|
|
965
932
|
?.then(([response, options, rawResponse]) => {
|
|
966
933
|
this._log.info('getJobTrigger response %j', response);
|
|
967
934
|
return [response, options, rawResponse];
|
|
935
|
+
}).catch((error) => {
|
|
936
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
937
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
938
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
939
|
+
}
|
|
940
|
+
throw error;
|
|
968
941
|
});
|
|
969
942
|
}
|
|
970
943
|
deleteJobTrigger(request, optionsOrCallback, callback) {
|
|
@@ -980,13 +953,10 @@ class DlpServiceClient {
|
|
|
980
953
|
options = options || {};
|
|
981
954
|
options.otherArgs = options.otherArgs || {};
|
|
982
955
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
983
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
984
|
-
|
|
985
|
-
name: request.name ?? '',
|
|
986
|
-
});
|
|
987
|
-
this.initialize().catch(err => {
|
|
988
|
-
throw err;
|
|
956
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
957
|
+
'name': request.name ?? '',
|
|
989
958
|
});
|
|
959
|
+
this.initialize().catch(err => { throw err; });
|
|
990
960
|
this._log.info('deleteJobTrigger request %j', request);
|
|
991
961
|
const wrappedCallback = callback
|
|
992
962
|
? (error, response, options, rawResponse) => {
|
|
@@ -994,11 +964,16 @@ class DlpServiceClient {
|
|
|
994
964
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
995
965
|
}
|
|
996
966
|
: undefined;
|
|
997
|
-
return this.innerApiCalls
|
|
998
|
-
.deleteJobTrigger(request, options, wrappedCallback)
|
|
967
|
+
return this.innerApiCalls.deleteJobTrigger(request, options, wrappedCallback)
|
|
999
968
|
?.then(([response, options, rawResponse]) => {
|
|
1000
969
|
this._log.info('deleteJobTrigger response %j', response);
|
|
1001
970
|
return [response, options, rawResponse];
|
|
971
|
+
}).catch((error) => {
|
|
972
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
973
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
974
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
975
|
+
}
|
|
976
|
+
throw error;
|
|
1002
977
|
});
|
|
1003
978
|
}
|
|
1004
979
|
activateJobTrigger(request, optionsOrCallback, callback) {
|
|
@@ -1014,13 +989,10 @@ class DlpServiceClient {
|
|
|
1014
989
|
options = options || {};
|
|
1015
990
|
options.otherArgs = options.otherArgs || {};
|
|
1016
991
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1017
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1018
|
-
|
|
1019
|
-
name: request.name ?? '',
|
|
1020
|
-
});
|
|
1021
|
-
this.initialize().catch(err => {
|
|
1022
|
-
throw err;
|
|
992
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
993
|
+
'name': request.name ?? '',
|
|
1023
994
|
});
|
|
995
|
+
this.initialize().catch(err => { throw err; });
|
|
1024
996
|
this._log.info('activateJobTrigger request %j', request);
|
|
1025
997
|
const wrappedCallback = callback
|
|
1026
998
|
? (error, response, options, rawResponse) => {
|
|
@@ -1028,11 +1000,16 @@ class DlpServiceClient {
|
|
|
1028
1000
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1029
1001
|
}
|
|
1030
1002
|
: undefined;
|
|
1031
|
-
return this.innerApiCalls
|
|
1032
|
-
.activateJobTrigger(request, options, wrappedCallback)
|
|
1003
|
+
return this.innerApiCalls.activateJobTrigger(request, options, wrappedCallback)
|
|
1033
1004
|
?.then(([response, options, rawResponse]) => {
|
|
1034
1005
|
this._log.info('activateJobTrigger response %j', response);
|
|
1035
1006
|
return [response, options, rawResponse];
|
|
1007
|
+
}).catch((error) => {
|
|
1008
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1009
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1010
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1011
|
+
}
|
|
1012
|
+
throw error;
|
|
1036
1013
|
});
|
|
1037
1014
|
}
|
|
1038
1015
|
createDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
@@ -1048,13 +1025,10 @@ class DlpServiceClient {
|
|
|
1048
1025
|
options = options || {};
|
|
1049
1026
|
options.otherArgs = options.otherArgs || {};
|
|
1050
1027
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1051
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1052
|
-
|
|
1053
|
-
parent: request.parent ?? '',
|
|
1054
|
-
});
|
|
1055
|
-
this.initialize().catch(err => {
|
|
1056
|
-
throw err;
|
|
1028
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1029
|
+
'parent': request.parent ?? '',
|
|
1057
1030
|
});
|
|
1031
|
+
this.initialize().catch(err => { throw err; });
|
|
1058
1032
|
this._log.info('createDiscoveryConfig request %j', request);
|
|
1059
1033
|
const wrappedCallback = callback
|
|
1060
1034
|
? (error, response, options, rawResponse) => {
|
|
@@ -1062,11 +1036,16 @@ class DlpServiceClient {
|
|
|
1062
1036
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1063
1037
|
}
|
|
1064
1038
|
: undefined;
|
|
1065
|
-
return this.innerApiCalls
|
|
1066
|
-
.createDiscoveryConfig(request, options, wrappedCallback)
|
|
1039
|
+
return this.innerApiCalls.createDiscoveryConfig(request, options, wrappedCallback)
|
|
1067
1040
|
?.then(([response, options, rawResponse]) => {
|
|
1068
1041
|
this._log.info('createDiscoveryConfig response %j', response);
|
|
1069
1042
|
return [response, options, rawResponse];
|
|
1043
|
+
}).catch((error) => {
|
|
1044
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1045
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1046
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1047
|
+
}
|
|
1048
|
+
throw error;
|
|
1070
1049
|
});
|
|
1071
1050
|
}
|
|
1072
1051
|
updateDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
@@ -1082,13 +1061,10 @@ class DlpServiceClient {
|
|
|
1082
1061
|
options = options || {};
|
|
1083
1062
|
options.otherArgs = options.otherArgs || {};
|
|
1084
1063
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1085
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1086
|
-
|
|
1087
|
-
name: request.name ?? '',
|
|
1088
|
-
});
|
|
1089
|
-
this.initialize().catch(err => {
|
|
1090
|
-
throw err;
|
|
1064
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1065
|
+
'name': request.name ?? '',
|
|
1091
1066
|
});
|
|
1067
|
+
this.initialize().catch(err => { throw err; });
|
|
1092
1068
|
this._log.info('updateDiscoveryConfig request %j', request);
|
|
1093
1069
|
const wrappedCallback = callback
|
|
1094
1070
|
? (error, response, options, rawResponse) => {
|
|
@@ -1096,11 +1072,16 @@ class DlpServiceClient {
|
|
|
1096
1072
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1097
1073
|
}
|
|
1098
1074
|
: undefined;
|
|
1099
|
-
return this.innerApiCalls
|
|
1100
|
-
.updateDiscoveryConfig(request, options, wrappedCallback)
|
|
1075
|
+
return this.innerApiCalls.updateDiscoveryConfig(request, options, wrappedCallback)
|
|
1101
1076
|
?.then(([response, options, rawResponse]) => {
|
|
1102
1077
|
this._log.info('updateDiscoveryConfig response %j', response);
|
|
1103
1078
|
return [response, options, rawResponse];
|
|
1079
|
+
}).catch((error) => {
|
|
1080
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1081
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1082
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1083
|
+
}
|
|
1084
|
+
throw error;
|
|
1104
1085
|
});
|
|
1105
1086
|
}
|
|
1106
1087
|
getDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
@@ -1116,13 +1097,10 @@ class DlpServiceClient {
|
|
|
1116
1097
|
options = options || {};
|
|
1117
1098
|
options.otherArgs = options.otherArgs || {};
|
|
1118
1099
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1119
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1120
|
-
|
|
1121
|
-
name: request.name ?? '',
|
|
1122
|
-
});
|
|
1123
|
-
this.initialize().catch(err => {
|
|
1124
|
-
throw err;
|
|
1100
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1101
|
+
'name': request.name ?? '',
|
|
1125
1102
|
});
|
|
1103
|
+
this.initialize().catch(err => { throw err; });
|
|
1126
1104
|
this._log.info('getDiscoveryConfig request %j', request);
|
|
1127
1105
|
const wrappedCallback = callback
|
|
1128
1106
|
? (error, response, options, rawResponse) => {
|
|
@@ -1130,11 +1108,16 @@ class DlpServiceClient {
|
|
|
1130
1108
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1131
1109
|
}
|
|
1132
1110
|
: undefined;
|
|
1133
|
-
return this.innerApiCalls
|
|
1134
|
-
.getDiscoveryConfig(request, options, wrappedCallback)
|
|
1111
|
+
return this.innerApiCalls.getDiscoveryConfig(request, options, wrappedCallback)
|
|
1135
1112
|
?.then(([response, options, rawResponse]) => {
|
|
1136
1113
|
this._log.info('getDiscoveryConfig response %j', response);
|
|
1137
1114
|
return [response, options, rawResponse];
|
|
1115
|
+
}).catch((error) => {
|
|
1116
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1117
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1118
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1119
|
+
}
|
|
1120
|
+
throw error;
|
|
1138
1121
|
});
|
|
1139
1122
|
}
|
|
1140
1123
|
deleteDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
@@ -1150,13 +1133,10 @@ class DlpServiceClient {
|
|
|
1150
1133
|
options = options || {};
|
|
1151
1134
|
options.otherArgs = options.otherArgs || {};
|
|
1152
1135
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1153
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1154
|
-
|
|
1155
|
-
name: request.name ?? '',
|
|
1156
|
-
});
|
|
1157
|
-
this.initialize().catch(err => {
|
|
1158
|
-
throw err;
|
|
1136
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1137
|
+
'name': request.name ?? '',
|
|
1159
1138
|
});
|
|
1139
|
+
this.initialize().catch(err => { throw err; });
|
|
1160
1140
|
this._log.info('deleteDiscoveryConfig request %j', request);
|
|
1161
1141
|
const wrappedCallback = callback
|
|
1162
1142
|
? (error, response, options, rawResponse) => {
|
|
@@ -1164,11 +1144,16 @@ class DlpServiceClient {
|
|
|
1164
1144
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1165
1145
|
}
|
|
1166
1146
|
: undefined;
|
|
1167
|
-
return this.innerApiCalls
|
|
1168
|
-
.deleteDiscoveryConfig(request, options, wrappedCallback)
|
|
1147
|
+
return this.innerApiCalls.deleteDiscoveryConfig(request, options, wrappedCallback)
|
|
1169
1148
|
?.then(([response, options, rawResponse]) => {
|
|
1170
1149
|
this._log.info('deleteDiscoveryConfig response %j', response);
|
|
1171
1150
|
return [response, options, rawResponse];
|
|
1151
|
+
}).catch((error) => {
|
|
1152
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1153
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1154
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1155
|
+
}
|
|
1156
|
+
throw error;
|
|
1172
1157
|
});
|
|
1173
1158
|
}
|
|
1174
1159
|
createDlpJob(request, optionsOrCallback, callback) {
|
|
@@ -1184,13 +1169,10 @@ class DlpServiceClient {
|
|
|
1184
1169
|
options = options || {};
|
|
1185
1170
|
options.otherArgs = options.otherArgs || {};
|
|
1186
1171
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1187
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1188
|
-
|
|
1189
|
-
parent: request.parent ?? '',
|
|
1190
|
-
});
|
|
1191
|
-
this.initialize().catch(err => {
|
|
1192
|
-
throw err;
|
|
1172
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1173
|
+
'parent': request.parent ?? '',
|
|
1193
1174
|
});
|
|
1175
|
+
this.initialize().catch(err => { throw err; });
|
|
1194
1176
|
this._log.info('createDlpJob request %j', request);
|
|
1195
1177
|
const wrappedCallback = callback
|
|
1196
1178
|
? (error, response, options, rawResponse) => {
|
|
@@ -1198,11 +1180,16 @@ class DlpServiceClient {
|
|
|
1198
1180
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1199
1181
|
}
|
|
1200
1182
|
: undefined;
|
|
1201
|
-
return this.innerApiCalls
|
|
1202
|
-
.createDlpJob(request, options, wrappedCallback)
|
|
1183
|
+
return this.innerApiCalls.createDlpJob(request, options, wrappedCallback)
|
|
1203
1184
|
?.then(([response, options, rawResponse]) => {
|
|
1204
1185
|
this._log.info('createDlpJob response %j', response);
|
|
1205
1186
|
return [response, options, rawResponse];
|
|
1187
|
+
}).catch((error) => {
|
|
1188
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1189
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1190
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1191
|
+
}
|
|
1192
|
+
throw error;
|
|
1206
1193
|
});
|
|
1207
1194
|
}
|
|
1208
1195
|
getDlpJob(request, optionsOrCallback, callback) {
|
|
@@ -1218,13 +1205,10 @@ class DlpServiceClient {
|
|
|
1218
1205
|
options = options || {};
|
|
1219
1206
|
options.otherArgs = options.otherArgs || {};
|
|
1220
1207
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1221
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1222
|
-
|
|
1223
|
-
name: request.name ?? '',
|
|
1224
|
-
});
|
|
1225
|
-
this.initialize().catch(err => {
|
|
1226
|
-
throw err;
|
|
1208
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1209
|
+
'name': request.name ?? '',
|
|
1227
1210
|
});
|
|
1211
|
+
this.initialize().catch(err => { throw err; });
|
|
1228
1212
|
this._log.info('getDlpJob request %j', request);
|
|
1229
1213
|
const wrappedCallback = callback
|
|
1230
1214
|
? (error, response, options, rawResponse) => {
|
|
@@ -1232,11 +1216,16 @@ class DlpServiceClient {
|
|
|
1232
1216
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1233
1217
|
}
|
|
1234
1218
|
: undefined;
|
|
1235
|
-
return this.innerApiCalls
|
|
1236
|
-
.getDlpJob(request, options, wrappedCallback)
|
|
1219
|
+
return this.innerApiCalls.getDlpJob(request, options, wrappedCallback)
|
|
1237
1220
|
?.then(([response, options, rawResponse]) => {
|
|
1238
1221
|
this._log.info('getDlpJob response %j', response);
|
|
1239
1222
|
return [response, options, rawResponse];
|
|
1223
|
+
}).catch((error) => {
|
|
1224
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1225
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1226
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1227
|
+
}
|
|
1228
|
+
throw error;
|
|
1240
1229
|
});
|
|
1241
1230
|
}
|
|
1242
1231
|
deleteDlpJob(request, optionsOrCallback, callback) {
|
|
@@ -1252,13 +1241,10 @@ class DlpServiceClient {
|
|
|
1252
1241
|
options = options || {};
|
|
1253
1242
|
options.otherArgs = options.otherArgs || {};
|
|
1254
1243
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1255
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1256
|
-
|
|
1257
|
-
name: request.name ?? '',
|
|
1258
|
-
});
|
|
1259
|
-
this.initialize().catch(err => {
|
|
1260
|
-
throw err;
|
|
1244
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1245
|
+
'name': request.name ?? '',
|
|
1261
1246
|
});
|
|
1247
|
+
this.initialize().catch(err => { throw err; });
|
|
1262
1248
|
this._log.info('deleteDlpJob request %j', request);
|
|
1263
1249
|
const wrappedCallback = callback
|
|
1264
1250
|
? (error, response, options, rawResponse) => {
|
|
@@ -1266,11 +1252,16 @@ class DlpServiceClient {
|
|
|
1266
1252
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1267
1253
|
}
|
|
1268
1254
|
: undefined;
|
|
1269
|
-
return this.innerApiCalls
|
|
1270
|
-
.deleteDlpJob(request, options, wrappedCallback)
|
|
1255
|
+
return this.innerApiCalls.deleteDlpJob(request, options, wrappedCallback)
|
|
1271
1256
|
?.then(([response, options, rawResponse]) => {
|
|
1272
1257
|
this._log.info('deleteDlpJob response %j', response);
|
|
1273
1258
|
return [response, options, rawResponse];
|
|
1259
|
+
}).catch((error) => {
|
|
1260
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1261
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1262
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1263
|
+
}
|
|
1264
|
+
throw error;
|
|
1274
1265
|
});
|
|
1275
1266
|
}
|
|
1276
1267
|
cancelDlpJob(request, optionsOrCallback, callback) {
|
|
@@ -1286,13 +1277,10 @@ class DlpServiceClient {
|
|
|
1286
1277
|
options = options || {};
|
|
1287
1278
|
options.otherArgs = options.otherArgs || {};
|
|
1288
1279
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1289
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1290
|
-
|
|
1291
|
-
name: request.name ?? '',
|
|
1292
|
-
});
|
|
1293
|
-
this.initialize().catch(err => {
|
|
1294
|
-
throw err;
|
|
1280
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1281
|
+
'name': request.name ?? '',
|
|
1295
1282
|
});
|
|
1283
|
+
this.initialize().catch(err => { throw err; });
|
|
1296
1284
|
this._log.info('cancelDlpJob request %j', request);
|
|
1297
1285
|
const wrappedCallback = callback
|
|
1298
1286
|
? (error, response, options, rawResponse) => {
|
|
@@ -1300,11 +1288,16 @@ class DlpServiceClient {
|
|
|
1300
1288
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1301
1289
|
}
|
|
1302
1290
|
: undefined;
|
|
1303
|
-
return this.innerApiCalls
|
|
1304
|
-
.cancelDlpJob(request, options, wrappedCallback)
|
|
1291
|
+
return this.innerApiCalls.cancelDlpJob(request, options, wrappedCallback)
|
|
1305
1292
|
?.then(([response, options, rawResponse]) => {
|
|
1306
1293
|
this._log.info('cancelDlpJob response %j', response);
|
|
1307
1294
|
return [response, options, rawResponse];
|
|
1295
|
+
}).catch((error) => {
|
|
1296
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1297
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1298
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1299
|
+
}
|
|
1300
|
+
throw error;
|
|
1308
1301
|
});
|
|
1309
1302
|
}
|
|
1310
1303
|
createStoredInfoType(request, optionsOrCallback, callback) {
|
|
@@ -1320,13 +1313,10 @@ class DlpServiceClient {
|
|
|
1320
1313
|
options = options || {};
|
|
1321
1314
|
options.otherArgs = options.otherArgs || {};
|
|
1322
1315
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1323
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1324
|
-
|
|
1325
|
-
parent: request.parent ?? '',
|
|
1326
|
-
});
|
|
1327
|
-
this.initialize().catch(err => {
|
|
1328
|
-
throw err;
|
|
1316
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1317
|
+
'parent': request.parent ?? '',
|
|
1329
1318
|
});
|
|
1319
|
+
this.initialize().catch(err => { throw err; });
|
|
1330
1320
|
this._log.info('createStoredInfoType request %j', request);
|
|
1331
1321
|
const wrappedCallback = callback
|
|
1332
1322
|
? (error, response, options, rawResponse) => {
|
|
@@ -1334,11 +1324,16 @@ class DlpServiceClient {
|
|
|
1334
1324
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1335
1325
|
}
|
|
1336
1326
|
: undefined;
|
|
1337
|
-
return this.innerApiCalls
|
|
1338
|
-
.createStoredInfoType(request, options, wrappedCallback)
|
|
1327
|
+
return this.innerApiCalls.createStoredInfoType(request, options, wrappedCallback)
|
|
1339
1328
|
?.then(([response, options, rawResponse]) => {
|
|
1340
1329
|
this._log.info('createStoredInfoType response %j', response);
|
|
1341
1330
|
return [response, options, rawResponse];
|
|
1331
|
+
}).catch((error) => {
|
|
1332
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1333
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1334
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1335
|
+
}
|
|
1336
|
+
throw error;
|
|
1342
1337
|
});
|
|
1343
1338
|
}
|
|
1344
1339
|
updateStoredInfoType(request, optionsOrCallback, callback) {
|
|
@@ -1354,13 +1349,10 @@ class DlpServiceClient {
|
|
|
1354
1349
|
options = options || {};
|
|
1355
1350
|
options.otherArgs = options.otherArgs || {};
|
|
1356
1351
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1357
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1358
|
-
|
|
1359
|
-
name: request.name ?? '',
|
|
1360
|
-
});
|
|
1361
|
-
this.initialize().catch(err => {
|
|
1362
|
-
throw err;
|
|
1352
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1353
|
+
'name': request.name ?? '',
|
|
1363
1354
|
});
|
|
1355
|
+
this.initialize().catch(err => { throw err; });
|
|
1364
1356
|
this._log.info('updateStoredInfoType request %j', request);
|
|
1365
1357
|
const wrappedCallback = callback
|
|
1366
1358
|
? (error, response, options, rawResponse) => {
|
|
@@ -1368,11 +1360,16 @@ class DlpServiceClient {
|
|
|
1368
1360
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1369
1361
|
}
|
|
1370
1362
|
: undefined;
|
|
1371
|
-
return this.innerApiCalls
|
|
1372
|
-
.updateStoredInfoType(request, options, wrappedCallback)
|
|
1363
|
+
return this.innerApiCalls.updateStoredInfoType(request, options, wrappedCallback)
|
|
1373
1364
|
?.then(([response, options, rawResponse]) => {
|
|
1374
1365
|
this._log.info('updateStoredInfoType response %j', response);
|
|
1375
1366
|
return [response, options, rawResponse];
|
|
1367
|
+
}).catch((error) => {
|
|
1368
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1369
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1370
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1371
|
+
}
|
|
1372
|
+
throw error;
|
|
1376
1373
|
});
|
|
1377
1374
|
}
|
|
1378
1375
|
getStoredInfoType(request, optionsOrCallback, callback) {
|
|
@@ -1388,13 +1385,10 @@ class DlpServiceClient {
|
|
|
1388
1385
|
options = options || {};
|
|
1389
1386
|
options.otherArgs = options.otherArgs || {};
|
|
1390
1387
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1391
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1392
|
-
|
|
1393
|
-
name: request.name ?? '',
|
|
1394
|
-
});
|
|
1395
|
-
this.initialize().catch(err => {
|
|
1396
|
-
throw err;
|
|
1388
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1389
|
+
'name': request.name ?? '',
|
|
1397
1390
|
});
|
|
1391
|
+
this.initialize().catch(err => { throw err; });
|
|
1398
1392
|
this._log.info('getStoredInfoType request %j', request);
|
|
1399
1393
|
const wrappedCallback = callback
|
|
1400
1394
|
? (error, response, options, rawResponse) => {
|
|
@@ -1402,11 +1396,16 @@ class DlpServiceClient {
|
|
|
1402
1396
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1403
1397
|
}
|
|
1404
1398
|
: undefined;
|
|
1405
|
-
return this.innerApiCalls
|
|
1406
|
-
.getStoredInfoType(request, options, wrappedCallback)
|
|
1399
|
+
return this.innerApiCalls.getStoredInfoType(request, options, wrappedCallback)
|
|
1407
1400
|
?.then(([response, options, rawResponse]) => {
|
|
1408
1401
|
this._log.info('getStoredInfoType response %j', response);
|
|
1409
1402
|
return [response, options, rawResponse];
|
|
1403
|
+
}).catch((error) => {
|
|
1404
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1405
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1406
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1407
|
+
}
|
|
1408
|
+
throw error;
|
|
1410
1409
|
});
|
|
1411
1410
|
}
|
|
1412
1411
|
deleteStoredInfoType(request, optionsOrCallback, callback) {
|
|
@@ -1422,13 +1421,10 @@ class DlpServiceClient {
|
|
|
1422
1421
|
options = options || {};
|
|
1423
1422
|
options.otherArgs = options.otherArgs || {};
|
|
1424
1423
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1425
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1426
|
-
|
|
1427
|
-
name: request.name ?? '',
|
|
1428
|
-
});
|
|
1429
|
-
this.initialize().catch(err => {
|
|
1430
|
-
throw err;
|
|
1424
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1425
|
+
'name': request.name ?? '',
|
|
1431
1426
|
});
|
|
1427
|
+
this.initialize().catch(err => { throw err; });
|
|
1432
1428
|
this._log.info('deleteStoredInfoType request %j', request);
|
|
1433
1429
|
const wrappedCallback = callback
|
|
1434
1430
|
? (error, response, options, rawResponse) => {
|
|
@@ -1436,11 +1432,16 @@ class DlpServiceClient {
|
|
|
1436
1432
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1437
1433
|
}
|
|
1438
1434
|
: undefined;
|
|
1439
|
-
return this.innerApiCalls
|
|
1440
|
-
.deleteStoredInfoType(request, options, wrappedCallback)
|
|
1435
|
+
return this.innerApiCalls.deleteStoredInfoType(request, options, wrappedCallback)
|
|
1441
1436
|
?.then(([response, options, rawResponse]) => {
|
|
1442
1437
|
this._log.info('deleteStoredInfoType response %j', response);
|
|
1443
1438
|
return [response, options, rawResponse];
|
|
1439
|
+
}).catch((error) => {
|
|
1440
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1441
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1442
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1443
|
+
}
|
|
1444
|
+
throw error;
|
|
1444
1445
|
});
|
|
1445
1446
|
}
|
|
1446
1447
|
getProjectDataProfile(request, optionsOrCallback, callback) {
|
|
@@ -1456,13 +1457,10 @@ class DlpServiceClient {
|
|
|
1456
1457
|
options = options || {};
|
|
1457
1458
|
options.otherArgs = options.otherArgs || {};
|
|
1458
1459
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1459
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1460
|
-
|
|
1461
|
-
name: request.name ?? '',
|
|
1462
|
-
});
|
|
1463
|
-
this.initialize().catch(err => {
|
|
1464
|
-
throw err;
|
|
1460
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1461
|
+
'name': request.name ?? '',
|
|
1465
1462
|
});
|
|
1463
|
+
this.initialize().catch(err => { throw err; });
|
|
1466
1464
|
this._log.info('getProjectDataProfile request %j', request);
|
|
1467
1465
|
const wrappedCallback = callback
|
|
1468
1466
|
? (error, response, options, rawResponse) => {
|
|
@@ -1470,11 +1468,16 @@ class DlpServiceClient {
|
|
|
1470
1468
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1471
1469
|
}
|
|
1472
1470
|
: undefined;
|
|
1473
|
-
return this.innerApiCalls
|
|
1474
|
-
.getProjectDataProfile(request, options, wrappedCallback)
|
|
1471
|
+
return this.innerApiCalls.getProjectDataProfile(request, options, wrappedCallback)
|
|
1475
1472
|
?.then(([response, options, rawResponse]) => {
|
|
1476
1473
|
this._log.info('getProjectDataProfile response %j', response);
|
|
1477
1474
|
return [response, options, rawResponse];
|
|
1475
|
+
}).catch((error) => {
|
|
1476
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1477
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1478
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1479
|
+
}
|
|
1480
|
+
throw error;
|
|
1478
1481
|
});
|
|
1479
1482
|
}
|
|
1480
1483
|
getFileStoreDataProfile(request, optionsOrCallback, callback) {
|
|
@@ -1490,13 +1493,10 @@ class DlpServiceClient {
|
|
|
1490
1493
|
options = options || {};
|
|
1491
1494
|
options.otherArgs = options.otherArgs || {};
|
|
1492
1495
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1493
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1494
|
-
|
|
1495
|
-
name: request.name ?? '',
|
|
1496
|
-
});
|
|
1497
|
-
this.initialize().catch(err => {
|
|
1498
|
-
throw err;
|
|
1496
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1497
|
+
'name': request.name ?? '',
|
|
1499
1498
|
});
|
|
1499
|
+
this.initialize().catch(err => { throw err; });
|
|
1500
1500
|
this._log.info('getFileStoreDataProfile request %j', request);
|
|
1501
1501
|
const wrappedCallback = callback
|
|
1502
1502
|
? (error, response, options, rawResponse) => {
|
|
@@ -1504,11 +1504,16 @@ class DlpServiceClient {
|
|
|
1504
1504
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1505
1505
|
}
|
|
1506
1506
|
: undefined;
|
|
1507
|
-
return this.innerApiCalls
|
|
1508
|
-
.getFileStoreDataProfile(request, options, wrappedCallback)
|
|
1507
|
+
return this.innerApiCalls.getFileStoreDataProfile(request, options, wrappedCallback)
|
|
1509
1508
|
?.then(([response, options, rawResponse]) => {
|
|
1510
1509
|
this._log.info('getFileStoreDataProfile response %j', response);
|
|
1511
1510
|
return [response, options, rawResponse];
|
|
1511
|
+
}).catch((error) => {
|
|
1512
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1513
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1514
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1515
|
+
}
|
|
1516
|
+
throw error;
|
|
1512
1517
|
});
|
|
1513
1518
|
}
|
|
1514
1519
|
deleteFileStoreDataProfile(request, optionsOrCallback, callback) {
|
|
@@ -1524,13 +1529,10 @@ class DlpServiceClient {
|
|
|
1524
1529
|
options = options || {};
|
|
1525
1530
|
options.otherArgs = options.otherArgs || {};
|
|
1526
1531
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1527
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1528
|
-
|
|
1529
|
-
name: request.name ?? '',
|
|
1530
|
-
});
|
|
1531
|
-
this.initialize().catch(err => {
|
|
1532
|
-
throw err;
|
|
1532
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1533
|
+
'name': request.name ?? '',
|
|
1533
1534
|
});
|
|
1535
|
+
this.initialize().catch(err => { throw err; });
|
|
1534
1536
|
this._log.info('deleteFileStoreDataProfile request %j', request);
|
|
1535
1537
|
const wrappedCallback = callback
|
|
1536
1538
|
? (error, response, options, rawResponse) => {
|
|
@@ -1538,11 +1540,16 @@ class DlpServiceClient {
|
|
|
1538
1540
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1539
1541
|
}
|
|
1540
1542
|
: undefined;
|
|
1541
|
-
return this.innerApiCalls
|
|
1542
|
-
.deleteFileStoreDataProfile(request, options, wrappedCallback)
|
|
1543
|
+
return this.innerApiCalls.deleteFileStoreDataProfile(request, options, wrappedCallback)
|
|
1543
1544
|
?.then(([response, options, rawResponse]) => {
|
|
1544
1545
|
this._log.info('deleteFileStoreDataProfile response %j', response);
|
|
1545
1546
|
return [response, options, rawResponse];
|
|
1547
|
+
}).catch((error) => {
|
|
1548
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1549
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1550
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1551
|
+
}
|
|
1552
|
+
throw error;
|
|
1546
1553
|
});
|
|
1547
1554
|
}
|
|
1548
1555
|
getTableDataProfile(request, optionsOrCallback, callback) {
|
|
@@ -1558,13 +1565,10 @@ class DlpServiceClient {
|
|
|
1558
1565
|
options = options || {};
|
|
1559
1566
|
options.otherArgs = options.otherArgs || {};
|
|
1560
1567
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1561
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1562
|
-
|
|
1563
|
-
name: request.name ?? '',
|
|
1564
|
-
});
|
|
1565
|
-
this.initialize().catch(err => {
|
|
1566
|
-
throw err;
|
|
1568
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1569
|
+
'name': request.name ?? '',
|
|
1567
1570
|
});
|
|
1571
|
+
this.initialize().catch(err => { throw err; });
|
|
1568
1572
|
this._log.info('getTableDataProfile request %j', request);
|
|
1569
1573
|
const wrappedCallback = callback
|
|
1570
1574
|
? (error, response, options, rawResponse) => {
|
|
@@ -1572,11 +1576,16 @@ class DlpServiceClient {
|
|
|
1572
1576
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1573
1577
|
}
|
|
1574
1578
|
: undefined;
|
|
1575
|
-
return this.innerApiCalls
|
|
1576
|
-
.getTableDataProfile(request, options, wrappedCallback)
|
|
1579
|
+
return this.innerApiCalls.getTableDataProfile(request, options, wrappedCallback)
|
|
1577
1580
|
?.then(([response, options, rawResponse]) => {
|
|
1578
1581
|
this._log.info('getTableDataProfile response %j', response);
|
|
1579
1582
|
return [response, options, rawResponse];
|
|
1583
|
+
}).catch((error) => {
|
|
1584
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1585
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1586
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1587
|
+
}
|
|
1588
|
+
throw error;
|
|
1580
1589
|
});
|
|
1581
1590
|
}
|
|
1582
1591
|
getColumnDataProfile(request, optionsOrCallback, callback) {
|
|
@@ -1592,13 +1601,10 @@ class DlpServiceClient {
|
|
|
1592
1601
|
options = options || {};
|
|
1593
1602
|
options.otherArgs = options.otherArgs || {};
|
|
1594
1603
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1595
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1596
|
-
|
|
1597
|
-
name: request.name ?? '',
|
|
1598
|
-
});
|
|
1599
|
-
this.initialize().catch(err => {
|
|
1600
|
-
throw err;
|
|
1604
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1605
|
+
'name': request.name ?? '',
|
|
1601
1606
|
});
|
|
1607
|
+
this.initialize().catch(err => { throw err; });
|
|
1602
1608
|
this._log.info('getColumnDataProfile request %j', request);
|
|
1603
1609
|
const wrappedCallback = callback
|
|
1604
1610
|
? (error, response, options, rawResponse) => {
|
|
@@ -1606,11 +1612,16 @@ class DlpServiceClient {
|
|
|
1606
1612
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1607
1613
|
}
|
|
1608
1614
|
: undefined;
|
|
1609
|
-
return this.innerApiCalls
|
|
1610
|
-
.getColumnDataProfile(request, options, wrappedCallback)
|
|
1615
|
+
return this.innerApiCalls.getColumnDataProfile(request, options, wrappedCallback)
|
|
1611
1616
|
?.then(([response, options, rawResponse]) => {
|
|
1612
1617
|
this._log.info('getColumnDataProfile response %j', response);
|
|
1613
1618
|
return [response, options, rawResponse];
|
|
1619
|
+
}).catch((error) => {
|
|
1620
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1621
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1622
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1623
|
+
}
|
|
1624
|
+
throw error;
|
|
1614
1625
|
});
|
|
1615
1626
|
}
|
|
1616
1627
|
deleteTableDataProfile(request, optionsOrCallback, callback) {
|
|
@@ -1626,13 +1637,10 @@ class DlpServiceClient {
|
|
|
1626
1637
|
options = options || {};
|
|
1627
1638
|
options.otherArgs = options.otherArgs || {};
|
|
1628
1639
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1629
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1630
|
-
|
|
1631
|
-
name: request.name ?? '',
|
|
1632
|
-
});
|
|
1633
|
-
this.initialize().catch(err => {
|
|
1634
|
-
throw err;
|
|
1640
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1641
|
+
'name': request.name ?? '',
|
|
1635
1642
|
});
|
|
1643
|
+
this.initialize().catch(err => { throw err; });
|
|
1636
1644
|
this._log.info('deleteTableDataProfile request %j', request);
|
|
1637
1645
|
const wrappedCallback = callback
|
|
1638
1646
|
? (error, response, options, rawResponse) => {
|
|
@@ -1640,11 +1648,16 @@ class DlpServiceClient {
|
|
|
1640
1648
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1641
1649
|
}
|
|
1642
1650
|
: undefined;
|
|
1643
|
-
return this.innerApiCalls
|
|
1644
|
-
.deleteTableDataProfile(request, options, wrappedCallback)
|
|
1651
|
+
return this.innerApiCalls.deleteTableDataProfile(request, options, wrappedCallback)
|
|
1645
1652
|
?.then(([response, options, rawResponse]) => {
|
|
1646
1653
|
this._log.info('deleteTableDataProfile response %j', response);
|
|
1647
1654
|
return [response, options, rawResponse];
|
|
1655
|
+
}).catch((error) => {
|
|
1656
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1657
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1658
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1659
|
+
}
|
|
1660
|
+
throw error;
|
|
1648
1661
|
});
|
|
1649
1662
|
}
|
|
1650
1663
|
hybridInspectDlpJob(request, optionsOrCallback, callback) {
|
|
@@ -1660,13 +1673,10 @@ class DlpServiceClient {
|
|
|
1660
1673
|
options = options || {};
|
|
1661
1674
|
options.otherArgs = options.otherArgs || {};
|
|
1662
1675
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1663
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1664
|
-
|
|
1665
|
-
name: request.name ?? '',
|
|
1666
|
-
});
|
|
1667
|
-
this.initialize().catch(err => {
|
|
1668
|
-
throw err;
|
|
1676
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1677
|
+
'name': request.name ?? '',
|
|
1669
1678
|
});
|
|
1679
|
+
this.initialize().catch(err => { throw err; });
|
|
1670
1680
|
this._log.info('hybridInspectDlpJob request %j', request);
|
|
1671
1681
|
const wrappedCallback = callback
|
|
1672
1682
|
? (error, response, options, rawResponse) => {
|
|
@@ -1674,11 +1684,16 @@ class DlpServiceClient {
|
|
|
1674
1684
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1675
1685
|
}
|
|
1676
1686
|
: undefined;
|
|
1677
|
-
return this.innerApiCalls
|
|
1678
|
-
.hybridInspectDlpJob(request, options, wrappedCallback)
|
|
1687
|
+
return this.innerApiCalls.hybridInspectDlpJob(request, options, wrappedCallback)
|
|
1679
1688
|
?.then(([response, options, rawResponse]) => {
|
|
1680
1689
|
this._log.info('hybridInspectDlpJob response %j', response);
|
|
1681
1690
|
return [response, options, rawResponse];
|
|
1691
|
+
}).catch((error) => {
|
|
1692
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1693
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1694
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1695
|
+
}
|
|
1696
|
+
throw error;
|
|
1682
1697
|
});
|
|
1683
1698
|
}
|
|
1684
1699
|
finishDlpJob(request, optionsOrCallback, callback) {
|
|
@@ -1694,13 +1709,10 @@ class DlpServiceClient {
|
|
|
1694
1709
|
options = options || {};
|
|
1695
1710
|
options.otherArgs = options.otherArgs || {};
|
|
1696
1711
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1697
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1698
|
-
|
|
1699
|
-
name: request.name ?? '',
|
|
1700
|
-
});
|
|
1701
|
-
this.initialize().catch(err => {
|
|
1702
|
-
throw err;
|
|
1712
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1713
|
+
'name': request.name ?? '',
|
|
1703
1714
|
});
|
|
1715
|
+
this.initialize().catch(err => { throw err; });
|
|
1704
1716
|
this._log.info('finishDlpJob request %j', request);
|
|
1705
1717
|
const wrappedCallback = callback
|
|
1706
1718
|
? (error, response, options, rawResponse) => {
|
|
@@ -1708,11 +1720,16 @@ class DlpServiceClient {
|
|
|
1708
1720
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1709
1721
|
}
|
|
1710
1722
|
: undefined;
|
|
1711
|
-
return this.innerApiCalls
|
|
1712
|
-
.finishDlpJob(request, options, wrappedCallback)
|
|
1723
|
+
return this.innerApiCalls.finishDlpJob(request, options, wrappedCallback)
|
|
1713
1724
|
?.then(([response, options, rawResponse]) => {
|
|
1714
1725
|
this._log.info('finishDlpJob response %j', response);
|
|
1715
1726
|
return [response, options, rawResponse];
|
|
1727
|
+
}).catch((error) => {
|
|
1728
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1729
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1730
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1731
|
+
}
|
|
1732
|
+
throw error;
|
|
1716
1733
|
});
|
|
1717
1734
|
}
|
|
1718
1735
|
createConnection(request, optionsOrCallback, callback) {
|
|
@@ -1728,13 +1745,10 @@ class DlpServiceClient {
|
|
|
1728
1745
|
options = options || {};
|
|
1729
1746
|
options.otherArgs = options.otherArgs || {};
|
|
1730
1747
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1731
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1732
|
-
|
|
1733
|
-
parent: request.parent ?? '',
|
|
1734
|
-
});
|
|
1735
|
-
this.initialize().catch(err => {
|
|
1736
|
-
throw err;
|
|
1748
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1749
|
+
'parent': request.parent ?? '',
|
|
1737
1750
|
});
|
|
1751
|
+
this.initialize().catch(err => { throw err; });
|
|
1738
1752
|
this._log.info('createConnection request %j', request);
|
|
1739
1753
|
const wrappedCallback = callback
|
|
1740
1754
|
? (error, response, options, rawResponse) => {
|
|
@@ -1742,11 +1756,16 @@ class DlpServiceClient {
|
|
|
1742
1756
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1743
1757
|
}
|
|
1744
1758
|
: undefined;
|
|
1745
|
-
return this.innerApiCalls
|
|
1746
|
-
.createConnection(request, options, wrappedCallback)
|
|
1759
|
+
return this.innerApiCalls.createConnection(request, options, wrappedCallback)
|
|
1747
1760
|
?.then(([response, options, rawResponse]) => {
|
|
1748
1761
|
this._log.info('createConnection response %j', response);
|
|
1749
1762
|
return [response, options, rawResponse];
|
|
1763
|
+
}).catch((error) => {
|
|
1764
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1765
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1766
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1767
|
+
}
|
|
1768
|
+
throw error;
|
|
1750
1769
|
});
|
|
1751
1770
|
}
|
|
1752
1771
|
getConnection(request, optionsOrCallback, callback) {
|
|
@@ -1762,13 +1781,10 @@ class DlpServiceClient {
|
|
|
1762
1781
|
options = options || {};
|
|
1763
1782
|
options.otherArgs = options.otherArgs || {};
|
|
1764
1783
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1765
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1766
|
-
|
|
1767
|
-
name: request.name ?? '',
|
|
1768
|
-
});
|
|
1769
|
-
this.initialize().catch(err => {
|
|
1770
|
-
throw err;
|
|
1784
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1785
|
+
'name': request.name ?? '',
|
|
1771
1786
|
});
|
|
1787
|
+
this.initialize().catch(err => { throw err; });
|
|
1772
1788
|
this._log.info('getConnection request %j', request);
|
|
1773
1789
|
const wrappedCallback = callback
|
|
1774
1790
|
? (error, response, options, rawResponse) => {
|
|
@@ -1776,11 +1792,16 @@ class DlpServiceClient {
|
|
|
1776
1792
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1777
1793
|
}
|
|
1778
1794
|
: undefined;
|
|
1779
|
-
return this.innerApiCalls
|
|
1780
|
-
.getConnection(request, options, wrappedCallback)
|
|
1795
|
+
return this.innerApiCalls.getConnection(request, options, wrappedCallback)
|
|
1781
1796
|
?.then(([response, options, rawResponse]) => {
|
|
1782
1797
|
this._log.info('getConnection response %j', response);
|
|
1783
1798
|
return [response, options, rawResponse];
|
|
1799
|
+
}).catch((error) => {
|
|
1800
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1801
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1802
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1803
|
+
}
|
|
1804
|
+
throw error;
|
|
1784
1805
|
});
|
|
1785
1806
|
}
|
|
1786
1807
|
deleteConnection(request, optionsOrCallback, callback) {
|
|
@@ -1796,13 +1817,10 @@ class DlpServiceClient {
|
|
|
1796
1817
|
options = options || {};
|
|
1797
1818
|
options.otherArgs = options.otherArgs || {};
|
|
1798
1819
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1799
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1800
|
-
|
|
1801
|
-
name: request.name ?? '',
|
|
1802
|
-
});
|
|
1803
|
-
this.initialize().catch(err => {
|
|
1804
|
-
throw err;
|
|
1820
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1821
|
+
'name': request.name ?? '',
|
|
1805
1822
|
});
|
|
1823
|
+
this.initialize().catch(err => { throw err; });
|
|
1806
1824
|
this._log.info('deleteConnection request %j', request);
|
|
1807
1825
|
const wrappedCallback = callback
|
|
1808
1826
|
? (error, response, options, rawResponse) => {
|
|
@@ -1810,11 +1828,16 @@ class DlpServiceClient {
|
|
|
1810
1828
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1811
1829
|
}
|
|
1812
1830
|
: undefined;
|
|
1813
|
-
return this.innerApiCalls
|
|
1814
|
-
.deleteConnection(request, options, wrappedCallback)
|
|
1831
|
+
return this.innerApiCalls.deleteConnection(request, options, wrappedCallback)
|
|
1815
1832
|
?.then(([response, options, rawResponse]) => {
|
|
1816
1833
|
this._log.info('deleteConnection response %j', response);
|
|
1817
1834
|
return [response, options, rawResponse];
|
|
1835
|
+
}).catch((error) => {
|
|
1836
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1837
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1838
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1839
|
+
}
|
|
1840
|
+
throw error;
|
|
1818
1841
|
});
|
|
1819
1842
|
}
|
|
1820
1843
|
updateConnection(request, optionsOrCallback, callback) {
|
|
@@ -1830,13 +1853,10 @@ class DlpServiceClient {
|
|
|
1830
1853
|
options = options || {};
|
|
1831
1854
|
options.otherArgs = options.otherArgs || {};
|
|
1832
1855
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1833
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1834
|
-
|
|
1835
|
-
name: request.name ?? '',
|
|
1836
|
-
});
|
|
1837
|
-
this.initialize().catch(err => {
|
|
1838
|
-
throw err;
|
|
1856
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1857
|
+
'name': request.name ?? '',
|
|
1839
1858
|
});
|
|
1859
|
+
this.initialize().catch(err => { throw err; });
|
|
1840
1860
|
this._log.info('updateConnection request %j', request);
|
|
1841
1861
|
const wrappedCallback = callback
|
|
1842
1862
|
? (error, response, options, rawResponse) => {
|
|
@@ -1844,11 +1864,16 @@ class DlpServiceClient {
|
|
|
1844
1864
|
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1845
1865
|
}
|
|
1846
1866
|
: undefined;
|
|
1847
|
-
return this.innerApiCalls
|
|
1848
|
-
.updateConnection(request, options, wrappedCallback)
|
|
1867
|
+
return this.innerApiCalls.updateConnection(request, options, wrappedCallback)
|
|
1849
1868
|
?.then(([response, options, rawResponse]) => {
|
|
1850
1869
|
this._log.info('updateConnection response %j', response);
|
|
1851
1870
|
return [response, options, rawResponse];
|
|
1871
|
+
}).catch((error) => {
|
|
1872
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
1873
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
1874
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
1875
|
+
}
|
|
1876
|
+
throw error;
|
|
1852
1877
|
});
|
|
1853
1878
|
}
|
|
1854
1879
|
listInspectTemplates(request, optionsOrCallback, callback) {
|
|
@@ -1864,13 +1889,10 @@ class DlpServiceClient {
|
|
|
1864
1889
|
options = options || {};
|
|
1865
1890
|
options.otherArgs = options.otherArgs || {};
|
|
1866
1891
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1867
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1868
|
-
|
|
1869
|
-
parent: request.parent ?? '',
|
|
1870
|
-
});
|
|
1871
|
-
this.initialize().catch(err => {
|
|
1872
|
-
throw err;
|
|
1892
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1893
|
+
'parent': request.parent ?? '',
|
|
1873
1894
|
});
|
|
1895
|
+
this.initialize().catch(err => { throw err; });
|
|
1874
1896
|
const wrappedCallback = callback
|
|
1875
1897
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
1876
1898
|
this._log.info('listInspectTemplates values %j', values);
|
|
@@ -1948,15 +1970,12 @@ class DlpServiceClient {
|
|
|
1948
1970
|
options = options || {};
|
|
1949
1971
|
options.otherArgs = options.otherArgs || {};
|
|
1950
1972
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1951
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
});
|
|
1973
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
1974
|
+
'parent': request.parent ?? '',
|
|
1975
|
+
});
|
|
1955
1976
|
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
1956
1977
|
const callSettings = defaultCallSettings.merge(options);
|
|
1957
|
-
this.initialize().catch(err => {
|
|
1958
|
-
throw err;
|
|
1959
|
-
});
|
|
1978
|
+
this.initialize().catch(err => { throw err; });
|
|
1960
1979
|
this._log.info('listInspectTemplates stream %j', request);
|
|
1961
1980
|
return this.descriptors.page.listInspectTemplates.createStream(this.innerApiCalls.listInspectTemplates, request, callSettings);
|
|
1962
1981
|
}
|
|
@@ -2026,15 +2045,12 @@ class DlpServiceClient {
|
|
|
2026
2045
|
options = options || {};
|
|
2027
2046
|
options.otherArgs = options.otherArgs || {};
|
|
2028
2047
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2029
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
});
|
|
2048
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2049
|
+
'parent': request.parent ?? '',
|
|
2050
|
+
});
|
|
2033
2051
|
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
2034
2052
|
const callSettings = defaultCallSettings.merge(options);
|
|
2035
|
-
this.initialize().catch(err => {
|
|
2036
|
-
throw err;
|
|
2037
|
-
});
|
|
2053
|
+
this.initialize().catch(err => { throw err; });
|
|
2038
2054
|
this._log.info('listInspectTemplates iterate %j', request);
|
|
2039
2055
|
return this.descriptors.page.listInspectTemplates.asyncIterate(this.innerApiCalls['listInspectTemplates'], request, callSettings);
|
|
2040
2056
|
}
|
|
@@ -2051,13 +2067,10 @@ class DlpServiceClient {
|
|
|
2051
2067
|
options = options || {};
|
|
2052
2068
|
options.otherArgs = options.otherArgs || {};
|
|
2053
2069
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2054
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2055
|
-
|
|
2056
|
-
parent: request.parent ?? '',
|
|
2057
|
-
});
|
|
2058
|
-
this.initialize().catch(err => {
|
|
2059
|
-
throw err;
|
|
2070
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2071
|
+
'parent': request.parent ?? '',
|
|
2060
2072
|
});
|
|
2073
|
+
this.initialize().catch(err => { throw err; });
|
|
2061
2074
|
const wrappedCallback = callback
|
|
2062
2075
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2063
2076
|
this._log.info('listDeidentifyTemplates values %j', values);
|
|
@@ -2135,15 +2148,12 @@ class DlpServiceClient {
|
|
|
2135
2148
|
options = options || {};
|
|
2136
2149
|
options.otherArgs = options.otherArgs || {};
|
|
2137
2150
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2138
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
});
|
|
2151
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2152
|
+
'parent': request.parent ?? '',
|
|
2153
|
+
});
|
|
2142
2154
|
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
2143
2155
|
const callSettings = defaultCallSettings.merge(options);
|
|
2144
|
-
this.initialize().catch(err => {
|
|
2145
|
-
throw err;
|
|
2146
|
-
});
|
|
2156
|
+
this.initialize().catch(err => { throw err; });
|
|
2147
2157
|
this._log.info('listDeidentifyTemplates stream %j', request);
|
|
2148
2158
|
return this.descriptors.page.listDeidentifyTemplates.createStream(this.innerApiCalls.listDeidentifyTemplates, request, callSettings);
|
|
2149
2159
|
}
|
|
@@ -2213,15 +2223,12 @@ class DlpServiceClient {
|
|
|
2213
2223
|
options = options || {};
|
|
2214
2224
|
options.otherArgs = options.otherArgs || {};
|
|
2215
2225
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2216
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
});
|
|
2226
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2227
|
+
'parent': request.parent ?? '',
|
|
2228
|
+
});
|
|
2220
2229
|
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
2221
2230
|
const callSettings = defaultCallSettings.merge(options);
|
|
2222
|
-
this.initialize().catch(err => {
|
|
2223
|
-
throw err;
|
|
2224
|
-
});
|
|
2231
|
+
this.initialize().catch(err => { throw err; });
|
|
2225
2232
|
this._log.info('listDeidentifyTemplates iterate %j', request);
|
|
2226
2233
|
return this.descriptors.page.listDeidentifyTemplates.asyncIterate(this.innerApiCalls['listDeidentifyTemplates'], request, callSettings);
|
|
2227
2234
|
}
|
|
@@ -2238,13 +2245,10 @@ class DlpServiceClient {
|
|
|
2238
2245
|
options = options || {};
|
|
2239
2246
|
options.otherArgs = options.otherArgs || {};
|
|
2240
2247
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2241
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2242
|
-
|
|
2243
|
-
parent: request.parent ?? '',
|
|
2244
|
-
});
|
|
2245
|
-
this.initialize().catch(err => {
|
|
2246
|
-
throw err;
|
|
2248
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2249
|
+
'parent': request.parent ?? '',
|
|
2247
2250
|
});
|
|
2251
|
+
this.initialize().catch(err => { throw err; });
|
|
2248
2252
|
const wrappedCallback = callback
|
|
2249
2253
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2250
2254
|
this._log.info('listJobTriggers values %j', values);
|
|
@@ -2347,15 +2351,12 @@ class DlpServiceClient {
|
|
|
2347
2351
|
options = options || {};
|
|
2348
2352
|
options.otherArgs = options.otherArgs || {};
|
|
2349
2353
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2350
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
});
|
|
2354
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2355
|
+
'parent': request.parent ?? '',
|
|
2356
|
+
});
|
|
2354
2357
|
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
2355
2358
|
const callSettings = defaultCallSettings.merge(options);
|
|
2356
|
-
this.initialize().catch(err => {
|
|
2357
|
-
throw err;
|
|
2358
|
-
});
|
|
2359
|
+
this.initialize().catch(err => { throw err; });
|
|
2359
2360
|
this._log.info('listJobTriggers stream %j', request);
|
|
2360
2361
|
return this.descriptors.page.listJobTriggers.createStream(this.innerApiCalls.listJobTriggers, request, callSettings);
|
|
2361
2362
|
}
|
|
@@ -2450,15 +2451,12 @@ class DlpServiceClient {
|
|
|
2450
2451
|
options = options || {};
|
|
2451
2452
|
options.otherArgs = options.otherArgs || {};
|
|
2452
2453
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2453
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
});
|
|
2454
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2455
|
+
'parent': request.parent ?? '',
|
|
2456
|
+
});
|
|
2457
2457
|
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
2458
2458
|
const callSettings = defaultCallSettings.merge(options);
|
|
2459
|
-
this.initialize().catch(err => {
|
|
2460
|
-
throw err;
|
|
2461
|
-
});
|
|
2459
|
+
this.initialize().catch(err => { throw err; });
|
|
2462
2460
|
this._log.info('listJobTriggers iterate %j', request);
|
|
2463
2461
|
return this.descriptors.page.listJobTriggers.asyncIterate(this.innerApiCalls['listJobTriggers'], request, callSettings);
|
|
2464
2462
|
}
|
|
@@ -2475,13 +2473,10 @@ class DlpServiceClient {
|
|
|
2475
2473
|
options = options || {};
|
|
2476
2474
|
options.otherArgs = options.otherArgs || {};
|
|
2477
2475
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2478
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2479
|
-
|
|
2480
|
-
parent: request.parent ?? '',
|
|
2481
|
-
});
|
|
2482
|
-
this.initialize().catch(err => {
|
|
2483
|
-
throw err;
|
|
2476
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2477
|
+
'parent': request.parent ?? '',
|
|
2484
2478
|
});
|
|
2479
|
+
this.initialize().catch(err => { throw err; });
|
|
2485
2480
|
const wrappedCallback = callback
|
|
2486
2481
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2487
2482
|
this._log.info('listDiscoveryConfigs values %j', values);
|
|
@@ -2546,15 +2541,12 @@ class DlpServiceClient {
|
|
|
2546
2541
|
options = options || {};
|
|
2547
2542
|
options.otherArgs = options.otherArgs || {};
|
|
2548
2543
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2549
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
});
|
|
2544
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2545
|
+
'parent': request.parent ?? '',
|
|
2546
|
+
});
|
|
2553
2547
|
const defaultCallSettings = this._defaults['listDiscoveryConfigs'];
|
|
2554
2548
|
const callSettings = defaultCallSettings.merge(options);
|
|
2555
|
-
this.initialize().catch(err => {
|
|
2556
|
-
throw err;
|
|
2557
|
-
});
|
|
2549
|
+
this.initialize().catch(err => { throw err; });
|
|
2558
2550
|
this._log.info('listDiscoveryConfigs stream %j', request);
|
|
2559
2551
|
return this.descriptors.page.listDiscoveryConfigs.createStream(this.innerApiCalls.listDiscoveryConfigs, request, callSettings);
|
|
2560
2552
|
}
|
|
@@ -2611,15 +2603,12 @@ class DlpServiceClient {
|
|
|
2611
2603
|
options = options || {};
|
|
2612
2604
|
options.otherArgs = options.otherArgs || {};
|
|
2613
2605
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2614
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
});
|
|
2606
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2607
|
+
'parent': request.parent ?? '',
|
|
2608
|
+
});
|
|
2618
2609
|
const defaultCallSettings = this._defaults['listDiscoveryConfigs'];
|
|
2619
2610
|
const callSettings = defaultCallSettings.merge(options);
|
|
2620
|
-
this.initialize().catch(err => {
|
|
2621
|
-
throw err;
|
|
2622
|
-
});
|
|
2611
|
+
this.initialize().catch(err => { throw err; });
|
|
2623
2612
|
this._log.info('listDiscoveryConfigs iterate %j', request);
|
|
2624
2613
|
return this.descriptors.page.listDiscoveryConfigs.asyncIterate(this.innerApiCalls['listDiscoveryConfigs'], request, callSettings);
|
|
2625
2614
|
}
|
|
@@ -2636,13 +2625,10 @@ class DlpServiceClient {
|
|
|
2636
2625
|
options = options || {};
|
|
2637
2626
|
options.otherArgs = options.otherArgs || {};
|
|
2638
2627
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2639
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2640
|
-
|
|
2641
|
-
parent: request.parent ?? '',
|
|
2642
|
-
});
|
|
2643
|
-
this.initialize().catch(err => {
|
|
2644
|
-
throw err;
|
|
2628
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2629
|
+
'parent': request.parent ?? '',
|
|
2645
2630
|
});
|
|
2631
|
+
this.initialize().catch(err => { throw err; });
|
|
2646
2632
|
const wrappedCallback = callback
|
|
2647
2633
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2648
2634
|
this._log.info('listDlpJobs values %j', values);
|
|
@@ -2745,15 +2731,12 @@ class DlpServiceClient {
|
|
|
2745
2731
|
options = options || {};
|
|
2746
2732
|
options.otherArgs = options.otherArgs || {};
|
|
2747
2733
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2748
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
});
|
|
2734
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2735
|
+
'parent': request.parent ?? '',
|
|
2736
|
+
});
|
|
2752
2737
|
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
2753
2738
|
const callSettings = defaultCallSettings.merge(options);
|
|
2754
|
-
this.initialize().catch(err => {
|
|
2755
|
-
throw err;
|
|
2756
|
-
});
|
|
2739
|
+
this.initialize().catch(err => { throw err; });
|
|
2757
2740
|
this._log.info('listDlpJobs stream %j', request);
|
|
2758
2741
|
return this.descriptors.page.listDlpJobs.createStream(this.innerApiCalls.listDlpJobs, request, callSettings);
|
|
2759
2742
|
}
|
|
@@ -2848,15 +2831,12 @@ class DlpServiceClient {
|
|
|
2848
2831
|
options = options || {};
|
|
2849
2832
|
options.otherArgs = options.otherArgs || {};
|
|
2850
2833
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2851
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
});
|
|
2834
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2835
|
+
'parent': request.parent ?? '',
|
|
2836
|
+
});
|
|
2855
2837
|
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
2856
2838
|
const callSettings = defaultCallSettings.merge(options);
|
|
2857
|
-
this.initialize().catch(err => {
|
|
2858
|
-
throw err;
|
|
2859
|
-
});
|
|
2839
|
+
this.initialize().catch(err => { throw err; });
|
|
2860
2840
|
this._log.info('listDlpJobs iterate %j', request);
|
|
2861
2841
|
return this.descriptors.page.listDlpJobs.asyncIterate(this.innerApiCalls['listDlpJobs'], request, callSettings);
|
|
2862
2842
|
}
|
|
@@ -2873,13 +2853,10 @@ class DlpServiceClient {
|
|
|
2873
2853
|
options = options || {};
|
|
2874
2854
|
options.otherArgs = options.otherArgs || {};
|
|
2875
2855
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2876
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2877
|
-
|
|
2878
|
-
parent: request.parent ?? '',
|
|
2879
|
-
});
|
|
2880
|
-
this.initialize().catch(err => {
|
|
2881
|
-
throw err;
|
|
2856
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2857
|
+
'parent': request.parent ?? '',
|
|
2882
2858
|
});
|
|
2859
|
+
this.initialize().catch(err => { throw err; });
|
|
2883
2860
|
const wrappedCallback = callback
|
|
2884
2861
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
2885
2862
|
this._log.info('listStoredInfoTypes values %j', values);
|
|
@@ -2954,15 +2931,12 @@ class DlpServiceClient {
|
|
|
2954
2931
|
options = options || {};
|
|
2955
2932
|
options.otherArgs = options.otherArgs || {};
|
|
2956
2933
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2957
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
});
|
|
2934
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
2935
|
+
'parent': request.parent ?? '',
|
|
2936
|
+
});
|
|
2961
2937
|
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
2962
2938
|
const callSettings = defaultCallSettings.merge(options);
|
|
2963
|
-
this.initialize().catch(err => {
|
|
2964
|
-
throw err;
|
|
2965
|
-
});
|
|
2939
|
+
this.initialize().catch(err => { throw err; });
|
|
2966
2940
|
this._log.info('listStoredInfoTypes stream %j', request);
|
|
2967
2941
|
return this.descriptors.page.listStoredInfoTypes.createStream(this.innerApiCalls.listStoredInfoTypes, request, callSettings);
|
|
2968
2942
|
}
|
|
@@ -3029,15 +3003,12 @@ class DlpServiceClient {
|
|
|
3029
3003
|
options = options || {};
|
|
3030
3004
|
options.otherArgs = options.otherArgs || {};
|
|
3031
3005
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3032
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
});
|
|
3006
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3007
|
+
'parent': request.parent ?? '',
|
|
3008
|
+
});
|
|
3036
3009
|
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
3037
3010
|
const callSettings = defaultCallSettings.merge(options);
|
|
3038
|
-
this.initialize().catch(err => {
|
|
3039
|
-
throw err;
|
|
3040
|
-
});
|
|
3011
|
+
this.initialize().catch(err => { throw err; });
|
|
3041
3012
|
this._log.info('listStoredInfoTypes iterate %j', request);
|
|
3042
3013
|
return this.descriptors.page.listStoredInfoTypes.asyncIterate(this.innerApiCalls['listStoredInfoTypes'], request, callSettings);
|
|
3043
3014
|
}
|
|
@@ -3054,13 +3025,10 @@ class DlpServiceClient {
|
|
|
3054
3025
|
options = options || {};
|
|
3055
3026
|
options.otherArgs = options.otherArgs || {};
|
|
3056
3027
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3057
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3058
|
-
|
|
3059
|
-
parent: request.parent ?? '',
|
|
3060
|
-
});
|
|
3061
|
-
this.initialize().catch(err => {
|
|
3062
|
-
throw err;
|
|
3028
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3029
|
+
'parent': request.parent ?? '',
|
|
3063
3030
|
});
|
|
3031
|
+
this.initialize().catch(err => { throw err; });
|
|
3064
3032
|
const wrappedCallback = callback
|
|
3065
3033
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
3066
3034
|
this._log.info('listProjectDataProfiles values %j', values);
|
|
@@ -3141,15 +3109,12 @@ class DlpServiceClient {
|
|
|
3141
3109
|
options = options || {};
|
|
3142
3110
|
options.otherArgs = options.otherArgs || {};
|
|
3143
3111
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3144
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
});
|
|
3112
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3113
|
+
'parent': request.parent ?? '',
|
|
3114
|
+
});
|
|
3148
3115
|
const defaultCallSettings = this._defaults['listProjectDataProfiles'];
|
|
3149
3116
|
const callSettings = defaultCallSettings.merge(options);
|
|
3150
|
-
this.initialize().catch(err => {
|
|
3151
|
-
throw err;
|
|
3152
|
-
});
|
|
3117
|
+
this.initialize().catch(err => { throw err; });
|
|
3153
3118
|
this._log.info('listProjectDataProfiles stream %j', request);
|
|
3154
3119
|
return this.descriptors.page.listProjectDataProfiles.createStream(this.innerApiCalls.listProjectDataProfiles, request, callSettings);
|
|
3155
3120
|
}
|
|
@@ -3222,15 +3187,12 @@ class DlpServiceClient {
|
|
|
3222
3187
|
options = options || {};
|
|
3223
3188
|
options.otherArgs = options.otherArgs || {};
|
|
3224
3189
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3225
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
});
|
|
3190
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3191
|
+
'parent': request.parent ?? '',
|
|
3192
|
+
});
|
|
3229
3193
|
const defaultCallSettings = this._defaults['listProjectDataProfiles'];
|
|
3230
3194
|
const callSettings = defaultCallSettings.merge(options);
|
|
3231
|
-
this.initialize().catch(err => {
|
|
3232
|
-
throw err;
|
|
3233
|
-
});
|
|
3195
|
+
this.initialize().catch(err => { throw err; });
|
|
3234
3196
|
this._log.info('listProjectDataProfiles iterate %j', request);
|
|
3235
3197
|
return this.descriptors.page.listProjectDataProfiles.asyncIterate(this.innerApiCalls['listProjectDataProfiles'], request, callSettings);
|
|
3236
3198
|
}
|
|
@@ -3247,13 +3209,10 @@ class DlpServiceClient {
|
|
|
3247
3209
|
options = options || {};
|
|
3248
3210
|
options.otherArgs = options.otherArgs || {};
|
|
3249
3211
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3250
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3251
|
-
|
|
3252
|
-
parent: request.parent ?? '',
|
|
3253
|
-
});
|
|
3254
|
-
this.initialize().catch(err => {
|
|
3255
|
-
throw err;
|
|
3212
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3213
|
+
'parent': request.parent ?? '',
|
|
3256
3214
|
});
|
|
3215
|
+
this.initialize().catch(err => { throw err; });
|
|
3257
3216
|
const wrappedCallback = callback
|
|
3258
3217
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
3259
3218
|
this._log.info('listTableDataProfiles values %j', values);
|
|
@@ -3347,15 +3306,12 @@ class DlpServiceClient {
|
|
|
3347
3306
|
options = options || {};
|
|
3348
3307
|
options.otherArgs = options.otherArgs || {};
|
|
3349
3308
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3350
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
});
|
|
3309
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3310
|
+
'parent': request.parent ?? '',
|
|
3311
|
+
});
|
|
3354
3312
|
const defaultCallSettings = this._defaults['listTableDataProfiles'];
|
|
3355
3313
|
const callSettings = defaultCallSettings.merge(options);
|
|
3356
|
-
this.initialize().catch(err => {
|
|
3357
|
-
throw err;
|
|
3358
|
-
});
|
|
3314
|
+
this.initialize().catch(err => { throw err; });
|
|
3359
3315
|
this._log.info('listTableDataProfiles stream %j', request);
|
|
3360
3316
|
return this.descriptors.page.listTableDataProfiles.createStream(this.innerApiCalls.listTableDataProfiles, request, callSettings);
|
|
3361
3317
|
}
|
|
@@ -3441,15 +3397,12 @@ class DlpServiceClient {
|
|
|
3441
3397
|
options = options || {};
|
|
3442
3398
|
options.otherArgs = options.otherArgs || {};
|
|
3443
3399
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3444
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
});
|
|
3400
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3401
|
+
'parent': request.parent ?? '',
|
|
3402
|
+
});
|
|
3448
3403
|
const defaultCallSettings = this._defaults['listTableDataProfiles'];
|
|
3449
3404
|
const callSettings = defaultCallSettings.merge(options);
|
|
3450
|
-
this.initialize().catch(err => {
|
|
3451
|
-
throw err;
|
|
3452
|
-
});
|
|
3405
|
+
this.initialize().catch(err => { throw err; });
|
|
3453
3406
|
this._log.info('listTableDataProfiles iterate %j', request);
|
|
3454
3407
|
return this.descriptors.page.listTableDataProfiles.asyncIterate(this.innerApiCalls['listTableDataProfiles'], request, callSettings);
|
|
3455
3408
|
}
|
|
@@ -3466,13 +3419,10 @@ class DlpServiceClient {
|
|
|
3466
3419
|
options = options || {};
|
|
3467
3420
|
options.otherArgs = options.otherArgs || {};
|
|
3468
3421
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3469
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3470
|
-
|
|
3471
|
-
parent: request.parent ?? '',
|
|
3472
|
-
});
|
|
3473
|
-
this.initialize().catch(err => {
|
|
3474
|
-
throw err;
|
|
3422
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3423
|
+
'parent': request.parent ?? '',
|
|
3475
3424
|
});
|
|
3425
|
+
this.initialize().catch(err => { throw err; });
|
|
3476
3426
|
const wrappedCallback = callback
|
|
3477
3427
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
3478
3428
|
this._log.info('listColumnDataProfiles values %j', values);
|
|
@@ -3568,15 +3518,12 @@ class DlpServiceClient {
|
|
|
3568
3518
|
options = options || {};
|
|
3569
3519
|
options.otherArgs = options.otherArgs || {};
|
|
3570
3520
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3571
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
});
|
|
3521
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3522
|
+
'parent': request.parent ?? '',
|
|
3523
|
+
});
|
|
3575
3524
|
const defaultCallSettings = this._defaults['listColumnDataProfiles'];
|
|
3576
3525
|
const callSettings = defaultCallSettings.merge(options);
|
|
3577
|
-
this.initialize().catch(err => {
|
|
3578
|
-
throw err;
|
|
3579
|
-
});
|
|
3526
|
+
this.initialize().catch(err => { throw err; });
|
|
3580
3527
|
this._log.info('listColumnDataProfiles stream %j', request);
|
|
3581
3528
|
return this.descriptors.page.listColumnDataProfiles.createStream(this.innerApiCalls.listColumnDataProfiles, request, callSettings);
|
|
3582
3529
|
}
|
|
@@ -3664,15 +3611,12 @@ class DlpServiceClient {
|
|
|
3664
3611
|
options = options || {};
|
|
3665
3612
|
options.otherArgs = options.otherArgs || {};
|
|
3666
3613
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3667
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
});
|
|
3614
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3615
|
+
'parent': request.parent ?? '',
|
|
3616
|
+
});
|
|
3671
3617
|
const defaultCallSettings = this._defaults['listColumnDataProfiles'];
|
|
3672
3618
|
const callSettings = defaultCallSettings.merge(options);
|
|
3673
|
-
this.initialize().catch(err => {
|
|
3674
|
-
throw err;
|
|
3675
|
-
});
|
|
3619
|
+
this.initialize().catch(err => { throw err; });
|
|
3676
3620
|
this._log.info('listColumnDataProfiles iterate %j', request);
|
|
3677
3621
|
return this.descriptors.page.listColumnDataProfiles.asyncIterate(this.innerApiCalls['listColumnDataProfiles'], request, callSettings);
|
|
3678
3622
|
}
|
|
@@ -3689,13 +3633,10 @@ class DlpServiceClient {
|
|
|
3689
3633
|
options = options || {};
|
|
3690
3634
|
options.otherArgs = options.otherArgs || {};
|
|
3691
3635
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3692
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3693
|
-
|
|
3694
|
-
parent: request.parent ?? '',
|
|
3695
|
-
});
|
|
3696
|
-
this.initialize().catch(err => {
|
|
3697
|
-
throw err;
|
|
3636
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3637
|
+
'parent': request.parent ?? '',
|
|
3698
3638
|
});
|
|
3639
|
+
this.initialize().catch(err => { throw err; });
|
|
3699
3640
|
const wrappedCallback = callback
|
|
3700
3641
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
3701
3642
|
this._log.info('listFileStoreDataProfiles values %j', values);
|
|
@@ -3794,15 +3735,12 @@ class DlpServiceClient {
|
|
|
3794
3735
|
options = options || {};
|
|
3795
3736
|
options.otherArgs = options.otherArgs || {};
|
|
3796
3737
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3797
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
});
|
|
3738
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3739
|
+
'parent': request.parent ?? '',
|
|
3740
|
+
});
|
|
3801
3741
|
const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
|
|
3802
3742
|
const callSettings = defaultCallSettings.merge(options);
|
|
3803
|
-
this.initialize().catch(err => {
|
|
3804
|
-
throw err;
|
|
3805
|
-
});
|
|
3743
|
+
this.initialize().catch(err => { throw err; });
|
|
3806
3744
|
this._log.info('listFileStoreDataProfiles stream %j', request);
|
|
3807
3745
|
return this.descriptors.page.listFileStoreDataProfiles.createStream(this.innerApiCalls.listFileStoreDataProfiles, request, callSettings);
|
|
3808
3746
|
}
|
|
@@ -3893,15 +3831,12 @@ class DlpServiceClient {
|
|
|
3893
3831
|
options = options || {};
|
|
3894
3832
|
options.otherArgs = options.otherArgs || {};
|
|
3895
3833
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3896
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
});
|
|
3834
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3835
|
+
'parent': request.parent ?? '',
|
|
3836
|
+
});
|
|
3900
3837
|
const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
|
|
3901
3838
|
const callSettings = defaultCallSettings.merge(options);
|
|
3902
|
-
this.initialize().catch(err => {
|
|
3903
|
-
throw err;
|
|
3904
|
-
});
|
|
3839
|
+
this.initialize().catch(err => { throw err; });
|
|
3905
3840
|
this._log.info('listFileStoreDataProfiles iterate %j', request);
|
|
3906
3841
|
return this.descriptors.page.listFileStoreDataProfiles.asyncIterate(this.innerApiCalls['listFileStoreDataProfiles'], request, callSettings);
|
|
3907
3842
|
}
|
|
@@ -3918,13 +3853,10 @@ class DlpServiceClient {
|
|
|
3918
3853
|
options = options || {};
|
|
3919
3854
|
options.otherArgs = options.otherArgs || {};
|
|
3920
3855
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3921
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3922
|
-
|
|
3923
|
-
parent: request.parent ?? '',
|
|
3924
|
-
});
|
|
3925
|
-
this.initialize().catch(err => {
|
|
3926
|
-
throw err;
|
|
3856
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3857
|
+
'parent': request.parent ?? '',
|
|
3927
3858
|
});
|
|
3859
|
+
this.initialize().catch(err => { throw err; });
|
|
3928
3860
|
const wrappedCallback = callback
|
|
3929
3861
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
3930
3862
|
this._log.info('listConnections values %j', values);
|
|
@@ -3970,15 +3902,12 @@ class DlpServiceClient {
|
|
|
3970
3902
|
options = options || {};
|
|
3971
3903
|
options.otherArgs = options.otherArgs || {};
|
|
3972
3904
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3973
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
});
|
|
3905
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3906
|
+
'parent': request.parent ?? '',
|
|
3907
|
+
});
|
|
3977
3908
|
const defaultCallSettings = this._defaults['listConnections'];
|
|
3978
3909
|
const callSettings = defaultCallSettings.merge(options);
|
|
3979
|
-
this.initialize().catch(err => {
|
|
3980
|
-
throw err;
|
|
3981
|
-
});
|
|
3910
|
+
this.initialize().catch(err => { throw err; });
|
|
3982
3911
|
this._log.info('listConnections stream %j', request);
|
|
3983
3912
|
return this.descriptors.page.listConnections.createStream(this.innerApiCalls.listConnections, request, callSettings);
|
|
3984
3913
|
}
|
|
@@ -4016,15 +3945,12 @@ class DlpServiceClient {
|
|
|
4016
3945
|
options = options || {};
|
|
4017
3946
|
options.otherArgs = options.otherArgs || {};
|
|
4018
3947
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
4019
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
});
|
|
3948
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3949
|
+
'parent': request.parent ?? '',
|
|
3950
|
+
});
|
|
4023
3951
|
const defaultCallSettings = this._defaults['listConnections'];
|
|
4024
3952
|
const callSettings = defaultCallSettings.merge(options);
|
|
4025
|
-
this.initialize().catch(err => {
|
|
4026
|
-
throw err;
|
|
4027
|
-
});
|
|
3953
|
+
this.initialize().catch(err => { throw err; });
|
|
4028
3954
|
this._log.info('listConnections iterate %j', request);
|
|
4029
3955
|
return this.descriptors.page.listConnections.asyncIterate(this.innerApiCalls['listConnections'], request, callSettings);
|
|
4030
3956
|
}
|
|
@@ -4041,13 +3967,10 @@ class DlpServiceClient {
|
|
|
4041
3967
|
options = options || {};
|
|
4042
3968
|
options.otherArgs = options.otherArgs || {};
|
|
4043
3969
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
4044
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
4045
|
-
|
|
4046
|
-
parent: request.parent ?? '',
|
|
4047
|
-
});
|
|
4048
|
-
this.initialize().catch(err => {
|
|
4049
|
-
throw err;
|
|
3970
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
3971
|
+
'parent': request.parent ?? '',
|
|
4050
3972
|
});
|
|
3973
|
+
this.initialize().catch(err => { throw err; });
|
|
4051
3974
|
const wrappedCallback = callback
|
|
4052
3975
|
? (error, values, nextPageRequest, rawResponse) => {
|
|
4053
3976
|
this._log.info('searchConnections values %j', values);
|
|
@@ -4093,15 +4016,12 @@ class DlpServiceClient {
|
|
|
4093
4016
|
options = options || {};
|
|
4094
4017
|
options.otherArgs = options.otherArgs || {};
|
|
4095
4018
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
4096
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
});
|
|
4019
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
4020
|
+
'parent': request.parent ?? '',
|
|
4021
|
+
});
|
|
4100
4022
|
const defaultCallSettings = this._defaults['searchConnections'];
|
|
4101
4023
|
const callSettings = defaultCallSettings.merge(options);
|
|
4102
|
-
this.initialize().catch(err => {
|
|
4103
|
-
throw err;
|
|
4104
|
-
});
|
|
4024
|
+
this.initialize().catch(err => { throw err; });
|
|
4105
4025
|
this._log.info('searchConnections stream %j', request);
|
|
4106
4026
|
return this.descriptors.page.searchConnections.createStream(this.innerApiCalls.searchConnections, request, callSettings);
|
|
4107
4027
|
}
|
|
@@ -4139,70 +4059,67 @@ class DlpServiceClient {
|
|
|
4139
4059
|
options = options || {};
|
|
4140
4060
|
options.otherArgs = options.otherArgs || {};
|
|
4141
4061
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
4142
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
});
|
|
4062
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
4063
|
+
'parent': request.parent ?? '',
|
|
4064
|
+
});
|
|
4146
4065
|
const defaultCallSettings = this._defaults['searchConnections'];
|
|
4147
4066
|
const callSettings = defaultCallSettings.merge(options);
|
|
4148
|
-
this.initialize().catch(err => {
|
|
4149
|
-
throw err;
|
|
4150
|
-
});
|
|
4067
|
+
this.initialize().catch(err => { throw err; });
|
|
4151
4068
|
this._log.info('searchConnections iterate %j', request);
|
|
4152
4069
|
return this.descriptors.page.searchConnections.asyncIterate(this.innerApiCalls['searchConnections'], request, callSettings);
|
|
4153
4070
|
}
|
|
4154
4071
|
/**
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4072
|
+
* Gets information about a location.
|
|
4073
|
+
*
|
|
4074
|
+
* @param {Object} request
|
|
4075
|
+
* The request object that will be sent.
|
|
4076
|
+
* @param {string} request.name
|
|
4077
|
+
* Resource name for the location.
|
|
4078
|
+
* @param {object} [options]
|
|
4079
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
|
4080
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
4081
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
|
4082
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
4083
|
+
* for more details and examples.
|
|
4084
|
+
* @example
|
|
4085
|
+
* ```
|
|
4086
|
+
* const [response] = await client.getLocation(request);
|
|
4087
|
+
* ```
|
|
4088
|
+
*/
|
|
4172
4089
|
getLocation(request, options, callback) {
|
|
4173
4090
|
return this.locationsClient.getLocation(request, options, callback);
|
|
4174
4091
|
}
|
|
4175
4092
|
/**
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4093
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
|
4094
|
+
*
|
|
4095
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
4096
|
+
* @param {Object} request
|
|
4097
|
+
* The request object that will be sent.
|
|
4098
|
+
* @param {string} request.name
|
|
4099
|
+
* The resource that owns the locations collection, if applicable.
|
|
4100
|
+
* @param {string} request.filter
|
|
4101
|
+
* The standard list filter.
|
|
4102
|
+
* @param {number} request.pageSize
|
|
4103
|
+
* The standard list page size.
|
|
4104
|
+
* @param {string} request.pageToken
|
|
4105
|
+
* The standard list page token.
|
|
4106
|
+
* @param {object} [options]
|
|
4107
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
4108
|
+
* @returns {Object}
|
|
4109
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
4110
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
4111
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
|
4112
|
+
* so you can stop the iteration when you don't need more results.
|
|
4113
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
4114
|
+
* for more details and examples.
|
|
4115
|
+
* @example
|
|
4116
|
+
* ```
|
|
4117
|
+
* const iterable = client.listLocationsAsync(request);
|
|
4118
|
+
* for await (const response of iterable) {
|
|
4119
|
+
* // process response
|
|
4120
|
+
* }
|
|
4121
|
+
* ```
|
|
4122
|
+
*/
|
|
4206
4123
|
listLocationsAsync(request, options) {
|
|
4207
4124
|
return this.locationsClient.listLocationsAsync(request, options);
|
|
4208
4125
|
}
|
|
@@ -4351,8 +4268,7 @@ class DlpServiceClient {
|
|
|
4351
4268
|
* @returns {string} A string representing the organization.
|
|
4352
4269
|
*/
|
|
4353
4270
|
matchOrganizationFromOrganizationName(organizationName) {
|
|
4354
|
-
return this.pathTemplates.organizationPathTemplate.match(organizationName)
|
|
4355
|
-
.organization;
|
|
4271
|
+
return this.pathTemplates.organizationPathTemplate.match(organizationName).organization;
|
|
4356
4272
|
}
|
|
4357
4273
|
/**
|
|
4358
4274
|
* Return a fully-qualified organizationDeidentifyTemplate resource name string.
|
|
@@ -4942,8 +4858,7 @@ class DlpServiceClient {
|
|
|
4942
4858
|
* @returns {string} A string representing the project.
|
|
4943
4859
|
*/
|
|
4944
4860
|
matchProjectFromProjectDlpJobName(projectDlpJobName) {
|
|
4945
|
-
return this.pathTemplates.projectDlpJobPathTemplate.match(projectDlpJobName)
|
|
4946
|
-
.project;
|
|
4861
|
+
return this.pathTemplates.projectDlpJobPathTemplate.match(projectDlpJobName).project;
|
|
4947
4862
|
}
|
|
4948
4863
|
/**
|
|
4949
4864
|
* Parse the dlp_job from ProjectDlpJob resource.
|
|
@@ -4953,8 +4868,7 @@ class DlpServiceClient {
|
|
|
4953
4868
|
* @returns {string} A string representing the dlp_job.
|
|
4954
4869
|
*/
|
|
4955
4870
|
matchDlpJobFromProjectDlpJobName(projectDlpJobName) {
|
|
4956
|
-
return this.pathTemplates.projectDlpJobPathTemplate.match(projectDlpJobName)
|
|
4957
|
-
.dlp_job;
|
|
4871
|
+
return this.pathTemplates.projectDlpJobPathTemplate.match(projectDlpJobName).dlp_job;
|
|
4958
4872
|
}
|
|
4959
4873
|
/**
|
|
4960
4874
|
* Return a fully-qualified projectInspectTemplate resource name string.
|
|
@@ -5517,9 +5431,7 @@ class DlpServiceClient {
|
|
|
5517
5431
|
this._log.info('ending gRPC channel');
|
|
5518
5432
|
this._terminated = true;
|
|
5519
5433
|
stub.close();
|
|
5520
|
-
this.locationsClient.close().catch(err => {
|
|
5521
|
-
throw err;
|
|
5522
|
-
});
|
|
5434
|
+
this.locationsClient.close().catch(err => { throw err; });
|
|
5523
5435
|
});
|
|
5524
5436
|
}
|
|
5525
5437
|
return Promise.resolve();
|