@google-cloud/dlp 4.1.1 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +501 -122
- package/build/protos/google/privacy/dlp/v2/storage.proto +52 -7
- package/build/protos/protos.d.ts +3619 -1947
- package/build/protos/protos.js +10017 -5717
- package/build/protos/protos.json +336 -21
- package/build/src/index.d.ts +1 -1
- package/build/src/v2/dlp_service_client.d.ts +147 -91
- package/build/src/v2/dlp_service_client.js +256 -150
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/package.json +6 -6
package/build/protos/protos.json
CHANGED
|
@@ -977,13 +977,26 @@
|
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
},
|
|
980
|
+
"ExcludeByHotword": {
|
|
981
|
+
"fields": {
|
|
982
|
+
"hotwordRegex": {
|
|
983
|
+
"type": "CustomInfoType.Regex",
|
|
984
|
+
"id": 1
|
|
985
|
+
},
|
|
986
|
+
"proximity": {
|
|
987
|
+
"type": "CustomInfoType.DetectionRule.Proximity",
|
|
988
|
+
"id": 2
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
},
|
|
980
992
|
"ExclusionRule": {
|
|
981
993
|
"oneofs": {
|
|
982
994
|
"type": {
|
|
983
995
|
"oneof": [
|
|
984
996
|
"dictionary",
|
|
985
997
|
"regex",
|
|
986
|
-
"excludeInfoTypes"
|
|
998
|
+
"excludeInfoTypes",
|
|
999
|
+
"excludeByHotword"
|
|
987
1000
|
]
|
|
988
1001
|
}
|
|
989
1002
|
},
|
|
@@ -1000,6 +1013,10 @@
|
|
|
1000
1013
|
"type": "ExcludeInfoTypes",
|
|
1001
1014
|
"id": 3
|
|
1002
1015
|
},
|
|
1016
|
+
"excludeByHotword": {
|
|
1017
|
+
"type": "ExcludeByHotword",
|
|
1018
|
+
"id": 5
|
|
1019
|
+
},
|
|
1003
1020
|
"matchingType": {
|
|
1004
1021
|
"type": "MatchingType",
|
|
1005
1022
|
"id": 4
|
|
@@ -1818,6 +1835,11 @@
|
|
|
1818
1835
|
"type": "string",
|
|
1819
1836
|
"id": 4
|
|
1820
1837
|
},
|
|
1838
|
+
"versions": {
|
|
1839
|
+
"rule": "repeated",
|
|
1840
|
+
"type": "VersionDescription",
|
|
1841
|
+
"id": 9
|
|
1842
|
+
},
|
|
1821
1843
|
"categories": {
|
|
1822
1844
|
"rule": "repeated",
|
|
1823
1845
|
"type": "InfoTypeCategory",
|
|
@@ -1892,7 +1914,8 @@
|
|
|
1892
1914
|
"UNITED_STATES": 37,
|
|
1893
1915
|
"URUGUAY": 38,
|
|
1894
1916
|
"VENEZUELA": 39,
|
|
1895
|
-
"INTERNAL": 40
|
|
1917
|
+
"INTERNAL": 40,
|
|
1918
|
+
"NEW_ZEALAND": 41
|
|
1896
1919
|
}
|
|
1897
1920
|
},
|
|
1898
1921
|
"IndustryCategory": {
|
|
@@ -1917,6 +1940,18 @@
|
|
|
1917
1940
|
}
|
|
1918
1941
|
}
|
|
1919
1942
|
},
|
|
1943
|
+
"VersionDescription": {
|
|
1944
|
+
"fields": {
|
|
1945
|
+
"version": {
|
|
1946
|
+
"type": "string",
|
|
1947
|
+
"id": 1
|
|
1948
|
+
},
|
|
1949
|
+
"description": {
|
|
1950
|
+
"type": "string",
|
|
1951
|
+
"id": 2
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
},
|
|
1920
1955
|
"ListInfoTypesRequest": {
|
|
1921
1956
|
"fields": {
|
|
1922
1957
|
"parent": {
|
|
@@ -2667,7 +2702,8 @@
|
|
|
2667
2702
|
"transformation": {
|
|
2668
2703
|
"oneof": [
|
|
2669
2704
|
"infoTypeTransformations",
|
|
2670
|
-
"recordTransformations"
|
|
2705
|
+
"recordTransformations",
|
|
2706
|
+
"imageTransformations"
|
|
2671
2707
|
]
|
|
2672
2708
|
}
|
|
2673
2709
|
},
|
|
@@ -2680,12 +2716,76 @@
|
|
|
2680
2716
|
"type": "RecordTransformations",
|
|
2681
2717
|
"id": 2
|
|
2682
2718
|
},
|
|
2719
|
+
"imageTransformations": {
|
|
2720
|
+
"type": "ImageTransformations",
|
|
2721
|
+
"id": 4
|
|
2722
|
+
},
|
|
2683
2723
|
"transformationErrorHandling": {
|
|
2684
2724
|
"type": "TransformationErrorHandling",
|
|
2685
2725
|
"id": 3
|
|
2686
2726
|
}
|
|
2687
2727
|
}
|
|
2688
2728
|
},
|
|
2729
|
+
"ImageTransformations": {
|
|
2730
|
+
"fields": {
|
|
2731
|
+
"transforms": {
|
|
2732
|
+
"rule": "repeated",
|
|
2733
|
+
"type": "ImageTransformation",
|
|
2734
|
+
"id": 2
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
"nested": {
|
|
2738
|
+
"ImageTransformation": {
|
|
2739
|
+
"oneofs": {
|
|
2740
|
+
"target": {
|
|
2741
|
+
"oneof": [
|
|
2742
|
+
"selectedInfoTypes",
|
|
2743
|
+
"allInfoTypes",
|
|
2744
|
+
"allText"
|
|
2745
|
+
]
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2748
|
+
"fields": {
|
|
2749
|
+
"selectedInfoTypes": {
|
|
2750
|
+
"type": "SelectedInfoTypes",
|
|
2751
|
+
"id": 4
|
|
2752
|
+
},
|
|
2753
|
+
"allInfoTypes": {
|
|
2754
|
+
"type": "AllInfoTypes",
|
|
2755
|
+
"id": 5
|
|
2756
|
+
},
|
|
2757
|
+
"allText": {
|
|
2758
|
+
"type": "AllText",
|
|
2759
|
+
"id": 6
|
|
2760
|
+
},
|
|
2761
|
+
"redactionColor": {
|
|
2762
|
+
"type": "Color",
|
|
2763
|
+
"id": 3
|
|
2764
|
+
}
|
|
2765
|
+
},
|
|
2766
|
+
"nested": {
|
|
2767
|
+
"SelectedInfoTypes": {
|
|
2768
|
+
"fields": {
|
|
2769
|
+
"infoTypes": {
|
|
2770
|
+
"rule": "repeated",
|
|
2771
|
+
"type": "InfoType",
|
|
2772
|
+
"id": 5,
|
|
2773
|
+
"options": {
|
|
2774
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
},
|
|
2779
|
+
"AllInfoTypes": {
|
|
2780
|
+
"fields": {}
|
|
2781
|
+
},
|
|
2782
|
+
"AllText": {
|
|
2783
|
+
"fields": {}
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
},
|
|
2689
2789
|
"TransformationErrorHandling": {
|
|
2690
2790
|
"oneofs": {
|
|
2691
2791
|
"mode": {
|
|
@@ -3339,6 +3439,158 @@
|
|
|
3339
3439
|
}
|
|
3340
3440
|
}
|
|
3341
3441
|
},
|
|
3442
|
+
"TransformationDescription": {
|
|
3443
|
+
"fields": {
|
|
3444
|
+
"type": {
|
|
3445
|
+
"type": "TransformationType",
|
|
3446
|
+
"id": 1
|
|
3447
|
+
},
|
|
3448
|
+
"description": {
|
|
3449
|
+
"type": "string",
|
|
3450
|
+
"id": 2
|
|
3451
|
+
},
|
|
3452
|
+
"condition": {
|
|
3453
|
+
"type": "string",
|
|
3454
|
+
"id": 3
|
|
3455
|
+
},
|
|
3456
|
+
"infoType": {
|
|
3457
|
+
"type": "InfoType",
|
|
3458
|
+
"id": 4
|
|
3459
|
+
}
|
|
3460
|
+
}
|
|
3461
|
+
},
|
|
3462
|
+
"TransformationDetails": {
|
|
3463
|
+
"fields": {
|
|
3464
|
+
"resourceName": {
|
|
3465
|
+
"type": "string",
|
|
3466
|
+
"id": 1
|
|
3467
|
+
},
|
|
3468
|
+
"containerName": {
|
|
3469
|
+
"type": "string",
|
|
3470
|
+
"id": 2
|
|
3471
|
+
},
|
|
3472
|
+
"transformation": {
|
|
3473
|
+
"rule": "repeated",
|
|
3474
|
+
"type": "TransformationDescription",
|
|
3475
|
+
"id": 3
|
|
3476
|
+
},
|
|
3477
|
+
"statusDetails": {
|
|
3478
|
+
"type": "TransformationResultStatus",
|
|
3479
|
+
"id": 4
|
|
3480
|
+
},
|
|
3481
|
+
"transformedBytes": {
|
|
3482
|
+
"type": "int64",
|
|
3483
|
+
"id": 5
|
|
3484
|
+
},
|
|
3485
|
+
"transformationLocation": {
|
|
3486
|
+
"type": "TransformationLocation",
|
|
3487
|
+
"id": 6
|
|
3488
|
+
}
|
|
3489
|
+
}
|
|
3490
|
+
},
|
|
3491
|
+
"TransformationLocation": {
|
|
3492
|
+
"oneofs": {
|
|
3493
|
+
"locationType": {
|
|
3494
|
+
"oneof": [
|
|
3495
|
+
"findingId",
|
|
3496
|
+
"recordTransformation"
|
|
3497
|
+
]
|
|
3498
|
+
}
|
|
3499
|
+
},
|
|
3500
|
+
"fields": {
|
|
3501
|
+
"findingId": {
|
|
3502
|
+
"type": "string",
|
|
3503
|
+
"id": 1
|
|
3504
|
+
},
|
|
3505
|
+
"recordTransformation": {
|
|
3506
|
+
"type": "RecordTransformation",
|
|
3507
|
+
"id": 2
|
|
3508
|
+
},
|
|
3509
|
+
"containerType": {
|
|
3510
|
+
"type": "TransformationContainerType",
|
|
3511
|
+
"id": 3
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
},
|
|
3515
|
+
"RecordTransformation": {
|
|
3516
|
+
"fields": {
|
|
3517
|
+
"fieldId": {
|
|
3518
|
+
"type": "FieldId",
|
|
3519
|
+
"id": 1
|
|
3520
|
+
},
|
|
3521
|
+
"containerTimestamp": {
|
|
3522
|
+
"type": "google.protobuf.Timestamp",
|
|
3523
|
+
"id": 2
|
|
3524
|
+
},
|
|
3525
|
+
"containerVersion": {
|
|
3526
|
+
"type": "string",
|
|
3527
|
+
"id": 3
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
},
|
|
3531
|
+
"TransformationResultStatus": {
|
|
3532
|
+
"fields": {
|
|
3533
|
+
"resultStatusType": {
|
|
3534
|
+
"type": "TransformationResultStatusType",
|
|
3535
|
+
"id": 1
|
|
3536
|
+
},
|
|
3537
|
+
"details": {
|
|
3538
|
+
"type": "google.rpc.Status",
|
|
3539
|
+
"id": 2
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
},
|
|
3543
|
+
"TransformationResultStatusType": {
|
|
3544
|
+
"values": {
|
|
3545
|
+
"STATE_TYPE_UNSPECIFIED": 0,
|
|
3546
|
+
"INVALID_TRANSFORM": 1,
|
|
3547
|
+
"BIGQUERY_MAX_ROW_SIZE_EXCEEDED": 2,
|
|
3548
|
+
"METADATA_UNRETRIEVABLE": 3,
|
|
3549
|
+
"SUCCESS": 4
|
|
3550
|
+
}
|
|
3551
|
+
},
|
|
3552
|
+
"TransformationContainerType": {
|
|
3553
|
+
"values": {
|
|
3554
|
+
"TRANSFORM_UNKNOWN_CONTAINER": 0,
|
|
3555
|
+
"TRANSFORM_BODY": 1,
|
|
3556
|
+
"TRANSFORM_METADATA": 2,
|
|
3557
|
+
"TRANSFORM_TABLE": 3
|
|
3558
|
+
}
|
|
3559
|
+
},
|
|
3560
|
+
"TransformationType": {
|
|
3561
|
+
"values": {
|
|
3562
|
+
"TRANSFORMATION_TYPE_UNSPECIFIED": 0,
|
|
3563
|
+
"RECORD_SUPPRESSION": 1,
|
|
3564
|
+
"REPLACE_VALUE": 2,
|
|
3565
|
+
"REPLACE_DICTIONARY": 15,
|
|
3566
|
+
"REDACT": 3,
|
|
3567
|
+
"CHARACTER_MASK": 4,
|
|
3568
|
+
"CRYPTO_REPLACE_FFX_FPE": 5,
|
|
3569
|
+
"FIXED_SIZE_BUCKETING": 6,
|
|
3570
|
+
"BUCKETING": 7,
|
|
3571
|
+
"REPLACE_WITH_INFO_TYPE": 8,
|
|
3572
|
+
"TIME_PART": 9,
|
|
3573
|
+
"CRYPTO_HASH": 10,
|
|
3574
|
+
"DATE_SHIFT": 12,
|
|
3575
|
+
"CRYPTO_DETERMINISTIC_CONFIG": 13,
|
|
3576
|
+
"REDACT_IMAGE": 14
|
|
3577
|
+
}
|
|
3578
|
+
},
|
|
3579
|
+
"TransformationDetailsStorageConfig": {
|
|
3580
|
+
"oneofs": {
|
|
3581
|
+
"type": {
|
|
3582
|
+
"oneof": [
|
|
3583
|
+
"table"
|
|
3584
|
+
]
|
|
3585
|
+
}
|
|
3586
|
+
},
|
|
3587
|
+
"fields": {
|
|
3588
|
+
"table": {
|
|
3589
|
+
"type": "BigQueryTable",
|
|
3590
|
+
"id": 1
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
},
|
|
3342
3594
|
"Schedule": {
|
|
3343
3595
|
"oneofs": {
|
|
3344
3596
|
"option": {
|
|
@@ -3562,6 +3814,7 @@
|
|
|
3562
3814
|
"pubSub",
|
|
3563
3815
|
"publishSummaryToCscc",
|
|
3564
3816
|
"publishFindingsToCloudDataCatalog",
|
|
3817
|
+
"deidentify",
|
|
3565
3818
|
"jobNotificationEmails",
|
|
3566
3819
|
"publishToStackdriver"
|
|
3567
3820
|
]
|
|
@@ -3584,6 +3837,10 @@
|
|
|
3584
3837
|
"type": "PublishFindingsToCloudDataCatalog",
|
|
3585
3838
|
"id": 5
|
|
3586
3839
|
},
|
|
3840
|
+
"deidentify": {
|
|
3841
|
+
"type": "Deidentify",
|
|
3842
|
+
"id": 7
|
|
3843
|
+
},
|
|
3587
3844
|
"jobNotificationEmails": {
|
|
3588
3845
|
"type": "JobNotificationEmails",
|
|
3589
3846
|
"id": 8
|
|
@@ -3616,6 +3873,37 @@
|
|
|
3616
3873
|
"PublishFindingsToCloudDataCatalog": {
|
|
3617
3874
|
"fields": {}
|
|
3618
3875
|
},
|
|
3876
|
+
"Deidentify": {
|
|
3877
|
+
"oneofs": {
|
|
3878
|
+
"output": {
|
|
3879
|
+
"oneof": [
|
|
3880
|
+
"cloudStorageOutput"
|
|
3881
|
+
]
|
|
3882
|
+
}
|
|
3883
|
+
},
|
|
3884
|
+
"fields": {
|
|
3885
|
+
"transformationConfig": {
|
|
3886
|
+
"type": "TransformationConfig",
|
|
3887
|
+
"id": 7
|
|
3888
|
+
},
|
|
3889
|
+
"transformationDetailsStorageConfig": {
|
|
3890
|
+
"type": "TransformationDetailsStorageConfig",
|
|
3891
|
+
"id": 3
|
|
3892
|
+
},
|
|
3893
|
+
"cloudStorageOutput": {
|
|
3894
|
+
"type": "string",
|
|
3895
|
+
"id": 9,
|
|
3896
|
+
"options": {
|
|
3897
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3898
|
+
}
|
|
3899
|
+
},
|
|
3900
|
+
"fileTypesToTransform": {
|
|
3901
|
+
"rule": "repeated",
|
|
3902
|
+
"type": "FileType",
|
|
3903
|
+
"id": 8
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3906
|
+
},
|
|
3619
3907
|
"JobNotificationEmails": {
|
|
3620
3908
|
"fields": {}
|
|
3621
3909
|
},
|
|
@@ -3624,6 +3912,22 @@
|
|
|
3624
3912
|
}
|
|
3625
3913
|
}
|
|
3626
3914
|
},
|
|
3915
|
+
"TransformationConfig": {
|
|
3916
|
+
"fields": {
|
|
3917
|
+
"deidentifyTemplate": {
|
|
3918
|
+
"type": "string",
|
|
3919
|
+
"id": 1
|
|
3920
|
+
},
|
|
3921
|
+
"structuredDeidentifyTemplate": {
|
|
3922
|
+
"type": "string",
|
|
3923
|
+
"id": 2
|
|
3924
|
+
},
|
|
3925
|
+
"imageRedactTemplate": {
|
|
3926
|
+
"type": "string",
|
|
3927
|
+
"id": 4
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
3930
|
+
},
|
|
3627
3931
|
"CreateInspectTemplateRequest": {
|
|
3628
3932
|
"fields": {
|
|
3629
3933
|
"parent": {
|
|
@@ -4680,24 +4984,6 @@
|
|
|
4680
4984
|
"INVALID": 4
|
|
4681
4985
|
}
|
|
4682
4986
|
},
|
|
4683
|
-
"SensitivityScore": {
|
|
4684
|
-
"fields": {
|
|
4685
|
-
"score": {
|
|
4686
|
-
"type": "SensitivityScoreLevel",
|
|
4687
|
-
"id": 1
|
|
4688
|
-
}
|
|
4689
|
-
},
|
|
4690
|
-
"nested": {
|
|
4691
|
-
"SensitivityScoreLevel": {
|
|
4692
|
-
"values": {
|
|
4693
|
-
"SENSITIVITY_SCORE_UNSPECIFIED": 0,
|
|
4694
|
-
"SENSITIVITY_LOW": 10,
|
|
4695
|
-
"SENSITIVITY_MODERATE": 20,
|
|
4696
|
-
"SENSITIVITY_HIGH": 30
|
|
4697
|
-
}
|
|
4698
|
-
}
|
|
4699
|
-
}
|
|
4700
|
-
},
|
|
4701
4987
|
"DataRiskLevel": {
|
|
4702
4988
|
"fields": {
|
|
4703
4989
|
"score": {
|
|
@@ -4875,6 +5161,13 @@
|
|
|
4875
5161
|
"infoType": {
|
|
4876
5162
|
"type": "InfoType",
|
|
4877
5163
|
"id": 1
|
|
5164
|
+
},
|
|
5165
|
+
"estimatedPrevalence": {
|
|
5166
|
+
"type": "int32",
|
|
5167
|
+
"id": 2,
|
|
5168
|
+
"options": {
|
|
5169
|
+
"deprecated": true
|
|
5170
|
+
}
|
|
4878
5171
|
}
|
|
4879
5172
|
}
|
|
4880
5173
|
},
|
|
@@ -4883,6 +5176,10 @@
|
|
|
4883
5176
|
"infoType": {
|
|
4884
5177
|
"type": "InfoType",
|
|
4885
5178
|
"id": 1
|
|
5179
|
+
},
|
|
5180
|
+
"estimatedPrevalence": {
|
|
5181
|
+
"type": "int32",
|
|
5182
|
+
"id": 2
|
|
4886
5183
|
}
|
|
4887
5184
|
}
|
|
4888
5185
|
},
|
|
@@ -4969,6 +5266,24 @@
|
|
|
4969
5266
|
}
|
|
4970
5267
|
}
|
|
4971
5268
|
},
|
|
5269
|
+
"SensitivityScore": {
|
|
5270
|
+
"fields": {
|
|
5271
|
+
"score": {
|
|
5272
|
+
"type": "SensitivityScoreLevel",
|
|
5273
|
+
"id": 1
|
|
5274
|
+
}
|
|
5275
|
+
},
|
|
5276
|
+
"nested": {
|
|
5277
|
+
"SensitivityScoreLevel": {
|
|
5278
|
+
"values": {
|
|
5279
|
+
"SENSITIVITY_SCORE_UNSPECIFIED": 0,
|
|
5280
|
+
"SENSITIVITY_LOW": 10,
|
|
5281
|
+
"SENSITIVITY_MODERATE": 20,
|
|
5282
|
+
"SENSITIVITY_HIGH": 30
|
|
5283
|
+
}
|
|
5284
|
+
}
|
|
5285
|
+
}
|
|
5286
|
+
},
|
|
4972
5287
|
"Likelihood": {
|
|
4973
5288
|
"values": {
|
|
4974
5289
|
"LIKELIHOOD_UNSPECIFIED": 0,
|
package/build/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v2 from './v2';
|
|
2
2
|
declare const DlpServiceClient: typeof v2.DlpServiceClient;
|
|
3
|
-
|
|
3
|
+
type DlpServiceClient = v2.DlpServiceClient;
|
|
4
4
|
export { v2, DlpServiceClient };
|
|
5
5
|
declare const _default: {
|
|
6
6
|
v2: typeof v2;
|