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