@google-cloud/dlp 5.13.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +2 -2
- package/build/protos/google/privacy/dlp/v2/dlp.proto +1 -1
- package/build/protos/google/privacy/dlp/v2/storage.proto +1 -1
- package/build/protos/protos.json +0 -3
- package/build/src/service_proto_list.json +1 -0
- package/build/src/v2/dlp_service_client.d.ts +2 -1
- package/build/src/v2/dlp_service_client.js +856 -231
- package/build/src/v2/dlp_service_proto_list.json +4 -0
- package/build/src/v2/gapic_metadata.json +621 -0
- package/package.json +16 -16
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.DlpServiceClient = void 0;
|
|
21
21
|
const jsonProtos = require("../../protos/protos.json");
|
|
22
|
+
const google_gax_1 = require("google-gax");
|
|
22
23
|
/**
|
|
23
24
|
* Client JSON configuration object, loaded from
|
|
24
25
|
* `src/v2/dlp_service_client_config.json`.
|
|
@@ -36,6 +37,28 @@ const version = require('../../../package.json').version;
|
|
|
36
37
|
* @memberof v2
|
|
37
38
|
*/
|
|
38
39
|
class DlpServiceClient {
|
|
40
|
+
_terminated = false;
|
|
41
|
+
_opts;
|
|
42
|
+
_providedCustomServicePath;
|
|
43
|
+
_gaxModule;
|
|
44
|
+
_gaxGrpc;
|
|
45
|
+
_protos;
|
|
46
|
+
_defaults;
|
|
47
|
+
_universeDomain;
|
|
48
|
+
_servicePath;
|
|
49
|
+
_log = google_gax_1.loggingUtils.log('dlp');
|
|
50
|
+
auth;
|
|
51
|
+
descriptors = {
|
|
52
|
+
page: {},
|
|
53
|
+
stream: {},
|
|
54
|
+
longrunning: {},
|
|
55
|
+
batching: {},
|
|
56
|
+
};
|
|
57
|
+
warn;
|
|
58
|
+
innerApiCalls;
|
|
59
|
+
locationsClient;
|
|
60
|
+
pathTemplates;
|
|
61
|
+
dlpServiceStub;
|
|
39
62
|
/**
|
|
40
63
|
* Construct an instance of DlpServiceClient.
|
|
41
64
|
*
|
|
@@ -58,7 +81,7 @@ class DlpServiceClient {
|
|
|
58
81
|
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
59
82
|
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
60
83
|
* app is running in an environment which supports
|
|
61
|
-
* {@link https://
|
|
84
|
+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
|
|
62
85
|
* your project ID will be detected automatically.
|
|
63
86
|
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
64
87
|
* API remote host.
|
|
@@ -76,32 +99,28 @@ class DlpServiceClient {
|
|
|
76
99
|
* ```
|
|
77
100
|
*/
|
|
78
101
|
constructor(opts, gaxInstance) {
|
|
79
|
-
var _a, _b, _c, _d, _e;
|
|
80
|
-
this._terminated = false;
|
|
81
|
-
this.descriptors = {
|
|
82
|
-
page: {},
|
|
83
|
-
stream: {},
|
|
84
|
-
longrunning: {},
|
|
85
|
-
batching: {},
|
|
86
|
-
};
|
|
87
102
|
// Ensure that options include all the required fields.
|
|
88
103
|
const staticMembers = this.constructor;
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
|
|
104
|
+
if (opts?.universe_domain &&
|
|
105
|
+
opts?.universeDomain &&
|
|
106
|
+
opts?.universe_domain !== opts?.universeDomain) {
|
|
92
107
|
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
93
108
|
}
|
|
94
109
|
const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
|
|
95
110
|
? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
|
|
96
111
|
: undefined;
|
|
97
112
|
this._universeDomain =
|
|
98
|
-
|
|
113
|
+
opts?.universeDomain ??
|
|
114
|
+
opts?.universe_domain ??
|
|
115
|
+
universeDomainEnvVar ??
|
|
116
|
+
'googleapis.com';
|
|
99
117
|
this._servicePath = 'dlp.' + this._universeDomain;
|
|
100
|
-
const servicePath =
|
|
101
|
-
this._providedCustomServicePath = !!(
|
|
102
|
-
const port =
|
|
103
|
-
const clientConfig =
|
|
104
|
-
const fallback =
|
|
118
|
+
const servicePath = opts?.servicePath || opts?.apiEndpoint || this._servicePath;
|
|
119
|
+
this._providedCustomServicePath = !!(opts?.servicePath || opts?.apiEndpoint);
|
|
120
|
+
const port = opts?.port || staticMembers.port;
|
|
121
|
+
const clientConfig = opts?.clientConfig ?? {};
|
|
122
|
+
const fallback = opts?.fallback ??
|
|
123
|
+
(typeof window !== 'undefined' && typeof window?.fetch === 'function');
|
|
105
124
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
106
125
|
// Request numeric enum values if REST transport is used.
|
|
107
126
|
opts.numericEnums = true;
|
|
@@ -371,7 +390,6 @@ class DlpServiceClient {
|
|
|
371
390
|
return this.auth.getProjectId();
|
|
372
391
|
}
|
|
373
392
|
inspectContent(request, optionsOrCallback, callback) {
|
|
374
|
-
var _a;
|
|
375
393
|
request = request || {};
|
|
376
394
|
let options;
|
|
377
395
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -386,13 +404,24 @@ class DlpServiceClient {
|
|
|
386
404
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
387
405
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
388
406
|
this._gaxModule.routingHeader.fromParams({
|
|
389
|
-
parent:
|
|
407
|
+
parent: request.parent ?? '',
|
|
390
408
|
});
|
|
391
409
|
this.initialize();
|
|
392
|
-
|
|
410
|
+
this._log.info('inspectContent request %j', request);
|
|
411
|
+
const wrappedCallback = callback
|
|
412
|
+
? (error, response, options, rawResponse) => {
|
|
413
|
+
this._log.info('inspectContent response %j', response);
|
|
414
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
415
|
+
}
|
|
416
|
+
: undefined;
|
|
417
|
+
return this.innerApiCalls
|
|
418
|
+
.inspectContent(request, options, wrappedCallback)
|
|
419
|
+
?.then(([response, options, rawResponse]) => {
|
|
420
|
+
this._log.info('inspectContent response %j', response);
|
|
421
|
+
return [response, options, rawResponse];
|
|
422
|
+
});
|
|
393
423
|
}
|
|
394
424
|
redactImage(request, optionsOrCallback, callback) {
|
|
395
|
-
var _a;
|
|
396
425
|
request = request || {};
|
|
397
426
|
let options;
|
|
398
427
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -407,13 +436,24 @@ class DlpServiceClient {
|
|
|
407
436
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
408
437
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
409
438
|
this._gaxModule.routingHeader.fromParams({
|
|
410
|
-
parent:
|
|
439
|
+
parent: request.parent ?? '',
|
|
411
440
|
});
|
|
412
441
|
this.initialize();
|
|
413
|
-
|
|
442
|
+
this._log.info('redactImage request %j', request);
|
|
443
|
+
const wrappedCallback = callback
|
|
444
|
+
? (error, response, options, rawResponse) => {
|
|
445
|
+
this._log.info('redactImage response %j', response);
|
|
446
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
447
|
+
}
|
|
448
|
+
: undefined;
|
|
449
|
+
return this.innerApiCalls
|
|
450
|
+
.redactImage(request, options, wrappedCallback)
|
|
451
|
+
?.then(([response, options, rawResponse]) => {
|
|
452
|
+
this._log.info('redactImage response %j', response);
|
|
453
|
+
return [response, options, rawResponse];
|
|
454
|
+
});
|
|
414
455
|
}
|
|
415
456
|
deidentifyContent(request, optionsOrCallback, callback) {
|
|
416
|
-
var _a;
|
|
417
457
|
request = request || {};
|
|
418
458
|
let options;
|
|
419
459
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -428,13 +468,24 @@ class DlpServiceClient {
|
|
|
428
468
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
429
469
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
430
470
|
this._gaxModule.routingHeader.fromParams({
|
|
431
|
-
parent:
|
|
471
|
+
parent: request.parent ?? '',
|
|
432
472
|
});
|
|
433
473
|
this.initialize();
|
|
434
|
-
|
|
474
|
+
this._log.info('deidentifyContent request %j', request);
|
|
475
|
+
const wrappedCallback = callback
|
|
476
|
+
? (error, response, options, rawResponse) => {
|
|
477
|
+
this._log.info('deidentifyContent response %j', response);
|
|
478
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
479
|
+
}
|
|
480
|
+
: undefined;
|
|
481
|
+
return this.innerApiCalls
|
|
482
|
+
.deidentifyContent(request, options, wrappedCallback)
|
|
483
|
+
?.then(([response, options, rawResponse]) => {
|
|
484
|
+
this._log.info('deidentifyContent response %j', response);
|
|
485
|
+
return [response, options, rawResponse];
|
|
486
|
+
});
|
|
435
487
|
}
|
|
436
488
|
reidentifyContent(request, optionsOrCallback, callback) {
|
|
437
|
-
var _a;
|
|
438
489
|
request = request || {};
|
|
439
490
|
let options;
|
|
440
491
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -449,13 +500,24 @@ class DlpServiceClient {
|
|
|
449
500
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
450
501
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
451
502
|
this._gaxModule.routingHeader.fromParams({
|
|
452
|
-
parent:
|
|
503
|
+
parent: request.parent ?? '',
|
|
453
504
|
});
|
|
454
505
|
this.initialize();
|
|
455
|
-
|
|
506
|
+
this._log.info('reidentifyContent request %j', request);
|
|
507
|
+
const wrappedCallback = callback
|
|
508
|
+
? (error, response, options, rawResponse) => {
|
|
509
|
+
this._log.info('reidentifyContent response %j', response);
|
|
510
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
511
|
+
}
|
|
512
|
+
: undefined;
|
|
513
|
+
return this.innerApiCalls
|
|
514
|
+
.reidentifyContent(request, options, wrappedCallback)
|
|
515
|
+
?.then(([response, options, rawResponse]) => {
|
|
516
|
+
this._log.info('reidentifyContent response %j', response);
|
|
517
|
+
return [response, options, rawResponse];
|
|
518
|
+
});
|
|
456
519
|
}
|
|
457
520
|
listInfoTypes(request, optionsOrCallback, callback) {
|
|
458
|
-
var _a;
|
|
459
521
|
request = request || {};
|
|
460
522
|
let options;
|
|
461
523
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -470,13 +532,24 @@ class DlpServiceClient {
|
|
|
470
532
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
471
533
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
472
534
|
this._gaxModule.routingHeader.fromParams({
|
|
473
|
-
parent:
|
|
535
|
+
parent: request.parent ?? '',
|
|
474
536
|
});
|
|
475
537
|
this.initialize();
|
|
476
|
-
|
|
538
|
+
this._log.info('listInfoTypes request %j', request);
|
|
539
|
+
const wrappedCallback = callback
|
|
540
|
+
? (error, response, options, rawResponse) => {
|
|
541
|
+
this._log.info('listInfoTypes response %j', response);
|
|
542
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
543
|
+
}
|
|
544
|
+
: undefined;
|
|
545
|
+
return this.innerApiCalls
|
|
546
|
+
.listInfoTypes(request, options, wrappedCallback)
|
|
547
|
+
?.then(([response, options, rawResponse]) => {
|
|
548
|
+
this._log.info('listInfoTypes response %j', response);
|
|
549
|
+
return [response, options, rawResponse];
|
|
550
|
+
});
|
|
477
551
|
}
|
|
478
552
|
createInspectTemplate(request, optionsOrCallback, callback) {
|
|
479
|
-
var _a;
|
|
480
553
|
request = request || {};
|
|
481
554
|
let options;
|
|
482
555
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -491,13 +564,24 @@ class DlpServiceClient {
|
|
|
491
564
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
492
565
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
493
566
|
this._gaxModule.routingHeader.fromParams({
|
|
494
|
-
parent:
|
|
567
|
+
parent: request.parent ?? '',
|
|
495
568
|
});
|
|
496
569
|
this.initialize();
|
|
497
|
-
|
|
570
|
+
this._log.info('createInspectTemplate request %j', request);
|
|
571
|
+
const wrappedCallback = callback
|
|
572
|
+
? (error, response, options, rawResponse) => {
|
|
573
|
+
this._log.info('createInspectTemplate response %j', response);
|
|
574
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
575
|
+
}
|
|
576
|
+
: undefined;
|
|
577
|
+
return this.innerApiCalls
|
|
578
|
+
.createInspectTemplate(request, options, wrappedCallback)
|
|
579
|
+
?.then(([response, options, rawResponse]) => {
|
|
580
|
+
this._log.info('createInspectTemplate response %j', response);
|
|
581
|
+
return [response, options, rawResponse];
|
|
582
|
+
});
|
|
498
583
|
}
|
|
499
584
|
updateInspectTemplate(request, optionsOrCallback, callback) {
|
|
500
|
-
var _a;
|
|
501
585
|
request = request || {};
|
|
502
586
|
let options;
|
|
503
587
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -512,13 +596,24 @@ class DlpServiceClient {
|
|
|
512
596
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
513
597
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
514
598
|
this._gaxModule.routingHeader.fromParams({
|
|
515
|
-
name:
|
|
599
|
+
name: request.name ?? '',
|
|
516
600
|
});
|
|
517
601
|
this.initialize();
|
|
518
|
-
|
|
602
|
+
this._log.info('updateInspectTemplate request %j', request);
|
|
603
|
+
const wrappedCallback = callback
|
|
604
|
+
? (error, response, options, rawResponse) => {
|
|
605
|
+
this._log.info('updateInspectTemplate response %j', response);
|
|
606
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
607
|
+
}
|
|
608
|
+
: undefined;
|
|
609
|
+
return this.innerApiCalls
|
|
610
|
+
.updateInspectTemplate(request, options, wrappedCallback)
|
|
611
|
+
?.then(([response, options, rawResponse]) => {
|
|
612
|
+
this._log.info('updateInspectTemplate response %j', response);
|
|
613
|
+
return [response, options, rawResponse];
|
|
614
|
+
});
|
|
519
615
|
}
|
|
520
616
|
getInspectTemplate(request, optionsOrCallback, callback) {
|
|
521
|
-
var _a;
|
|
522
617
|
request = request || {};
|
|
523
618
|
let options;
|
|
524
619
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -533,13 +628,24 @@ class DlpServiceClient {
|
|
|
533
628
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
534
629
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
535
630
|
this._gaxModule.routingHeader.fromParams({
|
|
536
|
-
name:
|
|
631
|
+
name: request.name ?? '',
|
|
537
632
|
});
|
|
538
633
|
this.initialize();
|
|
539
|
-
|
|
634
|
+
this._log.info('getInspectTemplate request %j', request);
|
|
635
|
+
const wrappedCallback = callback
|
|
636
|
+
? (error, response, options, rawResponse) => {
|
|
637
|
+
this._log.info('getInspectTemplate response %j', response);
|
|
638
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
639
|
+
}
|
|
640
|
+
: undefined;
|
|
641
|
+
return this.innerApiCalls
|
|
642
|
+
.getInspectTemplate(request, options, wrappedCallback)
|
|
643
|
+
?.then(([response, options, rawResponse]) => {
|
|
644
|
+
this._log.info('getInspectTemplate response %j', response);
|
|
645
|
+
return [response, options, rawResponse];
|
|
646
|
+
});
|
|
540
647
|
}
|
|
541
648
|
deleteInspectTemplate(request, optionsOrCallback, callback) {
|
|
542
|
-
var _a;
|
|
543
649
|
request = request || {};
|
|
544
650
|
let options;
|
|
545
651
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -554,13 +660,24 @@ class DlpServiceClient {
|
|
|
554
660
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
555
661
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
556
662
|
this._gaxModule.routingHeader.fromParams({
|
|
557
|
-
name:
|
|
663
|
+
name: request.name ?? '',
|
|
558
664
|
});
|
|
559
665
|
this.initialize();
|
|
560
|
-
|
|
666
|
+
this._log.info('deleteInspectTemplate request %j', request);
|
|
667
|
+
const wrappedCallback = callback
|
|
668
|
+
? (error, response, options, rawResponse) => {
|
|
669
|
+
this._log.info('deleteInspectTemplate response %j', response);
|
|
670
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
671
|
+
}
|
|
672
|
+
: undefined;
|
|
673
|
+
return this.innerApiCalls
|
|
674
|
+
.deleteInspectTemplate(request, options, wrappedCallback)
|
|
675
|
+
?.then(([response, options, rawResponse]) => {
|
|
676
|
+
this._log.info('deleteInspectTemplate response %j', response);
|
|
677
|
+
return [response, options, rawResponse];
|
|
678
|
+
});
|
|
561
679
|
}
|
|
562
680
|
createDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
563
|
-
var _a;
|
|
564
681
|
request = request || {};
|
|
565
682
|
let options;
|
|
566
683
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -575,13 +692,24 @@ class DlpServiceClient {
|
|
|
575
692
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
576
693
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
577
694
|
this._gaxModule.routingHeader.fromParams({
|
|
578
|
-
parent:
|
|
695
|
+
parent: request.parent ?? '',
|
|
579
696
|
});
|
|
580
697
|
this.initialize();
|
|
581
|
-
|
|
698
|
+
this._log.info('createDeidentifyTemplate request %j', request);
|
|
699
|
+
const wrappedCallback = callback
|
|
700
|
+
? (error, response, options, rawResponse) => {
|
|
701
|
+
this._log.info('createDeidentifyTemplate response %j', response);
|
|
702
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
703
|
+
}
|
|
704
|
+
: undefined;
|
|
705
|
+
return this.innerApiCalls
|
|
706
|
+
.createDeidentifyTemplate(request, options, wrappedCallback)
|
|
707
|
+
?.then(([response, options, rawResponse]) => {
|
|
708
|
+
this._log.info('createDeidentifyTemplate response %j', response);
|
|
709
|
+
return [response, options, rawResponse];
|
|
710
|
+
});
|
|
582
711
|
}
|
|
583
712
|
updateDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
584
|
-
var _a;
|
|
585
713
|
request = request || {};
|
|
586
714
|
let options;
|
|
587
715
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -596,13 +724,24 @@ class DlpServiceClient {
|
|
|
596
724
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
597
725
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
598
726
|
this._gaxModule.routingHeader.fromParams({
|
|
599
|
-
name:
|
|
727
|
+
name: request.name ?? '',
|
|
600
728
|
});
|
|
601
729
|
this.initialize();
|
|
602
|
-
|
|
730
|
+
this._log.info('updateDeidentifyTemplate request %j', request);
|
|
731
|
+
const wrappedCallback = callback
|
|
732
|
+
? (error, response, options, rawResponse) => {
|
|
733
|
+
this._log.info('updateDeidentifyTemplate response %j', response);
|
|
734
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
735
|
+
}
|
|
736
|
+
: undefined;
|
|
737
|
+
return this.innerApiCalls
|
|
738
|
+
.updateDeidentifyTemplate(request, options, wrappedCallback)
|
|
739
|
+
?.then(([response, options, rawResponse]) => {
|
|
740
|
+
this._log.info('updateDeidentifyTemplate response %j', response);
|
|
741
|
+
return [response, options, rawResponse];
|
|
742
|
+
});
|
|
603
743
|
}
|
|
604
744
|
getDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
605
|
-
var _a;
|
|
606
745
|
request = request || {};
|
|
607
746
|
let options;
|
|
608
747
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -617,13 +756,24 @@ class DlpServiceClient {
|
|
|
617
756
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
618
757
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
619
758
|
this._gaxModule.routingHeader.fromParams({
|
|
620
|
-
name:
|
|
759
|
+
name: request.name ?? '',
|
|
621
760
|
});
|
|
622
761
|
this.initialize();
|
|
623
|
-
|
|
762
|
+
this._log.info('getDeidentifyTemplate request %j', request);
|
|
763
|
+
const wrappedCallback = callback
|
|
764
|
+
? (error, response, options, rawResponse) => {
|
|
765
|
+
this._log.info('getDeidentifyTemplate response %j', response);
|
|
766
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
767
|
+
}
|
|
768
|
+
: undefined;
|
|
769
|
+
return this.innerApiCalls
|
|
770
|
+
.getDeidentifyTemplate(request, options, wrappedCallback)
|
|
771
|
+
?.then(([response, options, rawResponse]) => {
|
|
772
|
+
this._log.info('getDeidentifyTemplate response %j', response);
|
|
773
|
+
return [response, options, rawResponse];
|
|
774
|
+
});
|
|
624
775
|
}
|
|
625
776
|
deleteDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
626
|
-
var _a;
|
|
627
777
|
request = request || {};
|
|
628
778
|
let options;
|
|
629
779
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -638,13 +788,24 @@ class DlpServiceClient {
|
|
|
638
788
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
639
789
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
640
790
|
this._gaxModule.routingHeader.fromParams({
|
|
641
|
-
name:
|
|
791
|
+
name: request.name ?? '',
|
|
642
792
|
});
|
|
643
793
|
this.initialize();
|
|
644
|
-
|
|
794
|
+
this._log.info('deleteDeidentifyTemplate request %j', request);
|
|
795
|
+
const wrappedCallback = callback
|
|
796
|
+
? (error, response, options, rawResponse) => {
|
|
797
|
+
this._log.info('deleteDeidentifyTemplate response %j', response);
|
|
798
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
799
|
+
}
|
|
800
|
+
: undefined;
|
|
801
|
+
return this.innerApiCalls
|
|
802
|
+
.deleteDeidentifyTemplate(request, options, wrappedCallback)
|
|
803
|
+
?.then(([response, options, rawResponse]) => {
|
|
804
|
+
this._log.info('deleteDeidentifyTemplate response %j', response);
|
|
805
|
+
return [response, options, rawResponse];
|
|
806
|
+
});
|
|
645
807
|
}
|
|
646
808
|
createJobTrigger(request, optionsOrCallback, callback) {
|
|
647
|
-
var _a;
|
|
648
809
|
request = request || {};
|
|
649
810
|
let options;
|
|
650
811
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -659,13 +820,24 @@ class DlpServiceClient {
|
|
|
659
820
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
660
821
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
661
822
|
this._gaxModule.routingHeader.fromParams({
|
|
662
|
-
parent:
|
|
823
|
+
parent: request.parent ?? '',
|
|
663
824
|
});
|
|
664
825
|
this.initialize();
|
|
665
|
-
|
|
826
|
+
this._log.info('createJobTrigger request %j', request);
|
|
827
|
+
const wrappedCallback = callback
|
|
828
|
+
? (error, response, options, rawResponse) => {
|
|
829
|
+
this._log.info('createJobTrigger response %j', response);
|
|
830
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
831
|
+
}
|
|
832
|
+
: undefined;
|
|
833
|
+
return this.innerApiCalls
|
|
834
|
+
.createJobTrigger(request, options, wrappedCallback)
|
|
835
|
+
?.then(([response, options, rawResponse]) => {
|
|
836
|
+
this._log.info('createJobTrigger response %j', response);
|
|
837
|
+
return [response, options, rawResponse];
|
|
838
|
+
});
|
|
666
839
|
}
|
|
667
840
|
updateJobTrigger(request, optionsOrCallback, callback) {
|
|
668
|
-
var _a;
|
|
669
841
|
request = request || {};
|
|
670
842
|
let options;
|
|
671
843
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -680,13 +852,24 @@ class DlpServiceClient {
|
|
|
680
852
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
681
853
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
682
854
|
this._gaxModule.routingHeader.fromParams({
|
|
683
|
-
name:
|
|
855
|
+
name: request.name ?? '',
|
|
684
856
|
});
|
|
685
857
|
this.initialize();
|
|
686
|
-
|
|
858
|
+
this._log.info('updateJobTrigger request %j', request);
|
|
859
|
+
const wrappedCallback = callback
|
|
860
|
+
? (error, response, options, rawResponse) => {
|
|
861
|
+
this._log.info('updateJobTrigger response %j', response);
|
|
862
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
863
|
+
}
|
|
864
|
+
: undefined;
|
|
865
|
+
return this.innerApiCalls
|
|
866
|
+
.updateJobTrigger(request, options, wrappedCallback)
|
|
867
|
+
?.then(([response, options, rawResponse]) => {
|
|
868
|
+
this._log.info('updateJobTrigger response %j', response);
|
|
869
|
+
return [response, options, rawResponse];
|
|
870
|
+
});
|
|
687
871
|
}
|
|
688
872
|
hybridInspectJobTrigger(request, optionsOrCallback, callback) {
|
|
689
|
-
var _a;
|
|
690
873
|
request = request || {};
|
|
691
874
|
let options;
|
|
692
875
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -701,13 +884,24 @@ class DlpServiceClient {
|
|
|
701
884
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
702
885
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
703
886
|
this._gaxModule.routingHeader.fromParams({
|
|
704
|
-
name:
|
|
887
|
+
name: request.name ?? '',
|
|
705
888
|
});
|
|
706
889
|
this.initialize();
|
|
707
|
-
|
|
890
|
+
this._log.info('hybridInspectJobTrigger request %j', request);
|
|
891
|
+
const wrappedCallback = callback
|
|
892
|
+
? (error, response, options, rawResponse) => {
|
|
893
|
+
this._log.info('hybridInspectJobTrigger response %j', response);
|
|
894
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
895
|
+
}
|
|
896
|
+
: undefined;
|
|
897
|
+
return this.innerApiCalls
|
|
898
|
+
.hybridInspectJobTrigger(request, options, wrappedCallback)
|
|
899
|
+
?.then(([response, options, rawResponse]) => {
|
|
900
|
+
this._log.info('hybridInspectJobTrigger response %j', response);
|
|
901
|
+
return [response, options, rawResponse];
|
|
902
|
+
});
|
|
708
903
|
}
|
|
709
904
|
getJobTrigger(request, optionsOrCallback, callback) {
|
|
710
|
-
var _a;
|
|
711
905
|
request = request || {};
|
|
712
906
|
let options;
|
|
713
907
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -722,13 +916,24 @@ class DlpServiceClient {
|
|
|
722
916
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
723
917
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
724
918
|
this._gaxModule.routingHeader.fromParams({
|
|
725
|
-
name:
|
|
919
|
+
name: request.name ?? '',
|
|
726
920
|
});
|
|
727
921
|
this.initialize();
|
|
728
|
-
|
|
922
|
+
this._log.info('getJobTrigger request %j', request);
|
|
923
|
+
const wrappedCallback = callback
|
|
924
|
+
? (error, response, options, rawResponse) => {
|
|
925
|
+
this._log.info('getJobTrigger response %j', response);
|
|
926
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
927
|
+
}
|
|
928
|
+
: undefined;
|
|
929
|
+
return this.innerApiCalls
|
|
930
|
+
.getJobTrigger(request, options, wrappedCallback)
|
|
931
|
+
?.then(([response, options, rawResponse]) => {
|
|
932
|
+
this._log.info('getJobTrigger response %j', response);
|
|
933
|
+
return [response, options, rawResponse];
|
|
934
|
+
});
|
|
729
935
|
}
|
|
730
936
|
deleteJobTrigger(request, optionsOrCallback, callback) {
|
|
731
|
-
var _a;
|
|
732
937
|
request = request || {};
|
|
733
938
|
let options;
|
|
734
939
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -743,13 +948,24 @@ class DlpServiceClient {
|
|
|
743
948
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
744
949
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
745
950
|
this._gaxModule.routingHeader.fromParams({
|
|
746
|
-
name:
|
|
951
|
+
name: request.name ?? '',
|
|
747
952
|
});
|
|
748
953
|
this.initialize();
|
|
749
|
-
|
|
954
|
+
this._log.info('deleteJobTrigger request %j', request);
|
|
955
|
+
const wrappedCallback = callback
|
|
956
|
+
? (error, response, options, rawResponse) => {
|
|
957
|
+
this._log.info('deleteJobTrigger response %j', response);
|
|
958
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
959
|
+
}
|
|
960
|
+
: undefined;
|
|
961
|
+
return this.innerApiCalls
|
|
962
|
+
.deleteJobTrigger(request, options, wrappedCallback)
|
|
963
|
+
?.then(([response, options, rawResponse]) => {
|
|
964
|
+
this._log.info('deleteJobTrigger response %j', response);
|
|
965
|
+
return [response, options, rawResponse];
|
|
966
|
+
});
|
|
750
967
|
}
|
|
751
968
|
activateJobTrigger(request, optionsOrCallback, callback) {
|
|
752
|
-
var _a;
|
|
753
969
|
request = request || {};
|
|
754
970
|
let options;
|
|
755
971
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -764,13 +980,24 @@ class DlpServiceClient {
|
|
|
764
980
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
765
981
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
766
982
|
this._gaxModule.routingHeader.fromParams({
|
|
767
|
-
name:
|
|
983
|
+
name: request.name ?? '',
|
|
768
984
|
});
|
|
769
985
|
this.initialize();
|
|
770
|
-
|
|
986
|
+
this._log.info('activateJobTrigger request %j', request);
|
|
987
|
+
const wrappedCallback = callback
|
|
988
|
+
? (error, response, options, rawResponse) => {
|
|
989
|
+
this._log.info('activateJobTrigger response %j', response);
|
|
990
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
991
|
+
}
|
|
992
|
+
: undefined;
|
|
993
|
+
return this.innerApiCalls
|
|
994
|
+
.activateJobTrigger(request, options, wrappedCallback)
|
|
995
|
+
?.then(([response, options, rawResponse]) => {
|
|
996
|
+
this._log.info('activateJobTrigger response %j', response);
|
|
997
|
+
return [response, options, rawResponse];
|
|
998
|
+
});
|
|
771
999
|
}
|
|
772
1000
|
createDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
773
|
-
var _a;
|
|
774
1001
|
request = request || {};
|
|
775
1002
|
let options;
|
|
776
1003
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -785,13 +1012,24 @@ class DlpServiceClient {
|
|
|
785
1012
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
786
1013
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
787
1014
|
this._gaxModule.routingHeader.fromParams({
|
|
788
|
-
parent:
|
|
1015
|
+
parent: request.parent ?? '',
|
|
789
1016
|
});
|
|
790
1017
|
this.initialize();
|
|
791
|
-
|
|
1018
|
+
this._log.info('createDiscoveryConfig request %j', request);
|
|
1019
|
+
const wrappedCallback = callback
|
|
1020
|
+
? (error, response, options, rawResponse) => {
|
|
1021
|
+
this._log.info('createDiscoveryConfig response %j', response);
|
|
1022
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1023
|
+
}
|
|
1024
|
+
: undefined;
|
|
1025
|
+
return this.innerApiCalls
|
|
1026
|
+
.createDiscoveryConfig(request, options, wrappedCallback)
|
|
1027
|
+
?.then(([response, options, rawResponse]) => {
|
|
1028
|
+
this._log.info('createDiscoveryConfig response %j', response);
|
|
1029
|
+
return [response, options, rawResponse];
|
|
1030
|
+
});
|
|
792
1031
|
}
|
|
793
1032
|
updateDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
794
|
-
var _a;
|
|
795
1033
|
request = request || {};
|
|
796
1034
|
let options;
|
|
797
1035
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -806,13 +1044,24 @@ class DlpServiceClient {
|
|
|
806
1044
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
807
1045
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
808
1046
|
this._gaxModule.routingHeader.fromParams({
|
|
809
|
-
name:
|
|
1047
|
+
name: request.name ?? '',
|
|
810
1048
|
});
|
|
811
1049
|
this.initialize();
|
|
812
|
-
|
|
1050
|
+
this._log.info('updateDiscoveryConfig request %j', request);
|
|
1051
|
+
const wrappedCallback = callback
|
|
1052
|
+
? (error, response, options, rawResponse) => {
|
|
1053
|
+
this._log.info('updateDiscoveryConfig response %j', response);
|
|
1054
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1055
|
+
}
|
|
1056
|
+
: undefined;
|
|
1057
|
+
return this.innerApiCalls
|
|
1058
|
+
.updateDiscoveryConfig(request, options, wrappedCallback)
|
|
1059
|
+
?.then(([response, options, rawResponse]) => {
|
|
1060
|
+
this._log.info('updateDiscoveryConfig response %j', response);
|
|
1061
|
+
return [response, options, rawResponse];
|
|
1062
|
+
});
|
|
813
1063
|
}
|
|
814
1064
|
getDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
815
|
-
var _a;
|
|
816
1065
|
request = request || {};
|
|
817
1066
|
let options;
|
|
818
1067
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -827,13 +1076,24 @@ class DlpServiceClient {
|
|
|
827
1076
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
828
1077
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
829
1078
|
this._gaxModule.routingHeader.fromParams({
|
|
830
|
-
name:
|
|
1079
|
+
name: request.name ?? '',
|
|
831
1080
|
});
|
|
832
1081
|
this.initialize();
|
|
833
|
-
|
|
1082
|
+
this._log.info('getDiscoveryConfig request %j', request);
|
|
1083
|
+
const wrappedCallback = callback
|
|
1084
|
+
? (error, response, options, rawResponse) => {
|
|
1085
|
+
this._log.info('getDiscoveryConfig response %j', response);
|
|
1086
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1087
|
+
}
|
|
1088
|
+
: undefined;
|
|
1089
|
+
return this.innerApiCalls
|
|
1090
|
+
.getDiscoveryConfig(request, options, wrappedCallback)
|
|
1091
|
+
?.then(([response, options, rawResponse]) => {
|
|
1092
|
+
this._log.info('getDiscoveryConfig response %j', response);
|
|
1093
|
+
return [response, options, rawResponse];
|
|
1094
|
+
});
|
|
834
1095
|
}
|
|
835
1096
|
deleteDiscoveryConfig(request, optionsOrCallback, callback) {
|
|
836
|
-
var _a;
|
|
837
1097
|
request = request || {};
|
|
838
1098
|
let options;
|
|
839
1099
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -848,13 +1108,24 @@ class DlpServiceClient {
|
|
|
848
1108
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
849
1109
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
850
1110
|
this._gaxModule.routingHeader.fromParams({
|
|
851
|
-
name:
|
|
1111
|
+
name: request.name ?? '',
|
|
852
1112
|
});
|
|
853
1113
|
this.initialize();
|
|
854
|
-
|
|
1114
|
+
this._log.info('deleteDiscoveryConfig request %j', request);
|
|
1115
|
+
const wrappedCallback = callback
|
|
1116
|
+
? (error, response, options, rawResponse) => {
|
|
1117
|
+
this._log.info('deleteDiscoveryConfig response %j', response);
|
|
1118
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1119
|
+
}
|
|
1120
|
+
: undefined;
|
|
1121
|
+
return this.innerApiCalls
|
|
1122
|
+
.deleteDiscoveryConfig(request, options, wrappedCallback)
|
|
1123
|
+
?.then(([response, options, rawResponse]) => {
|
|
1124
|
+
this._log.info('deleteDiscoveryConfig response %j', response);
|
|
1125
|
+
return [response, options, rawResponse];
|
|
1126
|
+
});
|
|
855
1127
|
}
|
|
856
1128
|
createDlpJob(request, optionsOrCallback, callback) {
|
|
857
|
-
var _a;
|
|
858
1129
|
request = request || {};
|
|
859
1130
|
let options;
|
|
860
1131
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -869,13 +1140,24 @@ class DlpServiceClient {
|
|
|
869
1140
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
870
1141
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
871
1142
|
this._gaxModule.routingHeader.fromParams({
|
|
872
|
-
parent:
|
|
1143
|
+
parent: request.parent ?? '',
|
|
873
1144
|
});
|
|
874
1145
|
this.initialize();
|
|
875
|
-
|
|
1146
|
+
this._log.info('createDlpJob request %j', request);
|
|
1147
|
+
const wrappedCallback = callback
|
|
1148
|
+
? (error, response, options, rawResponse) => {
|
|
1149
|
+
this._log.info('createDlpJob response %j', response);
|
|
1150
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1151
|
+
}
|
|
1152
|
+
: undefined;
|
|
1153
|
+
return this.innerApiCalls
|
|
1154
|
+
.createDlpJob(request, options, wrappedCallback)
|
|
1155
|
+
?.then(([response, options, rawResponse]) => {
|
|
1156
|
+
this._log.info('createDlpJob response %j', response);
|
|
1157
|
+
return [response, options, rawResponse];
|
|
1158
|
+
});
|
|
876
1159
|
}
|
|
877
1160
|
getDlpJob(request, optionsOrCallback, callback) {
|
|
878
|
-
var _a;
|
|
879
1161
|
request = request || {};
|
|
880
1162
|
let options;
|
|
881
1163
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -890,13 +1172,24 @@ class DlpServiceClient {
|
|
|
890
1172
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
891
1173
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
892
1174
|
this._gaxModule.routingHeader.fromParams({
|
|
893
|
-
name:
|
|
1175
|
+
name: request.name ?? '',
|
|
894
1176
|
});
|
|
895
1177
|
this.initialize();
|
|
896
|
-
|
|
1178
|
+
this._log.info('getDlpJob request %j', request);
|
|
1179
|
+
const wrappedCallback = callback
|
|
1180
|
+
? (error, response, options, rawResponse) => {
|
|
1181
|
+
this._log.info('getDlpJob response %j', response);
|
|
1182
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1183
|
+
}
|
|
1184
|
+
: undefined;
|
|
1185
|
+
return this.innerApiCalls
|
|
1186
|
+
.getDlpJob(request, options, wrappedCallback)
|
|
1187
|
+
?.then(([response, options, rawResponse]) => {
|
|
1188
|
+
this._log.info('getDlpJob response %j', response);
|
|
1189
|
+
return [response, options, rawResponse];
|
|
1190
|
+
});
|
|
897
1191
|
}
|
|
898
1192
|
deleteDlpJob(request, optionsOrCallback, callback) {
|
|
899
|
-
var _a;
|
|
900
1193
|
request = request || {};
|
|
901
1194
|
let options;
|
|
902
1195
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -911,13 +1204,24 @@ class DlpServiceClient {
|
|
|
911
1204
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
912
1205
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
913
1206
|
this._gaxModule.routingHeader.fromParams({
|
|
914
|
-
name:
|
|
1207
|
+
name: request.name ?? '',
|
|
915
1208
|
});
|
|
916
1209
|
this.initialize();
|
|
917
|
-
|
|
1210
|
+
this._log.info('deleteDlpJob request %j', request);
|
|
1211
|
+
const wrappedCallback = callback
|
|
1212
|
+
? (error, response, options, rawResponse) => {
|
|
1213
|
+
this._log.info('deleteDlpJob response %j', response);
|
|
1214
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1215
|
+
}
|
|
1216
|
+
: undefined;
|
|
1217
|
+
return this.innerApiCalls
|
|
1218
|
+
.deleteDlpJob(request, options, wrappedCallback)
|
|
1219
|
+
?.then(([response, options, rawResponse]) => {
|
|
1220
|
+
this._log.info('deleteDlpJob response %j', response);
|
|
1221
|
+
return [response, options, rawResponse];
|
|
1222
|
+
});
|
|
918
1223
|
}
|
|
919
1224
|
cancelDlpJob(request, optionsOrCallback, callback) {
|
|
920
|
-
var _a;
|
|
921
1225
|
request = request || {};
|
|
922
1226
|
let options;
|
|
923
1227
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -932,13 +1236,24 @@ class DlpServiceClient {
|
|
|
932
1236
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
933
1237
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
934
1238
|
this._gaxModule.routingHeader.fromParams({
|
|
935
|
-
name:
|
|
1239
|
+
name: request.name ?? '',
|
|
936
1240
|
});
|
|
937
1241
|
this.initialize();
|
|
938
|
-
|
|
1242
|
+
this._log.info('cancelDlpJob request %j', request);
|
|
1243
|
+
const wrappedCallback = callback
|
|
1244
|
+
? (error, response, options, rawResponse) => {
|
|
1245
|
+
this._log.info('cancelDlpJob response %j', response);
|
|
1246
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1247
|
+
}
|
|
1248
|
+
: undefined;
|
|
1249
|
+
return this.innerApiCalls
|
|
1250
|
+
.cancelDlpJob(request, options, wrappedCallback)
|
|
1251
|
+
?.then(([response, options, rawResponse]) => {
|
|
1252
|
+
this._log.info('cancelDlpJob response %j', response);
|
|
1253
|
+
return [response, options, rawResponse];
|
|
1254
|
+
});
|
|
939
1255
|
}
|
|
940
1256
|
createStoredInfoType(request, optionsOrCallback, callback) {
|
|
941
|
-
var _a;
|
|
942
1257
|
request = request || {};
|
|
943
1258
|
let options;
|
|
944
1259
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -953,13 +1268,24 @@ class DlpServiceClient {
|
|
|
953
1268
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
954
1269
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
955
1270
|
this._gaxModule.routingHeader.fromParams({
|
|
956
|
-
parent:
|
|
1271
|
+
parent: request.parent ?? '',
|
|
957
1272
|
});
|
|
958
1273
|
this.initialize();
|
|
959
|
-
|
|
1274
|
+
this._log.info('createStoredInfoType request %j', request);
|
|
1275
|
+
const wrappedCallback = callback
|
|
1276
|
+
? (error, response, options, rawResponse) => {
|
|
1277
|
+
this._log.info('createStoredInfoType response %j', response);
|
|
1278
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1279
|
+
}
|
|
1280
|
+
: undefined;
|
|
1281
|
+
return this.innerApiCalls
|
|
1282
|
+
.createStoredInfoType(request, options, wrappedCallback)
|
|
1283
|
+
?.then(([response, options, rawResponse]) => {
|
|
1284
|
+
this._log.info('createStoredInfoType response %j', response);
|
|
1285
|
+
return [response, options, rawResponse];
|
|
1286
|
+
});
|
|
960
1287
|
}
|
|
961
1288
|
updateStoredInfoType(request, optionsOrCallback, callback) {
|
|
962
|
-
var _a;
|
|
963
1289
|
request = request || {};
|
|
964
1290
|
let options;
|
|
965
1291
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -974,13 +1300,24 @@ class DlpServiceClient {
|
|
|
974
1300
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
975
1301
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
976
1302
|
this._gaxModule.routingHeader.fromParams({
|
|
977
|
-
name:
|
|
1303
|
+
name: request.name ?? '',
|
|
978
1304
|
});
|
|
979
1305
|
this.initialize();
|
|
980
|
-
|
|
1306
|
+
this._log.info('updateStoredInfoType request %j', request);
|
|
1307
|
+
const wrappedCallback = callback
|
|
1308
|
+
? (error, response, options, rawResponse) => {
|
|
1309
|
+
this._log.info('updateStoredInfoType response %j', response);
|
|
1310
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1311
|
+
}
|
|
1312
|
+
: undefined;
|
|
1313
|
+
return this.innerApiCalls
|
|
1314
|
+
.updateStoredInfoType(request, options, wrappedCallback)
|
|
1315
|
+
?.then(([response, options, rawResponse]) => {
|
|
1316
|
+
this._log.info('updateStoredInfoType response %j', response);
|
|
1317
|
+
return [response, options, rawResponse];
|
|
1318
|
+
});
|
|
981
1319
|
}
|
|
982
1320
|
getStoredInfoType(request, optionsOrCallback, callback) {
|
|
983
|
-
var _a;
|
|
984
1321
|
request = request || {};
|
|
985
1322
|
let options;
|
|
986
1323
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -995,13 +1332,24 @@ class DlpServiceClient {
|
|
|
995
1332
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
996
1333
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
997
1334
|
this._gaxModule.routingHeader.fromParams({
|
|
998
|
-
name:
|
|
1335
|
+
name: request.name ?? '',
|
|
999
1336
|
});
|
|
1000
1337
|
this.initialize();
|
|
1001
|
-
|
|
1338
|
+
this._log.info('getStoredInfoType request %j', request);
|
|
1339
|
+
const wrappedCallback = callback
|
|
1340
|
+
? (error, response, options, rawResponse) => {
|
|
1341
|
+
this._log.info('getStoredInfoType response %j', response);
|
|
1342
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1343
|
+
}
|
|
1344
|
+
: undefined;
|
|
1345
|
+
return this.innerApiCalls
|
|
1346
|
+
.getStoredInfoType(request, options, wrappedCallback)
|
|
1347
|
+
?.then(([response, options, rawResponse]) => {
|
|
1348
|
+
this._log.info('getStoredInfoType response %j', response);
|
|
1349
|
+
return [response, options, rawResponse];
|
|
1350
|
+
});
|
|
1002
1351
|
}
|
|
1003
1352
|
deleteStoredInfoType(request, optionsOrCallback, callback) {
|
|
1004
|
-
var _a;
|
|
1005
1353
|
request = request || {};
|
|
1006
1354
|
let options;
|
|
1007
1355
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1016,13 +1364,24 @@ class DlpServiceClient {
|
|
|
1016
1364
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1017
1365
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1018
1366
|
this._gaxModule.routingHeader.fromParams({
|
|
1019
|
-
name:
|
|
1367
|
+
name: request.name ?? '',
|
|
1020
1368
|
});
|
|
1021
1369
|
this.initialize();
|
|
1022
|
-
|
|
1370
|
+
this._log.info('deleteStoredInfoType request %j', request);
|
|
1371
|
+
const wrappedCallback = callback
|
|
1372
|
+
? (error, response, options, rawResponse) => {
|
|
1373
|
+
this._log.info('deleteStoredInfoType response %j', response);
|
|
1374
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1375
|
+
}
|
|
1376
|
+
: undefined;
|
|
1377
|
+
return this.innerApiCalls
|
|
1378
|
+
.deleteStoredInfoType(request, options, wrappedCallback)
|
|
1379
|
+
?.then(([response, options, rawResponse]) => {
|
|
1380
|
+
this._log.info('deleteStoredInfoType response %j', response);
|
|
1381
|
+
return [response, options, rawResponse];
|
|
1382
|
+
});
|
|
1023
1383
|
}
|
|
1024
1384
|
getProjectDataProfile(request, optionsOrCallback, callback) {
|
|
1025
|
-
var _a;
|
|
1026
1385
|
request = request || {};
|
|
1027
1386
|
let options;
|
|
1028
1387
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1037,13 +1396,24 @@ class DlpServiceClient {
|
|
|
1037
1396
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1038
1397
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1039
1398
|
this._gaxModule.routingHeader.fromParams({
|
|
1040
|
-
name:
|
|
1399
|
+
name: request.name ?? '',
|
|
1041
1400
|
});
|
|
1042
1401
|
this.initialize();
|
|
1043
|
-
|
|
1402
|
+
this._log.info('getProjectDataProfile request %j', request);
|
|
1403
|
+
const wrappedCallback = callback
|
|
1404
|
+
? (error, response, options, rawResponse) => {
|
|
1405
|
+
this._log.info('getProjectDataProfile response %j', response);
|
|
1406
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1407
|
+
}
|
|
1408
|
+
: undefined;
|
|
1409
|
+
return this.innerApiCalls
|
|
1410
|
+
.getProjectDataProfile(request, options, wrappedCallback)
|
|
1411
|
+
?.then(([response, options, rawResponse]) => {
|
|
1412
|
+
this._log.info('getProjectDataProfile response %j', response);
|
|
1413
|
+
return [response, options, rawResponse];
|
|
1414
|
+
});
|
|
1044
1415
|
}
|
|
1045
1416
|
getFileStoreDataProfile(request, optionsOrCallback, callback) {
|
|
1046
|
-
var _a;
|
|
1047
1417
|
request = request || {};
|
|
1048
1418
|
let options;
|
|
1049
1419
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1058,13 +1428,24 @@ class DlpServiceClient {
|
|
|
1058
1428
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1059
1429
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1060
1430
|
this._gaxModule.routingHeader.fromParams({
|
|
1061
|
-
name:
|
|
1431
|
+
name: request.name ?? '',
|
|
1062
1432
|
});
|
|
1063
1433
|
this.initialize();
|
|
1064
|
-
|
|
1434
|
+
this._log.info('getFileStoreDataProfile request %j', request);
|
|
1435
|
+
const wrappedCallback = callback
|
|
1436
|
+
? (error, response, options, rawResponse) => {
|
|
1437
|
+
this._log.info('getFileStoreDataProfile response %j', response);
|
|
1438
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1439
|
+
}
|
|
1440
|
+
: undefined;
|
|
1441
|
+
return this.innerApiCalls
|
|
1442
|
+
.getFileStoreDataProfile(request, options, wrappedCallback)
|
|
1443
|
+
?.then(([response, options, rawResponse]) => {
|
|
1444
|
+
this._log.info('getFileStoreDataProfile response %j', response);
|
|
1445
|
+
return [response, options, rawResponse];
|
|
1446
|
+
});
|
|
1065
1447
|
}
|
|
1066
1448
|
deleteFileStoreDataProfile(request, optionsOrCallback, callback) {
|
|
1067
|
-
var _a;
|
|
1068
1449
|
request = request || {};
|
|
1069
1450
|
let options;
|
|
1070
1451
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1079,13 +1460,24 @@ class DlpServiceClient {
|
|
|
1079
1460
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1080
1461
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1081
1462
|
this._gaxModule.routingHeader.fromParams({
|
|
1082
|
-
name:
|
|
1463
|
+
name: request.name ?? '',
|
|
1083
1464
|
});
|
|
1084
1465
|
this.initialize();
|
|
1085
|
-
|
|
1466
|
+
this._log.info('deleteFileStoreDataProfile request %j', request);
|
|
1467
|
+
const wrappedCallback = callback
|
|
1468
|
+
? (error, response, options, rawResponse) => {
|
|
1469
|
+
this._log.info('deleteFileStoreDataProfile response %j', response);
|
|
1470
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1471
|
+
}
|
|
1472
|
+
: undefined;
|
|
1473
|
+
return this.innerApiCalls
|
|
1474
|
+
.deleteFileStoreDataProfile(request, options, wrappedCallback)
|
|
1475
|
+
?.then(([response, options, rawResponse]) => {
|
|
1476
|
+
this._log.info('deleteFileStoreDataProfile response %j', response);
|
|
1477
|
+
return [response, options, rawResponse];
|
|
1478
|
+
});
|
|
1086
1479
|
}
|
|
1087
1480
|
getTableDataProfile(request, optionsOrCallback, callback) {
|
|
1088
|
-
var _a;
|
|
1089
1481
|
request = request || {};
|
|
1090
1482
|
let options;
|
|
1091
1483
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1100,13 +1492,24 @@ class DlpServiceClient {
|
|
|
1100
1492
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1101
1493
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1102
1494
|
this._gaxModule.routingHeader.fromParams({
|
|
1103
|
-
name:
|
|
1495
|
+
name: request.name ?? '',
|
|
1104
1496
|
});
|
|
1105
1497
|
this.initialize();
|
|
1106
|
-
|
|
1498
|
+
this._log.info('getTableDataProfile request %j', request);
|
|
1499
|
+
const wrappedCallback = callback
|
|
1500
|
+
? (error, response, options, rawResponse) => {
|
|
1501
|
+
this._log.info('getTableDataProfile response %j', response);
|
|
1502
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1503
|
+
}
|
|
1504
|
+
: undefined;
|
|
1505
|
+
return this.innerApiCalls
|
|
1506
|
+
.getTableDataProfile(request, options, wrappedCallback)
|
|
1507
|
+
?.then(([response, options, rawResponse]) => {
|
|
1508
|
+
this._log.info('getTableDataProfile response %j', response);
|
|
1509
|
+
return [response, options, rawResponse];
|
|
1510
|
+
});
|
|
1107
1511
|
}
|
|
1108
1512
|
getColumnDataProfile(request, optionsOrCallback, callback) {
|
|
1109
|
-
var _a;
|
|
1110
1513
|
request = request || {};
|
|
1111
1514
|
let options;
|
|
1112
1515
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1121,13 +1524,24 @@ class DlpServiceClient {
|
|
|
1121
1524
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1122
1525
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1123
1526
|
this._gaxModule.routingHeader.fromParams({
|
|
1124
|
-
name:
|
|
1527
|
+
name: request.name ?? '',
|
|
1125
1528
|
});
|
|
1126
1529
|
this.initialize();
|
|
1127
|
-
|
|
1530
|
+
this._log.info('getColumnDataProfile request %j', request);
|
|
1531
|
+
const wrappedCallback = callback
|
|
1532
|
+
? (error, response, options, rawResponse) => {
|
|
1533
|
+
this._log.info('getColumnDataProfile response %j', response);
|
|
1534
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1535
|
+
}
|
|
1536
|
+
: undefined;
|
|
1537
|
+
return this.innerApiCalls
|
|
1538
|
+
.getColumnDataProfile(request, options, wrappedCallback)
|
|
1539
|
+
?.then(([response, options, rawResponse]) => {
|
|
1540
|
+
this._log.info('getColumnDataProfile response %j', response);
|
|
1541
|
+
return [response, options, rawResponse];
|
|
1542
|
+
});
|
|
1128
1543
|
}
|
|
1129
1544
|
deleteTableDataProfile(request, optionsOrCallback, callback) {
|
|
1130
|
-
var _a;
|
|
1131
1545
|
request = request || {};
|
|
1132
1546
|
let options;
|
|
1133
1547
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1142,13 +1556,24 @@ class DlpServiceClient {
|
|
|
1142
1556
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1143
1557
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1144
1558
|
this._gaxModule.routingHeader.fromParams({
|
|
1145
|
-
name:
|
|
1559
|
+
name: request.name ?? '',
|
|
1146
1560
|
});
|
|
1147
1561
|
this.initialize();
|
|
1148
|
-
|
|
1562
|
+
this._log.info('deleteTableDataProfile request %j', request);
|
|
1563
|
+
const wrappedCallback = callback
|
|
1564
|
+
? (error, response, options, rawResponse) => {
|
|
1565
|
+
this._log.info('deleteTableDataProfile response %j', response);
|
|
1566
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1567
|
+
}
|
|
1568
|
+
: undefined;
|
|
1569
|
+
return this.innerApiCalls
|
|
1570
|
+
.deleteTableDataProfile(request, options, wrappedCallback)
|
|
1571
|
+
?.then(([response, options, rawResponse]) => {
|
|
1572
|
+
this._log.info('deleteTableDataProfile response %j', response);
|
|
1573
|
+
return [response, options, rawResponse];
|
|
1574
|
+
});
|
|
1149
1575
|
}
|
|
1150
1576
|
hybridInspectDlpJob(request, optionsOrCallback, callback) {
|
|
1151
|
-
var _a;
|
|
1152
1577
|
request = request || {};
|
|
1153
1578
|
let options;
|
|
1154
1579
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1163,13 +1588,24 @@ class DlpServiceClient {
|
|
|
1163
1588
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1164
1589
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1165
1590
|
this._gaxModule.routingHeader.fromParams({
|
|
1166
|
-
name:
|
|
1591
|
+
name: request.name ?? '',
|
|
1167
1592
|
});
|
|
1168
1593
|
this.initialize();
|
|
1169
|
-
|
|
1594
|
+
this._log.info('hybridInspectDlpJob request %j', request);
|
|
1595
|
+
const wrappedCallback = callback
|
|
1596
|
+
? (error, response, options, rawResponse) => {
|
|
1597
|
+
this._log.info('hybridInspectDlpJob response %j', response);
|
|
1598
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1599
|
+
}
|
|
1600
|
+
: undefined;
|
|
1601
|
+
return this.innerApiCalls
|
|
1602
|
+
.hybridInspectDlpJob(request, options, wrappedCallback)
|
|
1603
|
+
?.then(([response, options, rawResponse]) => {
|
|
1604
|
+
this._log.info('hybridInspectDlpJob response %j', response);
|
|
1605
|
+
return [response, options, rawResponse];
|
|
1606
|
+
});
|
|
1170
1607
|
}
|
|
1171
1608
|
finishDlpJob(request, optionsOrCallback, callback) {
|
|
1172
|
-
var _a;
|
|
1173
1609
|
request = request || {};
|
|
1174
1610
|
let options;
|
|
1175
1611
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1184,13 +1620,24 @@ class DlpServiceClient {
|
|
|
1184
1620
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1185
1621
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1186
1622
|
this._gaxModule.routingHeader.fromParams({
|
|
1187
|
-
name:
|
|
1623
|
+
name: request.name ?? '',
|
|
1188
1624
|
});
|
|
1189
1625
|
this.initialize();
|
|
1190
|
-
|
|
1626
|
+
this._log.info('finishDlpJob request %j', request);
|
|
1627
|
+
const wrappedCallback = callback
|
|
1628
|
+
? (error, response, options, rawResponse) => {
|
|
1629
|
+
this._log.info('finishDlpJob response %j', response);
|
|
1630
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1631
|
+
}
|
|
1632
|
+
: undefined;
|
|
1633
|
+
return this.innerApiCalls
|
|
1634
|
+
.finishDlpJob(request, options, wrappedCallback)
|
|
1635
|
+
?.then(([response, options, rawResponse]) => {
|
|
1636
|
+
this._log.info('finishDlpJob response %j', response);
|
|
1637
|
+
return [response, options, rawResponse];
|
|
1638
|
+
});
|
|
1191
1639
|
}
|
|
1192
1640
|
createConnection(request, optionsOrCallback, callback) {
|
|
1193
|
-
var _a;
|
|
1194
1641
|
request = request || {};
|
|
1195
1642
|
let options;
|
|
1196
1643
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1205,13 +1652,24 @@ class DlpServiceClient {
|
|
|
1205
1652
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1206
1653
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1207
1654
|
this._gaxModule.routingHeader.fromParams({
|
|
1208
|
-
parent:
|
|
1655
|
+
parent: request.parent ?? '',
|
|
1209
1656
|
});
|
|
1210
1657
|
this.initialize();
|
|
1211
|
-
|
|
1658
|
+
this._log.info('createConnection request %j', request);
|
|
1659
|
+
const wrappedCallback = callback
|
|
1660
|
+
? (error, response, options, rawResponse) => {
|
|
1661
|
+
this._log.info('createConnection response %j', response);
|
|
1662
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1663
|
+
}
|
|
1664
|
+
: undefined;
|
|
1665
|
+
return this.innerApiCalls
|
|
1666
|
+
.createConnection(request, options, wrappedCallback)
|
|
1667
|
+
?.then(([response, options, rawResponse]) => {
|
|
1668
|
+
this._log.info('createConnection response %j', response);
|
|
1669
|
+
return [response, options, rawResponse];
|
|
1670
|
+
});
|
|
1212
1671
|
}
|
|
1213
1672
|
getConnection(request, optionsOrCallback, callback) {
|
|
1214
|
-
var _a;
|
|
1215
1673
|
request = request || {};
|
|
1216
1674
|
let options;
|
|
1217
1675
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1226,13 +1684,24 @@ class DlpServiceClient {
|
|
|
1226
1684
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1227
1685
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1228
1686
|
this._gaxModule.routingHeader.fromParams({
|
|
1229
|
-
name:
|
|
1687
|
+
name: request.name ?? '',
|
|
1230
1688
|
});
|
|
1231
1689
|
this.initialize();
|
|
1232
|
-
|
|
1690
|
+
this._log.info('getConnection request %j', request);
|
|
1691
|
+
const wrappedCallback = callback
|
|
1692
|
+
? (error, response, options, rawResponse) => {
|
|
1693
|
+
this._log.info('getConnection response %j', response);
|
|
1694
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1695
|
+
}
|
|
1696
|
+
: undefined;
|
|
1697
|
+
return this.innerApiCalls
|
|
1698
|
+
.getConnection(request, options, wrappedCallback)
|
|
1699
|
+
?.then(([response, options, rawResponse]) => {
|
|
1700
|
+
this._log.info('getConnection response %j', response);
|
|
1701
|
+
return [response, options, rawResponse];
|
|
1702
|
+
});
|
|
1233
1703
|
}
|
|
1234
1704
|
deleteConnection(request, optionsOrCallback, callback) {
|
|
1235
|
-
var _a;
|
|
1236
1705
|
request = request || {};
|
|
1237
1706
|
let options;
|
|
1238
1707
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1247,13 +1716,24 @@ class DlpServiceClient {
|
|
|
1247
1716
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1248
1717
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1249
1718
|
this._gaxModule.routingHeader.fromParams({
|
|
1250
|
-
name:
|
|
1719
|
+
name: request.name ?? '',
|
|
1251
1720
|
});
|
|
1252
1721
|
this.initialize();
|
|
1253
|
-
|
|
1722
|
+
this._log.info('deleteConnection request %j', request);
|
|
1723
|
+
const wrappedCallback = callback
|
|
1724
|
+
? (error, response, options, rawResponse) => {
|
|
1725
|
+
this._log.info('deleteConnection response %j', response);
|
|
1726
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1727
|
+
}
|
|
1728
|
+
: undefined;
|
|
1729
|
+
return this.innerApiCalls
|
|
1730
|
+
.deleteConnection(request, options, wrappedCallback)
|
|
1731
|
+
?.then(([response, options, rawResponse]) => {
|
|
1732
|
+
this._log.info('deleteConnection response %j', response);
|
|
1733
|
+
return [response, options, rawResponse];
|
|
1734
|
+
});
|
|
1254
1735
|
}
|
|
1255
1736
|
updateConnection(request, optionsOrCallback, callback) {
|
|
1256
|
-
var _a;
|
|
1257
1737
|
request = request || {};
|
|
1258
1738
|
let options;
|
|
1259
1739
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1268,13 +1748,24 @@ class DlpServiceClient {
|
|
|
1268
1748
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1269
1749
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1270
1750
|
this._gaxModule.routingHeader.fromParams({
|
|
1271
|
-
name:
|
|
1751
|
+
name: request.name ?? '',
|
|
1272
1752
|
});
|
|
1273
1753
|
this.initialize();
|
|
1274
|
-
|
|
1754
|
+
this._log.info('updateConnection request %j', request);
|
|
1755
|
+
const wrappedCallback = callback
|
|
1756
|
+
? (error, response, options, rawResponse) => {
|
|
1757
|
+
this._log.info('updateConnection response %j', response);
|
|
1758
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
1759
|
+
}
|
|
1760
|
+
: undefined;
|
|
1761
|
+
return this.innerApiCalls
|
|
1762
|
+
.updateConnection(request, options, wrappedCallback)
|
|
1763
|
+
?.then(([response, options, rawResponse]) => {
|
|
1764
|
+
this._log.info('updateConnection response %j', response);
|
|
1765
|
+
return [response, options, rawResponse];
|
|
1766
|
+
});
|
|
1275
1767
|
}
|
|
1276
1768
|
listInspectTemplates(request, optionsOrCallback, callback) {
|
|
1277
|
-
var _a;
|
|
1278
1769
|
request = request || {};
|
|
1279
1770
|
let options;
|
|
1280
1771
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1289,10 +1780,22 @@ class DlpServiceClient {
|
|
|
1289
1780
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1290
1781
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1291
1782
|
this._gaxModule.routingHeader.fromParams({
|
|
1292
|
-
parent:
|
|
1783
|
+
parent: request.parent ?? '',
|
|
1293
1784
|
});
|
|
1294
1785
|
this.initialize();
|
|
1295
|
-
|
|
1786
|
+
const wrappedCallback = callback
|
|
1787
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
1788
|
+
this._log.info('listInspectTemplates values %j', values);
|
|
1789
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
1790
|
+
}
|
|
1791
|
+
: undefined;
|
|
1792
|
+
this._log.info('listInspectTemplates request %j', request);
|
|
1793
|
+
return this.innerApiCalls
|
|
1794
|
+
.listInspectTemplates(request, options, wrappedCallback)
|
|
1795
|
+
?.then(([response, input, output]) => {
|
|
1796
|
+
this._log.info('listInspectTemplates values %j', response);
|
|
1797
|
+
return [response, input, output];
|
|
1798
|
+
});
|
|
1296
1799
|
}
|
|
1297
1800
|
/**
|
|
1298
1801
|
* Equivalent to `listInspectTemplates`, but returns a NodeJS Stream object.
|
|
@@ -1353,18 +1856,18 @@ class DlpServiceClient {
|
|
|
1353
1856
|
* for more details and examples.
|
|
1354
1857
|
*/
|
|
1355
1858
|
listInspectTemplatesStream(request, options) {
|
|
1356
|
-
var _a;
|
|
1357
1859
|
request = request || {};
|
|
1358
1860
|
options = options || {};
|
|
1359
1861
|
options.otherArgs = options.otherArgs || {};
|
|
1360
1862
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1361
1863
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1362
1864
|
this._gaxModule.routingHeader.fromParams({
|
|
1363
|
-
parent:
|
|
1865
|
+
parent: request.parent ?? '',
|
|
1364
1866
|
});
|
|
1365
1867
|
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
1366
1868
|
const callSettings = defaultCallSettings.merge(options);
|
|
1367
1869
|
this.initialize();
|
|
1870
|
+
this._log.info('listInspectTemplates stream %j', request);
|
|
1368
1871
|
return this.descriptors.page.listInspectTemplates.createStream(this.innerApiCalls.listInspectTemplates, request, callSettings);
|
|
1369
1872
|
}
|
|
1370
1873
|
/**
|
|
@@ -1429,22 +1932,21 @@ class DlpServiceClient {
|
|
|
1429
1932
|
* region_tag:dlp_v2_generated_DlpService_ListInspectTemplates_async
|
|
1430
1933
|
*/
|
|
1431
1934
|
listInspectTemplatesAsync(request, options) {
|
|
1432
|
-
var _a;
|
|
1433
1935
|
request = request || {};
|
|
1434
1936
|
options = options || {};
|
|
1435
1937
|
options.otherArgs = options.otherArgs || {};
|
|
1436
1938
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1437
1939
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1438
1940
|
this._gaxModule.routingHeader.fromParams({
|
|
1439
|
-
parent:
|
|
1941
|
+
parent: request.parent ?? '',
|
|
1440
1942
|
});
|
|
1441
1943
|
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
1442
1944
|
const callSettings = defaultCallSettings.merge(options);
|
|
1443
1945
|
this.initialize();
|
|
1946
|
+
this._log.info('listInspectTemplates iterate %j', request);
|
|
1444
1947
|
return this.descriptors.page.listInspectTemplates.asyncIterate(this.innerApiCalls['listInspectTemplates'], request, callSettings);
|
|
1445
1948
|
}
|
|
1446
1949
|
listDeidentifyTemplates(request, optionsOrCallback, callback) {
|
|
1447
|
-
var _a;
|
|
1448
1950
|
request = request || {};
|
|
1449
1951
|
let options;
|
|
1450
1952
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1459,10 +1961,22 @@ class DlpServiceClient {
|
|
|
1459
1961
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1460
1962
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1461
1963
|
this._gaxModule.routingHeader.fromParams({
|
|
1462
|
-
parent:
|
|
1964
|
+
parent: request.parent ?? '',
|
|
1463
1965
|
});
|
|
1464
1966
|
this.initialize();
|
|
1465
|
-
|
|
1967
|
+
const wrappedCallback = callback
|
|
1968
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
1969
|
+
this._log.info('listDeidentifyTemplates values %j', values);
|
|
1970
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
1971
|
+
}
|
|
1972
|
+
: undefined;
|
|
1973
|
+
this._log.info('listDeidentifyTemplates request %j', request);
|
|
1974
|
+
return this.innerApiCalls
|
|
1975
|
+
.listDeidentifyTemplates(request, options, wrappedCallback)
|
|
1976
|
+
?.then(([response, input, output]) => {
|
|
1977
|
+
this._log.info('listDeidentifyTemplates values %j', response);
|
|
1978
|
+
return [response, input, output];
|
|
1979
|
+
});
|
|
1466
1980
|
}
|
|
1467
1981
|
/**
|
|
1468
1982
|
* Equivalent to `listDeidentifyTemplates`, but returns a NodeJS Stream object.
|
|
@@ -1523,18 +2037,18 @@ class DlpServiceClient {
|
|
|
1523
2037
|
* for more details and examples.
|
|
1524
2038
|
*/
|
|
1525
2039
|
listDeidentifyTemplatesStream(request, options) {
|
|
1526
|
-
var _a;
|
|
1527
2040
|
request = request || {};
|
|
1528
2041
|
options = options || {};
|
|
1529
2042
|
options.otherArgs = options.otherArgs || {};
|
|
1530
2043
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1531
2044
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1532
2045
|
this._gaxModule.routingHeader.fromParams({
|
|
1533
|
-
parent:
|
|
2046
|
+
parent: request.parent ?? '',
|
|
1534
2047
|
});
|
|
1535
2048
|
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
1536
2049
|
const callSettings = defaultCallSettings.merge(options);
|
|
1537
2050
|
this.initialize();
|
|
2051
|
+
this._log.info('listDeidentifyTemplates stream %j', request);
|
|
1538
2052
|
return this.descriptors.page.listDeidentifyTemplates.createStream(this.innerApiCalls.listDeidentifyTemplates, request, callSettings);
|
|
1539
2053
|
}
|
|
1540
2054
|
/**
|
|
@@ -1599,22 +2113,21 @@ class DlpServiceClient {
|
|
|
1599
2113
|
* region_tag:dlp_v2_generated_DlpService_ListDeidentifyTemplates_async
|
|
1600
2114
|
*/
|
|
1601
2115
|
listDeidentifyTemplatesAsync(request, options) {
|
|
1602
|
-
var _a;
|
|
1603
2116
|
request = request || {};
|
|
1604
2117
|
options = options || {};
|
|
1605
2118
|
options.otherArgs = options.otherArgs || {};
|
|
1606
2119
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1607
2120
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1608
2121
|
this._gaxModule.routingHeader.fromParams({
|
|
1609
|
-
parent:
|
|
2122
|
+
parent: request.parent ?? '',
|
|
1610
2123
|
});
|
|
1611
2124
|
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
1612
2125
|
const callSettings = defaultCallSettings.merge(options);
|
|
1613
2126
|
this.initialize();
|
|
2127
|
+
this._log.info('listDeidentifyTemplates iterate %j', request);
|
|
1614
2128
|
return this.descriptors.page.listDeidentifyTemplates.asyncIterate(this.innerApiCalls['listDeidentifyTemplates'], request, callSettings);
|
|
1615
2129
|
}
|
|
1616
2130
|
listJobTriggers(request, optionsOrCallback, callback) {
|
|
1617
|
-
var _a;
|
|
1618
2131
|
request = request || {};
|
|
1619
2132
|
let options;
|
|
1620
2133
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1629,10 +2142,22 @@ class DlpServiceClient {
|
|
|
1629
2142
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1630
2143
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1631
2144
|
this._gaxModule.routingHeader.fromParams({
|
|
1632
|
-
parent:
|
|
2145
|
+
parent: request.parent ?? '',
|
|
1633
2146
|
});
|
|
1634
2147
|
this.initialize();
|
|
1635
|
-
|
|
2148
|
+
const wrappedCallback = callback
|
|
2149
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2150
|
+
this._log.info('listJobTriggers values %j', values);
|
|
2151
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2152
|
+
}
|
|
2153
|
+
: undefined;
|
|
2154
|
+
this._log.info('listJobTriggers request %j', request);
|
|
2155
|
+
return this.innerApiCalls
|
|
2156
|
+
.listJobTriggers(request, options, wrappedCallback)
|
|
2157
|
+
?.then(([response, input, output]) => {
|
|
2158
|
+
this._log.info('listJobTriggers values %j', response);
|
|
2159
|
+
return [response, input, output];
|
|
2160
|
+
});
|
|
1636
2161
|
}
|
|
1637
2162
|
/**
|
|
1638
2163
|
* Equivalent to `listJobTriggers`, but returns a NodeJS Stream object.
|
|
@@ -1718,18 +2243,18 @@ class DlpServiceClient {
|
|
|
1718
2243
|
* for more details and examples.
|
|
1719
2244
|
*/
|
|
1720
2245
|
listJobTriggersStream(request, options) {
|
|
1721
|
-
var _a;
|
|
1722
2246
|
request = request || {};
|
|
1723
2247
|
options = options || {};
|
|
1724
2248
|
options.otherArgs = options.otherArgs || {};
|
|
1725
2249
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1726
2250
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1727
2251
|
this._gaxModule.routingHeader.fromParams({
|
|
1728
|
-
parent:
|
|
2252
|
+
parent: request.parent ?? '',
|
|
1729
2253
|
});
|
|
1730
2254
|
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
1731
2255
|
const callSettings = defaultCallSettings.merge(options);
|
|
1732
2256
|
this.initialize();
|
|
2257
|
+
this._log.info('listJobTriggers stream %j', request);
|
|
1733
2258
|
return this.descriptors.page.listJobTriggers.createStream(this.innerApiCalls.listJobTriggers, request, callSettings);
|
|
1734
2259
|
}
|
|
1735
2260
|
/**
|
|
@@ -1819,22 +2344,21 @@ class DlpServiceClient {
|
|
|
1819
2344
|
* region_tag:dlp_v2_generated_DlpService_ListJobTriggers_async
|
|
1820
2345
|
*/
|
|
1821
2346
|
listJobTriggersAsync(request, options) {
|
|
1822
|
-
var _a;
|
|
1823
2347
|
request = request || {};
|
|
1824
2348
|
options = options || {};
|
|
1825
2349
|
options.otherArgs = options.otherArgs || {};
|
|
1826
2350
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1827
2351
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1828
2352
|
this._gaxModule.routingHeader.fromParams({
|
|
1829
|
-
parent:
|
|
2353
|
+
parent: request.parent ?? '',
|
|
1830
2354
|
});
|
|
1831
2355
|
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
1832
2356
|
const callSettings = defaultCallSettings.merge(options);
|
|
1833
2357
|
this.initialize();
|
|
2358
|
+
this._log.info('listJobTriggers iterate %j', request);
|
|
1834
2359
|
return this.descriptors.page.listJobTriggers.asyncIterate(this.innerApiCalls['listJobTriggers'], request, callSettings);
|
|
1835
2360
|
}
|
|
1836
2361
|
listDiscoveryConfigs(request, optionsOrCallback, callback) {
|
|
1837
|
-
var _a;
|
|
1838
2362
|
request = request || {};
|
|
1839
2363
|
let options;
|
|
1840
2364
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1849,10 +2373,22 @@ class DlpServiceClient {
|
|
|
1849
2373
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1850
2374
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1851
2375
|
this._gaxModule.routingHeader.fromParams({
|
|
1852
|
-
parent:
|
|
2376
|
+
parent: request.parent ?? '',
|
|
1853
2377
|
});
|
|
1854
2378
|
this.initialize();
|
|
1855
|
-
|
|
2379
|
+
const wrappedCallback = callback
|
|
2380
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2381
|
+
this._log.info('listDiscoveryConfigs values %j', values);
|
|
2382
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2383
|
+
}
|
|
2384
|
+
: undefined;
|
|
2385
|
+
this._log.info('listDiscoveryConfigs request %j', request);
|
|
2386
|
+
return this.innerApiCalls
|
|
2387
|
+
.listDiscoveryConfigs(request, options, wrappedCallback)
|
|
2388
|
+
?.then(([response, input, output]) => {
|
|
2389
|
+
this._log.info('listDiscoveryConfigs values %j', response);
|
|
2390
|
+
return [response, input, output];
|
|
2391
|
+
});
|
|
1856
2392
|
}
|
|
1857
2393
|
/**
|
|
1858
2394
|
* Equivalent to `listDiscoveryConfigs`, but returns a NodeJS Stream object.
|
|
@@ -1900,18 +2436,18 @@ class DlpServiceClient {
|
|
|
1900
2436
|
* for more details and examples.
|
|
1901
2437
|
*/
|
|
1902
2438
|
listDiscoveryConfigsStream(request, options) {
|
|
1903
|
-
var _a;
|
|
1904
2439
|
request = request || {};
|
|
1905
2440
|
options = options || {};
|
|
1906
2441
|
options.otherArgs = options.otherArgs || {};
|
|
1907
2442
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1908
2443
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1909
2444
|
this._gaxModule.routingHeader.fromParams({
|
|
1910
|
-
parent:
|
|
2445
|
+
parent: request.parent ?? '',
|
|
1911
2446
|
});
|
|
1912
2447
|
const defaultCallSettings = this._defaults['listDiscoveryConfigs'];
|
|
1913
2448
|
const callSettings = defaultCallSettings.merge(options);
|
|
1914
2449
|
this.initialize();
|
|
2450
|
+
this._log.info('listDiscoveryConfigs stream %j', request);
|
|
1915
2451
|
return this.descriptors.page.listDiscoveryConfigs.createStream(this.innerApiCalls.listDiscoveryConfigs, request, callSettings);
|
|
1916
2452
|
}
|
|
1917
2453
|
/**
|
|
@@ -1963,22 +2499,21 @@ class DlpServiceClient {
|
|
|
1963
2499
|
* region_tag:dlp_v2_generated_DlpService_ListDiscoveryConfigs_async
|
|
1964
2500
|
*/
|
|
1965
2501
|
listDiscoveryConfigsAsync(request, options) {
|
|
1966
|
-
var _a;
|
|
1967
2502
|
request = request || {};
|
|
1968
2503
|
options = options || {};
|
|
1969
2504
|
options.otherArgs = options.otherArgs || {};
|
|
1970
2505
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1971
2506
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1972
2507
|
this._gaxModule.routingHeader.fromParams({
|
|
1973
|
-
parent:
|
|
2508
|
+
parent: request.parent ?? '',
|
|
1974
2509
|
});
|
|
1975
2510
|
const defaultCallSettings = this._defaults['listDiscoveryConfigs'];
|
|
1976
2511
|
const callSettings = defaultCallSettings.merge(options);
|
|
1977
2512
|
this.initialize();
|
|
2513
|
+
this._log.info('listDiscoveryConfigs iterate %j', request);
|
|
1978
2514
|
return this.descriptors.page.listDiscoveryConfigs.asyncIterate(this.innerApiCalls['listDiscoveryConfigs'], request, callSettings);
|
|
1979
2515
|
}
|
|
1980
2516
|
listDlpJobs(request, optionsOrCallback, callback) {
|
|
1981
|
-
var _a;
|
|
1982
2517
|
request = request || {};
|
|
1983
2518
|
let options;
|
|
1984
2519
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1993,10 +2528,22 @@ class DlpServiceClient {
|
|
|
1993
2528
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1994
2529
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1995
2530
|
this._gaxModule.routingHeader.fromParams({
|
|
1996
|
-
parent:
|
|
2531
|
+
parent: request.parent ?? '',
|
|
1997
2532
|
});
|
|
1998
2533
|
this.initialize();
|
|
1999
|
-
|
|
2534
|
+
const wrappedCallback = callback
|
|
2535
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2536
|
+
this._log.info('listDlpJobs values %j', values);
|
|
2537
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2538
|
+
}
|
|
2539
|
+
: undefined;
|
|
2540
|
+
this._log.info('listDlpJobs request %j', request);
|
|
2541
|
+
return this.innerApiCalls
|
|
2542
|
+
.listDlpJobs(request, options, wrappedCallback)
|
|
2543
|
+
?.then(([response, input, output]) => {
|
|
2544
|
+
this._log.info('listDlpJobs values %j', response);
|
|
2545
|
+
return [response, input, output];
|
|
2546
|
+
});
|
|
2000
2547
|
}
|
|
2001
2548
|
/**
|
|
2002
2549
|
* Equivalent to `listDlpJobs`, but returns a NodeJS Stream object.
|
|
@@ -2082,18 +2629,18 @@ class DlpServiceClient {
|
|
|
2082
2629
|
* for more details and examples.
|
|
2083
2630
|
*/
|
|
2084
2631
|
listDlpJobsStream(request, options) {
|
|
2085
|
-
var _a;
|
|
2086
2632
|
request = request || {};
|
|
2087
2633
|
options = options || {};
|
|
2088
2634
|
options.otherArgs = options.otherArgs || {};
|
|
2089
2635
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2090
2636
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2091
2637
|
this._gaxModule.routingHeader.fromParams({
|
|
2092
|
-
parent:
|
|
2638
|
+
parent: request.parent ?? '',
|
|
2093
2639
|
});
|
|
2094
2640
|
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
2095
2641
|
const callSettings = defaultCallSettings.merge(options);
|
|
2096
2642
|
this.initialize();
|
|
2643
|
+
this._log.info('listDlpJobs stream %j', request);
|
|
2097
2644
|
return this.descriptors.page.listDlpJobs.createStream(this.innerApiCalls.listDlpJobs, request, callSettings);
|
|
2098
2645
|
}
|
|
2099
2646
|
/**
|
|
@@ -2183,22 +2730,21 @@ class DlpServiceClient {
|
|
|
2183
2730
|
* region_tag:dlp_v2_generated_DlpService_ListDlpJobs_async
|
|
2184
2731
|
*/
|
|
2185
2732
|
listDlpJobsAsync(request, options) {
|
|
2186
|
-
var _a;
|
|
2187
2733
|
request = request || {};
|
|
2188
2734
|
options = options || {};
|
|
2189
2735
|
options.otherArgs = options.otherArgs || {};
|
|
2190
2736
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2191
2737
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2192
2738
|
this._gaxModule.routingHeader.fromParams({
|
|
2193
|
-
parent:
|
|
2739
|
+
parent: request.parent ?? '',
|
|
2194
2740
|
});
|
|
2195
2741
|
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
2196
2742
|
const callSettings = defaultCallSettings.merge(options);
|
|
2197
2743
|
this.initialize();
|
|
2744
|
+
this._log.info('listDlpJobs iterate %j', request);
|
|
2198
2745
|
return this.descriptors.page.listDlpJobs.asyncIterate(this.innerApiCalls['listDlpJobs'], request, callSettings);
|
|
2199
2746
|
}
|
|
2200
2747
|
listStoredInfoTypes(request, optionsOrCallback, callback) {
|
|
2201
|
-
var _a;
|
|
2202
2748
|
request = request || {};
|
|
2203
2749
|
let options;
|
|
2204
2750
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2213,10 +2759,22 @@ class DlpServiceClient {
|
|
|
2213
2759
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2214
2760
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2215
2761
|
this._gaxModule.routingHeader.fromParams({
|
|
2216
|
-
parent:
|
|
2762
|
+
parent: request.parent ?? '',
|
|
2217
2763
|
});
|
|
2218
2764
|
this.initialize();
|
|
2219
|
-
|
|
2765
|
+
const wrappedCallback = callback
|
|
2766
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2767
|
+
this._log.info('listStoredInfoTypes values %j', values);
|
|
2768
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2769
|
+
}
|
|
2770
|
+
: undefined;
|
|
2771
|
+
this._log.info('listStoredInfoTypes request %j', request);
|
|
2772
|
+
return this.innerApiCalls
|
|
2773
|
+
.listStoredInfoTypes(request, options, wrappedCallback)
|
|
2774
|
+
?.then(([response, input, output]) => {
|
|
2775
|
+
this._log.info('listStoredInfoTypes values %j', response);
|
|
2776
|
+
return [response, input, output];
|
|
2777
|
+
});
|
|
2220
2778
|
}
|
|
2221
2779
|
/**
|
|
2222
2780
|
* Equivalent to `listStoredInfoTypes`, but returns a NodeJS Stream object.
|
|
@@ -2274,18 +2832,18 @@ class DlpServiceClient {
|
|
|
2274
2832
|
* for more details and examples.
|
|
2275
2833
|
*/
|
|
2276
2834
|
listStoredInfoTypesStream(request, options) {
|
|
2277
|
-
var _a;
|
|
2278
2835
|
request = request || {};
|
|
2279
2836
|
options = options || {};
|
|
2280
2837
|
options.otherArgs = options.otherArgs || {};
|
|
2281
2838
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2282
2839
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2283
2840
|
this._gaxModule.routingHeader.fromParams({
|
|
2284
|
-
parent:
|
|
2841
|
+
parent: request.parent ?? '',
|
|
2285
2842
|
});
|
|
2286
2843
|
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
2287
2844
|
const callSettings = defaultCallSettings.merge(options);
|
|
2288
2845
|
this.initialize();
|
|
2846
|
+
this._log.info('listStoredInfoTypes stream %j', request);
|
|
2289
2847
|
return this.descriptors.page.listStoredInfoTypes.createStream(this.innerApiCalls.listStoredInfoTypes, request, callSettings);
|
|
2290
2848
|
}
|
|
2291
2849
|
/**
|
|
@@ -2347,22 +2905,21 @@ class DlpServiceClient {
|
|
|
2347
2905
|
* region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async
|
|
2348
2906
|
*/
|
|
2349
2907
|
listStoredInfoTypesAsync(request, options) {
|
|
2350
|
-
var _a;
|
|
2351
2908
|
request = request || {};
|
|
2352
2909
|
options = options || {};
|
|
2353
2910
|
options.otherArgs = options.otherArgs || {};
|
|
2354
2911
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2355
2912
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2356
2913
|
this._gaxModule.routingHeader.fromParams({
|
|
2357
|
-
parent:
|
|
2914
|
+
parent: request.parent ?? '',
|
|
2358
2915
|
});
|
|
2359
2916
|
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
2360
2917
|
const callSettings = defaultCallSettings.merge(options);
|
|
2361
2918
|
this.initialize();
|
|
2919
|
+
this._log.info('listStoredInfoTypes iterate %j', request);
|
|
2362
2920
|
return this.descriptors.page.listStoredInfoTypes.asyncIterate(this.innerApiCalls['listStoredInfoTypes'], request, callSettings);
|
|
2363
2921
|
}
|
|
2364
2922
|
listProjectDataProfiles(request, optionsOrCallback, callback) {
|
|
2365
|
-
var _a;
|
|
2366
2923
|
request = request || {};
|
|
2367
2924
|
let options;
|
|
2368
2925
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2377,10 +2934,22 @@ class DlpServiceClient {
|
|
|
2377
2934
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2378
2935
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2379
2936
|
this._gaxModule.routingHeader.fromParams({
|
|
2380
|
-
parent:
|
|
2937
|
+
parent: request.parent ?? '',
|
|
2381
2938
|
});
|
|
2382
2939
|
this.initialize();
|
|
2383
|
-
|
|
2940
|
+
const wrappedCallback = callback
|
|
2941
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2942
|
+
this._log.info('listProjectDataProfiles values %j', values);
|
|
2943
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2944
|
+
}
|
|
2945
|
+
: undefined;
|
|
2946
|
+
this._log.info('listProjectDataProfiles request %j', request);
|
|
2947
|
+
return this.innerApiCalls
|
|
2948
|
+
.listProjectDataProfiles(request, options, wrappedCallback)
|
|
2949
|
+
?.then(([response, input, output]) => {
|
|
2950
|
+
this._log.info('listProjectDataProfiles values %j', response);
|
|
2951
|
+
return [response, input, output];
|
|
2952
|
+
});
|
|
2384
2953
|
}
|
|
2385
2954
|
/**
|
|
2386
2955
|
* Equivalent to `listProjectDataProfiles`, but returns a NodeJS Stream object.
|
|
@@ -2444,18 +3013,18 @@ class DlpServiceClient {
|
|
|
2444
3013
|
* for more details and examples.
|
|
2445
3014
|
*/
|
|
2446
3015
|
listProjectDataProfilesStream(request, options) {
|
|
2447
|
-
var _a;
|
|
2448
3016
|
request = request || {};
|
|
2449
3017
|
options = options || {};
|
|
2450
3018
|
options.otherArgs = options.otherArgs || {};
|
|
2451
3019
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2452
3020
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2453
3021
|
this._gaxModule.routingHeader.fromParams({
|
|
2454
|
-
parent:
|
|
3022
|
+
parent: request.parent ?? '',
|
|
2455
3023
|
});
|
|
2456
3024
|
const defaultCallSettings = this._defaults['listProjectDataProfiles'];
|
|
2457
3025
|
const callSettings = defaultCallSettings.merge(options);
|
|
2458
3026
|
this.initialize();
|
|
3027
|
+
this._log.info('listProjectDataProfiles stream %j', request);
|
|
2459
3028
|
return this.descriptors.page.listProjectDataProfiles.createStream(this.innerApiCalls.listProjectDataProfiles, request, callSettings);
|
|
2460
3029
|
}
|
|
2461
3030
|
/**
|
|
@@ -2523,22 +3092,21 @@ class DlpServiceClient {
|
|
|
2523
3092
|
* region_tag:dlp_v2_generated_DlpService_ListProjectDataProfiles_async
|
|
2524
3093
|
*/
|
|
2525
3094
|
listProjectDataProfilesAsync(request, options) {
|
|
2526
|
-
var _a;
|
|
2527
3095
|
request = request || {};
|
|
2528
3096
|
options = options || {};
|
|
2529
3097
|
options.otherArgs = options.otherArgs || {};
|
|
2530
3098
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2531
3099
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2532
3100
|
this._gaxModule.routingHeader.fromParams({
|
|
2533
|
-
parent:
|
|
3101
|
+
parent: request.parent ?? '',
|
|
2534
3102
|
});
|
|
2535
3103
|
const defaultCallSettings = this._defaults['listProjectDataProfiles'];
|
|
2536
3104
|
const callSettings = defaultCallSettings.merge(options);
|
|
2537
3105
|
this.initialize();
|
|
3106
|
+
this._log.info('listProjectDataProfiles iterate %j', request);
|
|
2538
3107
|
return this.descriptors.page.listProjectDataProfiles.asyncIterate(this.innerApiCalls['listProjectDataProfiles'], request, callSettings);
|
|
2539
3108
|
}
|
|
2540
3109
|
listTableDataProfiles(request, optionsOrCallback, callback) {
|
|
2541
|
-
var _a;
|
|
2542
3110
|
request = request || {};
|
|
2543
3111
|
let options;
|
|
2544
3112
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2553,10 +3121,22 @@ class DlpServiceClient {
|
|
|
2553
3121
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2554
3122
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2555
3123
|
this._gaxModule.routingHeader.fromParams({
|
|
2556
|
-
parent:
|
|
3124
|
+
parent: request.parent ?? '',
|
|
2557
3125
|
});
|
|
2558
3126
|
this.initialize();
|
|
2559
|
-
|
|
3127
|
+
const wrappedCallback = callback
|
|
3128
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
3129
|
+
this._log.info('listTableDataProfiles values %j', values);
|
|
3130
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
3131
|
+
}
|
|
3132
|
+
: undefined;
|
|
3133
|
+
this._log.info('listTableDataProfiles request %j', request);
|
|
3134
|
+
return this.innerApiCalls
|
|
3135
|
+
.listTableDataProfiles(request, options, wrappedCallback)
|
|
3136
|
+
?.then(([response, input, output]) => {
|
|
3137
|
+
this._log.info('listTableDataProfiles values %j', response);
|
|
3138
|
+
return [response, input, output];
|
|
3139
|
+
});
|
|
2560
3140
|
}
|
|
2561
3141
|
/**
|
|
2562
3142
|
* Equivalent to `listTableDataProfiles`, but returns a NodeJS Stream object.
|
|
@@ -2633,18 +3213,18 @@ class DlpServiceClient {
|
|
|
2633
3213
|
* for more details and examples.
|
|
2634
3214
|
*/
|
|
2635
3215
|
listTableDataProfilesStream(request, options) {
|
|
2636
|
-
var _a;
|
|
2637
3216
|
request = request || {};
|
|
2638
3217
|
options = options || {};
|
|
2639
3218
|
options.otherArgs = options.otherArgs || {};
|
|
2640
3219
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2641
3220
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2642
3221
|
this._gaxModule.routingHeader.fromParams({
|
|
2643
|
-
parent:
|
|
3222
|
+
parent: request.parent ?? '',
|
|
2644
3223
|
});
|
|
2645
3224
|
const defaultCallSettings = this._defaults['listTableDataProfiles'];
|
|
2646
3225
|
const callSettings = defaultCallSettings.merge(options);
|
|
2647
3226
|
this.initialize();
|
|
3227
|
+
this._log.info('listTableDataProfiles stream %j', request);
|
|
2648
3228
|
return this.descriptors.page.listTableDataProfiles.createStream(this.innerApiCalls.listTableDataProfiles, request, callSettings);
|
|
2649
3229
|
}
|
|
2650
3230
|
/**
|
|
@@ -2725,22 +3305,21 @@ class DlpServiceClient {
|
|
|
2725
3305
|
* region_tag:dlp_v2_generated_DlpService_ListTableDataProfiles_async
|
|
2726
3306
|
*/
|
|
2727
3307
|
listTableDataProfilesAsync(request, options) {
|
|
2728
|
-
var _a;
|
|
2729
3308
|
request = request || {};
|
|
2730
3309
|
options = options || {};
|
|
2731
3310
|
options.otherArgs = options.otherArgs || {};
|
|
2732
3311
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2733
3312
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2734
3313
|
this._gaxModule.routingHeader.fromParams({
|
|
2735
|
-
parent:
|
|
3314
|
+
parent: request.parent ?? '',
|
|
2736
3315
|
});
|
|
2737
3316
|
const defaultCallSettings = this._defaults['listTableDataProfiles'];
|
|
2738
3317
|
const callSettings = defaultCallSettings.merge(options);
|
|
2739
3318
|
this.initialize();
|
|
3319
|
+
this._log.info('listTableDataProfiles iterate %j', request);
|
|
2740
3320
|
return this.descriptors.page.listTableDataProfiles.asyncIterate(this.innerApiCalls['listTableDataProfiles'], request, callSettings);
|
|
2741
3321
|
}
|
|
2742
3322
|
listColumnDataProfiles(request, optionsOrCallback, callback) {
|
|
2743
|
-
var _a;
|
|
2744
3323
|
request = request || {};
|
|
2745
3324
|
let options;
|
|
2746
3325
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2755,10 +3334,22 @@ class DlpServiceClient {
|
|
|
2755
3334
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2756
3335
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2757
3336
|
this._gaxModule.routingHeader.fromParams({
|
|
2758
|
-
parent:
|
|
3337
|
+
parent: request.parent ?? '',
|
|
2759
3338
|
});
|
|
2760
3339
|
this.initialize();
|
|
2761
|
-
|
|
3340
|
+
const wrappedCallback = callback
|
|
3341
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
3342
|
+
this._log.info('listColumnDataProfiles values %j', values);
|
|
3343
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
3344
|
+
}
|
|
3345
|
+
: undefined;
|
|
3346
|
+
this._log.info('listColumnDataProfiles request %j', request);
|
|
3347
|
+
return this.innerApiCalls
|
|
3348
|
+
.listColumnDataProfiles(request, options, wrappedCallback)
|
|
3349
|
+
?.then(([response, input, output]) => {
|
|
3350
|
+
this._log.info('listColumnDataProfiles values %j', response);
|
|
3351
|
+
return [response, input, output];
|
|
3352
|
+
});
|
|
2762
3353
|
}
|
|
2763
3354
|
/**
|
|
2764
3355
|
* Equivalent to `listColumnDataProfiles`, but returns a NodeJS Stream object.
|
|
@@ -2837,18 +3428,18 @@ class DlpServiceClient {
|
|
|
2837
3428
|
* for more details and examples.
|
|
2838
3429
|
*/
|
|
2839
3430
|
listColumnDataProfilesStream(request, options) {
|
|
2840
|
-
var _a;
|
|
2841
3431
|
request = request || {};
|
|
2842
3432
|
options = options || {};
|
|
2843
3433
|
options.otherArgs = options.otherArgs || {};
|
|
2844
3434
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2845
3435
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2846
3436
|
this._gaxModule.routingHeader.fromParams({
|
|
2847
|
-
parent:
|
|
3437
|
+
parent: request.parent ?? '',
|
|
2848
3438
|
});
|
|
2849
3439
|
const defaultCallSettings = this._defaults['listColumnDataProfiles'];
|
|
2850
3440
|
const callSettings = defaultCallSettings.merge(options);
|
|
2851
3441
|
this.initialize();
|
|
3442
|
+
this._log.info('listColumnDataProfiles stream %j', request);
|
|
2852
3443
|
return this.descriptors.page.listColumnDataProfiles.createStream(this.innerApiCalls.listColumnDataProfiles, request, callSettings);
|
|
2853
3444
|
}
|
|
2854
3445
|
/**
|
|
@@ -2931,22 +3522,21 @@ class DlpServiceClient {
|
|
|
2931
3522
|
* region_tag:dlp_v2_generated_DlpService_ListColumnDataProfiles_async
|
|
2932
3523
|
*/
|
|
2933
3524
|
listColumnDataProfilesAsync(request, options) {
|
|
2934
|
-
var _a;
|
|
2935
3525
|
request = request || {};
|
|
2936
3526
|
options = options || {};
|
|
2937
3527
|
options.otherArgs = options.otherArgs || {};
|
|
2938
3528
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2939
3529
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2940
3530
|
this._gaxModule.routingHeader.fromParams({
|
|
2941
|
-
parent:
|
|
3531
|
+
parent: request.parent ?? '',
|
|
2942
3532
|
});
|
|
2943
3533
|
const defaultCallSettings = this._defaults['listColumnDataProfiles'];
|
|
2944
3534
|
const callSettings = defaultCallSettings.merge(options);
|
|
2945
3535
|
this.initialize();
|
|
3536
|
+
this._log.info('listColumnDataProfiles iterate %j', request);
|
|
2946
3537
|
return this.descriptors.page.listColumnDataProfiles.asyncIterate(this.innerApiCalls['listColumnDataProfiles'], request, callSettings);
|
|
2947
3538
|
}
|
|
2948
3539
|
listFileStoreDataProfiles(request, optionsOrCallback, callback) {
|
|
2949
|
-
var _a;
|
|
2950
3540
|
request = request || {};
|
|
2951
3541
|
let options;
|
|
2952
3542
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -2961,10 +3551,22 @@ class DlpServiceClient {
|
|
|
2961
3551
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2962
3552
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
2963
3553
|
this._gaxModule.routingHeader.fromParams({
|
|
2964
|
-
parent:
|
|
3554
|
+
parent: request.parent ?? '',
|
|
2965
3555
|
});
|
|
2966
3556
|
this.initialize();
|
|
2967
|
-
|
|
3557
|
+
const wrappedCallback = callback
|
|
3558
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
3559
|
+
this._log.info('listFileStoreDataProfiles values %j', values);
|
|
3560
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
3561
|
+
}
|
|
3562
|
+
: undefined;
|
|
3563
|
+
this._log.info('listFileStoreDataProfiles request %j', request);
|
|
3564
|
+
return this.innerApiCalls
|
|
3565
|
+
.listFileStoreDataProfiles(request, options, wrappedCallback)
|
|
3566
|
+
?.then(([response, input, output]) => {
|
|
3567
|
+
this._log.info('listFileStoreDataProfiles values %j', response);
|
|
3568
|
+
return [response, input, output];
|
|
3569
|
+
});
|
|
2968
3570
|
}
|
|
2969
3571
|
/**
|
|
2970
3572
|
* Equivalent to `listFileStoreDataProfiles`, but returns a NodeJS Stream object.
|
|
@@ -3046,18 +3648,18 @@ class DlpServiceClient {
|
|
|
3046
3648
|
* for more details and examples.
|
|
3047
3649
|
*/
|
|
3048
3650
|
listFileStoreDataProfilesStream(request, options) {
|
|
3049
|
-
var _a;
|
|
3050
3651
|
request = request || {};
|
|
3051
3652
|
options = options || {};
|
|
3052
3653
|
options.otherArgs = options.otherArgs || {};
|
|
3053
3654
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3054
3655
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3055
3656
|
this._gaxModule.routingHeader.fromParams({
|
|
3056
|
-
parent:
|
|
3657
|
+
parent: request.parent ?? '',
|
|
3057
3658
|
});
|
|
3058
3659
|
const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
|
|
3059
3660
|
const callSettings = defaultCallSettings.merge(options);
|
|
3060
3661
|
this.initialize();
|
|
3662
|
+
this._log.info('listFileStoreDataProfiles stream %j', request);
|
|
3061
3663
|
return this.descriptors.page.listFileStoreDataProfiles.createStream(this.innerApiCalls.listFileStoreDataProfiles, request, callSettings);
|
|
3062
3664
|
}
|
|
3063
3665
|
/**
|
|
@@ -3143,22 +3745,21 @@ class DlpServiceClient {
|
|
|
3143
3745
|
* region_tag:dlp_v2_generated_DlpService_ListFileStoreDataProfiles_async
|
|
3144
3746
|
*/
|
|
3145
3747
|
listFileStoreDataProfilesAsync(request, options) {
|
|
3146
|
-
var _a;
|
|
3147
3748
|
request = request || {};
|
|
3148
3749
|
options = options || {};
|
|
3149
3750
|
options.otherArgs = options.otherArgs || {};
|
|
3150
3751
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3151
3752
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3152
3753
|
this._gaxModule.routingHeader.fromParams({
|
|
3153
|
-
parent:
|
|
3754
|
+
parent: request.parent ?? '',
|
|
3154
3755
|
});
|
|
3155
3756
|
const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
|
|
3156
3757
|
const callSettings = defaultCallSettings.merge(options);
|
|
3157
3758
|
this.initialize();
|
|
3759
|
+
this._log.info('listFileStoreDataProfiles iterate %j', request);
|
|
3158
3760
|
return this.descriptors.page.listFileStoreDataProfiles.asyncIterate(this.innerApiCalls['listFileStoreDataProfiles'], request, callSettings);
|
|
3159
3761
|
}
|
|
3160
3762
|
listConnections(request, optionsOrCallback, callback) {
|
|
3161
|
-
var _a;
|
|
3162
3763
|
request = request || {};
|
|
3163
3764
|
let options;
|
|
3164
3765
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -3173,10 +3774,22 @@ class DlpServiceClient {
|
|
|
3173
3774
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3174
3775
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3175
3776
|
this._gaxModule.routingHeader.fromParams({
|
|
3176
|
-
parent:
|
|
3777
|
+
parent: request.parent ?? '',
|
|
3177
3778
|
});
|
|
3178
3779
|
this.initialize();
|
|
3179
|
-
|
|
3780
|
+
const wrappedCallback = callback
|
|
3781
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
3782
|
+
this._log.info('listConnections values %j', values);
|
|
3783
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
3784
|
+
}
|
|
3785
|
+
: undefined;
|
|
3786
|
+
this._log.info('listConnections request %j', request);
|
|
3787
|
+
return this.innerApiCalls
|
|
3788
|
+
.listConnections(request, options, wrappedCallback)
|
|
3789
|
+
?.then(([response, input, output]) => {
|
|
3790
|
+
this._log.info('listConnections values %j', response);
|
|
3791
|
+
return [response, input, output];
|
|
3792
|
+
});
|
|
3180
3793
|
}
|
|
3181
3794
|
/**
|
|
3182
3795
|
* Equivalent to `listConnections`, but returns a NodeJS Stream object.
|
|
@@ -3205,18 +3818,18 @@ class DlpServiceClient {
|
|
|
3205
3818
|
* for more details and examples.
|
|
3206
3819
|
*/
|
|
3207
3820
|
listConnectionsStream(request, options) {
|
|
3208
|
-
var _a;
|
|
3209
3821
|
request = request || {};
|
|
3210
3822
|
options = options || {};
|
|
3211
3823
|
options.otherArgs = options.otherArgs || {};
|
|
3212
3824
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3213
3825
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3214
3826
|
this._gaxModule.routingHeader.fromParams({
|
|
3215
|
-
parent:
|
|
3827
|
+
parent: request.parent ?? '',
|
|
3216
3828
|
});
|
|
3217
3829
|
const defaultCallSettings = this._defaults['listConnections'];
|
|
3218
3830
|
const callSettings = defaultCallSettings.merge(options);
|
|
3219
3831
|
this.initialize();
|
|
3832
|
+
this._log.info('listConnections stream %j', request);
|
|
3220
3833
|
return this.descriptors.page.listConnections.createStream(this.innerApiCalls.listConnections, request, callSettings);
|
|
3221
3834
|
}
|
|
3222
3835
|
/**
|
|
@@ -3249,22 +3862,21 @@ class DlpServiceClient {
|
|
|
3249
3862
|
* region_tag:dlp_v2_generated_DlpService_ListConnections_async
|
|
3250
3863
|
*/
|
|
3251
3864
|
listConnectionsAsync(request, options) {
|
|
3252
|
-
var _a;
|
|
3253
3865
|
request = request || {};
|
|
3254
3866
|
options = options || {};
|
|
3255
3867
|
options.otherArgs = options.otherArgs || {};
|
|
3256
3868
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3257
3869
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3258
3870
|
this._gaxModule.routingHeader.fromParams({
|
|
3259
|
-
parent:
|
|
3871
|
+
parent: request.parent ?? '',
|
|
3260
3872
|
});
|
|
3261
3873
|
const defaultCallSettings = this._defaults['listConnections'];
|
|
3262
3874
|
const callSettings = defaultCallSettings.merge(options);
|
|
3263
3875
|
this.initialize();
|
|
3876
|
+
this._log.info('listConnections iterate %j', request);
|
|
3264
3877
|
return this.descriptors.page.listConnections.asyncIterate(this.innerApiCalls['listConnections'], request, callSettings);
|
|
3265
3878
|
}
|
|
3266
3879
|
searchConnections(request, optionsOrCallback, callback) {
|
|
3267
|
-
var _a;
|
|
3268
3880
|
request = request || {};
|
|
3269
3881
|
let options;
|
|
3270
3882
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -3279,10 +3891,22 @@ class DlpServiceClient {
|
|
|
3279
3891
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3280
3892
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3281
3893
|
this._gaxModule.routingHeader.fromParams({
|
|
3282
|
-
parent:
|
|
3894
|
+
parent: request.parent ?? '',
|
|
3283
3895
|
});
|
|
3284
3896
|
this.initialize();
|
|
3285
|
-
|
|
3897
|
+
const wrappedCallback = callback
|
|
3898
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
3899
|
+
this._log.info('searchConnections values %j', values);
|
|
3900
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
3901
|
+
}
|
|
3902
|
+
: undefined;
|
|
3903
|
+
this._log.info('searchConnections request %j', request);
|
|
3904
|
+
return this.innerApiCalls
|
|
3905
|
+
.searchConnections(request, options, wrappedCallback)
|
|
3906
|
+
?.then(([response, input, output]) => {
|
|
3907
|
+
this._log.info('searchConnections values %j', response);
|
|
3908
|
+
return [response, input, output];
|
|
3909
|
+
});
|
|
3286
3910
|
}
|
|
3287
3911
|
/**
|
|
3288
3912
|
* Equivalent to `searchConnections`, but returns a NodeJS Stream object.
|
|
@@ -3311,18 +3935,18 @@ class DlpServiceClient {
|
|
|
3311
3935
|
* for more details and examples.
|
|
3312
3936
|
*/
|
|
3313
3937
|
searchConnectionsStream(request, options) {
|
|
3314
|
-
var _a;
|
|
3315
3938
|
request = request || {};
|
|
3316
3939
|
options = options || {};
|
|
3317
3940
|
options.otherArgs = options.otherArgs || {};
|
|
3318
3941
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3319
3942
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3320
3943
|
this._gaxModule.routingHeader.fromParams({
|
|
3321
|
-
parent:
|
|
3944
|
+
parent: request.parent ?? '',
|
|
3322
3945
|
});
|
|
3323
3946
|
const defaultCallSettings = this._defaults['searchConnections'];
|
|
3324
3947
|
const callSettings = defaultCallSettings.merge(options);
|
|
3325
3948
|
this.initialize();
|
|
3949
|
+
this._log.info('searchConnections stream %j', request);
|
|
3326
3950
|
return this.descriptors.page.searchConnections.createStream(this.innerApiCalls.searchConnections, request, callSettings);
|
|
3327
3951
|
}
|
|
3328
3952
|
/**
|
|
@@ -3355,18 +3979,18 @@ class DlpServiceClient {
|
|
|
3355
3979
|
* region_tag:dlp_v2_generated_DlpService_SearchConnections_async
|
|
3356
3980
|
*/
|
|
3357
3981
|
searchConnectionsAsync(request, options) {
|
|
3358
|
-
var _a;
|
|
3359
3982
|
request = request || {};
|
|
3360
3983
|
options = options || {};
|
|
3361
3984
|
options.otherArgs = options.otherArgs || {};
|
|
3362
3985
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3363
3986
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
3364
3987
|
this._gaxModule.routingHeader.fromParams({
|
|
3365
|
-
parent:
|
|
3988
|
+
parent: request.parent ?? '',
|
|
3366
3989
|
});
|
|
3367
3990
|
const defaultCallSettings = this._defaults['searchConnections'];
|
|
3368
3991
|
const callSettings = defaultCallSettings.merge(options);
|
|
3369
3992
|
this.initialize();
|
|
3993
|
+
this._log.info('searchConnections iterate %j', request);
|
|
3370
3994
|
return this.descriptors.page.searchConnections.asyncIterate(this.innerApiCalls['searchConnections'], request, callSettings);
|
|
3371
3995
|
}
|
|
3372
3996
|
/**
|
|
@@ -4732,6 +5356,7 @@ class DlpServiceClient {
|
|
|
4732
5356
|
close() {
|
|
4733
5357
|
if (this.dlpServiceStub && !this._terminated) {
|
|
4734
5358
|
return this.dlpServiceStub.then(stub => {
|
|
5359
|
+
this._log.info('ending gRPC channel');
|
|
4735
5360
|
this._terminated = true;
|
|
4736
5361
|
stub.close();
|
|
4737
5362
|
this.locationsClient.close();
|