@google-cloud/dlp 3.1.7 → 3.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 +28 -0
- package/README.md +1 -1
- package/build/protos/google/privacy/dlp/v2/dlp.proto +83 -43
- package/build/protos/google/privacy/dlp/v2/storage.proto +23 -18
- package/build/protos/protos.d.ts +126 -2
- package/build/protos/protos.js +383 -3
- package/build/protos/protos.json +110 -28
- package/build/src/v2/dlp_service_client.d.ts +1300 -44
- package/build/src/v2/dlp_service_client.js +86 -1361
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/package.json +4 -4
|
@@ -105,6 +105,10 @@ class DlpServiceClient {
|
|
|
105
105
|
this._opts = opts;
|
|
106
106
|
// Save the auth object to the client, for use by other methods.
|
|
107
107
|
this.auth = this._gaxGrpc.auth;
|
|
108
|
+
// Set useJWTAccessWithScope on the auth object.
|
|
109
|
+
this.auth.useJWTAccessWithScope = true;
|
|
110
|
+
// Set defaultServicePath on the auth object.
|
|
111
|
+
this.auth.defaultServicePath = staticMembers.servicePath;
|
|
108
112
|
// Set the default scopes in auth client if needed.
|
|
109
113
|
if (servicePath === staticMembers.servicePath) {
|
|
110
114
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
@@ -289,59 +293,6 @@ class DlpServiceClient {
|
|
|
289
293
|
}
|
|
290
294
|
return this.auth.getProjectId();
|
|
291
295
|
}
|
|
292
|
-
/**
|
|
293
|
-
* Finds potentially sensitive info in content.
|
|
294
|
-
* This method has limits on input size, processing time, and output size.
|
|
295
|
-
*
|
|
296
|
-
* When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
297
|
-
* system will automatically choose what detectors to run. By default this may
|
|
298
|
-
* be all types, but may change over time as detectors are updated.
|
|
299
|
-
*
|
|
300
|
-
* For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
|
|
301
|
-
* and https://cloud.google.com/dlp/docs/inspecting-text,
|
|
302
|
-
*
|
|
303
|
-
* @param {Object} request
|
|
304
|
-
* The request object that will be sent.
|
|
305
|
-
* @param {string} request.parent
|
|
306
|
-
* Parent resource name.
|
|
307
|
-
*
|
|
308
|
-
* The format of this value varies depending on whether you have [specified a
|
|
309
|
-
* processing
|
|
310
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
311
|
-
*
|
|
312
|
-
* + Projects scope, location specified:<br/>
|
|
313
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
314
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
315
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
316
|
-
*
|
|
317
|
-
* The following example `parent` string specifies a parent project with the
|
|
318
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
319
|
-
* for processing data:
|
|
320
|
-
*
|
|
321
|
-
* parent=projects/example-project/locations/europe-west3
|
|
322
|
-
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
323
|
-
* Configuration for the inspector. What specified here will override
|
|
324
|
-
* the template referenced by the inspect_template_name argument.
|
|
325
|
-
* @param {google.privacy.dlp.v2.ContentItem} request.item
|
|
326
|
-
* The item to inspect.
|
|
327
|
-
* @param {string} request.inspectTemplateName
|
|
328
|
-
* Template to use. Any configuration directly specified in
|
|
329
|
-
* inspect_config will override those set in the template. Singular fields
|
|
330
|
-
* that are set in this request will replace their corresponding fields in the
|
|
331
|
-
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
332
|
-
* are recursively merged.
|
|
333
|
-
* @param {string} request.locationId
|
|
334
|
-
* Deprecated. This field has no effect.
|
|
335
|
-
* @param {object} [options]
|
|
336
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
337
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
338
|
-
* The first element of the array is an object representing [InspectContentResponse]{@link google.privacy.dlp.v2.InspectContentResponse}.
|
|
339
|
-
* Please see the
|
|
340
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
341
|
-
* for more details and examples.
|
|
342
|
-
* @example
|
|
343
|
-
* const [response] = await client.inspectContent(request);
|
|
344
|
-
*/
|
|
345
296
|
inspectContent(request, optionsOrCallback, callback) {
|
|
346
297
|
request = request || {};
|
|
347
298
|
let options;
|
|
@@ -362,56 +313,6 @@ class DlpServiceClient {
|
|
|
362
313
|
this.initialize();
|
|
363
314
|
return this.innerApiCalls.inspectContent(request, options, callback);
|
|
364
315
|
}
|
|
365
|
-
/**
|
|
366
|
-
* Redacts potentially sensitive info from an image.
|
|
367
|
-
* This method has limits on input size, processing time, and output size.
|
|
368
|
-
* See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
|
369
|
-
* learn more.
|
|
370
|
-
*
|
|
371
|
-
* When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
372
|
-
* system will automatically choose what detectors to run. By default this may
|
|
373
|
-
* be all types, but may change over time as detectors are updated.
|
|
374
|
-
*
|
|
375
|
-
* @param {Object} request
|
|
376
|
-
* The request object that will be sent.
|
|
377
|
-
* @param {string} request.parent
|
|
378
|
-
* Parent resource name.
|
|
379
|
-
*
|
|
380
|
-
* The format of this value varies depending on whether you have [specified a
|
|
381
|
-
* processing
|
|
382
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
383
|
-
*
|
|
384
|
-
* + Projects scope, location specified:<br/>
|
|
385
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
386
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
387
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
388
|
-
*
|
|
389
|
-
* The following example `parent` string specifies a parent project with the
|
|
390
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
391
|
-
* for processing data:
|
|
392
|
-
*
|
|
393
|
-
* parent=projects/example-project/locations/europe-west3
|
|
394
|
-
* @param {string} request.locationId
|
|
395
|
-
* Deprecated. This field has no effect.
|
|
396
|
-
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
397
|
-
* Configuration for the inspector.
|
|
398
|
-
* @param {number[]} request.imageRedactionConfigs
|
|
399
|
-
* The configuration for specifying what content to redact from images.
|
|
400
|
-
* @param {boolean} request.includeFindings
|
|
401
|
-
* Whether the response should include findings along with the redacted
|
|
402
|
-
* image.
|
|
403
|
-
* @param {google.privacy.dlp.v2.ByteContentItem} request.byteItem
|
|
404
|
-
* The content must be PNG, JPEG, SVG or BMP.
|
|
405
|
-
* @param {object} [options]
|
|
406
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
407
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
408
|
-
* The first element of the array is an object representing [RedactImageResponse]{@link google.privacy.dlp.v2.RedactImageResponse}.
|
|
409
|
-
* Please see the
|
|
410
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
411
|
-
* for more details and examples.
|
|
412
|
-
* @example
|
|
413
|
-
* const [response] = await client.redactImage(request);
|
|
414
|
-
*/
|
|
415
316
|
redactImage(request, optionsOrCallback, callback) {
|
|
416
317
|
request = request || {};
|
|
417
318
|
let options;
|
|
@@ -432,69 +333,6 @@ class DlpServiceClient {
|
|
|
432
333
|
this.initialize();
|
|
433
334
|
return this.innerApiCalls.redactImage(request, options, callback);
|
|
434
335
|
}
|
|
435
|
-
/**
|
|
436
|
-
* De-identifies potentially sensitive info from a ContentItem.
|
|
437
|
-
* This method has limits on input size and output size.
|
|
438
|
-
* See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
|
439
|
-
* learn more.
|
|
440
|
-
*
|
|
441
|
-
* When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
442
|
-
* system will automatically choose what detectors to run. By default this may
|
|
443
|
-
* be all types, but may change over time as detectors are updated.
|
|
444
|
-
*
|
|
445
|
-
* @param {Object} request
|
|
446
|
-
* The request object that will be sent.
|
|
447
|
-
* @param {string} request.parent
|
|
448
|
-
* Parent resource name.
|
|
449
|
-
*
|
|
450
|
-
* The format of this value varies depending on whether you have [specified a
|
|
451
|
-
* processing
|
|
452
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
453
|
-
*
|
|
454
|
-
* + Projects scope, location specified:<br/>
|
|
455
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
456
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
457
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
458
|
-
*
|
|
459
|
-
* The following example `parent` string specifies a parent project with the
|
|
460
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
461
|
-
* for processing data:
|
|
462
|
-
*
|
|
463
|
-
* parent=projects/example-project/locations/europe-west3
|
|
464
|
-
* @param {google.privacy.dlp.v2.DeidentifyConfig} request.deidentifyConfig
|
|
465
|
-
* Configuration for the de-identification of the content item.
|
|
466
|
-
* Items specified here will override the template referenced by the
|
|
467
|
-
* deidentify_template_name argument.
|
|
468
|
-
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
469
|
-
* Configuration for the inspector.
|
|
470
|
-
* Items specified here will override the template referenced by the
|
|
471
|
-
* inspect_template_name argument.
|
|
472
|
-
* @param {google.privacy.dlp.v2.ContentItem} request.item
|
|
473
|
-
* The item to de-identify. Will be treated as text.
|
|
474
|
-
* @param {string} request.inspectTemplateName
|
|
475
|
-
* Template to use. Any configuration directly specified in
|
|
476
|
-
* inspect_config will override those set in the template. Singular fields
|
|
477
|
-
* that are set in this request will replace their corresponding fields in the
|
|
478
|
-
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
479
|
-
* are recursively merged.
|
|
480
|
-
* @param {string} request.deidentifyTemplateName
|
|
481
|
-
* Template to use. Any configuration directly specified in
|
|
482
|
-
* deidentify_config will override those set in the template. Singular fields
|
|
483
|
-
* that are set in this request will replace their corresponding fields in the
|
|
484
|
-
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
485
|
-
* are recursively merged.
|
|
486
|
-
* @param {string} request.locationId
|
|
487
|
-
* Deprecated. This field has no effect.
|
|
488
|
-
* @param {object} [options]
|
|
489
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
490
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
491
|
-
* The first element of the array is an object representing [DeidentifyContentResponse]{@link google.privacy.dlp.v2.DeidentifyContentResponse}.
|
|
492
|
-
* Please see the
|
|
493
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
494
|
-
* for more details and examples.
|
|
495
|
-
* @example
|
|
496
|
-
* const [response] = await client.deidentifyContent(request);
|
|
497
|
-
*/
|
|
498
336
|
deidentifyContent(request, optionsOrCallback, callback) {
|
|
499
337
|
request = request || {};
|
|
500
338
|
let options;
|
|
@@ -515,72 +353,6 @@ class DlpServiceClient {
|
|
|
515
353
|
this.initialize();
|
|
516
354
|
return this.innerApiCalls.deidentifyContent(request, options, callback);
|
|
517
355
|
}
|
|
518
|
-
/**
|
|
519
|
-
* Re-identifies content that has been de-identified.
|
|
520
|
-
* See
|
|
521
|
-
* https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
|
|
522
|
-
* to learn more.
|
|
523
|
-
*
|
|
524
|
-
* @param {Object} request
|
|
525
|
-
* The request object that will be sent.
|
|
526
|
-
* @param {string} request.parent
|
|
527
|
-
* Required. Parent resource name.
|
|
528
|
-
*
|
|
529
|
-
* The format of this value varies depending on whether you have [specified a
|
|
530
|
-
* processing
|
|
531
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
532
|
-
*
|
|
533
|
-
* + Projects scope, location specified:<br/>
|
|
534
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
535
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
536
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
537
|
-
*
|
|
538
|
-
* The following example `parent` string specifies a parent project with the
|
|
539
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
540
|
-
* for processing data:
|
|
541
|
-
*
|
|
542
|
-
* parent=projects/example-project/locations/europe-west3
|
|
543
|
-
* @param {google.privacy.dlp.v2.DeidentifyConfig} request.reidentifyConfig
|
|
544
|
-
* Configuration for the re-identification of the content item.
|
|
545
|
-
* This field shares the same proto message type that is used for
|
|
546
|
-
* de-identification, however its usage here is for the reversal of the
|
|
547
|
-
* previous de-identification. Re-identification is performed by examining
|
|
548
|
-
* the transformations used to de-identify the items and executing the
|
|
549
|
-
* reverse. This requires that only reversible transformations
|
|
550
|
-
* be provided here. The reversible transformations are:
|
|
551
|
-
*
|
|
552
|
-
* - `CryptoDeterministicConfig`
|
|
553
|
-
* - `CryptoReplaceFfxFpeConfig`
|
|
554
|
-
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
555
|
-
* Configuration for the inspector.
|
|
556
|
-
* @param {google.privacy.dlp.v2.ContentItem} request.item
|
|
557
|
-
* The item to re-identify. Will be treated as text.
|
|
558
|
-
* @param {string} request.inspectTemplateName
|
|
559
|
-
* Template to use. Any configuration directly specified in
|
|
560
|
-
* `inspect_config` will override those set in the template. Singular fields
|
|
561
|
-
* that are set in this request will replace their corresponding fields in the
|
|
562
|
-
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
563
|
-
* are recursively merged.
|
|
564
|
-
* @param {string} request.reidentifyTemplateName
|
|
565
|
-
* Template to use. References an instance of `DeidentifyTemplate`.
|
|
566
|
-
* Any configuration directly specified in `reidentify_config` or
|
|
567
|
-
* `inspect_config` will override those set in the template. The
|
|
568
|
-
* `DeidentifyTemplate` used must include only reversible transformations.
|
|
569
|
-
* Singular fields that are set in this request will replace their
|
|
570
|
-
* corresponding fields in the template. Repeated fields are appended.
|
|
571
|
-
* Singular sub-messages and groups are recursively merged.
|
|
572
|
-
* @param {string} request.locationId
|
|
573
|
-
* Deprecated. This field has no effect.
|
|
574
|
-
* @param {object} [options]
|
|
575
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
576
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
577
|
-
* The first element of the array is an object representing [ReidentifyContentResponse]{@link google.privacy.dlp.v2.ReidentifyContentResponse}.
|
|
578
|
-
* Please see the
|
|
579
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
580
|
-
* for more details and examples.
|
|
581
|
-
* @example
|
|
582
|
-
* const [response] = await client.reidentifyContent(request);
|
|
583
|
-
*/
|
|
584
356
|
reidentifyContent(request, optionsOrCallback, callback) {
|
|
585
357
|
request = request || {};
|
|
586
358
|
let options;
|
|
@@ -601,38 +373,6 @@ class DlpServiceClient {
|
|
|
601
373
|
this.initialize();
|
|
602
374
|
return this.innerApiCalls.reidentifyContent(request, options, callback);
|
|
603
375
|
}
|
|
604
|
-
/**
|
|
605
|
-
* Returns a list of the sensitive information types that the DLP API
|
|
606
|
-
* supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
|
607
|
-
* learn more.
|
|
608
|
-
*
|
|
609
|
-
* @param {Object} request
|
|
610
|
-
* The request object that will be sent.
|
|
611
|
-
* @param {string} request.parent
|
|
612
|
-
* The parent resource name.
|
|
613
|
-
*
|
|
614
|
-
* The format of this value is as follows:
|
|
615
|
-
*
|
|
616
|
-
* locations/<var>LOCATION_ID</var>
|
|
617
|
-
* @param {string} request.languageCode
|
|
618
|
-
* BCP-47 language code for localized infoType friendly
|
|
619
|
-
* names. If omitted, or if localized strings are not available,
|
|
620
|
-
* en-US strings will be returned.
|
|
621
|
-
* @param {string} request.filter
|
|
622
|
-
* filter to only return infoTypes supported by certain parts of the
|
|
623
|
-
* API. Defaults to supported_by=INSPECT.
|
|
624
|
-
* @param {string} request.locationId
|
|
625
|
-
* Deprecated. This field has no effect.
|
|
626
|
-
* @param {object} [options]
|
|
627
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
628
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
629
|
-
* The first element of the array is an object representing [ListInfoTypesResponse]{@link google.privacy.dlp.v2.ListInfoTypesResponse}.
|
|
630
|
-
* Please see the
|
|
631
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
632
|
-
* for more details and examples.
|
|
633
|
-
* @example
|
|
634
|
-
* const [response] = await client.listInfoTypes(request);
|
|
635
|
-
*/
|
|
636
376
|
listInfoTypes(request, optionsOrCallback, callback) {
|
|
637
377
|
request = request || {};
|
|
638
378
|
let options;
|
|
@@ -653,53 +393,6 @@ class DlpServiceClient {
|
|
|
653
393
|
this.initialize();
|
|
654
394
|
return this.innerApiCalls.listInfoTypes(request, options, callback);
|
|
655
395
|
}
|
|
656
|
-
/**
|
|
657
|
-
* Creates an InspectTemplate for re-using frequently used configuration
|
|
658
|
-
* for inspecting content, images, and storage.
|
|
659
|
-
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
660
|
-
*
|
|
661
|
-
* @param {Object} request
|
|
662
|
-
* The request object that will be sent.
|
|
663
|
-
* @param {string} request.parent
|
|
664
|
-
* Required. Parent resource name.
|
|
665
|
-
*
|
|
666
|
-
* The format of this value varies depending on the scope of the request
|
|
667
|
-
* (project or organization) and whether you have [specified a processing
|
|
668
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
669
|
-
*
|
|
670
|
-
* + Projects scope, location specified:<br/>
|
|
671
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
672
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
673
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
674
|
-
* + Organizations scope, location specified:<br/>
|
|
675
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
676
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
677
|
-
* `organizations/`<var>ORG_ID</var>
|
|
678
|
-
*
|
|
679
|
-
* The following example `parent` string specifies a parent project with the
|
|
680
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
681
|
-
* for processing data:
|
|
682
|
-
*
|
|
683
|
-
* parent=projects/example-project/locations/europe-west3
|
|
684
|
-
* @param {google.privacy.dlp.v2.InspectTemplate} request.inspectTemplate
|
|
685
|
-
* Required. The InspectTemplate to create.
|
|
686
|
-
* @param {string} request.templateId
|
|
687
|
-
* The template id can contain uppercase and lowercase letters,
|
|
688
|
-
* numbers, and hyphens; that is, it must match the regular
|
|
689
|
-
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
690
|
-
* characters. Can be empty to allow the system to generate one.
|
|
691
|
-
* @param {string} request.locationId
|
|
692
|
-
* Deprecated. This field has no effect.
|
|
693
|
-
* @param {object} [options]
|
|
694
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
695
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
696
|
-
* The first element of the array is an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
697
|
-
* Please see the
|
|
698
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
699
|
-
* for more details and examples.
|
|
700
|
-
* @example
|
|
701
|
-
* const [response] = await client.createInspectTemplate(request);
|
|
702
|
-
*/
|
|
703
396
|
createInspectTemplate(request, optionsOrCallback, callback) {
|
|
704
397
|
request = request || {};
|
|
705
398
|
let options;
|
|
@@ -720,30 +413,6 @@ class DlpServiceClient {
|
|
|
720
413
|
this.initialize();
|
|
721
414
|
return this.innerApiCalls.createInspectTemplate(request, options, callback);
|
|
722
415
|
}
|
|
723
|
-
/**
|
|
724
|
-
* Updates the InspectTemplate.
|
|
725
|
-
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
726
|
-
*
|
|
727
|
-
* @param {Object} request
|
|
728
|
-
* The request object that will be sent.
|
|
729
|
-
* @param {string} request.name
|
|
730
|
-
* Required. Resource name of organization and inspectTemplate to be updated, for
|
|
731
|
-
* example `organizations/433245324/inspectTemplates/432452342` or
|
|
732
|
-
* projects/project-id/inspectTemplates/432452342.
|
|
733
|
-
* @param {google.privacy.dlp.v2.InspectTemplate} request.inspectTemplate
|
|
734
|
-
* New InspectTemplate value.
|
|
735
|
-
* @param {google.protobuf.FieldMask} request.updateMask
|
|
736
|
-
* Mask to control which fields get updated.
|
|
737
|
-
* @param {object} [options]
|
|
738
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
739
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
740
|
-
* The first element of the array is an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
741
|
-
* Please see the
|
|
742
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
743
|
-
* for more details and examples.
|
|
744
|
-
* @example
|
|
745
|
-
* const [response] = await client.updateInspectTemplate(request);
|
|
746
|
-
*/
|
|
747
416
|
updateInspectTemplate(request, optionsOrCallback, callback) {
|
|
748
417
|
request = request || {};
|
|
749
418
|
let options;
|
|
@@ -764,26 +433,6 @@ class DlpServiceClient {
|
|
|
764
433
|
this.initialize();
|
|
765
434
|
return this.innerApiCalls.updateInspectTemplate(request, options, callback);
|
|
766
435
|
}
|
|
767
|
-
/**
|
|
768
|
-
* Gets an InspectTemplate.
|
|
769
|
-
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
770
|
-
*
|
|
771
|
-
* @param {Object} request
|
|
772
|
-
* The request object that will be sent.
|
|
773
|
-
* @param {string} request.name
|
|
774
|
-
* Required. Resource name of the organization and inspectTemplate to be read, for
|
|
775
|
-
* example `organizations/433245324/inspectTemplates/432452342` or
|
|
776
|
-
* projects/project-id/inspectTemplates/432452342.
|
|
777
|
-
* @param {object} [options]
|
|
778
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
779
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
780
|
-
* The first element of the array is an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
781
|
-
* Please see the
|
|
782
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
783
|
-
* for more details and examples.
|
|
784
|
-
* @example
|
|
785
|
-
* const [response] = await client.getInspectTemplate(request);
|
|
786
|
-
*/
|
|
787
436
|
getInspectTemplate(request, optionsOrCallback, callback) {
|
|
788
437
|
request = request || {};
|
|
789
438
|
let options;
|
|
@@ -804,26 +453,6 @@ class DlpServiceClient {
|
|
|
804
453
|
this.initialize();
|
|
805
454
|
return this.innerApiCalls.getInspectTemplate(request, options, callback);
|
|
806
455
|
}
|
|
807
|
-
/**
|
|
808
|
-
* Deletes an InspectTemplate.
|
|
809
|
-
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
810
|
-
*
|
|
811
|
-
* @param {Object} request
|
|
812
|
-
* The request object that will be sent.
|
|
813
|
-
* @param {string} request.name
|
|
814
|
-
* Required. Resource name of the organization and inspectTemplate to be deleted, for
|
|
815
|
-
* example `organizations/433245324/inspectTemplates/432452342` or
|
|
816
|
-
* projects/project-id/inspectTemplates/432452342.
|
|
817
|
-
* @param {object} [options]
|
|
818
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
819
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
820
|
-
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
821
|
-
* Please see the
|
|
822
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
823
|
-
* for more details and examples.
|
|
824
|
-
* @example
|
|
825
|
-
* const [response] = await client.deleteInspectTemplate(request);
|
|
826
|
-
*/
|
|
827
456
|
deleteInspectTemplate(request, optionsOrCallback, callback) {
|
|
828
457
|
request = request || {};
|
|
829
458
|
let options;
|
|
@@ -844,54 +473,6 @@ class DlpServiceClient {
|
|
|
844
473
|
this.initialize();
|
|
845
474
|
return this.innerApiCalls.deleteInspectTemplate(request, options, callback);
|
|
846
475
|
}
|
|
847
|
-
/**
|
|
848
|
-
* Creates a DeidentifyTemplate for re-using frequently used configuration
|
|
849
|
-
* for de-identifying content, images, and storage.
|
|
850
|
-
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
851
|
-
* more.
|
|
852
|
-
*
|
|
853
|
-
* @param {Object} request
|
|
854
|
-
* The request object that will be sent.
|
|
855
|
-
* @param {string} request.parent
|
|
856
|
-
* Required. Parent resource name.
|
|
857
|
-
*
|
|
858
|
-
* The format of this value varies depending on the scope of the request
|
|
859
|
-
* (project or organization) and whether you have [specified a processing
|
|
860
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
861
|
-
*
|
|
862
|
-
* + Projects scope, location specified:<br/>
|
|
863
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
864
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
865
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
866
|
-
* + Organizations scope, location specified:<br/>
|
|
867
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
868
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
869
|
-
* `organizations/`<var>ORG_ID</var>
|
|
870
|
-
*
|
|
871
|
-
* The following example `parent` string specifies a parent project with the
|
|
872
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
873
|
-
* for processing data:
|
|
874
|
-
*
|
|
875
|
-
* parent=projects/example-project/locations/europe-west3
|
|
876
|
-
* @param {google.privacy.dlp.v2.DeidentifyTemplate} request.deidentifyTemplate
|
|
877
|
-
* Required. The DeidentifyTemplate to create.
|
|
878
|
-
* @param {string} request.templateId
|
|
879
|
-
* The template id can contain uppercase and lowercase letters,
|
|
880
|
-
* numbers, and hyphens; that is, it must match the regular
|
|
881
|
-
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
882
|
-
* characters. Can be empty to allow the system to generate one.
|
|
883
|
-
* @param {string} request.locationId
|
|
884
|
-
* Deprecated. This field has no effect.
|
|
885
|
-
* @param {object} [options]
|
|
886
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
887
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
888
|
-
* The first element of the array is an object representing [DeidentifyTemplate]{@link google.privacy.dlp.v2.DeidentifyTemplate}.
|
|
889
|
-
* Please see the
|
|
890
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
891
|
-
* for more details and examples.
|
|
892
|
-
* @example
|
|
893
|
-
* const [response] = await client.createDeidentifyTemplate(request);
|
|
894
|
-
*/
|
|
895
476
|
createDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
896
477
|
request = request || {};
|
|
897
478
|
let options;
|
|
@@ -912,31 +493,6 @@ class DlpServiceClient {
|
|
|
912
493
|
this.initialize();
|
|
913
494
|
return this.innerApiCalls.createDeidentifyTemplate(request, options, callback);
|
|
914
495
|
}
|
|
915
|
-
/**
|
|
916
|
-
* Updates the DeidentifyTemplate.
|
|
917
|
-
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
918
|
-
* more.
|
|
919
|
-
*
|
|
920
|
-
* @param {Object} request
|
|
921
|
-
* The request object that will be sent.
|
|
922
|
-
* @param {string} request.name
|
|
923
|
-
* Required. Resource name of organization and deidentify template to be updated, for
|
|
924
|
-
* example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
925
|
-
* projects/project-id/deidentifyTemplates/432452342.
|
|
926
|
-
* @param {google.privacy.dlp.v2.DeidentifyTemplate} request.deidentifyTemplate
|
|
927
|
-
* New DeidentifyTemplate value.
|
|
928
|
-
* @param {google.protobuf.FieldMask} request.updateMask
|
|
929
|
-
* Mask to control which fields get updated.
|
|
930
|
-
* @param {object} [options]
|
|
931
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
932
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
933
|
-
* The first element of the array is an object representing [DeidentifyTemplate]{@link google.privacy.dlp.v2.DeidentifyTemplate}.
|
|
934
|
-
* Please see the
|
|
935
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
936
|
-
* for more details and examples.
|
|
937
|
-
* @example
|
|
938
|
-
* const [response] = await client.updateDeidentifyTemplate(request);
|
|
939
|
-
*/
|
|
940
496
|
updateDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
941
497
|
request = request || {};
|
|
942
498
|
let options;
|
|
@@ -957,27 +513,6 @@ class DlpServiceClient {
|
|
|
957
513
|
this.initialize();
|
|
958
514
|
return this.innerApiCalls.updateDeidentifyTemplate(request, options, callback);
|
|
959
515
|
}
|
|
960
|
-
/**
|
|
961
|
-
* Gets a DeidentifyTemplate.
|
|
962
|
-
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
963
|
-
* more.
|
|
964
|
-
*
|
|
965
|
-
* @param {Object} request
|
|
966
|
-
* The request object that will be sent.
|
|
967
|
-
* @param {string} request.name
|
|
968
|
-
* Required. Resource name of the organization and deidentify template to be read, for
|
|
969
|
-
* example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
970
|
-
* projects/project-id/deidentifyTemplates/432452342.
|
|
971
|
-
* @param {object} [options]
|
|
972
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
973
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
974
|
-
* The first element of the array is an object representing [DeidentifyTemplate]{@link google.privacy.dlp.v2.DeidentifyTemplate}.
|
|
975
|
-
* Please see the
|
|
976
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
977
|
-
* for more details and examples.
|
|
978
|
-
* @example
|
|
979
|
-
* const [response] = await client.getDeidentifyTemplate(request);
|
|
980
|
-
*/
|
|
981
516
|
getDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
982
517
|
request = request || {};
|
|
983
518
|
let options;
|
|
@@ -998,27 +533,6 @@ class DlpServiceClient {
|
|
|
998
533
|
this.initialize();
|
|
999
534
|
return this.innerApiCalls.getDeidentifyTemplate(request, options, callback);
|
|
1000
535
|
}
|
|
1001
|
-
/**
|
|
1002
|
-
* Deletes a DeidentifyTemplate.
|
|
1003
|
-
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
1004
|
-
* more.
|
|
1005
|
-
*
|
|
1006
|
-
* @param {Object} request
|
|
1007
|
-
* The request object that will be sent.
|
|
1008
|
-
* @param {string} request.name
|
|
1009
|
-
* Required. Resource name of the organization and deidentify template to be deleted,
|
|
1010
|
-
* for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
1011
|
-
* projects/project-id/deidentifyTemplates/432452342.
|
|
1012
|
-
* @param {object} [options]
|
|
1013
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1014
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1015
|
-
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1016
|
-
* Please see the
|
|
1017
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1018
|
-
* for more details and examples.
|
|
1019
|
-
* @example
|
|
1020
|
-
* const [response] = await client.deleteDeidentifyTemplate(request);
|
|
1021
|
-
*/
|
|
1022
536
|
deleteDeidentifyTemplate(request, optionsOrCallback, callback) {
|
|
1023
537
|
request = request || {};
|
|
1024
538
|
let options;
|
|
@@ -1039,49 +553,6 @@ class DlpServiceClient {
|
|
|
1039
553
|
this.initialize();
|
|
1040
554
|
return this.innerApiCalls.deleteDeidentifyTemplate(request, options, callback);
|
|
1041
555
|
}
|
|
1042
|
-
/**
|
|
1043
|
-
* Creates a job trigger to run DLP actions such as scanning storage for
|
|
1044
|
-
* sensitive information on a set schedule.
|
|
1045
|
-
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1046
|
-
*
|
|
1047
|
-
* @param {Object} request
|
|
1048
|
-
* The request object that will be sent.
|
|
1049
|
-
* @param {string} request.parent
|
|
1050
|
-
* Required. Parent resource name.
|
|
1051
|
-
*
|
|
1052
|
-
* The format of this value varies depending on whether you have [specified a
|
|
1053
|
-
* processing
|
|
1054
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1055
|
-
*
|
|
1056
|
-
* + Projects scope, location specified:<br/>
|
|
1057
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1058
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1059
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
1060
|
-
*
|
|
1061
|
-
* The following example `parent` string specifies a parent project with the
|
|
1062
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1063
|
-
* for processing data:
|
|
1064
|
-
*
|
|
1065
|
-
* parent=projects/example-project/locations/europe-west3
|
|
1066
|
-
* @param {google.privacy.dlp.v2.JobTrigger} request.jobTrigger
|
|
1067
|
-
* Required. The JobTrigger to create.
|
|
1068
|
-
* @param {string} request.triggerId
|
|
1069
|
-
* The trigger id can contain uppercase and lowercase letters,
|
|
1070
|
-
* numbers, and hyphens; that is, it must match the regular
|
|
1071
|
-
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
1072
|
-
* characters. Can be empty to allow the system to generate one.
|
|
1073
|
-
* @param {string} request.locationId
|
|
1074
|
-
* Deprecated. This field has no effect.
|
|
1075
|
-
* @param {object} [options]
|
|
1076
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1077
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1078
|
-
* The first element of the array is an object representing [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
1079
|
-
* Please see the
|
|
1080
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1081
|
-
* for more details and examples.
|
|
1082
|
-
* @example
|
|
1083
|
-
* const [response] = await client.createJobTrigger(request);
|
|
1084
|
-
*/
|
|
1085
556
|
createJobTrigger(request, optionsOrCallback, callback) {
|
|
1086
557
|
request = request || {};
|
|
1087
558
|
let options;
|
|
@@ -1102,29 +573,6 @@ class DlpServiceClient {
|
|
|
1102
573
|
this.initialize();
|
|
1103
574
|
return this.innerApiCalls.createJobTrigger(request, options, callback);
|
|
1104
575
|
}
|
|
1105
|
-
/**
|
|
1106
|
-
* Updates a job trigger.
|
|
1107
|
-
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1108
|
-
*
|
|
1109
|
-
* @param {Object} request
|
|
1110
|
-
* The request object that will be sent.
|
|
1111
|
-
* @param {string} request.name
|
|
1112
|
-
* Required. Resource name of the project and the triggeredJob, for example
|
|
1113
|
-
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1114
|
-
* @param {google.privacy.dlp.v2.JobTrigger} request.jobTrigger
|
|
1115
|
-
* New JobTrigger value.
|
|
1116
|
-
* @param {google.protobuf.FieldMask} request.updateMask
|
|
1117
|
-
* Mask to control which fields get updated.
|
|
1118
|
-
* @param {object} [options]
|
|
1119
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1120
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1121
|
-
* The first element of the array is an object representing [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
1122
|
-
* Please see the
|
|
1123
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1124
|
-
* for more details and examples.
|
|
1125
|
-
* @example
|
|
1126
|
-
* const [response] = await client.updateJobTrigger(request);
|
|
1127
|
-
*/
|
|
1128
576
|
updateJobTrigger(request, optionsOrCallback, callback) {
|
|
1129
577
|
request = request || {};
|
|
1130
578
|
let options;
|
|
@@ -1145,31 +593,6 @@ class DlpServiceClient {
|
|
|
1145
593
|
this.initialize();
|
|
1146
594
|
return this.innerApiCalls.updateJobTrigger(request, options, callback);
|
|
1147
595
|
}
|
|
1148
|
-
/**
|
|
1149
|
-
* Inspect hybrid content and store findings to a trigger. The inspection
|
|
1150
|
-
* will be processed asynchronously. To review the findings monitor the
|
|
1151
|
-
* jobs within the trigger.
|
|
1152
|
-
* Early access feature is in a pre-release state and might change or have
|
|
1153
|
-
* limited support. For more information, see
|
|
1154
|
-
* https://cloud.google.com/products#product-launch-stages.
|
|
1155
|
-
*
|
|
1156
|
-
* @param {Object} request
|
|
1157
|
-
* The request object that will be sent.
|
|
1158
|
-
* @param {string} request.name
|
|
1159
|
-
* Required. Resource name of the trigger to execute a hybrid inspect on, for example
|
|
1160
|
-
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1161
|
-
* @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem
|
|
1162
|
-
* The item to inspect.
|
|
1163
|
-
* @param {object} [options]
|
|
1164
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1165
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1166
|
-
* The first element of the array is an object representing [HybridInspectResponse]{@link google.privacy.dlp.v2.HybridInspectResponse}.
|
|
1167
|
-
* Please see the
|
|
1168
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1169
|
-
* for more details and examples.
|
|
1170
|
-
* @example
|
|
1171
|
-
* const [response] = await client.hybridInspectJobTrigger(request);
|
|
1172
|
-
*/
|
|
1173
596
|
hybridInspectJobTrigger(request, optionsOrCallback, callback) {
|
|
1174
597
|
request = request || {};
|
|
1175
598
|
let options;
|
|
@@ -1190,25 +613,6 @@ class DlpServiceClient {
|
|
|
1190
613
|
this.initialize();
|
|
1191
614
|
return this.innerApiCalls.hybridInspectJobTrigger(request, options, callback);
|
|
1192
615
|
}
|
|
1193
|
-
/**
|
|
1194
|
-
* Gets a job trigger.
|
|
1195
|
-
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1196
|
-
*
|
|
1197
|
-
* @param {Object} request
|
|
1198
|
-
* The request object that will be sent.
|
|
1199
|
-
* @param {string} request.name
|
|
1200
|
-
* Required. Resource name of the project and the triggeredJob, for example
|
|
1201
|
-
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1202
|
-
* @param {object} [options]
|
|
1203
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1204
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1205
|
-
* The first element of the array is an object representing [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
1206
|
-
* Please see the
|
|
1207
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1208
|
-
* for more details and examples.
|
|
1209
|
-
* @example
|
|
1210
|
-
* const [response] = await client.getJobTrigger(request);
|
|
1211
|
-
*/
|
|
1212
616
|
getJobTrigger(request, optionsOrCallback, callback) {
|
|
1213
617
|
request = request || {};
|
|
1214
618
|
let options;
|
|
@@ -1229,25 +633,6 @@ class DlpServiceClient {
|
|
|
1229
633
|
this.initialize();
|
|
1230
634
|
return this.innerApiCalls.getJobTrigger(request, options, callback);
|
|
1231
635
|
}
|
|
1232
|
-
/**
|
|
1233
|
-
* Deletes a job trigger.
|
|
1234
|
-
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1235
|
-
*
|
|
1236
|
-
* @param {Object} request
|
|
1237
|
-
* The request object that will be sent.
|
|
1238
|
-
* @param {string} request.name
|
|
1239
|
-
* Required. Resource name of the project and the triggeredJob, for example
|
|
1240
|
-
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
1241
|
-
* @param {object} [options]
|
|
1242
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1243
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1244
|
-
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1245
|
-
* Please see the
|
|
1246
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1247
|
-
* for more details and examples.
|
|
1248
|
-
* @example
|
|
1249
|
-
* const [response] = await client.deleteJobTrigger(request);
|
|
1250
|
-
*/
|
|
1251
636
|
deleteJobTrigger(request, optionsOrCallback, callback) {
|
|
1252
637
|
request = request || {};
|
|
1253
638
|
let options;
|
|
@@ -1266,96 +651,28 @@ class DlpServiceClient {
|
|
|
1266
651
|
name: request.name || '',
|
|
1267
652
|
});
|
|
1268
653
|
this.initialize();
|
|
1269
|
-
return this.innerApiCalls.deleteJobTrigger(request, options, callback);
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
request = request || {};
|
|
1292
|
-
let options;
|
|
1293
|
-
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1294
|
-
callback = optionsOrCallback;
|
|
1295
|
-
options = {};
|
|
1296
|
-
}
|
|
1297
|
-
else {
|
|
1298
|
-
options = optionsOrCallback;
|
|
1299
|
-
}
|
|
1300
|
-
options = options || {};
|
|
1301
|
-
options.otherArgs = options.otherArgs || {};
|
|
1302
|
-
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1303
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1304
|
-
gax.routingHeader.fromParams({
|
|
1305
|
-
name: request.name || '',
|
|
1306
|
-
});
|
|
1307
|
-
this.initialize();
|
|
1308
|
-
return this.innerApiCalls.activateJobTrigger(request, options, callback);
|
|
1309
|
-
}
|
|
1310
|
-
/**
|
|
1311
|
-
* Creates a new job to inspect storage or calculate risk metrics.
|
|
1312
|
-
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1313
|
-
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1314
|
-
*
|
|
1315
|
-
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
|
1316
|
-
* system will automatically choose what detectors to run. By default this may
|
|
1317
|
-
* be all types, but may change over time as detectors are updated.
|
|
1318
|
-
*
|
|
1319
|
-
* @param {Object} request
|
|
1320
|
-
* The request object that will be sent.
|
|
1321
|
-
* @param {string} request.parent
|
|
1322
|
-
* Required. Parent resource name.
|
|
1323
|
-
*
|
|
1324
|
-
* The format of this value varies depending on whether you have [specified a
|
|
1325
|
-
* processing
|
|
1326
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1327
|
-
*
|
|
1328
|
-
* + Projects scope, location specified:<br/>
|
|
1329
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1330
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1331
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
1332
|
-
*
|
|
1333
|
-
* The following example `parent` string specifies a parent project with the
|
|
1334
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1335
|
-
* for processing data:
|
|
1336
|
-
*
|
|
1337
|
-
* parent=projects/example-project/locations/europe-west3
|
|
1338
|
-
* @param {google.privacy.dlp.v2.InspectJobConfig} request.inspectJob
|
|
1339
|
-
* Set to control what and how to inspect.
|
|
1340
|
-
* @param {google.privacy.dlp.v2.RiskAnalysisJobConfig} request.riskJob
|
|
1341
|
-
* Set to choose what metric to calculate.
|
|
1342
|
-
* @param {string} request.jobId
|
|
1343
|
-
* The job id can contain uppercase and lowercase letters,
|
|
1344
|
-
* numbers, and hyphens; that is, it must match the regular
|
|
1345
|
-
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
1346
|
-
* characters. Can be empty to allow the system to generate one.
|
|
1347
|
-
* @param {string} request.locationId
|
|
1348
|
-
* Deprecated. This field has no effect.
|
|
1349
|
-
* @param {object} [options]
|
|
1350
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1351
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1352
|
-
* The first element of the array is an object representing [DlpJob]{@link google.privacy.dlp.v2.DlpJob}.
|
|
1353
|
-
* Please see the
|
|
1354
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1355
|
-
* for more details and examples.
|
|
1356
|
-
* @example
|
|
1357
|
-
* const [response] = await client.createDlpJob(request);
|
|
1358
|
-
*/
|
|
654
|
+
return this.innerApiCalls.deleteJobTrigger(request, options, callback);
|
|
655
|
+
}
|
|
656
|
+
activateJobTrigger(request, optionsOrCallback, callback) {
|
|
657
|
+
request = request || {};
|
|
658
|
+
let options;
|
|
659
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
660
|
+
callback = optionsOrCallback;
|
|
661
|
+
options = {};
|
|
662
|
+
}
|
|
663
|
+
else {
|
|
664
|
+
options = optionsOrCallback;
|
|
665
|
+
}
|
|
666
|
+
options = options || {};
|
|
667
|
+
options.otherArgs = options.otherArgs || {};
|
|
668
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
669
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
670
|
+
gax.routingHeader.fromParams({
|
|
671
|
+
name: request.name || '',
|
|
672
|
+
});
|
|
673
|
+
this.initialize();
|
|
674
|
+
return this.innerApiCalls.activateJobTrigger(request, options, callback);
|
|
675
|
+
}
|
|
1359
676
|
createDlpJob(request, optionsOrCallback, callback) {
|
|
1360
677
|
request = request || {};
|
|
1361
678
|
let options;
|
|
@@ -1376,25 +693,6 @@ class DlpServiceClient {
|
|
|
1376
693
|
this.initialize();
|
|
1377
694
|
return this.innerApiCalls.createDlpJob(request, options, callback);
|
|
1378
695
|
}
|
|
1379
|
-
/**
|
|
1380
|
-
* Gets the latest state of a long-running DlpJob.
|
|
1381
|
-
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1382
|
-
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1383
|
-
*
|
|
1384
|
-
* @param {Object} request
|
|
1385
|
-
* The request object that will be sent.
|
|
1386
|
-
* @param {string} request.name
|
|
1387
|
-
* Required. The name of the DlpJob resource.
|
|
1388
|
-
* @param {object} [options]
|
|
1389
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1390
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1391
|
-
* The first element of the array is an object representing [DlpJob]{@link google.privacy.dlp.v2.DlpJob}.
|
|
1392
|
-
* Please see the
|
|
1393
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1394
|
-
* for more details and examples.
|
|
1395
|
-
* @example
|
|
1396
|
-
* const [response] = await client.getDlpJob(request);
|
|
1397
|
-
*/
|
|
1398
696
|
getDlpJob(request, optionsOrCallback, callback) {
|
|
1399
697
|
request = request || {};
|
|
1400
698
|
let options;
|
|
@@ -1415,27 +713,6 @@ class DlpServiceClient {
|
|
|
1415
713
|
this.initialize();
|
|
1416
714
|
return this.innerApiCalls.getDlpJob(request, options, callback);
|
|
1417
715
|
}
|
|
1418
|
-
/**
|
|
1419
|
-
* Deletes a long-running DlpJob. This method indicates that the client is
|
|
1420
|
-
* no longer interested in the DlpJob result. The job will be cancelled if
|
|
1421
|
-
* possible.
|
|
1422
|
-
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1423
|
-
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1424
|
-
*
|
|
1425
|
-
* @param {Object} request
|
|
1426
|
-
* The request object that will be sent.
|
|
1427
|
-
* @param {string} request.name
|
|
1428
|
-
* Required. The name of the DlpJob resource to be deleted.
|
|
1429
|
-
* @param {object} [options]
|
|
1430
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1431
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1432
|
-
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1433
|
-
* Please see the
|
|
1434
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1435
|
-
* for more details and examples.
|
|
1436
|
-
* @example
|
|
1437
|
-
* const [response] = await client.deleteDlpJob(request);
|
|
1438
|
-
*/
|
|
1439
716
|
deleteDlpJob(request, optionsOrCallback, callback) {
|
|
1440
717
|
request = request || {};
|
|
1441
718
|
let options;
|
|
@@ -1456,27 +733,6 @@ class DlpServiceClient {
|
|
|
1456
733
|
this.initialize();
|
|
1457
734
|
return this.innerApiCalls.deleteDlpJob(request, options, callback);
|
|
1458
735
|
}
|
|
1459
|
-
/**
|
|
1460
|
-
* Starts asynchronous cancellation on a long-running DlpJob. The server
|
|
1461
|
-
* makes a best effort to cancel the DlpJob, but success is not
|
|
1462
|
-
* guaranteed.
|
|
1463
|
-
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1464
|
-
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1465
|
-
*
|
|
1466
|
-
* @param {Object} request
|
|
1467
|
-
* The request object that will be sent.
|
|
1468
|
-
* @param {string} request.name
|
|
1469
|
-
* Required. The name of the DlpJob resource to be cancelled.
|
|
1470
|
-
* @param {object} [options]
|
|
1471
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1472
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1473
|
-
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1474
|
-
* Please see the
|
|
1475
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1476
|
-
* for more details and examples.
|
|
1477
|
-
* @example
|
|
1478
|
-
* const [response] = await client.cancelDlpJob(request);
|
|
1479
|
-
*/
|
|
1480
736
|
cancelDlpJob(request, optionsOrCallback, callback) {
|
|
1481
737
|
request = request || {};
|
|
1482
738
|
let options;
|
|
@@ -1497,53 +753,6 @@ class DlpServiceClient {
|
|
|
1497
753
|
this.initialize();
|
|
1498
754
|
return this.innerApiCalls.cancelDlpJob(request, options, callback);
|
|
1499
755
|
}
|
|
1500
|
-
/**
|
|
1501
|
-
* Creates a pre-built stored infoType to be used for inspection.
|
|
1502
|
-
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1503
|
-
* learn more.
|
|
1504
|
-
*
|
|
1505
|
-
* @param {Object} request
|
|
1506
|
-
* The request object that will be sent.
|
|
1507
|
-
* @param {string} request.parent
|
|
1508
|
-
* Required. Parent resource name.
|
|
1509
|
-
*
|
|
1510
|
-
* The format of this value varies depending on the scope of the request
|
|
1511
|
-
* (project or organization) and whether you have [specified a processing
|
|
1512
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1513
|
-
*
|
|
1514
|
-
* + Projects scope, location specified:<br/>
|
|
1515
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1516
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1517
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
1518
|
-
* + Organizations scope, location specified:<br/>
|
|
1519
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1520
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
1521
|
-
* `organizations/`<var>ORG_ID</var>
|
|
1522
|
-
*
|
|
1523
|
-
* The following example `parent` string specifies a parent project with the
|
|
1524
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1525
|
-
* for processing data:
|
|
1526
|
-
*
|
|
1527
|
-
* parent=projects/example-project/locations/europe-west3
|
|
1528
|
-
* @param {google.privacy.dlp.v2.StoredInfoTypeConfig} request.config
|
|
1529
|
-
* Required. Configuration of the storedInfoType to create.
|
|
1530
|
-
* @param {string} request.storedInfoTypeId
|
|
1531
|
-
* The storedInfoType ID can contain uppercase and lowercase letters,
|
|
1532
|
-
* numbers, and hyphens; that is, it must match the regular
|
|
1533
|
-
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
1534
|
-
* characters. Can be empty to allow the system to generate one.
|
|
1535
|
-
* @param {string} request.locationId
|
|
1536
|
-
* Deprecated. This field has no effect.
|
|
1537
|
-
* @param {object} [options]
|
|
1538
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1539
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1540
|
-
* The first element of the array is an object representing [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
1541
|
-
* Please see the
|
|
1542
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1543
|
-
* for more details and examples.
|
|
1544
|
-
* @example
|
|
1545
|
-
* const [response] = await client.createStoredInfoType(request);
|
|
1546
|
-
*/
|
|
1547
756
|
createStoredInfoType(request, optionsOrCallback, callback) {
|
|
1548
757
|
request = request || {};
|
|
1549
758
|
let options;
|
|
@@ -1564,34 +773,6 @@ class DlpServiceClient {
|
|
|
1564
773
|
this.initialize();
|
|
1565
774
|
return this.innerApiCalls.createStoredInfoType(request, options, callback);
|
|
1566
775
|
}
|
|
1567
|
-
/**
|
|
1568
|
-
* Updates the stored infoType by creating a new version. The existing version
|
|
1569
|
-
* will continue to be used until the new version is ready.
|
|
1570
|
-
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1571
|
-
* learn more.
|
|
1572
|
-
*
|
|
1573
|
-
* @param {Object} request
|
|
1574
|
-
* The request object that will be sent.
|
|
1575
|
-
* @param {string} request.name
|
|
1576
|
-
* Required. Resource name of organization and storedInfoType to be updated, for
|
|
1577
|
-
* example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1578
|
-
* projects/project-id/storedInfoTypes/432452342.
|
|
1579
|
-
* @param {google.privacy.dlp.v2.StoredInfoTypeConfig} request.config
|
|
1580
|
-
* Updated configuration for the storedInfoType. If not provided, a new
|
|
1581
|
-
* version of the storedInfoType will be created with the existing
|
|
1582
|
-
* configuration.
|
|
1583
|
-
* @param {google.protobuf.FieldMask} request.updateMask
|
|
1584
|
-
* Mask to control which fields get updated.
|
|
1585
|
-
* @param {object} [options]
|
|
1586
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1587
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1588
|
-
* The first element of the array is an object representing [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
1589
|
-
* Please see the
|
|
1590
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1591
|
-
* for more details and examples.
|
|
1592
|
-
* @example
|
|
1593
|
-
* const [response] = await client.updateStoredInfoType(request);
|
|
1594
|
-
*/
|
|
1595
776
|
updateStoredInfoType(request, optionsOrCallback, callback) {
|
|
1596
777
|
request = request || {};
|
|
1597
778
|
let options;
|
|
@@ -1612,27 +793,6 @@ class DlpServiceClient {
|
|
|
1612
793
|
this.initialize();
|
|
1613
794
|
return this.innerApiCalls.updateStoredInfoType(request, options, callback);
|
|
1614
795
|
}
|
|
1615
|
-
/**
|
|
1616
|
-
* Gets a stored infoType.
|
|
1617
|
-
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1618
|
-
* learn more.
|
|
1619
|
-
*
|
|
1620
|
-
* @param {Object} request
|
|
1621
|
-
* The request object that will be sent.
|
|
1622
|
-
* @param {string} request.name
|
|
1623
|
-
* Required. Resource name of the organization and storedInfoType to be read, for
|
|
1624
|
-
* example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1625
|
-
* projects/project-id/storedInfoTypes/432452342.
|
|
1626
|
-
* @param {object} [options]
|
|
1627
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1628
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1629
|
-
* The first element of the array is an object representing [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
1630
|
-
* Please see the
|
|
1631
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1632
|
-
* for more details and examples.
|
|
1633
|
-
* @example
|
|
1634
|
-
* const [response] = await client.getStoredInfoType(request);
|
|
1635
|
-
*/
|
|
1636
796
|
getStoredInfoType(request, optionsOrCallback, callback) {
|
|
1637
797
|
request = request || {};
|
|
1638
798
|
let options;
|
|
@@ -1653,27 +813,6 @@ class DlpServiceClient {
|
|
|
1653
813
|
this.initialize();
|
|
1654
814
|
return this.innerApiCalls.getStoredInfoType(request, options, callback);
|
|
1655
815
|
}
|
|
1656
|
-
/**
|
|
1657
|
-
* Deletes a stored infoType.
|
|
1658
|
-
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1659
|
-
* learn more.
|
|
1660
|
-
*
|
|
1661
|
-
* @param {Object} request
|
|
1662
|
-
* The request object that will be sent.
|
|
1663
|
-
* @param {string} request.name
|
|
1664
|
-
* Required. Resource name of the organization and storedInfoType to be deleted, for
|
|
1665
|
-
* example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1666
|
-
* projects/project-id/storedInfoTypes/432452342.
|
|
1667
|
-
* @param {object} [options]
|
|
1668
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1669
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1670
|
-
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1671
|
-
* Please see the
|
|
1672
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1673
|
-
* for more details and examples.
|
|
1674
|
-
* @example
|
|
1675
|
-
* const [response] = await client.deleteStoredInfoType(request);
|
|
1676
|
-
*/
|
|
1677
816
|
deleteStoredInfoType(request, optionsOrCallback, callback) {
|
|
1678
817
|
request = request || {};
|
|
1679
818
|
let options;
|
|
@@ -1694,31 +833,6 @@ class DlpServiceClient {
|
|
|
1694
833
|
this.initialize();
|
|
1695
834
|
return this.innerApiCalls.deleteStoredInfoType(request, options, callback);
|
|
1696
835
|
}
|
|
1697
|
-
/**
|
|
1698
|
-
* Inspect hybrid content and store findings to a job.
|
|
1699
|
-
* To review the findings inspect the job. Inspection will occur
|
|
1700
|
-
* asynchronously.
|
|
1701
|
-
* Early access feature is in a pre-release state and might change or have
|
|
1702
|
-
* limited support. For more information, see
|
|
1703
|
-
* https://cloud.google.com/products#product-launch-stages.
|
|
1704
|
-
*
|
|
1705
|
-
* @param {Object} request
|
|
1706
|
-
* The request object that will be sent.
|
|
1707
|
-
* @param {string} request.name
|
|
1708
|
-
* Required. Resource name of the job to execute a hybrid inspect on, for example
|
|
1709
|
-
* `projects/dlp-test-project/dlpJob/53234423`.
|
|
1710
|
-
* @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem
|
|
1711
|
-
* The item to inspect.
|
|
1712
|
-
* @param {object} [options]
|
|
1713
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1714
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1715
|
-
* The first element of the array is an object representing [HybridInspectResponse]{@link google.privacy.dlp.v2.HybridInspectResponse}.
|
|
1716
|
-
* Please see the
|
|
1717
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1718
|
-
* for more details and examples.
|
|
1719
|
-
* @example
|
|
1720
|
-
* const [response] = await client.hybridInspectDlpJob(request);
|
|
1721
|
-
*/
|
|
1722
836
|
hybridInspectDlpJob(request, optionsOrCallback, callback) {
|
|
1723
837
|
request = request || {};
|
|
1724
838
|
let options;
|
|
@@ -1739,27 +853,6 @@ class DlpServiceClient {
|
|
|
1739
853
|
this.initialize();
|
|
1740
854
|
return this.innerApiCalls.hybridInspectDlpJob(request, options, callback);
|
|
1741
855
|
}
|
|
1742
|
-
/**
|
|
1743
|
-
* Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
|
1744
|
-
* of any enabled actions that have not yet run.
|
|
1745
|
-
* Early access feature is in a pre-release state and might change or have
|
|
1746
|
-
* limited support. For more information, see
|
|
1747
|
-
* https://cloud.google.com/products#product-launch-stages.
|
|
1748
|
-
*
|
|
1749
|
-
* @param {Object} request
|
|
1750
|
-
* The request object that will be sent.
|
|
1751
|
-
* @param {string} request.name
|
|
1752
|
-
* Required. The name of the DlpJob resource to be cancelled.
|
|
1753
|
-
* @param {object} [options]
|
|
1754
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1755
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1756
|
-
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1757
|
-
* Please see the
|
|
1758
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1759
|
-
* for more details and examples.
|
|
1760
|
-
* @example
|
|
1761
|
-
* const [response] = await client.finishDlpJob(request);
|
|
1762
|
-
*/
|
|
1763
856
|
finishDlpJob(request, optionsOrCallback, callback) {
|
|
1764
857
|
request = request || {};
|
|
1765
858
|
let options;
|
|
@@ -1780,68 +873,6 @@ class DlpServiceClient {
|
|
|
1780
873
|
this.initialize();
|
|
1781
874
|
return this.innerApiCalls.finishDlpJob(request, options, callback);
|
|
1782
875
|
}
|
|
1783
|
-
/**
|
|
1784
|
-
* Lists InspectTemplates.
|
|
1785
|
-
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1786
|
-
*
|
|
1787
|
-
* @param {Object} request
|
|
1788
|
-
* The request object that will be sent.
|
|
1789
|
-
* @param {string} request.parent
|
|
1790
|
-
* Required. Parent resource name.
|
|
1791
|
-
*
|
|
1792
|
-
* The format of this value varies depending on the scope of the request
|
|
1793
|
-
* (project or organization) and whether you have [specified a processing
|
|
1794
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1795
|
-
*
|
|
1796
|
-
* + Projects scope, location specified:<br/>
|
|
1797
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1798
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1799
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
1800
|
-
* + Organizations scope, location specified:<br/>
|
|
1801
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1802
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
1803
|
-
* `organizations/`<var>ORG_ID</var>
|
|
1804
|
-
*
|
|
1805
|
-
* The following example `parent` string specifies a parent project with the
|
|
1806
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1807
|
-
* for processing data:
|
|
1808
|
-
*
|
|
1809
|
-
* parent=projects/example-project/locations/europe-west3
|
|
1810
|
-
* @param {string} request.pageToken
|
|
1811
|
-
* Page token to continue retrieval. Comes from previous call
|
|
1812
|
-
* to `ListInspectTemplates`.
|
|
1813
|
-
* @param {number} request.pageSize
|
|
1814
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
1815
|
-
* a page of max size 100.
|
|
1816
|
-
* @param {string} request.orderBy
|
|
1817
|
-
* Comma separated list of fields to order by,
|
|
1818
|
-
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1819
|
-
* default sorting order is ascending, redundant space characters are
|
|
1820
|
-
* insignificant.
|
|
1821
|
-
*
|
|
1822
|
-
* Example: `name asc,update_time, create_time desc`
|
|
1823
|
-
*
|
|
1824
|
-
* Supported fields are:
|
|
1825
|
-
*
|
|
1826
|
-
* - `create_time`: corresponds to time the template was created.
|
|
1827
|
-
* - `update_time`: corresponds to time the template was last updated.
|
|
1828
|
-
* - `name`: corresponds to template's name.
|
|
1829
|
-
* - `display_name`: corresponds to template's display name.
|
|
1830
|
-
* @param {string} request.locationId
|
|
1831
|
-
* Deprecated. This field has no effect.
|
|
1832
|
-
* @param {object} [options]
|
|
1833
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1834
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
1835
|
-
* The first element of the array is Array of [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
1836
|
-
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1837
|
-
* times as needed and will merge results from all the pages into this array.
|
|
1838
|
-
* Note that it can affect your quota.
|
|
1839
|
-
* We recommend using `listInspectTemplatesAsync()`
|
|
1840
|
-
* method described below for async iteration which you can stop as needed.
|
|
1841
|
-
* Please see the
|
|
1842
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1843
|
-
* for more details and examples.
|
|
1844
|
-
*/
|
|
1845
876
|
listInspectTemplates(request, optionsOrCallback, callback) {
|
|
1846
877
|
request = request || {};
|
|
1847
878
|
let options;
|
|
@@ -1915,91 +946,13 @@ class DlpServiceClient {
|
|
|
1915
946
|
* An object stream which emits an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate} on 'data' event.
|
|
1916
947
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1917
948
|
* times as needed. Note that it can affect your quota.
|
|
1918
|
-
* We recommend using `listInspectTemplatesAsync()`
|
|
1919
|
-
* method described below for async iteration which you can stop as needed.
|
|
1920
|
-
* Please see the
|
|
1921
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1922
|
-
* for more details and examples.
|
|
1923
|
-
*/
|
|
1924
|
-
listInspectTemplatesStream(request, options) {
|
|
1925
|
-
request = request || {};
|
|
1926
|
-
options = options || {};
|
|
1927
|
-
options.otherArgs = options.otherArgs || {};
|
|
1928
|
-
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1929
|
-
options.otherArgs.headers['x-goog-request-params'] =
|
|
1930
|
-
gax.routingHeader.fromParams({
|
|
1931
|
-
parent: request.parent || '',
|
|
1932
|
-
});
|
|
1933
|
-
const callSettings = new gax.CallSettings(options);
|
|
1934
|
-
this.initialize();
|
|
1935
|
-
return this.descriptors.page.listInspectTemplates.createStream(this.innerApiCalls.listInspectTemplates, request, callSettings);
|
|
1936
|
-
}
|
|
1937
|
-
/**
|
|
1938
|
-
* Equivalent to `listInspectTemplates`, but returns an iterable object.
|
|
1939
|
-
*
|
|
1940
|
-
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
1941
|
-
* @param {Object} request
|
|
1942
|
-
* The request object that will be sent.
|
|
1943
|
-
* @param {string} request.parent
|
|
1944
|
-
* Required. Parent resource name.
|
|
1945
|
-
*
|
|
1946
|
-
* The format of this value varies depending on the scope of the request
|
|
1947
|
-
* (project or organization) and whether you have [specified a processing
|
|
1948
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1949
|
-
*
|
|
1950
|
-
* + Projects scope, location specified:<br/>
|
|
1951
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1952
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1953
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
1954
|
-
* + Organizations scope, location specified:<br/>
|
|
1955
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1956
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
1957
|
-
* `organizations/`<var>ORG_ID</var>
|
|
1958
|
-
*
|
|
1959
|
-
* The following example `parent` string specifies a parent project with the
|
|
1960
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1961
|
-
* for processing data:
|
|
1962
|
-
*
|
|
1963
|
-
* parent=projects/example-project/locations/europe-west3
|
|
1964
|
-
* @param {string} request.pageToken
|
|
1965
|
-
* Page token to continue retrieval. Comes from previous call
|
|
1966
|
-
* to `ListInspectTemplates`.
|
|
1967
|
-
* @param {number} request.pageSize
|
|
1968
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
1969
|
-
* a page of max size 100.
|
|
1970
|
-
* @param {string} request.orderBy
|
|
1971
|
-
* Comma separated list of fields to order by,
|
|
1972
|
-
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1973
|
-
* default sorting order is ascending, redundant space characters are
|
|
1974
|
-
* insignificant.
|
|
1975
|
-
*
|
|
1976
|
-
* Example: `name asc,update_time, create_time desc`
|
|
1977
|
-
*
|
|
1978
|
-
* Supported fields are:
|
|
1979
|
-
*
|
|
1980
|
-
* - `create_time`: corresponds to time the template was created.
|
|
1981
|
-
* - `update_time`: corresponds to time the template was last updated.
|
|
1982
|
-
* - `name`: corresponds to template's name.
|
|
1983
|
-
* - `display_name`: corresponds to template's display name.
|
|
1984
|
-
* @param {string} request.locationId
|
|
1985
|
-
* Deprecated. This field has no effect.
|
|
1986
|
-
* @param {object} [options]
|
|
1987
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1988
|
-
* @returns {Object}
|
|
1989
|
-
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
|
|
1990
|
-
* When you iterate the returned iterable, each element will be an object representing
|
|
1991
|
-
* [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}. The API will be called under the hood as needed, once per the page,
|
|
1992
|
-
* so you can stop the iteration when you don't need more results.
|
|
949
|
+
* We recommend using `listInspectTemplatesAsync()`
|
|
950
|
+
* method described below for async iteration which you can stop as needed.
|
|
1993
951
|
* Please see the
|
|
1994
952
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1995
953
|
* for more details and examples.
|
|
1996
|
-
* @example
|
|
1997
|
-
* const iterable = client.listInspectTemplatesAsync(request);
|
|
1998
|
-
* for await (const response of iterable) {
|
|
1999
|
-
* // process response
|
|
2000
|
-
* }
|
|
2001
954
|
*/
|
|
2002
|
-
|
|
955
|
+
listInspectTemplatesStream(request, options) {
|
|
2003
956
|
request = request || {};
|
|
2004
957
|
options = options || {};
|
|
2005
958
|
options.otherArgs = options.otherArgs || {};
|
|
@@ -2008,16 +961,15 @@ class DlpServiceClient {
|
|
|
2008
961
|
gax.routingHeader.fromParams({
|
|
2009
962
|
parent: request.parent || '',
|
|
2010
963
|
});
|
|
2011
|
-
|
|
2012
|
-
const callSettings =
|
|
964
|
+
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
965
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2013
966
|
this.initialize();
|
|
2014
|
-
return this.descriptors.page.listInspectTemplates.
|
|
967
|
+
return this.descriptors.page.listInspectTemplates.createStream(this.innerApiCalls.listInspectTemplates, request, callSettings);
|
|
2015
968
|
}
|
|
2016
969
|
/**
|
|
2017
|
-
*
|
|
2018
|
-
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
2019
|
-
* more.
|
|
970
|
+
* Equivalent to `listInspectTemplates`, but returns an iterable object.
|
|
2020
971
|
*
|
|
972
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
2021
973
|
* @param {Object} request
|
|
2022
974
|
* The request object that will be sent.
|
|
2023
975
|
* @param {string} request.parent
|
|
@@ -2043,7 +995,7 @@ class DlpServiceClient {
|
|
|
2043
995
|
* parent=projects/example-project/locations/europe-west3
|
|
2044
996
|
* @param {string} request.pageToken
|
|
2045
997
|
* Page token to continue retrieval. Comes from previous call
|
|
2046
|
-
* to `
|
|
998
|
+
* to `ListInspectTemplates`.
|
|
2047
999
|
* @param {number} request.pageSize
|
|
2048
1000
|
* Size of the page, can be limited by server. If zero server returns
|
|
2049
1001
|
* a page of max size 100.
|
|
@@ -2065,17 +1017,31 @@ class DlpServiceClient {
|
|
|
2065
1017
|
* Deprecated. This field has no effect.
|
|
2066
1018
|
* @param {object} [options]
|
|
2067
1019
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2068
|
-
* @returns {
|
|
2069
|
-
*
|
|
2070
|
-
*
|
|
2071
|
-
*
|
|
2072
|
-
*
|
|
2073
|
-
* We recommend using `listDeidentifyTemplatesAsync()`
|
|
2074
|
-
* method described below for async iteration which you can stop as needed.
|
|
1020
|
+
* @returns {Object}
|
|
1021
|
+
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
|
|
1022
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1023
|
+
* [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}. The API will be called under the hood as needed, once per the page,
|
|
1024
|
+
* so you can stop the iteration when you don't need more results.
|
|
2075
1025
|
* Please see the
|
|
2076
1026
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2077
1027
|
* for more details and examples.
|
|
1028
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_inspect_templates.js</caption>
|
|
1029
|
+
* region_tag:dlp_v2_generated_DlpService_ListInspectTemplates_async
|
|
2078
1030
|
*/
|
|
1031
|
+
listInspectTemplatesAsync(request, options) {
|
|
1032
|
+
request = request || {};
|
|
1033
|
+
options = options || {};
|
|
1034
|
+
options.otherArgs = options.otherArgs || {};
|
|
1035
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1036
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1037
|
+
gax.routingHeader.fromParams({
|
|
1038
|
+
parent: request.parent || '',
|
|
1039
|
+
});
|
|
1040
|
+
const defaultCallSettings = this._defaults['listInspectTemplates'];
|
|
1041
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
1042
|
+
this.initialize();
|
|
1043
|
+
return this.descriptors.page.listInspectTemplates.asyncIterate(this.innerApiCalls['listInspectTemplates'], request, callSettings);
|
|
1044
|
+
}
|
|
2079
1045
|
listDeidentifyTemplates(request, optionsOrCallback, callback) {
|
|
2080
1046
|
request = request || {};
|
|
2081
1047
|
let options;
|
|
@@ -2164,7 +1130,8 @@ class DlpServiceClient {
|
|
|
2164
1130
|
gax.routingHeader.fromParams({
|
|
2165
1131
|
parent: request.parent || '',
|
|
2166
1132
|
});
|
|
2167
|
-
const
|
|
1133
|
+
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
1134
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2168
1135
|
this.initialize();
|
|
2169
1136
|
return this.descriptors.page.listDeidentifyTemplates.createStream(this.innerApiCalls.listDeidentifyTemplates, request, callSettings);
|
|
2170
1137
|
}
|
|
@@ -2227,11 +1194,8 @@ class DlpServiceClient {
|
|
|
2227
1194
|
* Please see the
|
|
2228
1195
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2229
1196
|
* for more details and examples.
|
|
2230
|
-
* @example
|
|
2231
|
-
*
|
|
2232
|
-
* for await (const response of iterable) {
|
|
2233
|
-
* // process response
|
|
2234
|
-
* }
|
|
1197
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_deidentify_templates.js</caption>
|
|
1198
|
+
* region_tag:dlp_v2_generated_DlpService_ListDeidentifyTemplates_async
|
|
2235
1199
|
*/
|
|
2236
1200
|
listDeidentifyTemplatesAsync(request, options) {
|
|
2237
1201
|
request = request || {};
|
|
@@ -2242,96 +1206,11 @@ class DlpServiceClient {
|
|
|
2242
1206
|
gax.routingHeader.fromParams({
|
|
2243
1207
|
parent: request.parent || '',
|
|
2244
1208
|
});
|
|
2245
|
-
|
|
2246
|
-
const callSettings =
|
|
1209
|
+
const defaultCallSettings = this._defaults['listDeidentifyTemplates'];
|
|
1210
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2247
1211
|
this.initialize();
|
|
2248
1212
|
return this.descriptors.page.listDeidentifyTemplates.asyncIterate(this.innerApiCalls['listDeidentifyTemplates'], request, callSettings);
|
|
2249
1213
|
}
|
|
2250
|
-
/**
|
|
2251
|
-
* Lists job triggers.
|
|
2252
|
-
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
2253
|
-
*
|
|
2254
|
-
* @param {Object} request
|
|
2255
|
-
* The request object that will be sent.
|
|
2256
|
-
* @param {string} request.parent
|
|
2257
|
-
* Required. Parent resource name.
|
|
2258
|
-
*
|
|
2259
|
-
* The format of this value varies depending on whether you have [specified a
|
|
2260
|
-
* processing
|
|
2261
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
2262
|
-
*
|
|
2263
|
-
* + Projects scope, location specified:<br/>
|
|
2264
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
2265
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
2266
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
2267
|
-
*
|
|
2268
|
-
* The following example `parent` string specifies a parent project with the
|
|
2269
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
2270
|
-
* for processing data:
|
|
2271
|
-
*
|
|
2272
|
-
* parent=projects/example-project/locations/europe-west3
|
|
2273
|
-
* @param {string} request.pageToken
|
|
2274
|
-
* Page token to continue retrieval. Comes from previous call
|
|
2275
|
-
* to ListJobTriggers. `order_by` field must not
|
|
2276
|
-
* change for subsequent calls.
|
|
2277
|
-
* @param {number} request.pageSize
|
|
2278
|
-
* Size of the page, can be limited by a server.
|
|
2279
|
-
* @param {string} request.orderBy
|
|
2280
|
-
* Comma separated list of triggeredJob fields to order by,
|
|
2281
|
-
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
2282
|
-
* default sorting order is ascending, redundant space characters are
|
|
2283
|
-
* insignificant.
|
|
2284
|
-
*
|
|
2285
|
-
* Example: `name asc,update_time, create_time desc`
|
|
2286
|
-
*
|
|
2287
|
-
* Supported fields are:
|
|
2288
|
-
*
|
|
2289
|
-
* - `create_time`: corresponds to time the JobTrigger was created.
|
|
2290
|
-
* - `update_time`: corresponds to time the JobTrigger was last updated.
|
|
2291
|
-
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
|
|
2292
|
-
* - `name`: corresponds to JobTrigger's name.
|
|
2293
|
-
* - `display_name`: corresponds to JobTrigger's display name.
|
|
2294
|
-
* - `status`: corresponds to JobTrigger's status.
|
|
2295
|
-
* @param {string} request.filter
|
|
2296
|
-
* Allows filtering.
|
|
2297
|
-
*
|
|
2298
|
-
* Supported syntax:
|
|
2299
|
-
*
|
|
2300
|
-
* * Filter expressions are made up of one or more restrictions.
|
|
2301
|
-
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2302
|
-
* sequence of restrictions implicitly uses `AND`.
|
|
2303
|
-
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2304
|
-
* * Supported fields/values for inspect jobs:
|
|
2305
|
-
* - `status` - HEALTHY|PAUSED|CANCELLED
|
|
2306
|
-
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
2307
|
-
* - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
|
2308
|
-
* quotation marks. Nanoseconds are ignored.
|
|
2309
|
-
* - 'error_count' - Number of errors that have occurred while running.
|
|
2310
|
-
* * The operator must be `=` or `!=` for status and inspected_storage.
|
|
2311
|
-
*
|
|
2312
|
-
* Examples:
|
|
2313
|
-
*
|
|
2314
|
-
* * inspected_storage = cloud_storage AND status = HEALTHY
|
|
2315
|
-
* * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
|
2316
|
-
* * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
|
|
2317
|
-
* * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
|
2318
|
-
*
|
|
2319
|
-
* The length of this field should be no more than 500 characters.
|
|
2320
|
-
* @param {string} request.locationId
|
|
2321
|
-
* Deprecated. This field has no effect.
|
|
2322
|
-
* @param {object} [options]
|
|
2323
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2324
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
2325
|
-
* The first element of the array is Array of [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
2326
|
-
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2327
|
-
* times as needed and will merge results from all the pages into this array.
|
|
2328
|
-
* Note that it can affect your quota.
|
|
2329
|
-
* We recommend using `listJobTriggersAsync()`
|
|
2330
|
-
* method described below for async iteration which you can stop as needed.
|
|
2331
|
-
* Please see the
|
|
2332
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2333
|
-
* for more details and examples.
|
|
2334
|
-
*/
|
|
2335
1214
|
listJobTriggers(request, optionsOrCallback, callback) {
|
|
2336
1215
|
request = request || {};
|
|
2337
1216
|
let options;
|
|
@@ -2404,7 +1283,7 @@ class DlpServiceClient {
|
|
|
2404
1283
|
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2405
1284
|
* sequence of restrictions implicitly uses `AND`.
|
|
2406
1285
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2407
|
-
* * Supported fields/values for inspect
|
|
1286
|
+
* * Supported fields/values for inspect triggers:
|
|
2408
1287
|
* - `status` - HEALTHY|PAUSED|CANCELLED
|
|
2409
1288
|
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
2410
1289
|
* - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
|
@@ -2420,6 +1299,8 @@ class DlpServiceClient {
|
|
|
2420
1299
|
* * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
|
2421
1300
|
*
|
|
2422
1301
|
* The length of this field should be no more than 500 characters.
|
|
1302
|
+
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
1303
|
+
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
|
|
2423
1304
|
* @param {string} request.locationId
|
|
2424
1305
|
* Deprecated. This field has no effect.
|
|
2425
1306
|
* @param {object} [options]
|
|
@@ -2443,7 +1324,8 @@ class DlpServiceClient {
|
|
|
2443
1324
|
gax.routingHeader.fromParams({
|
|
2444
1325
|
parent: request.parent || '',
|
|
2445
1326
|
});
|
|
2446
|
-
const
|
|
1327
|
+
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
1328
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2447
1329
|
this.initialize();
|
|
2448
1330
|
return this.descriptors.page.listJobTriggers.createStream(this.innerApiCalls.listJobTriggers, request, callSettings);
|
|
2449
1331
|
}
|
|
@@ -2501,7 +1383,7 @@ class DlpServiceClient {
|
|
|
2501
1383
|
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2502
1384
|
* sequence of restrictions implicitly uses `AND`.
|
|
2503
1385
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2504
|
-
* * Supported fields/values for inspect
|
|
1386
|
+
* * Supported fields/values for inspect triggers:
|
|
2505
1387
|
* - `status` - HEALTHY|PAUSED|CANCELLED
|
|
2506
1388
|
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
2507
1389
|
* - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
|
@@ -2517,6 +1399,8 @@ class DlpServiceClient {
|
|
|
2517
1399
|
* * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
|
2518
1400
|
*
|
|
2519
1401
|
* The length of this field should be no more than 500 characters.
|
|
1402
|
+
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
1403
|
+
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
|
|
2520
1404
|
* @param {string} request.locationId
|
|
2521
1405
|
* Deprecated. This field has no effect.
|
|
2522
1406
|
* @param {object} [options]
|
|
@@ -2529,11 +1413,8 @@ class DlpServiceClient {
|
|
|
2529
1413
|
* Please see the
|
|
2530
1414
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2531
1415
|
* for more details and examples.
|
|
2532
|
-
* @example
|
|
2533
|
-
*
|
|
2534
|
-
* for await (const response of iterable) {
|
|
2535
|
-
* // process response
|
|
2536
|
-
* }
|
|
1416
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_job_triggers.js</caption>
|
|
1417
|
+
* region_tag:dlp_v2_generated_DlpService_ListJobTriggers_async
|
|
2537
1418
|
*/
|
|
2538
1419
|
listJobTriggersAsync(request, options) {
|
|
2539
1420
|
request = request || {};
|
|
@@ -2544,99 +1425,11 @@ class DlpServiceClient {
|
|
|
2544
1425
|
gax.routingHeader.fromParams({
|
|
2545
1426
|
parent: request.parent || '',
|
|
2546
1427
|
});
|
|
2547
|
-
|
|
2548
|
-
const callSettings =
|
|
1428
|
+
const defaultCallSettings = this._defaults['listJobTriggers'];
|
|
1429
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2549
1430
|
this.initialize();
|
|
2550
1431
|
return this.descriptors.page.listJobTriggers.asyncIterate(this.innerApiCalls['listJobTriggers'], request, callSettings);
|
|
2551
1432
|
}
|
|
2552
|
-
/**
|
|
2553
|
-
* Lists DlpJobs that match the specified filter in the request.
|
|
2554
|
-
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
2555
|
-
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
2556
|
-
*
|
|
2557
|
-
* @param {Object} request
|
|
2558
|
-
* The request object that will be sent.
|
|
2559
|
-
* @param {string} request.parent
|
|
2560
|
-
* Required. Parent resource name.
|
|
2561
|
-
*
|
|
2562
|
-
* The format of this value varies depending on whether you have [specified a
|
|
2563
|
-
* processing
|
|
2564
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
2565
|
-
*
|
|
2566
|
-
* + Projects scope, location specified:<br/>
|
|
2567
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
2568
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
2569
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
2570
|
-
*
|
|
2571
|
-
* The following example `parent` string specifies a parent project with the
|
|
2572
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
2573
|
-
* for processing data:
|
|
2574
|
-
*
|
|
2575
|
-
* parent=projects/example-project/locations/europe-west3
|
|
2576
|
-
* @param {string} request.filter
|
|
2577
|
-
* Allows filtering.
|
|
2578
|
-
*
|
|
2579
|
-
* Supported syntax:
|
|
2580
|
-
*
|
|
2581
|
-
* * Filter expressions are made up of one or more restrictions.
|
|
2582
|
-
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2583
|
-
* sequence of restrictions implicitly uses `AND`.
|
|
2584
|
-
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2585
|
-
* * Supported fields/values for inspect jobs:
|
|
2586
|
-
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
|
2587
|
-
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
2588
|
-
* - `trigger_name` - The resource name of the trigger that created job.
|
|
2589
|
-
* - 'end_time` - Corresponds to time the job finished.
|
|
2590
|
-
* - 'start_time` - Corresponds to time the job finished.
|
|
2591
|
-
* * Supported fields for risk analysis jobs:
|
|
2592
|
-
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
|
2593
|
-
* - 'end_time` - Corresponds to time the job finished.
|
|
2594
|
-
* - 'start_time` - Corresponds to time the job finished.
|
|
2595
|
-
* * The operator must be `=` or `!=`.
|
|
2596
|
-
*
|
|
2597
|
-
* Examples:
|
|
2598
|
-
*
|
|
2599
|
-
* * inspected_storage = cloud_storage AND state = done
|
|
2600
|
-
* * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
|
2601
|
-
* * inspected_storage = cloud_storage AND (state = done OR state = canceled)
|
|
2602
|
-
* * end_time > \"2017-12-12T00:00:00+00:00\"
|
|
2603
|
-
*
|
|
2604
|
-
* The length of this field should be no more than 500 characters.
|
|
2605
|
-
* @param {number} request.pageSize
|
|
2606
|
-
* The standard list page size.
|
|
2607
|
-
* @param {string} request.pageToken
|
|
2608
|
-
* The standard list page token.
|
|
2609
|
-
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
2610
|
-
* The type of job. Defaults to `DlpJobType.INSPECT`
|
|
2611
|
-
* @param {string} request.orderBy
|
|
2612
|
-
* Comma separated list of fields to order by,
|
|
2613
|
-
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
2614
|
-
* default sorting order is ascending, redundant space characters are
|
|
2615
|
-
* insignificant.
|
|
2616
|
-
*
|
|
2617
|
-
* Example: `name asc, end_time asc, create_time desc`
|
|
2618
|
-
*
|
|
2619
|
-
* Supported fields are:
|
|
2620
|
-
*
|
|
2621
|
-
* - `create_time`: corresponds to time the job was created.
|
|
2622
|
-
* - `end_time`: corresponds to time the job ended.
|
|
2623
|
-
* - `name`: corresponds to job's name.
|
|
2624
|
-
* - `state`: corresponds to `state`
|
|
2625
|
-
* @param {string} request.locationId
|
|
2626
|
-
* Deprecated. This field has no effect.
|
|
2627
|
-
* @param {object} [options]
|
|
2628
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2629
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
2630
|
-
* The first element of the array is Array of [DlpJob]{@link google.privacy.dlp.v2.DlpJob}.
|
|
2631
|
-
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2632
|
-
* times as needed and will merge results from all the pages into this array.
|
|
2633
|
-
* Note that it can affect your quota.
|
|
2634
|
-
* We recommend using `listDlpJobsAsync()`
|
|
2635
|
-
* method described below for async iteration which you can stop as needed.
|
|
2636
|
-
* Please see the
|
|
2637
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2638
|
-
* for more details and examples.
|
|
2639
|
-
*/
|
|
2640
1433
|
listDlpJobs(request, optionsOrCallback, callback) {
|
|
2641
1434
|
request = request || {};
|
|
2642
1435
|
let options;
|
|
@@ -2750,7 +1543,8 @@ class DlpServiceClient {
|
|
|
2750
1543
|
gax.routingHeader.fromParams({
|
|
2751
1544
|
parent: request.parent || '',
|
|
2752
1545
|
});
|
|
2753
|
-
const
|
|
1546
|
+
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
1547
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2754
1548
|
this.initialize();
|
|
2755
1549
|
return this.descriptors.page.listDlpJobs.createStream(this.innerApiCalls.listDlpJobs, request, callSettings);
|
|
2756
1550
|
}
|
|
@@ -2838,11 +1632,8 @@ class DlpServiceClient {
|
|
|
2838
1632
|
* Please see the
|
|
2839
1633
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2840
1634
|
* for more details and examples.
|
|
2841
|
-
* @example
|
|
2842
|
-
*
|
|
2843
|
-
* for await (const response of iterable) {
|
|
2844
|
-
* // process response
|
|
2845
|
-
* }
|
|
1635
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_dlp_jobs.js</caption>
|
|
1636
|
+
* region_tag:dlp_v2_generated_DlpService_ListDlpJobs_async
|
|
2846
1637
|
*/
|
|
2847
1638
|
listDlpJobsAsync(request, options) {
|
|
2848
1639
|
request = request || {};
|
|
@@ -2853,75 +1644,11 @@ class DlpServiceClient {
|
|
|
2853
1644
|
gax.routingHeader.fromParams({
|
|
2854
1645
|
parent: request.parent || '',
|
|
2855
1646
|
});
|
|
2856
|
-
|
|
2857
|
-
const callSettings =
|
|
1647
|
+
const defaultCallSettings = this._defaults['listDlpJobs'];
|
|
1648
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2858
1649
|
this.initialize();
|
|
2859
1650
|
return this.descriptors.page.listDlpJobs.asyncIterate(this.innerApiCalls['listDlpJobs'], request, callSettings);
|
|
2860
1651
|
}
|
|
2861
|
-
/**
|
|
2862
|
-
* Lists stored infoTypes.
|
|
2863
|
-
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
2864
|
-
* learn more.
|
|
2865
|
-
*
|
|
2866
|
-
* @param {Object} request
|
|
2867
|
-
* The request object that will be sent.
|
|
2868
|
-
* @param {string} request.parent
|
|
2869
|
-
* Required. Parent resource name.
|
|
2870
|
-
*
|
|
2871
|
-
* The format of this value varies depending on the scope of the request
|
|
2872
|
-
* (project or organization) and whether you have [specified a processing
|
|
2873
|
-
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
2874
|
-
*
|
|
2875
|
-
* + Projects scope, location specified:<br/>
|
|
2876
|
-
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
2877
|
-
* + Projects scope, no location specified (defaults to global):<br/>
|
|
2878
|
-
* `projects/`<var>PROJECT_ID</var>
|
|
2879
|
-
* + Organizations scope, location specified:<br/>
|
|
2880
|
-
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
2881
|
-
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
2882
|
-
* `organizations/`<var>ORG_ID</var>
|
|
2883
|
-
*
|
|
2884
|
-
* The following example `parent` string specifies a parent project with the
|
|
2885
|
-
* identifier `example-project`, and specifies the `europe-west3` location
|
|
2886
|
-
* for processing data:
|
|
2887
|
-
*
|
|
2888
|
-
* parent=projects/example-project/locations/europe-west3
|
|
2889
|
-
* @param {string} request.pageToken
|
|
2890
|
-
* Page token to continue retrieval. Comes from previous call
|
|
2891
|
-
* to `ListStoredInfoTypes`.
|
|
2892
|
-
* @param {number} request.pageSize
|
|
2893
|
-
* Size of the page, can be limited by server. If zero server returns
|
|
2894
|
-
* a page of max size 100.
|
|
2895
|
-
* @param {string} request.orderBy
|
|
2896
|
-
* Comma separated list of fields to order by,
|
|
2897
|
-
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
2898
|
-
* default sorting order is ascending, redundant space characters are
|
|
2899
|
-
* insignificant.
|
|
2900
|
-
*
|
|
2901
|
-
* Example: `name asc, display_name, create_time desc`
|
|
2902
|
-
*
|
|
2903
|
-
* Supported fields are:
|
|
2904
|
-
*
|
|
2905
|
-
* - `create_time`: corresponds to time the most recent version of the
|
|
2906
|
-
* resource was created.
|
|
2907
|
-
* - `state`: corresponds to the state of the resource.
|
|
2908
|
-
* - `name`: corresponds to resource name.
|
|
2909
|
-
* - `display_name`: corresponds to info type's display name.
|
|
2910
|
-
* @param {string} request.locationId
|
|
2911
|
-
* Deprecated. This field has no effect.
|
|
2912
|
-
* @param {object} [options]
|
|
2913
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2914
|
-
* @returns {Promise} - The promise which resolves to an array.
|
|
2915
|
-
* The first element of the array is Array of [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
2916
|
-
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2917
|
-
* times as needed and will merge results from all the pages into this array.
|
|
2918
|
-
* Note that it can affect your quota.
|
|
2919
|
-
* We recommend using `listStoredInfoTypesAsync()`
|
|
2920
|
-
* method described below for async iteration which you can stop as needed.
|
|
2921
|
-
* Please see the
|
|
2922
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2923
|
-
* for more details and examples.
|
|
2924
|
-
*/
|
|
2925
1652
|
listStoredInfoTypes(request, optionsOrCallback, callback) {
|
|
2926
1653
|
request = request || {};
|
|
2927
1654
|
let options;
|
|
@@ -3011,7 +1738,8 @@ class DlpServiceClient {
|
|
|
3011
1738
|
gax.routingHeader.fromParams({
|
|
3012
1739
|
parent: request.parent || '',
|
|
3013
1740
|
});
|
|
3014
|
-
const
|
|
1741
|
+
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
1742
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
3015
1743
|
this.initialize();
|
|
3016
1744
|
return this.descriptors.page.listStoredInfoTypes.createStream(this.innerApiCalls.listStoredInfoTypes, request, callSettings);
|
|
3017
1745
|
}
|
|
@@ -3075,11 +1803,8 @@ class DlpServiceClient {
|
|
|
3075
1803
|
* Please see the
|
|
3076
1804
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
3077
1805
|
* for more details and examples.
|
|
3078
|
-
* @example
|
|
3079
|
-
*
|
|
3080
|
-
* for await (const response of iterable) {
|
|
3081
|
-
* // process response
|
|
3082
|
-
* }
|
|
1806
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_stored_info_types.js</caption>
|
|
1807
|
+
* region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async
|
|
3083
1808
|
*/
|
|
3084
1809
|
listStoredInfoTypesAsync(request, options) {
|
|
3085
1810
|
request = request || {};
|
|
@@ -3090,8 +1815,8 @@ class DlpServiceClient {
|
|
|
3090
1815
|
gax.routingHeader.fromParams({
|
|
3091
1816
|
parent: request.parent || '',
|
|
3092
1817
|
});
|
|
3093
|
-
|
|
3094
|
-
const callSettings =
|
|
1818
|
+
const defaultCallSettings = this._defaults['listStoredInfoTypes'];
|
|
1819
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
3095
1820
|
this.initialize();
|
|
3096
1821
|
return this.descriptors.page.listStoredInfoTypes.asyncIterate(this.innerApiCalls['listStoredInfoTypes'], request, callSettings);
|
|
3097
1822
|
}
|