@google-cloud/dlp 4.1.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +501 -122
- package/build/protos/google/privacy/dlp/v2/storage.proto +52 -7
- package/build/protos/protos.d.ts +3619 -1947
- package/build/protos/protos.js +10017 -5717
- package/build/protos/protos.json +336 -21
- package/build/src/index.d.ts +1 -1
- package/build/src/v2/dlp_service_client.d.ts +147 -91
- package/build/src/v2/dlp_service_client.js +256 -150
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/package.json +6 -6
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
// ** All changes to this file may be overwritten. **
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.DlpServiceClient = void 0;
|
|
21
|
-
/* global window */
|
|
22
|
-
const gax = require("google-gax");
|
|
23
21
|
const jsonProtos = require("../../protos/protos.json");
|
|
24
22
|
/**
|
|
25
23
|
* Client JSON configuration object, loaded from
|
|
@@ -74,8 +72,15 @@ class DlpServiceClient {
|
|
|
74
72
|
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
75
73
|
* For more information, please check the
|
|
76
74
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
76
|
+
* need to avoid loading the default gRPC version and want to use the fallback
|
|
77
|
+
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
78
|
+
* ```
|
|
79
|
+
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
80
|
+
* const client = new DlpServiceClient({fallback: 'rest'}, gax);
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
constructor(opts, gaxInstance) {
|
|
79
84
|
var _a, _b;
|
|
80
85
|
this._terminated = false;
|
|
81
86
|
this.descriptors = {
|
|
@@ -92,12 +97,18 @@ class DlpServiceClient {
|
|
|
92
97
|
const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
|
|
93
98
|
const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
94
99
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
100
|
+
// Request numeric enum values if REST transport is used.
|
|
101
|
+
opts.numericEnums = true;
|
|
95
102
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
|
96
103
|
if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
|
|
97
104
|
opts['scopes'] = staticMembers.scopes;
|
|
98
105
|
}
|
|
106
|
+
// Load google-gax module synchronously if needed
|
|
107
|
+
if (!gaxInstance) {
|
|
108
|
+
gaxInstance = require('google-gax');
|
|
109
|
+
}
|
|
99
110
|
// Choose either gRPC or proto-over-HTTP implementation of google-gax.
|
|
100
|
-
this._gaxModule = opts.fallback ?
|
|
111
|
+
this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance;
|
|
101
112
|
// Create a `gaxGrpc` object, with any grpc-specific options sent to the client.
|
|
102
113
|
this._gaxGrpc = new this._gaxModule.GrpcClient(opts);
|
|
103
114
|
// Save options to use in initialize() method.
|
|
@@ -112,6 +123,7 @@ class DlpServiceClient {
|
|
|
112
123
|
if (servicePath === staticMembers.servicePath) {
|
|
113
124
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
114
125
|
}
|
|
126
|
+
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
|
115
127
|
// Determine the client header string.
|
|
116
128
|
const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
|
|
117
129
|
if (typeof process !== 'undefined' && 'versions' in process) {
|
|
@@ -173,7 +185,7 @@ class DlpServiceClient {
|
|
|
173
185
|
// merely providing the destination and request information.
|
|
174
186
|
this.innerApiCalls = {};
|
|
175
187
|
// Add a warn function to the client constructor so it can be easily tested.
|
|
176
|
-
this.warn =
|
|
188
|
+
this.warn = this._gaxModule.warn;
|
|
177
189
|
}
|
|
178
190
|
/**
|
|
179
191
|
* Initialize the client.
|
|
@@ -293,6 +305,7 @@ class DlpServiceClient {
|
|
|
293
305
|
return this.auth.getProjectId();
|
|
294
306
|
}
|
|
295
307
|
inspectContent(request, optionsOrCallback, callback) {
|
|
308
|
+
var _a;
|
|
296
309
|
request = request || {};
|
|
297
310
|
let options;
|
|
298
311
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -306,13 +319,14 @@ class DlpServiceClient {
|
|
|
306
319
|
options.otherArgs = options.otherArgs || {};
|
|
307
320
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
308
321
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
309
|
-
|
|
310
|
-
parent: request.parent
|
|
322
|
+
this._gaxModule.routingHeader.fromParams({
|
|
323
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
311
324
|
});
|
|
312
325
|
this.initialize();
|
|
313
326
|
return this.innerApiCalls.inspectContent(request, options, callback);
|
|
314
327
|
}
|
|
315
328
|
redactImage(request, optionsOrCallback, callback) {
|
|
329
|
+
var _a;
|
|
316
330
|
request = request || {};
|
|
317
331
|
let options;
|
|
318
332
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -326,13 +340,14 @@ class DlpServiceClient {
|
|
|
326
340
|
options.otherArgs = options.otherArgs || {};
|
|
327
341
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
328
342
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
329
|
-
|
|
330
|
-
parent: request.parent
|
|
343
|
+
this._gaxModule.routingHeader.fromParams({
|
|
344
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
331
345
|
});
|
|
332
346
|
this.initialize();
|
|
333
347
|
return this.innerApiCalls.redactImage(request, options, callback);
|
|
334
348
|
}
|
|
335
349
|
deidentifyContent(request, optionsOrCallback, callback) {
|
|
350
|
+
var _a;
|
|
336
351
|
request = request || {};
|
|
337
352
|
let options;
|
|
338
353
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -346,13 +361,14 @@ class DlpServiceClient {
|
|
|
346
361
|
options.otherArgs = options.otherArgs || {};
|
|
347
362
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
348
363
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
349
|
-
|
|
350
|
-
parent: request.parent
|
|
364
|
+
this._gaxModule.routingHeader.fromParams({
|
|
365
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
351
366
|
});
|
|
352
367
|
this.initialize();
|
|
353
368
|
return this.innerApiCalls.deidentifyContent(request, options, callback);
|
|
354
369
|
}
|
|
355
370
|
reidentifyContent(request, optionsOrCallback, callback) {
|
|
371
|
+
var _a;
|
|
356
372
|
request = request || {};
|
|
357
373
|
let options;
|
|
358
374
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -366,13 +382,14 @@ class DlpServiceClient {
|
|
|
366
382
|
options.otherArgs = options.otherArgs || {};
|
|
367
383
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
368
384
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
369
|
-
|
|
370
|
-
parent: request.parent
|
|
385
|
+
this._gaxModule.routingHeader.fromParams({
|
|
386
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
371
387
|
});
|
|
372
388
|
this.initialize();
|
|
373
389
|
return this.innerApiCalls.reidentifyContent(request, options, callback);
|
|
374
390
|
}
|
|
375
391
|
listInfoTypes(request, optionsOrCallback, callback) {
|
|
392
|
+
var _a;
|
|
376
393
|
request = request || {};
|
|
377
394
|
let options;
|
|
378
395
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -386,13 +403,14 @@ class DlpServiceClient {
|
|
|
386
403
|
options.otherArgs = options.otherArgs || {};
|
|
387
404
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
388
405
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
389
|
-
|
|
390
|
-
parent: request.parent
|
|
406
|
+
this._gaxModule.routingHeader.fromParams({
|
|
407
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
391
408
|
});
|
|
392
409
|
this.initialize();
|
|
393
410
|
return this.innerApiCalls.listInfoTypes(request, options, callback);
|
|
394
411
|
}
|
|
395
412
|
createInspectTemplate(request, optionsOrCallback, callback) {
|
|
413
|
+
var _a;
|
|
396
414
|
request = request || {};
|
|
397
415
|
let options;
|
|
398
416
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -406,13 +424,14 @@ class DlpServiceClient {
|
|
|
406
424
|
options.otherArgs = options.otherArgs || {};
|
|
407
425
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
408
426
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
409
|
-
|
|
410
|
-
parent: request.parent
|
|
427
|
+
this._gaxModule.routingHeader.fromParams({
|
|
428
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
411
429
|
});
|
|
412
430
|
this.initialize();
|
|
413
431
|
return this.innerApiCalls.createInspectTemplate(request, options, callback);
|
|
414
432
|
}
|
|
415
433
|
updateInspectTemplate(request, optionsOrCallback, callback) {
|
|
434
|
+
var _a;
|
|
416
435
|
request = request || {};
|
|
417
436
|
let options;
|
|
418
437
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -426,13 +445,14 @@ class DlpServiceClient {
|
|
|
426
445
|
options.otherArgs = options.otherArgs || {};
|
|
427
446
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
428
447
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
429
|
-
|
|
430
|
-
name: request.name
|
|
448
|
+
this._gaxModule.routingHeader.fromParams({
|
|
449
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
431
450
|
});
|
|
432
451
|
this.initialize();
|
|
433
452
|
return this.innerApiCalls.updateInspectTemplate(request, options, callback);
|
|
434
453
|
}
|
|
435
454
|
getInspectTemplate(request, optionsOrCallback, callback) {
|
|
455
|
+
var _a;
|
|
436
456
|
request = request || {};
|
|
437
457
|
let options;
|
|
438
458
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -446,13 +466,14 @@ class DlpServiceClient {
|
|
|
446
466
|
options.otherArgs = options.otherArgs || {};
|
|
447
467
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
448
468
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
449
|
-
|
|
450
|
-
name: request.name
|
|
469
|
+
this._gaxModule.routingHeader.fromParams({
|
|
470
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
451
471
|
});
|
|
452
472
|
this.initialize();
|
|
453
473
|
return this.innerApiCalls.getInspectTemplate(request, options, callback);
|
|
454
474
|
}
|
|
455
475
|
deleteInspectTemplate(request, optionsOrCallback, callback) {
|
|
476
|
+
var _a;
|
|
456
477
|
request = request || {};
|
|
457
478
|
let options;
|
|
458
479
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -466,13 +487,14 @@ class DlpServiceClient {
|
|
|
466
487
|
options.otherArgs = options.otherArgs || {};
|
|
467
488
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
468
489
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
469
|
-
|
|
470
|
-
name: request.name
|
|
490
|
+
this._gaxModule.routingHeader.fromParams({
|
|
491
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
471
492
|
});
|
|
472
493
|
this.initialize();
|
|
473
494
|
return this.innerApiCalls.deleteInspectTemplate(request, options, callback);
|
|
474
495
|
}
|
|
475
496
|
createDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
497
|
+
var _a;
|
|
476
498
|
request = request || {};
|
|
477
499
|
let options;
|
|
478
500
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -486,13 +508,14 @@ class DlpServiceClient {
|
|
|
486
508
|
options.otherArgs = options.otherArgs || {};
|
|
487
509
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
488
510
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
489
|
-
|
|
490
|
-
parent: request.parent
|
|
511
|
+
this._gaxModule.routingHeader.fromParams({
|
|
512
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
491
513
|
});
|
|
492
514
|
this.initialize();
|
|
493
515
|
return this.innerApiCalls.createDeidentifyTemplate(request, options, callback);
|
|
494
516
|
}
|
|
495
517
|
updateDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
518
|
+
var _a;
|
|
496
519
|
request = request || {};
|
|
497
520
|
let options;
|
|
498
521
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -506,13 +529,14 @@ class DlpServiceClient {
|
|
|
506
529
|
options.otherArgs = options.otherArgs || {};
|
|
507
530
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
508
531
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
509
|
-
|
|
510
|
-
name: request.name
|
|
532
|
+
this._gaxModule.routingHeader.fromParams({
|
|
533
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
511
534
|
});
|
|
512
535
|
this.initialize();
|
|
513
536
|
return this.innerApiCalls.updateDeidentifyTemplate(request, options, callback);
|
|
514
537
|
}
|
|
515
538
|
getDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
539
|
+
var _a;
|
|
516
540
|
request = request || {};
|
|
517
541
|
let options;
|
|
518
542
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -526,13 +550,14 @@ class DlpServiceClient {
|
|
|
526
550
|
options.otherArgs = options.otherArgs || {};
|
|
527
551
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
528
552
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
529
|
-
|
|
530
|
-
name: request.name
|
|
553
|
+
this._gaxModule.routingHeader.fromParams({
|
|
554
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
531
555
|
});
|
|
532
556
|
this.initialize();
|
|
533
557
|
return this.innerApiCalls.getDeidentifyTemplate(request, options, callback);
|
|
534
558
|
}
|
|
535
559
|
deleteDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
560
|
+
var _a;
|
|
536
561
|
request = request || {};
|
|
537
562
|
let options;
|
|
538
563
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -546,13 +571,14 @@ class DlpServiceClient {
|
|
|
546
571
|
options.otherArgs = options.otherArgs || {};
|
|
547
572
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
548
573
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
549
|
-
|
|
550
|
-
name: request.name
|
|
574
|
+
this._gaxModule.routingHeader.fromParams({
|
|
575
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
551
576
|
});
|
|
552
577
|
this.initialize();
|
|
553
578
|
return this.innerApiCalls.deleteDeidentifyTemplate(request, options, callback);
|
|
554
579
|
}
|
|
555
580
|
createJobTrigger(request, optionsOrCallback, callback) {
|
|
581
|
+
var _a;
|
|
556
582
|
request = request || {};
|
|
557
583
|
let options;
|
|
558
584
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -566,13 +592,14 @@ class DlpServiceClient {
|
|
|
566
592
|
options.otherArgs = options.otherArgs || {};
|
|
567
593
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
568
594
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
569
|
-
|
|
570
|
-
parent: request.parent
|
|
595
|
+
this._gaxModule.routingHeader.fromParams({
|
|
596
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
571
597
|
});
|
|
572
598
|
this.initialize();
|
|
573
599
|
return this.innerApiCalls.createJobTrigger(request, options, callback);
|
|
574
600
|
}
|
|
575
601
|
updateJobTrigger(request, optionsOrCallback, callback) {
|
|
602
|
+
var _a;
|
|
576
603
|
request = request || {};
|
|
577
604
|
let options;
|
|
578
605
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -586,13 +613,14 @@ class DlpServiceClient {
|
|
|
586
613
|
options.otherArgs = options.otherArgs || {};
|
|
587
614
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
588
615
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
589
|
-
|
|
590
|
-
name: request.name
|
|
616
|
+
this._gaxModule.routingHeader.fromParams({
|
|
617
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
591
618
|
});
|
|
592
619
|
this.initialize();
|
|
593
620
|
return this.innerApiCalls.updateJobTrigger(request, options, callback);
|
|
594
621
|
}
|
|
595
622
|
hybridInspectJobTrigger(request, optionsOrCallback, callback) {
|
|
623
|
+
var _a;
|
|
596
624
|
request = request || {};
|
|
597
625
|
let options;
|
|
598
626
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -606,13 +634,14 @@ class DlpServiceClient {
|
|
|
606
634
|
options.otherArgs = options.otherArgs || {};
|
|
607
635
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
608
636
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
609
|
-
|
|
610
|
-
name: request.name
|
|
637
|
+
this._gaxModule.routingHeader.fromParams({
|
|
638
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
611
639
|
});
|
|
612
640
|
this.initialize();
|
|
613
641
|
return this.innerApiCalls.hybridInspectJobTrigger(request, options, callback);
|
|
614
642
|
}
|
|
615
643
|
getJobTrigger(request, optionsOrCallback, callback) {
|
|
644
|
+
var _a;
|
|
616
645
|
request = request || {};
|
|
617
646
|
let options;
|
|
618
647
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -626,13 +655,14 @@ class DlpServiceClient {
|
|
|
626
655
|
options.otherArgs = options.otherArgs || {};
|
|
627
656
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
628
657
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
629
|
-
|
|
630
|
-
name: request.name
|
|
658
|
+
this._gaxModule.routingHeader.fromParams({
|
|
659
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
631
660
|
});
|
|
632
661
|
this.initialize();
|
|
633
662
|
return this.innerApiCalls.getJobTrigger(request, options, callback);
|
|
634
663
|
}
|
|
635
664
|
deleteJobTrigger(request, optionsOrCallback, callback) {
|
|
665
|
+
var _a;
|
|
636
666
|
request = request || {};
|
|
637
667
|
let options;
|
|
638
668
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -646,13 +676,14 @@ class DlpServiceClient {
|
|
|
646
676
|
options.otherArgs = options.otherArgs || {};
|
|
647
677
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
648
678
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
649
|
-
|
|
650
|
-
name: request.name
|
|
679
|
+
this._gaxModule.routingHeader.fromParams({
|
|
680
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
651
681
|
});
|
|
652
682
|
this.initialize();
|
|
653
683
|
return this.innerApiCalls.deleteJobTrigger(request, options, callback);
|
|
654
684
|
}
|
|
655
685
|
activateJobTrigger(request, optionsOrCallback, callback) {
|
|
686
|
+
var _a;
|
|
656
687
|
request = request || {};
|
|
657
688
|
let options;
|
|
658
689
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -666,13 +697,14 @@ class DlpServiceClient {
|
|
|
666
697
|
options.otherArgs = options.otherArgs || {};
|
|
667
698
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
668
699
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
669
|
-
|
|
670
|
-
name: request.name
|
|
700
|
+
this._gaxModule.routingHeader.fromParams({
|
|
701
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
671
702
|
});
|
|
672
703
|
this.initialize();
|
|
673
704
|
return this.innerApiCalls.activateJobTrigger(request, options, callback);
|
|
674
705
|
}
|
|
675
706
|
createDlpJob(request, optionsOrCallback, callback) {
|
|
707
|
+
var _a;
|
|
676
708
|
request = request || {};
|
|
677
709
|
let options;
|
|
678
710
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -686,13 +718,14 @@ class DlpServiceClient {
|
|
|
686
718
|
options.otherArgs = options.otherArgs || {};
|
|
687
719
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
688
720
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
689
|
-
|
|
690
|
-
parent: request.parent
|
|
721
|
+
this._gaxModule.routingHeader.fromParams({
|
|
722
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
691
723
|
});
|
|
692
724
|
this.initialize();
|
|
693
725
|
return this.innerApiCalls.createDlpJob(request, options, callback);
|
|
694
726
|
}
|
|
695
727
|
getDlpJob(request, optionsOrCallback, callback) {
|
|
728
|
+
var _a;
|
|
696
729
|
request = request || {};
|
|
697
730
|
let options;
|
|
698
731
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -706,13 +739,14 @@ class DlpServiceClient {
|
|
|
706
739
|
options.otherArgs = options.otherArgs || {};
|
|
707
740
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
708
741
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
709
|
-
|
|
710
|
-
name: request.name
|
|
742
|
+
this._gaxModule.routingHeader.fromParams({
|
|
743
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
711
744
|
});
|
|
712
745
|
this.initialize();
|
|
713
746
|
return this.innerApiCalls.getDlpJob(request, options, callback);
|
|
714
747
|
}
|
|
715
748
|
deleteDlpJob(request, optionsOrCallback, callback) {
|
|
749
|
+
var _a;
|
|
716
750
|
request = request || {};
|
|
717
751
|
let options;
|
|
718
752
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -726,13 +760,14 @@ class DlpServiceClient {
|
|
|
726
760
|
options.otherArgs = options.otherArgs || {};
|
|
727
761
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
728
762
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
729
|
-
|
|
730
|
-
name: request.name
|
|
763
|
+
this._gaxModule.routingHeader.fromParams({
|
|
764
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
731
765
|
});
|
|
732
766
|
this.initialize();
|
|
733
767
|
return this.innerApiCalls.deleteDlpJob(request, options, callback);
|
|
734
768
|
}
|
|
735
769
|
cancelDlpJob(request, optionsOrCallback, callback) {
|
|
770
|
+
var _a;
|
|
736
771
|
request = request || {};
|
|
737
772
|
let options;
|
|
738
773
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -746,13 +781,14 @@ class DlpServiceClient {
|
|
|
746
781
|
options.otherArgs = options.otherArgs || {};
|
|
747
782
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
748
783
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
749
|
-
|
|
750
|
-
name: request.name
|
|
784
|
+
this._gaxModule.routingHeader.fromParams({
|
|
785
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
751
786
|
});
|
|
752
787
|
this.initialize();
|
|
753
788
|
return this.innerApiCalls.cancelDlpJob(request, options, callback);
|
|
754
789
|
}
|
|
755
790
|
createStoredInfoType(request, optionsOrCallback, callback) {
|
|
791
|
+
var _a;
|
|
756
792
|
request = request || {};
|
|
757
793
|
let options;
|
|
758
794
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -766,13 +802,14 @@ class DlpServiceClient {
|
|
|
766
802
|
options.otherArgs = options.otherArgs || {};
|
|
767
803
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
768
804
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
769
|
-
|
|
770
|
-
parent: request.parent
|
|
805
|
+
this._gaxModule.routingHeader.fromParams({
|
|
806
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
771
807
|
});
|
|
772
808
|
this.initialize();
|
|
773
809
|
return this.innerApiCalls.createStoredInfoType(request, options, callback);
|
|
774
810
|
}
|
|
775
811
|
updateStoredInfoType(request, optionsOrCallback, callback) {
|
|
812
|
+
var _a;
|
|
776
813
|
request = request || {};
|
|
777
814
|
let options;
|
|
778
815
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -786,13 +823,14 @@ class DlpServiceClient {
|
|
|
786
823
|
options.otherArgs = options.otherArgs || {};
|
|
787
824
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
788
825
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
789
|
-
|
|
790
|
-
name: request.name
|
|
826
|
+
this._gaxModule.routingHeader.fromParams({
|
|
827
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
791
828
|
});
|
|
792
829
|
this.initialize();
|
|
793
830
|
return this.innerApiCalls.updateStoredInfoType(request, options, callback);
|
|
794
831
|
}
|
|
795
832
|
getStoredInfoType(request, optionsOrCallback, callback) {
|
|
833
|
+
var _a;
|
|
796
834
|
request = request || {};
|
|
797
835
|
let options;
|
|
798
836
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -806,13 +844,14 @@ class DlpServiceClient {
|
|
|
806
844
|
options.otherArgs = options.otherArgs || {};
|
|
807
845
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
808
846
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
809
|
-
|
|
810
|
-
name: request.name
|
|
847
|
+
this._gaxModule.routingHeader.fromParams({
|
|
848
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
811
849
|
});
|
|
812
850
|
this.initialize();
|
|
813
851
|
return this.innerApiCalls.getStoredInfoType(request, options, callback);
|
|
814
852
|
}
|
|
815
853
|
deleteStoredInfoType(request, optionsOrCallback, callback) {
|
|
854
|
+
var _a;
|
|
816
855
|
request = request || {};
|
|
817
856
|
let options;
|
|
818
857
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -826,13 +865,14 @@ class DlpServiceClient {
|
|
|
826
865
|
options.otherArgs = options.otherArgs || {};
|
|
827
866
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
828
867
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
829
|
-
|
|
830
|
-
name: request.name
|
|
868
|
+
this._gaxModule.routingHeader.fromParams({
|
|
869
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
831
870
|
});
|
|
832
871
|
this.initialize();
|
|
833
872
|
return this.innerApiCalls.deleteStoredInfoType(request, options, callback);
|
|
834
873
|
}
|
|
835
874
|
hybridInspectDlpJob(request, optionsOrCallback, callback) {
|
|
875
|
+
var _a;
|
|
836
876
|
request = request || {};
|
|
837
877
|
let options;
|
|
838
878
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -846,13 +886,14 @@ class DlpServiceClient {
|
|
|
846
886
|
options.otherArgs = options.otherArgs || {};
|
|
847
887
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
848
888
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
849
|
-
|
|
850
|
-
name: request.name
|
|
889
|
+
this._gaxModule.routingHeader.fromParams({
|
|
890
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
851
891
|
});
|
|
852
892
|
this.initialize();
|
|
853
893
|
return this.innerApiCalls.hybridInspectDlpJob(request, options, callback);
|
|
854
894
|
}
|
|
855
895
|
finishDlpJob(request, optionsOrCallback, callback) {
|
|
896
|
+
var _a;
|
|
856
897
|
request = request || {};
|
|
857
898
|
let options;
|
|
858
899
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -866,13 +907,14 @@ class DlpServiceClient {
|
|
|
866
907
|
options.otherArgs = options.otherArgs || {};
|
|
867
908
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
868
909
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
869
|
-
|
|
870
|
-
name: request.name
|
|
910
|
+
this._gaxModule.routingHeader.fromParams({
|
|
911
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
871
912
|
});
|
|
872
913
|
this.initialize();
|
|
873
914
|
return this.innerApiCalls.finishDlpJob(request, options, callback);
|
|
874
915
|
}
|
|
875
916
|
listInspectTemplates(request, optionsOrCallback, callback) {
|
|
917
|
+
var _a;
|
|
876
918
|
request = request || {};
|
|
877
919
|
let options;
|
|
878
920
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -886,8 +928,8 @@ class DlpServiceClient {
|
|
|
886
928
|
options.otherArgs = options.otherArgs || {};
|
|
887
929
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
888
930
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
889
|
-
|
|
890
|
-
parent: request.parent
|
|
931
|
+
this._gaxModule.routingHeader.fromParams({
|
|
932
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
891
933
|
});
|
|
892
934
|
this.initialize();
|
|
893
935
|
return this.innerApiCalls.listInspectTemplates(request, options, callback);
|
|
@@ -921,7 +963,7 @@ class DlpServiceClient {
|
|
|
921
963
|
* Page token to continue retrieval. Comes from previous call
|
|
922
964
|
* to `ListInspectTemplates`.
|
|
923
965
|
* @param {number} request.pageSize
|
|
924
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
966
|
+
* Size of the page, can be limited by the server. If zero server returns
|
|
925
967
|
* a page of max size 100.
|
|
926
968
|
* @param {string} request.orderBy
|
|
927
969
|
* Comma separated list of fields to order by,
|
|
@@ -933,10 +975,10 @@ class DlpServiceClient {
|
|
|
933
975
|
*
|
|
934
976
|
* Supported fields are:
|
|
935
977
|
*
|
|
936
|
-
* - `create_time`: corresponds to time the template was created.
|
|
937
|
-
* - `update_time`: corresponds to time the template was last updated.
|
|
938
|
-
* - `name`: corresponds to template's name.
|
|
939
|
-
* - `display_name`: corresponds to template's display name.
|
|
978
|
+
* - `create_time`: corresponds to the time the template was created.
|
|
979
|
+
* - `update_time`: corresponds to the time the template was last updated.
|
|
980
|
+
* - `name`: corresponds to the template's name.
|
|
981
|
+
* - `display_name`: corresponds to the template's display name.
|
|
940
982
|
* @param {string} request.locationId
|
|
941
983
|
* Deprecated. This field has no effect.
|
|
942
984
|
* @param {object} [options]
|
|
@@ -952,13 +994,14 @@ class DlpServiceClient {
|
|
|
952
994
|
* for more details and examples.
|
|
953
995
|
*/
|
|
954
996
|
listInspectTemplatesStream(request, options) {
|
|
997
|
+
var _a;
|
|
955
998
|
request = request || {};
|
|
956
999
|
options = options || {};
|
|
957
1000
|
options.otherArgs = options.otherArgs || {};
|
|
958
1001
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
959
1002
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
960
|
-
|
|
961
|
-
parent: request.parent
|
|
1003
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1004
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
962
1005
|
});
|
|
963
1006
|
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
964
1007
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -996,7 +1039,7 @@ class DlpServiceClient {
|
|
|
996
1039
|
* Page token to continue retrieval. Comes from previous call
|
|
997
1040
|
* to `ListInspectTemplates`.
|
|
998
1041
|
* @param {number} request.pageSize
|
|
999
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
1042
|
+
* Size of the page, can be limited by the server. If zero server returns
|
|
1000
1043
|
* a page of max size 100.
|
|
1001
1044
|
* @param {string} request.orderBy
|
|
1002
1045
|
* Comma separated list of fields to order by,
|
|
@@ -1008,10 +1051,10 @@ class DlpServiceClient {
|
|
|
1008
1051
|
*
|
|
1009
1052
|
* Supported fields are:
|
|
1010
1053
|
*
|
|
1011
|
-
* - `create_time`: corresponds to time the template was created.
|
|
1012
|
-
* - `update_time`: corresponds to time the template was last updated.
|
|
1013
|
-
* - `name`: corresponds to template's name.
|
|
1014
|
-
* - `display_name`: corresponds to template's display name.
|
|
1054
|
+
* - `create_time`: corresponds to the time the template was created.
|
|
1055
|
+
* - `update_time`: corresponds to the time the template was last updated.
|
|
1056
|
+
* - `name`: corresponds to the template's name.
|
|
1057
|
+
* - `display_name`: corresponds to the template's display name.
|
|
1015
1058
|
* @param {string} request.locationId
|
|
1016
1059
|
* Deprecated. This field has no effect.
|
|
1017
1060
|
* @param {object} [options]
|
|
@@ -1028,13 +1071,14 @@ class DlpServiceClient {
|
|
|
1028
1071
|
* region_tag:dlp_v2_generated_DlpService_ListInspectTemplates_async
|
|
1029
1072
|
*/
|
|
1030
1073
|
listInspectTemplatesAsync(request, options) {
|
|
1074
|
+
var _a;
|
|
1031
1075
|
request = request || {};
|
|
1032
1076
|
options = options || {};
|
|
1033
1077
|
options.otherArgs = options.otherArgs || {};
|
|
1034
1078
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1035
1079
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1036
|
-
|
|
1037
|
-
parent: request.parent
|
|
1080
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1081
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1038
1082
|
});
|
|
1039
1083
|
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
1040
1084
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1042,6 +1086,7 @@ class DlpServiceClient {
|
|
|
1042
1086
|
return this.descriptors.page.listInspectTemplates.asyncIterate(this.innerApiCalls['listInspectTemplates'], request, callSettings);
|
|
1043
1087
|
}
|
|
1044
1088
|
listDeidentifyTemplates(request, optionsOrCallback, callback) {
|
|
1089
|
+
var _a;
|
|
1045
1090
|
request = request || {};
|
|
1046
1091
|
let options;
|
|
1047
1092
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1055,8 +1100,8 @@ class DlpServiceClient {
|
|
|
1055
1100
|
options.otherArgs = options.otherArgs || {};
|
|
1056
1101
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1057
1102
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1058
|
-
|
|
1059
|
-
parent: request.parent
|
|
1103
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1104
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1060
1105
|
});
|
|
1061
1106
|
this.initialize();
|
|
1062
1107
|
return this.innerApiCalls.listDeidentifyTemplates(request, options, callback);
|
|
@@ -1090,7 +1135,7 @@ class DlpServiceClient {
|
|
|
1090
1135
|
* Page token to continue retrieval. Comes from previous call
|
|
1091
1136
|
* to `ListDeidentifyTemplates`.
|
|
1092
1137
|
* @param {number} request.pageSize
|
|
1093
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
1138
|
+
* Size of the page, can be limited by the server. If zero server returns
|
|
1094
1139
|
* a page of max size 100.
|
|
1095
1140
|
* @param {string} request.orderBy
|
|
1096
1141
|
* Comma separated list of fields to order by,
|
|
@@ -1102,10 +1147,10 @@ class DlpServiceClient {
|
|
|
1102
1147
|
*
|
|
1103
1148
|
* Supported fields are:
|
|
1104
1149
|
*
|
|
1105
|
-
* - `create_time`: corresponds to time the template was created.
|
|
1106
|
-
* - `update_time`: corresponds to time the template was last updated.
|
|
1107
|
-
* - `name`: corresponds to template's name.
|
|
1108
|
-
* - `display_name`: corresponds to template's display name.
|
|
1150
|
+
* - `create_time`: corresponds to the time the template was created.
|
|
1151
|
+
* - `update_time`: corresponds to the time the template was last updated.
|
|
1152
|
+
* - `name`: corresponds to the template's name.
|
|
1153
|
+
* - `display_name`: corresponds to the template's display name.
|
|
1109
1154
|
* @param {string} request.locationId
|
|
1110
1155
|
* Deprecated. This field has no effect.
|
|
1111
1156
|
* @param {object} [options]
|
|
@@ -1121,13 +1166,14 @@ class DlpServiceClient {
|
|
|
1121
1166
|
* for more details and examples.
|
|
1122
1167
|
*/
|
|
1123
1168
|
listDeidentifyTemplatesStream(request, options) {
|
|
1169
|
+
var _a;
|
|
1124
1170
|
request = request || {};
|
|
1125
1171
|
options = options || {};
|
|
1126
1172
|
options.otherArgs = options.otherArgs || {};
|
|
1127
1173
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1128
1174
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1129
|
-
|
|
1130
|
-
parent: request.parent
|
|
1175
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1176
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1131
1177
|
});
|
|
1132
1178
|
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
1133
1179
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1165,7 +1211,7 @@ class DlpServiceClient {
|
|
|
1165
1211
|
* Page token to continue retrieval. Comes from previous call
|
|
1166
1212
|
* to `ListDeidentifyTemplates`.
|
|
1167
1213
|
* @param {number} request.pageSize
|
|
1168
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
1214
|
+
* Size of the page, can be limited by the server. If zero server returns
|
|
1169
1215
|
* a page of max size 100.
|
|
1170
1216
|
* @param {string} request.orderBy
|
|
1171
1217
|
* Comma separated list of fields to order by,
|
|
@@ -1177,10 +1223,10 @@ class DlpServiceClient {
|
|
|
1177
1223
|
*
|
|
1178
1224
|
* Supported fields are:
|
|
1179
1225
|
*
|
|
1180
|
-
* - `create_time`: corresponds to time the template was created.
|
|
1181
|
-
* - `update_time`: corresponds to time the template was last updated.
|
|
1182
|
-
* - `name`: corresponds to template's name.
|
|
1183
|
-
* - `display_name`: corresponds to template's display name.
|
|
1226
|
+
* - `create_time`: corresponds to the time the template was created.
|
|
1227
|
+
* - `update_time`: corresponds to the time the template was last updated.
|
|
1228
|
+
* - `name`: corresponds to the template's name.
|
|
1229
|
+
* - `display_name`: corresponds to the template's display name.
|
|
1184
1230
|
* @param {string} request.locationId
|
|
1185
1231
|
* Deprecated. This field has no effect.
|
|
1186
1232
|
* @param {object} [options]
|
|
@@ -1197,13 +1243,14 @@ class DlpServiceClient {
|
|
|
1197
1243
|
* region_tag:dlp_v2_generated_DlpService_ListDeidentifyTemplates_async
|
|
1198
1244
|
*/
|
|
1199
1245
|
listDeidentifyTemplatesAsync(request, options) {
|
|
1246
|
+
var _a;
|
|
1200
1247
|
request = request || {};
|
|
1201
1248
|
options = options || {};
|
|
1202
1249
|
options.otherArgs = options.otherArgs || {};
|
|
1203
1250
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1204
1251
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1205
|
-
|
|
1206
|
-
parent: request.parent
|
|
1252
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1253
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1207
1254
|
});
|
|
1208
1255
|
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
1209
1256
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1211,6 +1258,7 @@ class DlpServiceClient {
|
|
|
1211
1258
|
return this.descriptors.page.listDeidentifyTemplates.asyncIterate(this.innerApiCalls['listDeidentifyTemplates'], request, callSettings);
|
|
1212
1259
|
}
|
|
1213
1260
|
listJobTriggers(request, optionsOrCallback, callback) {
|
|
1261
|
+
var _a;
|
|
1214
1262
|
request = request || {};
|
|
1215
1263
|
let options;
|
|
1216
1264
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1224,8 +1272,8 @@ class DlpServiceClient {
|
|
|
1224
1272
|
options.otherArgs = options.otherArgs || {};
|
|
1225
1273
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1226
1274
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1227
|
-
|
|
1228
|
-
parent: request.parent
|
|
1275
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1276
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1229
1277
|
});
|
|
1230
1278
|
this.initialize();
|
|
1231
1279
|
return this.innerApiCalls.listJobTriggers(request, options, callback);
|
|
@@ -1267,11 +1315,11 @@ class DlpServiceClient {
|
|
|
1267
1315
|
*
|
|
1268
1316
|
* Supported fields are:
|
|
1269
1317
|
*
|
|
1270
|
-
* - `create_time`: corresponds to time the JobTrigger was created.
|
|
1271
|
-
* - `update_time`: corresponds to time the JobTrigger was last updated.
|
|
1318
|
+
* - `create_time`: corresponds to the time the JobTrigger was created.
|
|
1319
|
+
* - `update_time`: corresponds to the time the JobTrigger was last updated.
|
|
1272
1320
|
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
|
|
1273
|
-
* - `name`: corresponds to JobTrigger's name.
|
|
1274
|
-
* - `display_name`: corresponds to JobTrigger's display name.
|
|
1321
|
+
* - `name`: corresponds to the JobTrigger's name.
|
|
1322
|
+
* - `display_name`: corresponds to the JobTrigger's display name.
|
|
1275
1323
|
* - `status`: corresponds to JobTrigger's status.
|
|
1276
1324
|
* @param {string} request.filter
|
|
1277
1325
|
* Allows filtering.
|
|
@@ -1315,13 +1363,14 @@ class DlpServiceClient {
|
|
|
1315
1363
|
* for more details and examples.
|
|
1316
1364
|
*/
|
|
1317
1365
|
listJobTriggersStream(request, options) {
|
|
1366
|
+
var _a;
|
|
1318
1367
|
request = request || {};
|
|
1319
1368
|
options = options || {};
|
|
1320
1369
|
options.otherArgs = options.otherArgs || {};
|
|
1321
1370
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1322
1371
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1323
|
-
|
|
1324
|
-
parent: request.parent
|
|
1372
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1373
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1325
1374
|
});
|
|
1326
1375
|
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
1327
1376
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1367,11 +1416,11 @@ class DlpServiceClient {
|
|
|
1367
1416
|
*
|
|
1368
1417
|
* Supported fields are:
|
|
1369
1418
|
*
|
|
1370
|
-
* - `create_time`: corresponds to time the JobTrigger was created.
|
|
1371
|
-
* - `update_time`: corresponds to time the JobTrigger was last updated.
|
|
1419
|
+
* - `create_time`: corresponds to the time the JobTrigger was created.
|
|
1420
|
+
* - `update_time`: corresponds to the time the JobTrigger was last updated.
|
|
1372
1421
|
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
|
|
1373
|
-
* - `name`: corresponds to JobTrigger's name.
|
|
1374
|
-
* - `display_name`: corresponds to JobTrigger's display name.
|
|
1422
|
+
* - `name`: corresponds to the JobTrigger's name.
|
|
1423
|
+
* - `display_name`: corresponds to the JobTrigger's display name.
|
|
1375
1424
|
* - `status`: corresponds to JobTrigger's status.
|
|
1376
1425
|
* @param {string} request.filter
|
|
1377
1426
|
* Allows filtering.
|
|
@@ -1416,13 +1465,14 @@ class DlpServiceClient {
|
|
|
1416
1465
|
* region_tag:dlp_v2_generated_DlpService_ListJobTriggers_async
|
|
1417
1466
|
*/
|
|
1418
1467
|
listJobTriggersAsync(request, options) {
|
|
1468
|
+
var _a;
|
|
1419
1469
|
request = request || {};
|
|
1420
1470
|
options = options || {};
|
|
1421
1471
|
options.otherArgs = options.otherArgs || {};
|
|
1422
1472
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1423
1473
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1424
|
-
|
|
1425
|
-
parent: request.parent
|
|
1474
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1475
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1426
1476
|
});
|
|
1427
1477
|
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
1428
1478
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1430,6 +1480,7 @@ class DlpServiceClient {
|
|
|
1430
1480
|
return this.descriptors.page.listJobTriggers.asyncIterate(this.innerApiCalls['listJobTriggers'], request, callSettings);
|
|
1431
1481
|
}
|
|
1432
1482
|
listDlpJobs(request, optionsOrCallback, callback) {
|
|
1483
|
+
var _a;
|
|
1433
1484
|
request = request || {};
|
|
1434
1485
|
let options;
|
|
1435
1486
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1443,8 +1494,8 @@ class DlpServiceClient {
|
|
|
1443
1494
|
options.otherArgs = options.otherArgs || {};
|
|
1444
1495
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1445
1496
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1446
|
-
|
|
1447
|
-
parent: request.parent
|
|
1497
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1498
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1448
1499
|
});
|
|
1449
1500
|
this.initialize();
|
|
1450
1501
|
return this.innerApiCalls.listDlpJobs(request, options, callback);
|
|
@@ -1482,13 +1533,13 @@ class DlpServiceClient {
|
|
|
1482
1533
|
* * Supported fields/values for inspect jobs:
|
|
1483
1534
|
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
|
1484
1535
|
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
1485
|
-
* - `trigger_name` - The
|
|
1486
|
-
* - 'end_time` - Corresponds to time the job finished.
|
|
1487
|
-
* - 'start_time` - Corresponds to time the job finished.
|
|
1536
|
+
* - `trigger_name` - The name of the trigger that created the job.
|
|
1537
|
+
* - 'end_time` - Corresponds to the time the job finished.
|
|
1538
|
+
* - 'start_time` - Corresponds to the time the job finished.
|
|
1488
1539
|
* * Supported fields for risk analysis jobs:
|
|
1489
1540
|
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
|
1490
|
-
* - 'end_time` - Corresponds to time the job finished.
|
|
1491
|
-
* - 'start_time` - Corresponds to time the job finished.
|
|
1541
|
+
* - 'end_time` - Corresponds to the time the job finished.
|
|
1542
|
+
* - 'start_time` - Corresponds to the time the job finished.
|
|
1492
1543
|
* * The operator must be `=` or `!=`.
|
|
1493
1544
|
*
|
|
1494
1545
|
* Examples:
|
|
@@ -1515,9 +1566,9 @@ class DlpServiceClient {
|
|
|
1515
1566
|
*
|
|
1516
1567
|
* Supported fields are:
|
|
1517
1568
|
*
|
|
1518
|
-
* - `create_time`: corresponds to time the job was created.
|
|
1519
|
-
* - `end_time`: corresponds to time the job ended.
|
|
1520
|
-
* - `name`: corresponds to job's name.
|
|
1569
|
+
* - `create_time`: corresponds to the time the job was created.
|
|
1570
|
+
* - `end_time`: corresponds to the time the job ended.
|
|
1571
|
+
* - `name`: corresponds to the job's name.
|
|
1521
1572
|
* - `state`: corresponds to `state`
|
|
1522
1573
|
* @param {string} request.locationId
|
|
1523
1574
|
* Deprecated. This field has no effect.
|
|
@@ -1534,13 +1585,14 @@ class DlpServiceClient {
|
|
|
1534
1585
|
* for more details and examples.
|
|
1535
1586
|
*/
|
|
1536
1587
|
listDlpJobsStream(request, options) {
|
|
1588
|
+
var _a;
|
|
1537
1589
|
request = request || {};
|
|
1538
1590
|
options = options || {};
|
|
1539
1591
|
options.otherArgs = options.otherArgs || {};
|
|
1540
1592
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1541
1593
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1542
|
-
|
|
1543
|
-
parent: request.parent
|
|
1594
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1595
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1544
1596
|
});
|
|
1545
1597
|
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
1546
1598
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1582,13 +1634,13 @@ class DlpServiceClient {
|
|
|
1582
1634
|
* * Supported fields/values for inspect jobs:
|
|
1583
1635
|
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
|
1584
1636
|
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
1585
|
-
* - `trigger_name` - The
|
|
1586
|
-
* - 'end_time` - Corresponds to time the job finished.
|
|
1587
|
-
* - 'start_time` - Corresponds to time the job finished.
|
|
1637
|
+
* - `trigger_name` - The name of the trigger that created the job.
|
|
1638
|
+
* - 'end_time` - Corresponds to the time the job finished.
|
|
1639
|
+
* - 'start_time` - Corresponds to the time the job finished.
|
|
1588
1640
|
* * Supported fields for risk analysis jobs:
|
|
1589
1641
|
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
|
1590
|
-
* - 'end_time` - Corresponds to time the job finished.
|
|
1591
|
-
* - 'start_time` - Corresponds to time the job finished.
|
|
1642
|
+
* - 'end_time` - Corresponds to the time the job finished.
|
|
1643
|
+
* - 'start_time` - Corresponds to the time the job finished.
|
|
1592
1644
|
* * The operator must be `=` or `!=`.
|
|
1593
1645
|
*
|
|
1594
1646
|
* Examples:
|
|
@@ -1615,9 +1667,9 @@ class DlpServiceClient {
|
|
|
1615
1667
|
*
|
|
1616
1668
|
* Supported fields are:
|
|
1617
1669
|
*
|
|
1618
|
-
* - `create_time`: corresponds to time the job was created.
|
|
1619
|
-
* - `end_time`: corresponds to time the job ended.
|
|
1620
|
-
* - `name`: corresponds to job's name.
|
|
1670
|
+
* - `create_time`: corresponds to the time the job was created.
|
|
1671
|
+
* - `end_time`: corresponds to the time the job ended.
|
|
1672
|
+
* - `name`: corresponds to the job's name.
|
|
1621
1673
|
* - `state`: corresponds to `state`
|
|
1622
1674
|
* @param {string} request.locationId
|
|
1623
1675
|
* Deprecated. This field has no effect.
|
|
@@ -1635,13 +1687,14 @@ class DlpServiceClient {
|
|
|
1635
1687
|
* region_tag:dlp_v2_generated_DlpService_ListDlpJobs_async
|
|
1636
1688
|
*/
|
|
1637
1689
|
listDlpJobsAsync(request, options) {
|
|
1690
|
+
var _a;
|
|
1638
1691
|
request = request || {};
|
|
1639
1692
|
options = options || {};
|
|
1640
1693
|
options.otherArgs = options.otherArgs || {};
|
|
1641
1694
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1642
1695
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1643
|
-
|
|
1644
|
-
parent: request.parent
|
|
1696
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1697
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1645
1698
|
});
|
|
1646
1699
|
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
1647
1700
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1649,6 +1702,7 @@ class DlpServiceClient {
|
|
|
1649
1702
|
return this.descriptors.page.listDlpJobs.asyncIterate(this.innerApiCalls['listDlpJobs'], request, callSettings);
|
|
1650
1703
|
}
|
|
1651
1704
|
listStoredInfoTypes(request, optionsOrCallback, callback) {
|
|
1705
|
+
var _a;
|
|
1652
1706
|
request = request || {};
|
|
1653
1707
|
let options;
|
|
1654
1708
|
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
@@ -1662,8 +1716,8 @@ class DlpServiceClient {
|
|
|
1662
1716
|
options.otherArgs = options.otherArgs || {};
|
|
1663
1717
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1664
1718
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1665
|
-
|
|
1666
|
-
parent: request.parent
|
|
1719
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1720
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1667
1721
|
});
|
|
1668
1722
|
this.initialize();
|
|
1669
1723
|
return this.innerApiCalls.listStoredInfoTypes(request, options, callback);
|
|
@@ -1683,10 +1737,6 @@ class DlpServiceClient {
|
|
|
1683
1737
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1684
1738
|
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1685
1739
|
* `projects/`<var>PROJECT_ID</var>
|
|
1686
|
-
* + Organizations scope, location specified:<br/>
|
|
1687
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1688
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
1689
|
-
* `organizations/`<var>ORG_ID</var>
|
|
1690
1740
|
*
|
|
1691
1741
|
* The following example `parent` string specifies a parent project with the
|
|
1692
1742
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1697,7 +1747,7 @@ class DlpServiceClient {
|
|
|
1697
1747
|
* Page token to continue retrieval. Comes from previous call
|
|
1698
1748
|
* to `ListStoredInfoTypes`.
|
|
1699
1749
|
* @param {number} request.pageSize
|
|
1700
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
1750
|
+
* Size of the page, can be limited by the server. If zero server returns
|
|
1701
1751
|
* a page of max size 100.
|
|
1702
1752
|
* @param {string} request.orderBy
|
|
1703
1753
|
* Comma separated list of fields to order by,
|
|
@@ -1709,7 +1759,7 @@ class DlpServiceClient {
|
|
|
1709
1759
|
*
|
|
1710
1760
|
* Supported fields are:
|
|
1711
1761
|
*
|
|
1712
|
-
* - `create_time`: corresponds to time the most recent version of the
|
|
1762
|
+
* - `create_time`: corresponds to the time the most recent version of the
|
|
1713
1763
|
* resource was created.
|
|
1714
1764
|
* - `state`: corresponds to the state of the resource.
|
|
1715
1765
|
* - `name`: corresponds to resource name.
|
|
@@ -1729,13 +1779,14 @@ class DlpServiceClient {
|
|
|
1729
1779
|
* for more details and examples.
|
|
1730
1780
|
*/
|
|
1731
1781
|
listStoredInfoTypesStream(request, options) {
|
|
1782
|
+
var _a;
|
|
1732
1783
|
request = request || {};
|
|
1733
1784
|
options = options || {};
|
|
1734
1785
|
options.otherArgs = options.otherArgs || {};
|
|
1735
1786
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1736
1787
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1737
|
-
|
|
1738
|
-
parent: request.parent
|
|
1788
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1789
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1739
1790
|
});
|
|
1740
1791
|
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
1741
1792
|
const callSettings = defaultCallSettings.merge(options);
|
|
@@ -1759,10 +1810,6 @@ class DlpServiceClient {
|
|
|
1759
1810
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1760
1811
|
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1761
1812
|
* `projects/`<var>PROJECT_ID</var>
|
|
1762
|
-
* + Organizations scope, location specified:<br/>
|
|
1763
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1764
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
1765
|
-
* `organizations/`<var>ORG_ID</var>
|
|
1766
1813
|
*
|
|
1767
1814
|
* The following example `parent` string specifies a parent project with the
|
|
1768
1815
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1773,7 +1820,7 @@ class DlpServiceClient {
|
|
|
1773
1820
|
* Page token to continue retrieval. Comes from previous call
|
|
1774
1821
|
* to `ListStoredInfoTypes`.
|
|
1775
1822
|
* @param {number} request.pageSize
|
|
1776
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
1823
|
+
* Size of the page, can be limited by the server. If zero server returns
|
|
1777
1824
|
* a page of max size 100.
|
|
1778
1825
|
* @param {string} request.orderBy
|
|
1779
1826
|
* Comma separated list of fields to order by,
|
|
@@ -1785,7 +1832,7 @@ class DlpServiceClient {
|
|
|
1785
1832
|
*
|
|
1786
1833
|
* Supported fields are:
|
|
1787
1834
|
*
|
|
1788
|
-
* - `create_time`: corresponds to time the most recent version of the
|
|
1835
|
+
* - `create_time`: corresponds to the time the most recent version of the
|
|
1789
1836
|
* resource was created.
|
|
1790
1837
|
* - `state`: corresponds to the state of the resource.
|
|
1791
1838
|
* - `name`: corresponds to resource name.
|
|
@@ -1806,19 +1853,77 @@ class DlpServiceClient {
|
|
|
1806
1853
|
* region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async
|
|
1807
1854
|
*/
|
|
1808
1855
|
listStoredInfoTypesAsync(request, options) {
|
|
1856
|
+
var _a;
|
|
1809
1857
|
request = request || {};
|
|
1810
1858
|
options = options || {};
|
|
1811
1859
|
options.otherArgs = options.otherArgs || {};
|
|
1812
1860
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1813
1861
|
options.otherArgs.headers['x-goog-request-params'] =
|
|
1814
|
-
|
|
1815
|
-
parent: request.parent
|
|
1862
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1863
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1816
1864
|
});
|
|
1817
1865
|
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
1818
1866
|
const callSettings = defaultCallSettings.merge(options);
|
|
1819
1867
|
this.initialize();
|
|
1820
1868
|
return this.descriptors.page.listStoredInfoTypes.asyncIterate(this.innerApiCalls['listStoredInfoTypes'], request, callSettings);
|
|
1821
1869
|
}
|
|
1870
|
+
/**
|
|
1871
|
+
* Gets information about a location.
|
|
1872
|
+
*
|
|
1873
|
+
* @param {Object} request
|
|
1874
|
+
* The request object that will be sent.
|
|
1875
|
+
* @param {string} request.name
|
|
1876
|
+
* Resource name for the location.
|
|
1877
|
+
* @param {object} [options]
|
|
1878
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1879
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1880
|
+
* The first element of the array is an object representing [Location]{@link google.cloud.location.Location}.
|
|
1881
|
+
* Please see the
|
|
1882
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1883
|
+
* for more details and examples.
|
|
1884
|
+
* @example
|
|
1885
|
+
* ```
|
|
1886
|
+
* const [response] = await client.getLocation(request);
|
|
1887
|
+
* ```
|
|
1888
|
+
*/
|
|
1889
|
+
getLocation(request, options, callback) {
|
|
1890
|
+
return this.locationsClient.getLocation(request, options, callback);
|
|
1891
|
+
}
|
|
1892
|
+
/**
|
|
1893
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
|
1894
|
+
*
|
|
1895
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
1896
|
+
* @param {Object} request
|
|
1897
|
+
* The request object that will be sent.
|
|
1898
|
+
* @param {string} request.name
|
|
1899
|
+
* The resource that owns the locations collection, if applicable.
|
|
1900
|
+
* @param {string} request.filter
|
|
1901
|
+
* The standard list filter.
|
|
1902
|
+
* @param {number} request.pageSize
|
|
1903
|
+
* The standard list page size.
|
|
1904
|
+
* @param {string} request.pageToken
|
|
1905
|
+
* The standard list page token.
|
|
1906
|
+
* @param {object} [options]
|
|
1907
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1908
|
+
* @returns {Object}
|
|
1909
|
+
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
|
|
1910
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1911
|
+
* [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page,
|
|
1912
|
+
* so you can stop the iteration when you don't need more results.
|
|
1913
|
+
* Please see the
|
|
1914
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1915
|
+
* for more details and examples.
|
|
1916
|
+
* @example
|
|
1917
|
+
* ```
|
|
1918
|
+
* const iterable = client.listLocationsAsync(request);
|
|
1919
|
+
* for await (const response of iterable) {
|
|
1920
|
+
* // process response
|
|
1921
|
+
* }
|
|
1922
|
+
* ```
|
|
1923
|
+
*/
|
|
1924
|
+
listLocationsAsync(request, options) {
|
|
1925
|
+
return this.locationsClient.listLocationsAsync(request, options);
|
|
1926
|
+
}
|
|
1822
1927
|
// --------------------
|
|
1823
1928
|
// -- Path templates --
|
|
1824
1929
|
// --------------------
|
|
@@ -2568,6 +2673,7 @@ class DlpServiceClient {
|
|
|
2568
2673
|
return this.dlpServiceStub.then(stub => {
|
|
2569
2674
|
this._terminated = true;
|
|
2570
2675
|
stub.close();
|
|
2676
|
+
this.locationsClient.close();
|
|
2571
2677
|
});
|
|
2572
2678
|
}
|
|
2573
2679
|
return Promise.resolve();
|