@google-cloud/dlp 4.4.2 → 5.0.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 +24 -0
- package/README.md +38 -39
- package/build/protos/protos.js +84797 -1
- package/build/protos/protos.json +7447 -1
- package/build/src/v2/dlp_service_client.d.ts +99 -145
- package/build/src/v2/dlp_service_client.js +28 -40
- package/package.json +20 -22
|
@@ -984,13 +984,12 @@ class DlpServiceClient {
|
|
|
984
984
|
* @param {object} [options]
|
|
985
985
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
986
986
|
* @returns {Stream}
|
|
987
|
-
* An object stream which emits an object representing {@link google.privacy.dlp.v2.InspectTemplate
|
|
987
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate} on 'data' event.
|
|
988
988
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
989
989
|
* times as needed. Note that it can affect your quota.
|
|
990
990
|
* We recommend using `listInspectTemplatesAsync()`
|
|
991
991
|
* method described below for async iteration which you can stop as needed.
|
|
992
|
-
* Please see the
|
|
993
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
992
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
994
993
|
* for more details and examples.
|
|
995
994
|
*/
|
|
996
995
|
listInspectTemplatesStream(request, options) {
|
|
@@ -1060,12 +1059,11 @@ class DlpServiceClient {
|
|
|
1060
1059
|
* @param {object} [options]
|
|
1061
1060
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1062
1061
|
* @returns {Object}
|
|
1063
|
-
* An iterable Object that allows
|
|
1062
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1064
1063
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1065
|
-
* {@link google.privacy.dlp.v2.InspectTemplate
|
|
1064
|
+
* {@link protos.google.privacy.dlp.v2.InspectTemplate|InspectTemplate}. The API will be called under the hood as needed, once per the page,
|
|
1066
1065
|
* so you can stop the iteration when you don't need more results.
|
|
1067
|
-
* Please see the
|
|
1068
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1066
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1069
1067
|
* for more details and examples.
|
|
1070
1068
|
* @example <caption>include:samples/generated/v2/dlp_service.list_inspect_templates.js</caption>
|
|
1071
1069
|
* region_tag:dlp_v2_generated_DlpService_ListInspectTemplates_async
|
|
@@ -1156,13 +1154,12 @@ class DlpServiceClient {
|
|
|
1156
1154
|
* @param {object} [options]
|
|
1157
1155
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1158
1156
|
* @returns {Stream}
|
|
1159
|
-
* An object stream which emits an object representing {@link google.privacy.dlp.v2.DeidentifyTemplate
|
|
1157
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate} on 'data' event.
|
|
1160
1158
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1161
1159
|
* times as needed. Note that it can affect your quota.
|
|
1162
1160
|
* We recommend using `listDeidentifyTemplatesAsync()`
|
|
1163
1161
|
* method described below for async iteration which you can stop as needed.
|
|
1164
|
-
* Please see the
|
|
1165
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1162
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1166
1163
|
* for more details and examples.
|
|
1167
1164
|
*/
|
|
1168
1165
|
listDeidentifyTemplatesStream(request, options) {
|
|
@@ -1232,12 +1229,11 @@ class DlpServiceClient {
|
|
|
1232
1229
|
* @param {object} [options]
|
|
1233
1230
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1234
1231
|
* @returns {Object}
|
|
1235
|
-
* An iterable Object that allows
|
|
1232
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1236
1233
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1237
|
-
* {@link google.privacy.dlp.v2.DeidentifyTemplate
|
|
1234
|
+
* {@link protos.google.privacy.dlp.v2.DeidentifyTemplate|DeidentifyTemplate}. The API will be called under the hood as needed, once per the page,
|
|
1238
1235
|
* so you can stop the iteration when you don't need more results.
|
|
1239
|
-
* Please see the
|
|
1240
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1236
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1241
1237
|
* for more details and examples.
|
|
1242
1238
|
* @example <caption>include:samples/generated/v2/dlp_service.list_deidentify_templates.js</caption>
|
|
1243
1239
|
* region_tag:dlp_v2_generated_DlpService_ListDeidentifyTemplates_async
|
|
@@ -1353,13 +1349,12 @@ class DlpServiceClient {
|
|
|
1353
1349
|
* @param {object} [options]
|
|
1354
1350
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1355
1351
|
* @returns {Stream}
|
|
1356
|
-
* An object stream which emits an object representing {@link google.privacy.dlp.v2.JobTrigger
|
|
1352
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger} on 'data' event.
|
|
1357
1353
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1358
1354
|
* times as needed. Note that it can affect your quota.
|
|
1359
1355
|
* We recommend using `listJobTriggersAsync()`
|
|
1360
1356
|
* method described below for async iteration which you can stop as needed.
|
|
1361
|
-
* Please see the
|
|
1362
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1357
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1363
1358
|
* for more details and examples.
|
|
1364
1359
|
*/
|
|
1365
1360
|
listJobTriggersStream(request, options) {
|
|
@@ -1454,12 +1449,11 @@ class DlpServiceClient {
|
|
|
1454
1449
|
* @param {object} [options]
|
|
1455
1450
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1456
1451
|
* @returns {Object}
|
|
1457
|
-
* An iterable Object that allows
|
|
1452
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1458
1453
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1459
|
-
* {@link google.privacy.dlp.v2.JobTrigger
|
|
1454
|
+
* {@link protos.google.privacy.dlp.v2.JobTrigger|JobTrigger}. The API will be called under the hood as needed, once per the page,
|
|
1460
1455
|
* so you can stop the iteration when you don't need more results.
|
|
1461
|
-
* Please see the
|
|
1462
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1456
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1463
1457
|
* for more details and examples.
|
|
1464
1458
|
* @example <caption>include:samples/generated/v2/dlp_service.list_job_triggers.js</caption>
|
|
1465
1459
|
* region_tag:dlp_v2_generated_DlpService_ListJobTriggers_async
|
|
@@ -1575,13 +1569,12 @@ class DlpServiceClient {
|
|
|
1575
1569
|
* @param {object} [options]
|
|
1576
1570
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1577
1571
|
* @returns {Stream}
|
|
1578
|
-
* An object stream which emits an object representing {@link google.privacy.dlp.v2.DlpJob
|
|
1572
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob} on 'data' event.
|
|
1579
1573
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1580
1574
|
* times as needed. Note that it can affect your quota.
|
|
1581
1575
|
* We recommend using `listDlpJobsAsync()`
|
|
1582
1576
|
* method described below for async iteration which you can stop as needed.
|
|
1583
|
-
* Please see the
|
|
1584
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1577
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1585
1578
|
* for more details and examples.
|
|
1586
1579
|
*/
|
|
1587
1580
|
listDlpJobsStream(request, options) {
|
|
@@ -1676,12 +1669,11 @@ class DlpServiceClient {
|
|
|
1676
1669
|
* @param {object} [options]
|
|
1677
1670
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1678
1671
|
* @returns {Object}
|
|
1679
|
-
* An iterable Object that allows
|
|
1672
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1680
1673
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1681
|
-
* {@link google.privacy.dlp.v2.DlpJob
|
|
1674
|
+
* {@link protos.google.privacy.dlp.v2.DlpJob|DlpJob}. The API will be called under the hood as needed, once per the page,
|
|
1682
1675
|
* so you can stop the iteration when you don't need more results.
|
|
1683
|
-
* Please see the
|
|
1684
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1676
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1685
1677
|
* for more details and examples.
|
|
1686
1678
|
* @example <caption>include:samples/generated/v2/dlp_service.list_dlp_jobs.js</caption>
|
|
1687
1679
|
* region_tag:dlp_v2_generated_DlpService_ListDlpJobs_async
|
|
@@ -1769,13 +1761,12 @@ class DlpServiceClient {
|
|
|
1769
1761
|
* @param {object} [options]
|
|
1770
1762
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1771
1763
|
* @returns {Stream}
|
|
1772
|
-
* An object stream which emits an object representing {@link google.privacy.dlp.v2.StoredInfoType
|
|
1764
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType} on 'data' event.
|
|
1773
1765
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1774
1766
|
* times as needed. Note that it can affect your quota.
|
|
1775
1767
|
* We recommend using `listStoredInfoTypesAsync()`
|
|
1776
1768
|
* method described below for async iteration which you can stop as needed.
|
|
1777
|
-
* Please see the
|
|
1778
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1769
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1779
1770
|
* for more details and examples.
|
|
1780
1771
|
*/
|
|
1781
1772
|
listStoredInfoTypesStream(request, options) {
|
|
@@ -1842,12 +1833,11 @@ class DlpServiceClient {
|
|
|
1842
1833
|
* @param {object} [options]
|
|
1843
1834
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1844
1835
|
* @returns {Object}
|
|
1845
|
-
* An iterable Object that allows
|
|
1836
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1846
1837
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1847
|
-
* {@link google.privacy.dlp.v2.StoredInfoType
|
|
1838
|
+
* {@link protos.google.privacy.dlp.v2.StoredInfoType|StoredInfoType}. The API will be called under the hood as needed, once per the page,
|
|
1848
1839
|
* so you can stop the iteration when you don't need more results.
|
|
1849
|
-
* Please see the
|
|
1850
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1840
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1851
1841
|
* for more details and examples.
|
|
1852
1842
|
* @example <caption>include:samples/generated/v2/dlp_service.list_stored_info_types.js</caption>
|
|
1853
1843
|
* region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async
|
|
@@ -1878,8 +1868,7 @@ class DlpServiceClient {
|
|
|
1878
1868
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
|
1879
1869
|
* @returns {Promise} - The promise which resolves to an array.
|
|
1880
1870
|
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
|
1881
|
-
* Please see the
|
|
1882
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1871
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1883
1872
|
* for more details and examples.
|
|
1884
1873
|
* @example
|
|
1885
1874
|
* ```
|
|
@@ -1906,12 +1895,11 @@ class DlpServiceClient {
|
|
|
1906
1895
|
* @param {object} [options]
|
|
1907
1896
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1908
1897
|
* @returns {Object}
|
|
1909
|
-
* An iterable Object that allows
|
|
1898
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1910
1899
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1911
1900
|
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
|
1912
1901
|
* so you can stop the iteration when you don't need more results.
|
|
1913
|
-
* Please see the
|
|
1914
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1902
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1915
1903
|
* for more details and examples.
|
|
1916
1904
|
* @example
|
|
1917
1905
|
* ```
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/dlp",
|
|
3
3
|
"description": "DLP API client for Node.js",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -32,42 +32,40 @@
|
|
|
32
32
|
"DLP API"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
-
"test": "c8 mocha build/test",
|
|
36
|
-
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
|
|
37
|
-
"system-test": "npm run compile && c8 mocha build/system-test",
|
|
38
|
-
"docs": "jsdoc -c .jsdoc.js",
|
|
39
|
-
"lint": "gts check",
|
|
40
|
-
"fix": "gts fix",
|
|
41
|
-
"docs-test": "linkinator docs",
|
|
42
35
|
"clean": "gts clean",
|
|
43
|
-
"compile": "tsc -p . && cp -r protos build/
|
|
36
|
+
"compile": "tsc -p . && cp -r protos build/",
|
|
44
37
|
"compile-protos": "compileProtos src",
|
|
38
|
+
"docs": "jsdoc -c .jsdoc.js",
|
|
45
39
|
"predocs-test": "npm run docs",
|
|
40
|
+
"docs-test": "linkinator docs",
|
|
41
|
+
"fix": "gts fix",
|
|
42
|
+
"lint": "gts check",
|
|
46
43
|
"prepare": "npm run compile-protos && npm run compile",
|
|
47
|
-
"prelint": "cd samples; npm link ../; npm
|
|
48
|
-
"
|
|
44
|
+
"prelint": "cd samples; npm link ../; npm i",
|
|
45
|
+
"postpack": "minifyProtoJson",
|
|
46
|
+
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
|
|
47
|
+
"system-test": "c8 mocha build/system-test",
|
|
48
|
+
"test": "c8 mocha build/test"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"google-gax": "^
|
|
51
|
+
"google-gax": "^4.0.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/mocha": "^9.0.0",
|
|
55
|
-
"@types/node": "^
|
|
55
|
+
"@types/node": "^20.4.5",
|
|
56
56
|
"@types/sinon": "^10.0.0",
|
|
57
|
-
"c8": "^
|
|
58
|
-
"
|
|
57
|
+
"c8": "^8.0.1",
|
|
58
|
+
"gapic-tools": "^0.1.8",
|
|
59
|
+
"gts": "^5.0.0",
|
|
59
60
|
"jsdoc": "^4.0.0",
|
|
60
61
|
"jsdoc-fresh": "^2.0.0",
|
|
61
62
|
"jsdoc-region-tag": "^2.0.0",
|
|
62
|
-
"linkinator": "
|
|
63
|
+
"linkinator": "4.1.2",
|
|
64
|
+
"long": "^5.2.3",
|
|
63
65
|
"mocha": "^9.2.2",
|
|
64
|
-
"null-loader": "^4.0.0",
|
|
65
66
|
"pack-n-play": "^1.0.0-2",
|
|
66
67
|
"sinon": "^15.0.0",
|
|
67
|
-
"
|
|
68
|
-
"typescript": "^4.6.4",
|
|
69
|
-
"webpack": "^5.0.0",
|
|
70
|
-
"webpack-cli": "^5.0.0"
|
|
68
|
+
"typescript": "^5.1.6"
|
|
71
69
|
},
|
|
72
70
|
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-privacy-dlp"
|
|
73
71
|
}
|