@google-cloud/dlp 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +470 -119
- package/build/protos/google/privacy/dlp/v2/storage.proto +50 -6
- package/build/protos/protos.d.ts +5363 -1938
- package/build/protos/protos.js +14202 -5046
- package/build/protos/protos.json +330 -19
- package/build/src/v2/dlp_service_client.d.ts +140 -91
- package/build/src/v2/dlp_service_client.js +255 -151
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/package.json +2 -2
package/build/protos/protos.json
CHANGED
|
@@ -1818,6 +1818,11 @@
|
|
|
1818
1818
|
"type": "string",
|
|
1819
1819
|
"id": 4
|
|
1820
1820
|
},
|
|
1821
|
+
"versions": {
|
|
1822
|
+
"rule": "repeated",
|
|
1823
|
+
"type": "VersionDescription",
|
|
1824
|
+
"id": 9
|
|
1825
|
+
},
|
|
1821
1826
|
"categories": {
|
|
1822
1827
|
"rule": "repeated",
|
|
1823
1828
|
"type": "InfoTypeCategory",
|
|
@@ -1917,6 +1922,18 @@
|
|
|
1917
1922
|
}
|
|
1918
1923
|
}
|
|
1919
1924
|
},
|
|
1925
|
+
"VersionDescription": {
|
|
1926
|
+
"fields": {
|
|
1927
|
+
"version": {
|
|
1928
|
+
"type": "string",
|
|
1929
|
+
"id": 1
|
|
1930
|
+
},
|
|
1931
|
+
"description": {
|
|
1932
|
+
"type": "string",
|
|
1933
|
+
"id": 2
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1920
1937
|
"ListInfoTypesRequest": {
|
|
1921
1938
|
"fields": {
|
|
1922
1939
|
"parent": {
|
|
@@ -2667,7 +2684,8 @@
|
|
|
2667
2684
|
"transformation": {
|
|
2668
2685
|
"oneof": [
|
|
2669
2686
|
"infoTypeTransformations",
|
|
2670
|
-
"recordTransformations"
|
|
2687
|
+
"recordTransformations",
|
|
2688
|
+
"imageTransformations"
|
|
2671
2689
|
]
|
|
2672
2690
|
}
|
|
2673
2691
|
},
|
|
@@ -2680,12 +2698,76 @@
|
|
|
2680
2698
|
"type": "RecordTransformations",
|
|
2681
2699
|
"id": 2
|
|
2682
2700
|
},
|
|
2701
|
+
"imageTransformations": {
|
|
2702
|
+
"type": "ImageTransformations",
|
|
2703
|
+
"id": 4
|
|
2704
|
+
},
|
|
2683
2705
|
"transformationErrorHandling": {
|
|
2684
2706
|
"type": "TransformationErrorHandling",
|
|
2685
2707
|
"id": 3
|
|
2686
2708
|
}
|
|
2687
2709
|
}
|
|
2688
2710
|
},
|
|
2711
|
+
"ImageTransformations": {
|
|
2712
|
+
"fields": {
|
|
2713
|
+
"transforms": {
|
|
2714
|
+
"rule": "repeated",
|
|
2715
|
+
"type": "ImageTransformation",
|
|
2716
|
+
"id": 2
|
|
2717
|
+
}
|
|
2718
|
+
},
|
|
2719
|
+
"nested": {
|
|
2720
|
+
"ImageTransformation": {
|
|
2721
|
+
"oneofs": {
|
|
2722
|
+
"target": {
|
|
2723
|
+
"oneof": [
|
|
2724
|
+
"selectedInfoTypes",
|
|
2725
|
+
"allInfoTypes",
|
|
2726
|
+
"allText"
|
|
2727
|
+
]
|
|
2728
|
+
}
|
|
2729
|
+
},
|
|
2730
|
+
"fields": {
|
|
2731
|
+
"selectedInfoTypes": {
|
|
2732
|
+
"type": "SelectedInfoTypes",
|
|
2733
|
+
"id": 4
|
|
2734
|
+
},
|
|
2735
|
+
"allInfoTypes": {
|
|
2736
|
+
"type": "AllInfoTypes",
|
|
2737
|
+
"id": 5
|
|
2738
|
+
},
|
|
2739
|
+
"allText": {
|
|
2740
|
+
"type": "AllText",
|
|
2741
|
+
"id": 6
|
|
2742
|
+
},
|
|
2743
|
+
"redactionColor": {
|
|
2744
|
+
"type": "Color",
|
|
2745
|
+
"id": 3
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2748
|
+
"nested": {
|
|
2749
|
+
"SelectedInfoTypes": {
|
|
2750
|
+
"fields": {
|
|
2751
|
+
"infoTypes": {
|
|
2752
|
+
"rule": "repeated",
|
|
2753
|
+
"type": "InfoType",
|
|
2754
|
+
"id": 5,
|
|
2755
|
+
"options": {
|
|
2756
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
"AllInfoTypes": {
|
|
2762
|
+
"fields": {}
|
|
2763
|
+
},
|
|
2764
|
+
"AllText": {
|
|
2765
|
+
"fields": {}
|
|
2766
|
+
}
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
},
|
|
2689
2771
|
"TransformationErrorHandling": {
|
|
2690
2772
|
"oneofs": {
|
|
2691
2773
|
"mode": {
|
|
@@ -3339,6 +3421,158 @@
|
|
|
3339
3421
|
}
|
|
3340
3422
|
}
|
|
3341
3423
|
},
|
|
3424
|
+
"TransformationDescription": {
|
|
3425
|
+
"fields": {
|
|
3426
|
+
"type": {
|
|
3427
|
+
"type": "TransformationType",
|
|
3428
|
+
"id": 1
|
|
3429
|
+
},
|
|
3430
|
+
"description": {
|
|
3431
|
+
"type": "string",
|
|
3432
|
+
"id": 2
|
|
3433
|
+
},
|
|
3434
|
+
"condition": {
|
|
3435
|
+
"type": "string",
|
|
3436
|
+
"id": 3
|
|
3437
|
+
},
|
|
3438
|
+
"infoType": {
|
|
3439
|
+
"type": "InfoType",
|
|
3440
|
+
"id": 4
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
},
|
|
3444
|
+
"TransformationDetails": {
|
|
3445
|
+
"fields": {
|
|
3446
|
+
"resourceName": {
|
|
3447
|
+
"type": "string",
|
|
3448
|
+
"id": 1
|
|
3449
|
+
},
|
|
3450
|
+
"containerName": {
|
|
3451
|
+
"type": "string",
|
|
3452
|
+
"id": 2
|
|
3453
|
+
},
|
|
3454
|
+
"transformation": {
|
|
3455
|
+
"rule": "repeated",
|
|
3456
|
+
"type": "TransformationDescription",
|
|
3457
|
+
"id": 3
|
|
3458
|
+
},
|
|
3459
|
+
"statusDetails": {
|
|
3460
|
+
"type": "TransformationResultStatus",
|
|
3461
|
+
"id": 4
|
|
3462
|
+
},
|
|
3463
|
+
"transformedBytes": {
|
|
3464
|
+
"type": "int64",
|
|
3465
|
+
"id": 5
|
|
3466
|
+
},
|
|
3467
|
+
"transformationLocation": {
|
|
3468
|
+
"type": "TransformationLocation",
|
|
3469
|
+
"id": 6
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
},
|
|
3473
|
+
"TransformationLocation": {
|
|
3474
|
+
"oneofs": {
|
|
3475
|
+
"locationType": {
|
|
3476
|
+
"oneof": [
|
|
3477
|
+
"findingId",
|
|
3478
|
+
"recordTransformation"
|
|
3479
|
+
]
|
|
3480
|
+
}
|
|
3481
|
+
},
|
|
3482
|
+
"fields": {
|
|
3483
|
+
"findingId": {
|
|
3484
|
+
"type": "string",
|
|
3485
|
+
"id": 1
|
|
3486
|
+
},
|
|
3487
|
+
"recordTransformation": {
|
|
3488
|
+
"type": "RecordTransformation",
|
|
3489
|
+
"id": 2
|
|
3490
|
+
},
|
|
3491
|
+
"containerType": {
|
|
3492
|
+
"type": "TransformationContainerType",
|
|
3493
|
+
"id": 3
|
|
3494
|
+
}
|
|
3495
|
+
}
|
|
3496
|
+
},
|
|
3497
|
+
"RecordTransformation": {
|
|
3498
|
+
"fields": {
|
|
3499
|
+
"fieldId": {
|
|
3500
|
+
"type": "FieldId",
|
|
3501
|
+
"id": 1
|
|
3502
|
+
},
|
|
3503
|
+
"containerTimestamp": {
|
|
3504
|
+
"type": "google.protobuf.Timestamp",
|
|
3505
|
+
"id": 2
|
|
3506
|
+
},
|
|
3507
|
+
"containerVersion": {
|
|
3508
|
+
"type": "string",
|
|
3509
|
+
"id": 3
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
},
|
|
3513
|
+
"TransformationResultStatus": {
|
|
3514
|
+
"fields": {
|
|
3515
|
+
"resultStatusType": {
|
|
3516
|
+
"type": "TransformationResultStatusType",
|
|
3517
|
+
"id": 1
|
|
3518
|
+
},
|
|
3519
|
+
"details": {
|
|
3520
|
+
"type": "google.rpc.Status",
|
|
3521
|
+
"id": 2
|
|
3522
|
+
}
|
|
3523
|
+
}
|
|
3524
|
+
},
|
|
3525
|
+
"TransformationResultStatusType": {
|
|
3526
|
+
"values": {
|
|
3527
|
+
"STATE_TYPE_UNSPECIFIED": 0,
|
|
3528
|
+
"INVALID_TRANSFORM": 1,
|
|
3529
|
+
"BIGQUERY_MAX_ROW_SIZE_EXCEEDED": 2,
|
|
3530
|
+
"METADATA_UNRETRIEVABLE": 3,
|
|
3531
|
+
"SUCCESS": 4
|
|
3532
|
+
}
|
|
3533
|
+
},
|
|
3534
|
+
"TransformationContainerType": {
|
|
3535
|
+
"values": {
|
|
3536
|
+
"TRANSFORM_UNKNOWN_CONTAINER": 0,
|
|
3537
|
+
"TRANSFORM_BODY": 1,
|
|
3538
|
+
"TRANSFORM_METADATA": 2,
|
|
3539
|
+
"TRANSFORM_TABLE": 3
|
|
3540
|
+
}
|
|
3541
|
+
},
|
|
3542
|
+
"TransformationType": {
|
|
3543
|
+
"values": {
|
|
3544
|
+
"TRANSFORMATION_TYPE_UNSPECIFIED": 0,
|
|
3545
|
+
"RECORD_SUPPRESSION": 1,
|
|
3546
|
+
"REPLACE_VALUE": 2,
|
|
3547
|
+
"REPLACE_DICTIONARY": 15,
|
|
3548
|
+
"REDACT": 3,
|
|
3549
|
+
"CHARACTER_MASK": 4,
|
|
3550
|
+
"CRYPTO_REPLACE_FFX_FPE": 5,
|
|
3551
|
+
"FIXED_SIZE_BUCKETING": 6,
|
|
3552
|
+
"BUCKETING": 7,
|
|
3553
|
+
"REPLACE_WITH_INFO_TYPE": 8,
|
|
3554
|
+
"TIME_PART": 9,
|
|
3555
|
+
"CRYPTO_HASH": 10,
|
|
3556
|
+
"DATE_SHIFT": 12,
|
|
3557
|
+
"CRYPTO_DETERMINISTIC_CONFIG": 13,
|
|
3558
|
+
"REDACT_IMAGE": 14
|
|
3559
|
+
}
|
|
3560
|
+
},
|
|
3561
|
+
"TransformationDetailsStorageConfig": {
|
|
3562
|
+
"oneofs": {
|
|
3563
|
+
"type": {
|
|
3564
|
+
"oneof": [
|
|
3565
|
+
"table"
|
|
3566
|
+
]
|
|
3567
|
+
}
|
|
3568
|
+
},
|
|
3569
|
+
"fields": {
|
|
3570
|
+
"table": {
|
|
3571
|
+
"type": "BigQueryTable",
|
|
3572
|
+
"id": 1
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
},
|
|
3342
3576
|
"Schedule": {
|
|
3343
3577
|
"oneofs": {
|
|
3344
3578
|
"option": {
|
|
@@ -3562,6 +3796,7 @@
|
|
|
3562
3796
|
"pubSub",
|
|
3563
3797
|
"publishSummaryToCscc",
|
|
3564
3798
|
"publishFindingsToCloudDataCatalog",
|
|
3799
|
+
"deidentify",
|
|
3565
3800
|
"jobNotificationEmails",
|
|
3566
3801
|
"publishToStackdriver"
|
|
3567
3802
|
]
|
|
@@ -3584,6 +3819,10 @@
|
|
|
3584
3819
|
"type": "PublishFindingsToCloudDataCatalog",
|
|
3585
3820
|
"id": 5
|
|
3586
3821
|
},
|
|
3822
|
+
"deidentify": {
|
|
3823
|
+
"type": "Deidentify",
|
|
3824
|
+
"id": 7
|
|
3825
|
+
},
|
|
3587
3826
|
"jobNotificationEmails": {
|
|
3588
3827
|
"type": "JobNotificationEmails",
|
|
3589
3828
|
"id": 8
|
|
@@ -3616,6 +3855,37 @@
|
|
|
3616
3855
|
"PublishFindingsToCloudDataCatalog": {
|
|
3617
3856
|
"fields": {}
|
|
3618
3857
|
},
|
|
3858
|
+
"Deidentify": {
|
|
3859
|
+
"oneofs": {
|
|
3860
|
+
"output": {
|
|
3861
|
+
"oneof": [
|
|
3862
|
+
"cloudStorageOutput"
|
|
3863
|
+
]
|
|
3864
|
+
}
|
|
3865
|
+
},
|
|
3866
|
+
"fields": {
|
|
3867
|
+
"transformationConfig": {
|
|
3868
|
+
"type": "TransformationConfig",
|
|
3869
|
+
"id": 7
|
|
3870
|
+
},
|
|
3871
|
+
"transformationDetailsStorageConfig": {
|
|
3872
|
+
"type": "TransformationDetailsStorageConfig",
|
|
3873
|
+
"id": 3
|
|
3874
|
+
},
|
|
3875
|
+
"cloudStorageOutput": {
|
|
3876
|
+
"type": "string",
|
|
3877
|
+
"id": 9,
|
|
3878
|
+
"options": {
|
|
3879
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
3880
|
+
}
|
|
3881
|
+
},
|
|
3882
|
+
"fileTypesToTransform": {
|
|
3883
|
+
"rule": "repeated",
|
|
3884
|
+
"type": "FileType",
|
|
3885
|
+
"id": 8
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3888
|
+
},
|
|
3619
3889
|
"JobNotificationEmails": {
|
|
3620
3890
|
"fields": {}
|
|
3621
3891
|
},
|
|
@@ -3624,6 +3894,22 @@
|
|
|
3624
3894
|
}
|
|
3625
3895
|
}
|
|
3626
3896
|
},
|
|
3897
|
+
"TransformationConfig": {
|
|
3898
|
+
"fields": {
|
|
3899
|
+
"deidentifyTemplate": {
|
|
3900
|
+
"type": "string",
|
|
3901
|
+
"id": 1
|
|
3902
|
+
},
|
|
3903
|
+
"structuredDeidentifyTemplate": {
|
|
3904
|
+
"type": "string",
|
|
3905
|
+
"id": 2
|
|
3906
|
+
},
|
|
3907
|
+
"imageRedactTemplate": {
|
|
3908
|
+
"type": "string",
|
|
3909
|
+
"id": 4
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
},
|
|
3627
3913
|
"CreateInspectTemplateRequest": {
|
|
3628
3914
|
"fields": {
|
|
3629
3915
|
"parent": {
|
|
@@ -4680,24 +4966,6 @@
|
|
|
4680
4966
|
"INVALID": 4
|
|
4681
4967
|
}
|
|
4682
4968
|
},
|
|
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
4969
|
"DataRiskLevel": {
|
|
4702
4970
|
"fields": {
|
|
4703
4971
|
"score": {
|
|
@@ -4875,6 +5143,10 @@
|
|
|
4875
5143
|
"infoType": {
|
|
4876
5144
|
"type": "InfoType",
|
|
4877
5145
|
"id": 1
|
|
5146
|
+
},
|
|
5147
|
+
"estimatedPrevalence": {
|
|
5148
|
+
"type": "int32",
|
|
5149
|
+
"id": 2
|
|
4878
5150
|
}
|
|
4879
5151
|
}
|
|
4880
5152
|
},
|
|
@@ -4883,6 +5155,10 @@
|
|
|
4883
5155
|
"infoType": {
|
|
4884
5156
|
"type": "InfoType",
|
|
4885
5157
|
"id": 1
|
|
5158
|
+
},
|
|
5159
|
+
"estimatedPrevalence": {
|
|
5160
|
+
"type": "int32",
|
|
5161
|
+
"id": 2
|
|
4886
5162
|
}
|
|
4887
5163
|
}
|
|
4888
5164
|
},
|
|
@@ -4969,6 +5245,24 @@
|
|
|
4969
5245
|
}
|
|
4970
5246
|
}
|
|
4971
5247
|
},
|
|
5248
|
+
"SensitivityScore": {
|
|
5249
|
+
"fields": {
|
|
5250
|
+
"score": {
|
|
5251
|
+
"type": "SensitivityScoreLevel",
|
|
5252
|
+
"id": 1
|
|
5253
|
+
}
|
|
5254
|
+
},
|
|
5255
|
+
"nested": {
|
|
5256
|
+
"SensitivityScoreLevel": {
|
|
5257
|
+
"values": {
|
|
5258
|
+
"SENSITIVITY_SCORE_UNSPECIFIED": 0,
|
|
5259
|
+
"SENSITIVITY_LOW": 10,
|
|
5260
|
+
"SENSITIVITY_MODERATE": 20,
|
|
5261
|
+
"SENSITIVITY_HIGH": 30
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
}
|
|
5265
|
+
},
|
|
4972
5266
|
"Likelihood": {
|
|
4973
5267
|
"values": {
|
|
4974
5268
|
"LIKELIHOOD_UNSPECIFIED": 0,
|
|
@@ -5846,6 +6140,10 @@
|
|
|
5846
6140
|
"syntax": {
|
|
5847
6141
|
"type": "string",
|
|
5848
6142
|
"id": 12
|
|
6143
|
+
},
|
|
6144
|
+
"edition": {
|
|
6145
|
+
"type": "string",
|
|
6146
|
+
"id": 13
|
|
5849
6147
|
}
|
|
5850
6148
|
}
|
|
5851
6149
|
},
|
|
@@ -6673,6 +6971,19 @@
|
|
|
6673
6971
|
"end": {
|
|
6674
6972
|
"type": "int32",
|
|
6675
6973
|
"id": 4
|
|
6974
|
+
},
|
|
6975
|
+
"semantic": {
|
|
6976
|
+
"type": "Semantic",
|
|
6977
|
+
"id": 5
|
|
6978
|
+
}
|
|
6979
|
+
},
|
|
6980
|
+
"nested": {
|
|
6981
|
+
"Semantic": {
|
|
6982
|
+
"values": {
|
|
6983
|
+
"NONE": 0,
|
|
6984
|
+
"SET": 1,
|
|
6985
|
+
"ALIAS": 2
|
|
6986
|
+
}
|
|
6676
6987
|
}
|
|
6677
6988
|
}
|
|
6678
6989
|
}
|