@google-cloud/dlp 4.2.0 → 4.4.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/README.md +43 -36
- package/build/protos/google/privacy/dlp/v2/dlp.proto +34 -6
- package/build/protos/google/privacy/dlp/v2/storage.proto +1 -1
- package/build/protos/protos.d.ts +1833 -230
- package/build/protos/protos.js +4592 -460
- package/build/protos/protos.json +318 -5
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/build/src/v2/dlp_service_client.d.ts +7 -0
- package/build/src/v2/dlp_service_client.js +3 -1
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/build/src/v2/index.js +1 -1
- package/package.json +15 -10
- package/CHANGELOG.md +0 -550
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
|
|
@@ -1897,7 +1914,8 @@
|
|
|
1897
1914
|
"UNITED_STATES": 37,
|
|
1898
1915
|
"URUGUAY": 38,
|
|
1899
1916
|
"VENEZUELA": 39,
|
|
1900
|
-
"INTERNAL": 40
|
|
1917
|
+
"INTERNAL": 40,
|
|
1918
|
+
"NEW_ZEALAND": 41
|
|
1901
1919
|
}
|
|
1902
1920
|
},
|
|
1903
1921
|
"IndustryCategory": {
|
|
@@ -5146,7 +5164,10 @@
|
|
|
5146
5164
|
},
|
|
5147
5165
|
"estimatedPrevalence": {
|
|
5148
5166
|
"type": "int32",
|
|
5149
|
-
"id": 2
|
|
5167
|
+
"id": 2,
|
|
5168
|
+
"options": {
|
|
5169
|
+
"deprecated": true
|
|
5170
|
+
}
|
|
5150
5171
|
}
|
|
5151
5172
|
}
|
|
5152
5173
|
},
|
|
@@ -5961,6 +5982,248 @@
|
|
|
5961
5982
|
"id": 1050,
|
|
5962
5983
|
"extend": "google.protobuf.ServiceOptions"
|
|
5963
5984
|
},
|
|
5985
|
+
"CommonLanguageSettings": {
|
|
5986
|
+
"fields": {
|
|
5987
|
+
"referenceDocsUri": {
|
|
5988
|
+
"type": "string",
|
|
5989
|
+
"id": 1,
|
|
5990
|
+
"options": {
|
|
5991
|
+
"deprecated": true
|
|
5992
|
+
}
|
|
5993
|
+
},
|
|
5994
|
+
"destinations": {
|
|
5995
|
+
"rule": "repeated",
|
|
5996
|
+
"type": "ClientLibraryDestination",
|
|
5997
|
+
"id": 2
|
|
5998
|
+
}
|
|
5999
|
+
}
|
|
6000
|
+
},
|
|
6001
|
+
"ClientLibrarySettings": {
|
|
6002
|
+
"fields": {
|
|
6003
|
+
"version": {
|
|
6004
|
+
"type": "string",
|
|
6005
|
+
"id": 1
|
|
6006
|
+
},
|
|
6007
|
+
"launchStage": {
|
|
6008
|
+
"type": "LaunchStage",
|
|
6009
|
+
"id": 2
|
|
6010
|
+
},
|
|
6011
|
+
"restNumericEnums": {
|
|
6012
|
+
"type": "bool",
|
|
6013
|
+
"id": 3
|
|
6014
|
+
},
|
|
6015
|
+
"javaSettings": {
|
|
6016
|
+
"type": "JavaSettings",
|
|
6017
|
+
"id": 21
|
|
6018
|
+
},
|
|
6019
|
+
"cppSettings": {
|
|
6020
|
+
"type": "CppSettings",
|
|
6021
|
+
"id": 22
|
|
6022
|
+
},
|
|
6023
|
+
"phpSettings": {
|
|
6024
|
+
"type": "PhpSettings",
|
|
6025
|
+
"id": 23
|
|
6026
|
+
},
|
|
6027
|
+
"pythonSettings": {
|
|
6028
|
+
"type": "PythonSettings",
|
|
6029
|
+
"id": 24
|
|
6030
|
+
},
|
|
6031
|
+
"nodeSettings": {
|
|
6032
|
+
"type": "NodeSettings",
|
|
6033
|
+
"id": 25
|
|
6034
|
+
},
|
|
6035
|
+
"dotnetSettings": {
|
|
6036
|
+
"type": "DotnetSettings",
|
|
6037
|
+
"id": 26
|
|
6038
|
+
},
|
|
6039
|
+
"rubySettings": {
|
|
6040
|
+
"type": "RubySettings",
|
|
6041
|
+
"id": 27
|
|
6042
|
+
},
|
|
6043
|
+
"goSettings": {
|
|
6044
|
+
"type": "GoSettings",
|
|
6045
|
+
"id": 28
|
|
6046
|
+
}
|
|
6047
|
+
}
|
|
6048
|
+
},
|
|
6049
|
+
"Publishing": {
|
|
6050
|
+
"fields": {
|
|
6051
|
+
"methodSettings": {
|
|
6052
|
+
"rule": "repeated",
|
|
6053
|
+
"type": "MethodSettings",
|
|
6054
|
+
"id": 2
|
|
6055
|
+
},
|
|
6056
|
+
"newIssueUri": {
|
|
6057
|
+
"type": "string",
|
|
6058
|
+
"id": 101
|
|
6059
|
+
},
|
|
6060
|
+
"documentationUri": {
|
|
6061
|
+
"type": "string",
|
|
6062
|
+
"id": 102
|
|
6063
|
+
},
|
|
6064
|
+
"apiShortName": {
|
|
6065
|
+
"type": "string",
|
|
6066
|
+
"id": 103
|
|
6067
|
+
},
|
|
6068
|
+
"githubLabel": {
|
|
6069
|
+
"type": "string",
|
|
6070
|
+
"id": 104
|
|
6071
|
+
},
|
|
6072
|
+
"codeownerGithubTeams": {
|
|
6073
|
+
"rule": "repeated",
|
|
6074
|
+
"type": "string",
|
|
6075
|
+
"id": 105
|
|
6076
|
+
},
|
|
6077
|
+
"docTagPrefix": {
|
|
6078
|
+
"type": "string",
|
|
6079
|
+
"id": 106
|
|
6080
|
+
},
|
|
6081
|
+
"organization": {
|
|
6082
|
+
"type": "ClientLibraryOrganization",
|
|
6083
|
+
"id": 107
|
|
6084
|
+
},
|
|
6085
|
+
"librarySettings": {
|
|
6086
|
+
"rule": "repeated",
|
|
6087
|
+
"type": "ClientLibrarySettings",
|
|
6088
|
+
"id": 109
|
|
6089
|
+
}
|
|
6090
|
+
}
|
|
6091
|
+
},
|
|
6092
|
+
"JavaSettings": {
|
|
6093
|
+
"fields": {
|
|
6094
|
+
"libraryPackage": {
|
|
6095
|
+
"type": "string",
|
|
6096
|
+
"id": 1
|
|
6097
|
+
},
|
|
6098
|
+
"serviceClassNames": {
|
|
6099
|
+
"keyType": "string",
|
|
6100
|
+
"type": "string",
|
|
6101
|
+
"id": 2
|
|
6102
|
+
},
|
|
6103
|
+
"common": {
|
|
6104
|
+
"type": "CommonLanguageSettings",
|
|
6105
|
+
"id": 3
|
|
6106
|
+
}
|
|
6107
|
+
}
|
|
6108
|
+
},
|
|
6109
|
+
"CppSettings": {
|
|
6110
|
+
"fields": {
|
|
6111
|
+
"common": {
|
|
6112
|
+
"type": "CommonLanguageSettings",
|
|
6113
|
+
"id": 1
|
|
6114
|
+
}
|
|
6115
|
+
}
|
|
6116
|
+
},
|
|
6117
|
+
"PhpSettings": {
|
|
6118
|
+
"fields": {
|
|
6119
|
+
"common": {
|
|
6120
|
+
"type": "CommonLanguageSettings",
|
|
6121
|
+
"id": 1
|
|
6122
|
+
}
|
|
6123
|
+
}
|
|
6124
|
+
},
|
|
6125
|
+
"PythonSettings": {
|
|
6126
|
+
"fields": {
|
|
6127
|
+
"common": {
|
|
6128
|
+
"type": "CommonLanguageSettings",
|
|
6129
|
+
"id": 1
|
|
6130
|
+
}
|
|
6131
|
+
}
|
|
6132
|
+
},
|
|
6133
|
+
"NodeSettings": {
|
|
6134
|
+
"fields": {
|
|
6135
|
+
"common": {
|
|
6136
|
+
"type": "CommonLanguageSettings",
|
|
6137
|
+
"id": 1
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
},
|
|
6141
|
+
"DotnetSettings": {
|
|
6142
|
+
"fields": {
|
|
6143
|
+
"common": {
|
|
6144
|
+
"type": "CommonLanguageSettings",
|
|
6145
|
+
"id": 1
|
|
6146
|
+
}
|
|
6147
|
+
}
|
|
6148
|
+
},
|
|
6149
|
+
"RubySettings": {
|
|
6150
|
+
"fields": {
|
|
6151
|
+
"common": {
|
|
6152
|
+
"type": "CommonLanguageSettings",
|
|
6153
|
+
"id": 1
|
|
6154
|
+
}
|
|
6155
|
+
}
|
|
6156
|
+
},
|
|
6157
|
+
"GoSettings": {
|
|
6158
|
+
"fields": {
|
|
6159
|
+
"common": {
|
|
6160
|
+
"type": "CommonLanguageSettings",
|
|
6161
|
+
"id": 1
|
|
6162
|
+
}
|
|
6163
|
+
}
|
|
6164
|
+
},
|
|
6165
|
+
"MethodSettings": {
|
|
6166
|
+
"fields": {
|
|
6167
|
+
"selector": {
|
|
6168
|
+
"type": "string",
|
|
6169
|
+
"id": 1
|
|
6170
|
+
},
|
|
6171
|
+
"longRunning": {
|
|
6172
|
+
"type": "LongRunning",
|
|
6173
|
+
"id": 2
|
|
6174
|
+
}
|
|
6175
|
+
},
|
|
6176
|
+
"nested": {
|
|
6177
|
+
"LongRunning": {
|
|
6178
|
+
"fields": {
|
|
6179
|
+
"initialPollDelay": {
|
|
6180
|
+
"type": "google.protobuf.Duration",
|
|
6181
|
+
"id": 1
|
|
6182
|
+
},
|
|
6183
|
+
"pollDelayMultiplier": {
|
|
6184
|
+
"type": "float",
|
|
6185
|
+
"id": 2
|
|
6186
|
+
},
|
|
6187
|
+
"maxPollDelay": {
|
|
6188
|
+
"type": "google.protobuf.Duration",
|
|
6189
|
+
"id": 3
|
|
6190
|
+
},
|
|
6191
|
+
"totalPollTimeout": {
|
|
6192
|
+
"type": "google.protobuf.Duration",
|
|
6193
|
+
"id": 4
|
|
6194
|
+
}
|
|
6195
|
+
}
|
|
6196
|
+
}
|
|
6197
|
+
}
|
|
6198
|
+
},
|
|
6199
|
+
"ClientLibraryOrganization": {
|
|
6200
|
+
"values": {
|
|
6201
|
+
"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": 0,
|
|
6202
|
+
"CLOUD": 1,
|
|
6203
|
+
"ADS": 2,
|
|
6204
|
+
"PHOTOS": 3,
|
|
6205
|
+
"STREET_VIEW": 4
|
|
6206
|
+
}
|
|
6207
|
+
},
|
|
6208
|
+
"ClientLibraryDestination": {
|
|
6209
|
+
"values": {
|
|
6210
|
+
"CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": 0,
|
|
6211
|
+
"GITHUB": 10,
|
|
6212
|
+
"PACKAGE_MANAGER": 20
|
|
6213
|
+
}
|
|
6214
|
+
},
|
|
6215
|
+
"LaunchStage": {
|
|
6216
|
+
"values": {
|
|
6217
|
+
"LAUNCH_STAGE_UNSPECIFIED": 0,
|
|
6218
|
+
"UNIMPLEMENTED": 6,
|
|
6219
|
+
"PRELAUNCH": 7,
|
|
6220
|
+
"EARLY_ACCESS": 1,
|
|
6221
|
+
"ALPHA": 2,
|
|
6222
|
+
"BETA": 3,
|
|
6223
|
+
"GA": 4,
|
|
6224
|
+
"DEPRECATED": 5
|
|
6225
|
+
}
|
|
6226
|
+
},
|
|
5964
6227
|
"fieldBehavior": {
|
|
5965
6228
|
"rule": "repeated",
|
|
5966
6229
|
"type": "google.api.FieldBehavior",
|
|
@@ -6610,6 +6873,13 @@
|
|
|
6610
6873
|
"type": "bool",
|
|
6611
6874
|
"id": 7
|
|
6612
6875
|
},
|
|
6876
|
+
"deprecatedLegacyJsonFieldConflicts": {
|
|
6877
|
+
"type": "bool",
|
|
6878
|
+
"id": 11,
|
|
6879
|
+
"options": {
|
|
6880
|
+
"deprecated": true
|
|
6881
|
+
}
|
|
6882
|
+
},
|
|
6613
6883
|
"uninterpretedOption": {
|
|
6614
6884
|
"rule": "repeated",
|
|
6615
6885
|
"type": "UninterpretedOption",
|
|
@@ -6693,6 +6963,21 @@
|
|
|
6693
6963
|
"default": false
|
|
6694
6964
|
}
|
|
6695
6965
|
},
|
|
6966
|
+
"debugRedact": {
|
|
6967
|
+
"type": "bool",
|
|
6968
|
+
"id": 16,
|
|
6969
|
+
"options": {
|
|
6970
|
+
"default": false
|
|
6971
|
+
}
|
|
6972
|
+
},
|
|
6973
|
+
"retention": {
|
|
6974
|
+
"type": "OptionRetention",
|
|
6975
|
+
"id": 17
|
|
6976
|
+
},
|
|
6977
|
+
"target": {
|
|
6978
|
+
"type": "OptionTargetType",
|
|
6979
|
+
"id": 18
|
|
6980
|
+
},
|
|
6696
6981
|
"uninterpretedOption": {
|
|
6697
6982
|
"rule": "repeated",
|
|
6698
6983
|
"type": "UninterpretedOption",
|
|
@@ -6725,6 +7010,27 @@
|
|
|
6725
7010
|
"JS_STRING": 1,
|
|
6726
7011
|
"JS_NUMBER": 2
|
|
6727
7012
|
}
|
|
7013
|
+
},
|
|
7014
|
+
"OptionRetention": {
|
|
7015
|
+
"values": {
|
|
7016
|
+
"RETENTION_UNKNOWN": 0,
|
|
7017
|
+
"RETENTION_RUNTIME": 1,
|
|
7018
|
+
"RETENTION_SOURCE": 2
|
|
7019
|
+
}
|
|
7020
|
+
},
|
|
7021
|
+
"OptionTargetType": {
|
|
7022
|
+
"values": {
|
|
7023
|
+
"TARGET_TYPE_UNKNOWN": 0,
|
|
7024
|
+
"TARGET_TYPE_FILE": 1,
|
|
7025
|
+
"TARGET_TYPE_EXTENSION_RANGE": 2,
|
|
7026
|
+
"TARGET_TYPE_MESSAGE": 3,
|
|
7027
|
+
"TARGET_TYPE_FIELD": 4,
|
|
7028
|
+
"TARGET_TYPE_ONEOF": 5,
|
|
7029
|
+
"TARGET_TYPE_ENUM": 6,
|
|
7030
|
+
"TARGET_TYPE_ENUM_ENTRY": 7,
|
|
7031
|
+
"TARGET_TYPE_SERVICE": 8,
|
|
7032
|
+
"TARGET_TYPE_METHOD": 9
|
|
7033
|
+
}
|
|
6728
7034
|
}
|
|
6729
7035
|
}
|
|
6730
7036
|
},
|
|
@@ -6756,6 +7062,13 @@
|
|
|
6756
7062
|
"default": false
|
|
6757
7063
|
}
|
|
6758
7064
|
},
|
|
7065
|
+
"deprecatedLegacyJsonFieldConflicts": {
|
|
7066
|
+
"type": "bool",
|
|
7067
|
+
"id": 6,
|
|
7068
|
+
"options": {
|
|
7069
|
+
"deprecated": true
|
|
7070
|
+
}
|
|
7071
|
+
},
|
|
6759
7072
|
"uninterpretedOption": {
|
|
6760
7073
|
"rule": "repeated",
|
|
6761
7074
|
"type": "UninterpretedOption",
|
|
@@ -6989,7 +7302,7 @@
|
|
|
6989
7302
|
}
|
|
6990
7303
|
}
|
|
6991
7304
|
},
|
|
6992
|
-
"
|
|
7305
|
+
"Duration": {
|
|
6993
7306
|
"fields": {
|
|
6994
7307
|
"seconds": {
|
|
6995
7308
|
"type": "int64",
|
|
@@ -7001,7 +7314,7 @@
|
|
|
7001
7314
|
}
|
|
7002
7315
|
}
|
|
7003
7316
|
},
|
|
7004
|
-
"
|
|
7317
|
+
"Timestamp": {
|
|
7005
7318
|
"fields": {
|
|
7006
7319
|
"seconds": {
|
|
7007
7320
|
"type": "int64",
|
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;
|
package/build/src/index.js
CHANGED
|
@@ -272,6 +272,13 @@ export declare class DlpServiceClient {
|
|
|
272
272
|
* inspect_template_name argument.
|
|
273
273
|
* @param {google.privacy.dlp.v2.ContentItem} request.item
|
|
274
274
|
* The item to de-identify. Will be treated as text.
|
|
275
|
+
*
|
|
276
|
+
* This value must be of type
|
|
277
|
+
* {@link google.privacy.dlp.v2.Table|Table} if your
|
|
278
|
+
* {@link google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config|deidentify_config}
|
|
279
|
+
* is a
|
|
280
|
+
* {@link google.privacy.dlp.v2.RecordTransformations|RecordTransformations}
|
|
281
|
+
* object.
|
|
275
282
|
* @param {string} request.inspectTemplateName
|
|
276
283
|
* Template to use. Any configuration directly specified in
|
|
277
284
|
* inspect_config will override those set in the template. Singular fields
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2023 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -97,6 +97,8 @@ class DlpServiceClient {
|
|
|
97
97
|
const clientConfig = (_a = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _a !== void 0 ? _a : {};
|
|
98
98
|
const fallback = (_b = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _b !== void 0 ? _b : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
99
99
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
100
|
+
// Request numeric enum values if REST transport is used.
|
|
101
|
+
opts.numericEnums = true;
|
|
100
102
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
|
101
103
|
if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) {
|
|
102
104
|
opts['scopes'] = staticMembers.scopes;
|