@google-cloud/dlp 5.6.0 → 5.8.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.
@@ -167,6 +167,7 @@ class DlpServiceClient {
167
167
  organizationLocationPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}'),
168
168
  organizationLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}'),
169
169
  organizationLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
170
+ organizationLocationFileStoreDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}'),
170
171
  organizationLocationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}'),
171
172
  organizationLocationProjectDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}'),
172
173
  organizationLocationStoredInfoTypePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}'),
@@ -181,6 +182,7 @@ class DlpServiceClient {
181
182
  projectLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}'),
182
183
  projectLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
183
184
  projectLocationDlpJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dlpJobs/{dlp_job}'),
185
+ projectLocationFileStoreDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}'),
184
186
  projectLocationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/inspectTemplates/{inspect_template}'),
185
187
  projectLocationJobTriggerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/jobTriggers/{job_trigger}'),
186
188
  projectLocationProjectDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}'),
@@ -201,6 +203,7 @@ class DlpServiceClient {
201
203
  listProjectDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'projectDataProfiles'),
202
204
  listTableDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'tableDataProfiles'),
203
205
  listColumnDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'columnDataProfiles'),
206
+ listFileStoreDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'fileStoreDataProfiles'),
204
207
  listConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connections'),
205
208
  searchConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connections'),
206
209
  };
@@ -279,6 +282,9 @@ class DlpServiceClient {
279
282
  'listTableDataProfiles',
280
283
  'listColumnDataProfiles',
281
284
  'getProjectDataProfile',
285
+ 'listFileStoreDataProfiles',
286
+ 'getFileStoreDataProfile',
287
+ 'deleteFileStoreDataProfile',
282
288
  'getTableDataProfile',
283
289
  'getColumnDataProfile',
284
290
  'deleteTableDataProfile',
@@ -1039,6 +1045,48 @@ class DlpServiceClient {
1039
1045
  this.initialize();
1040
1046
  return this.innerApiCalls.getProjectDataProfile(request, options, callback);
1041
1047
  }
1048
+ getFileStoreDataProfile(request, optionsOrCallback, callback) {
1049
+ var _a;
1050
+ request = request || {};
1051
+ let options;
1052
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1053
+ callback = optionsOrCallback;
1054
+ options = {};
1055
+ }
1056
+ else {
1057
+ options = optionsOrCallback;
1058
+ }
1059
+ options = options || {};
1060
+ options.otherArgs = options.otherArgs || {};
1061
+ options.otherArgs.headers = options.otherArgs.headers || {};
1062
+ options.otherArgs.headers['x-goog-request-params'] =
1063
+ this._gaxModule.routingHeader.fromParams({
1064
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1065
+ });
1066
+ this.initialize();
1067
+ return this.innerApiCalls.getFileStoreDataProfile(request, options, callback);
1068
+ }
1069
+ deleteFileStoreDataProfile(request, optionsOrCallback, callback) {
1070
+ var _a;
1071
+ request = request || {};
1072
+ let options;
1073
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
1074
+ callback = optionsOrCallback;
1075
+ options = {};
1076
+ }
1077
+ else {
1078
+ options = optionsOrCallback;
1079
+ }
1080
+ options = options || {};
1081
+ options.otherArgs = options.otherArgs || {};
1082
+ options.otherArgs.headers = options.otherArgs.headers || {};
1083
+ options.otherArgs.headers['x-goog-request-params'] =
1084
+ this._gaxModule.routingHeader.fromParams({
1085
+ name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
1086
+ });
1087
+ this.initialize();
1088
+ return this.innerApiCalls.deleteFileStoreDataProfile(request, options, callback);
1089
+ }
1042
1090
  getTableDataProfile(request, optionsOrCallback, callback) {
1043
1091
  var _a;
1044
1092
  request = request || {};
@@ -1260,13 +1308,13 @@ class DlpServiceClient {
1260
1308
  * (project or organization) and whether you have [specified a processing
1261
1309
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1262
1310
  *
1263
- * + Projects scope, location specified:<br/>
1311
+ * + Projects scope, location specified:
1264
1312
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1265
- * + Projects scope, no location specified (defaults to global):<br/>
1313
+ * + Projects scope, no location specified (defaults to global):
1266
1314
  * `projects/`<var>PROJECT_ID</var>
1267
- * + Organizations scope, location specified:<br/>
1315
+ * + Organizations scope, location specified:
1268
1316
  * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1269
- * + Organizations scope, no location specified (defaults to global):<br/>
1317
+ * + Organizations scope, no location specified (defaults to global):
1270
1318
  * `organizations/`<var>ORG_ID</var>
1271
1319
  *
1272
1320
  * The following example `parent` string specifies a parent project with the
@@ -1281,7 +1329,7 @@ class DlpServiceClient {
1281
1329
  * Size of the page. This value can be limited by the server. If zero server
1282
1330
  * returns a page of max size 100.
1283
1331
  * @param {string} request.orderBy
1284
- * Comma separated list of fields to order by,
1332
+ * Comma-separated list of fields to order by,
1285
1333
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1286
1334
  * default sorting order is ascending. Redundant space characters are
1287
1335
  * insignificant.
@@ -1335,13 +1383,13 @@ class DlpServiceClient {
1335
1383
  * (project or organization) and whether you have [specified a processing
1336
1384
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1337
1385
  *
1338
- * + Projects scope, location specified:<br/>
1386
+ * + Projects scope, location specified:
1339
1387
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1340
- * + Projects scope, no location specified (defaults to global):<br/>
1388
+ * + Projects scope, no location specified (defaults to global):
1341
1389
  * `projects/`<var>PROJECT_ID</var>
1342
- * + Organizations scope, location specified:<br/>
1390
+ * + Organizations scope, location specified:
1343
1391
  * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1344
- * + Organizations scope, no location specified (defaults to global):<br/>
1392
+ * + Organizations scope, no location specified (defaults to global):
1345
1393
  * `organizations/`<var>ORG_ID</var>
1346
1394
  *
1347
1395
  * The following example `parent` string specifies a parent project with the
@@ -1356,7 +1404,7 @@ class DlpServiceClient {
1356
1404
  * Size of the page. This value can be limited by the server. If zero server
1357
1405
  * returns a page of max size 100.
1358
1406
  * @param {string} request.orderBy
1359
- * Comma separated list of fields to order by,
1407
+ * Comma-separated list of fields to order by,
1360
1408
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1361
1409
  * default sorting order is ascending. Redundant space characters are
1362
1410
  * insignificant.
@@ -1430,13 +1478,13 @@ class DlpServiceClient {
1430
1478
  * (project or organization) and whether you have [specified a processing
1431
1479
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1432
1480
  *
1433
- * + Projects scope, location specified:<br/>
1481
+ * + Projects scope, location specified:
1434
1482
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1435
- * + Projects scope, no location specified (defaults to global):<br/>
1483
+ * + Projects scope, no location specified (defaults to global):
1436
1484
  * `projects/`<var>PROJECT_ID</var>
1437
- * + Organizations scope, location specified:<br/>
1485
+ * + Organizations scope, location specified:
1438
1486
  * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1439
- * + Organizations scope, no location specified (defaults to global):<br/>
1487
+ * + Organizations scope, no location specified (defaults to global):
1440
1488
  * `organizations/`<var>ORG_ID</var>
1441
1489
  *
1442
1490
  * The following example `parent` string specifies a parent project with the
@@ -1451,7 +1499,7 @@ class DlpServiceClient {
1451
1499
  * Size of the page. This value can be limited by the server. If zero server
1452
1500
  * returns a page of max size 100.
1453
1501
  * @param {string} request.orderBy
1454
- * Comma separated list of fields to order by,
1502
+ * Comma-separated list of fields to order by,
1455
1503
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1456
1504
  * default sorting order is ascending. Redundant space characters are
1457
1505
  * insignificant.
@@ -1505,13 +1553,13 @@ class DlpServiceClient {
1505
1553
  * (project or organization) and whether you have [specified a processing
1506
1554
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1507
1555
  *
1508
- * + Projects scope, location specified:<br/>
1556
+ * + Projects scope, location specified:
1509
1557
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1510
- * + Projects scope, no location specified (defaults to global):<br/>
1558
+ * + Projects scope, no location specified (defaults to global):
1511
1559
  * `projects/`<var>PROJECT_ID</var>
1512
- * + Organizations scope, location specified:<br/>
1560
+ * + Organizations scope, location specified:
1513
1561
  * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1514
- * + Organizations scope, no location specified (defaults to global):<br/>
1562
+ * + Organizations scope, no location specified (defaults to global):
1515
1563
  * `organizations/`<var>ORG_ID</var>
1516
1564
  *
1517
1565
  * The following example `parent` string specifies a parent project with the
@@ -1526,7 +1574,7 @@ class DlpServiceClient {
1526
1574
  * Size of the page. This value can be limited by the server. If zero server
1527
1575
  * returns a page of max size 100.
1528
1576
  * @param {string} request.orderBy
1529
- * Comma separated list of fields to order by,
1577
+ * Comma-separated list of fields to order by,
1530
1578
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1531
1579
  * default sorting order is ascending. Redundant space characters are
1532
1580
  * insignificant.
@@ -1600,9 +1648,9 @@ class DlpServiceClient {
1600
1648
  * processing
1601
1649
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1602
1650
  *
1603
- * + Projects scope, location specified:<br/>
1651
+ * + Projects scope, location specified:
1604
1652
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1605
- * + Projects scope, no location specified (defaults to global):<br/>
1653
+ * + Projects scope, no location specified (defaults to global):
1606
1654
  * `projects/`<var>PROJECT_ID</var>
1607
1655
  *
1608
1656
  * The following example `parent` string specifies a parent project with the
@@ -1617,7 +1665,7 @@ class DlpServiceClient {
1617
1665
  * @param {number} request.pageSize
1618
1666
  * Size of the page. This value can be limited by a server.
1619
1667
  * @param {string} request.orderBy
1620
- * Comma separated list of triggeredJob fields to order by,
1668
+ * Comma-separated list of triggeredJob fields to order by,
1621
1669
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1622
1670
  * default sorting order is ascending. Redundant space characters are
1623
1671
  * insignificant.
@@ -1700,9 +1748,9 @@ class DlpServiceClient {
1700
1748
  * processing
1701
1749
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1702
1750
  *
1703
- * + Projects scope, location specified:<br/>
1751
+ * + Projects scope, location specified:
1704
1752
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1705
- * + Projects scope, no location specified (defaults to global):<br/>
1753
+ * + Projects scope, no location specified (defaults to global):
1706
1754
  * `projects/`<var>PROJECT_ID</var>
1707
1755
  *
1708
1756
  * The following example `parent` string specifies a parent project with the
@@ -1717,7 +1765,7 @@ class DlpServiceClient {
1717
1765
  * @param {number} request.pageSize
1718
1766
  * Size of the page. This value can be limited by a server.
1719
1767
  * @param {string} request.orderBy
1720
- * Comma separated list of triggeredJob fields to order by,
1768
+ * Comma-separated list of triggeredJob fields to order by,
1721
1769
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1722
1770
  * default sorting order is ascending. Redundant space characters are
1723
1771
  * insignificant.
@@ -1831,7 +1879,7 @@ class DlpServiceClient {
1831
1879
  * @param {number} request.pageSize
1832
1880
  * Size of the page. This value can be limited by a server.
1833
1881
  * @param {string} request.orderBy
1834
- * Comma separated list of config fields to order by,
1882
+ * Comma-separated list of config fields to order by,
1835
1883
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1836
1884
  * default sorting order is ascending. Redundant space characters are
1837
1885
  * insignificant.
@@ -1893,7 +1941,7 @@ class DlpServiceClient {
1893
1941
  * @param {number} request.pageSize
1894
1942
  * Size of the page. This value can be limited by a server.
1895
1943
  * @param {string} request.orderBy
1896
- * Comma separated list of config fields to order by,
1944
+ * Comma-separated list of config fields to order by,
1897
1945
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
1898
1946
  * default sorting order is ascending. Redundant space characters are
1899
1947
  * insignificant.
@@ -1964,9 +2012,9 @@ class DlpServiceClient {
1964
2012
  * processing
1965
2013
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1966
2014
  *
1967
- * + Projects scope, location specified:<br/>
2015
+ * + Projects scope, location specified:
1968
2016
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1969
- * + Projects scope, no location specified (defaults to global):<br/>
2017
+ * + Projects scope, no location specified (defaults to global):
1970
2018
  * `projects/`<var>PROJECT_ID</var>
1971
2019
  *
1972
2020
  * The following example `parent` string specifies a parent project with the
@@ -2010,7 +2058,7 @@ class DlpServiceClient {
2010
2058
  * @param {google.privacy.dlp.v2.DlpJobType} request.type
2011
2059
  * The type of job. Defaults to `DlpJobType.INSPECT`
2012
2060
  * @param {string} request.orderBy
2013
- * Comma separated list of fields to order by,
2061
+ * Comma-separated list of fields to order by,
2014
2062
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
2015
2063
  * default sorting order is ascending. Redundant space characters are
2016
2064
  * insignificant.
@@ -2064,9 +2112,9 @@ class DlpServiceClient {
2064
2112
  * processing
2065
2113
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2066
2114
  *
2067
- * + Projects scope, location specified:<br/>
2115
+ * + Projects scope, location specified:
2068
2116
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2069
- * + Projects scope, no location specified (defaults to global):<br/>
2117
+ * + Projects scope, no location specified (defaults to global):
2070
2118
  * `projects/`<var>PROJECT_ID</var>
2071
2119
  *
2072
2120
  * The following example `parent` string specifies a parent project with the
@@ -2110,7 +2158,7 @@ class DlpServiceClient {
2110
2158
  * @param {google.privacy.dlp.v2.DlpJobType} request.type
2111
2159
  * The type of job. Defaults to `DlpJobType.INSPECT`
2112
2160
  * @param {string} request.orderBy
2113
- * Comma separated list of fields to order by,
2161
+ * Comma-separated list of fields to order by,
2114
2162
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
2115
2163
  * default sorting order is ascending. Redundant space characters are
2116
2164
  * insignificant.
@@ -2184,9 +2232,9 @@ class DlpServiceClient {
2184
2232
  * (project or organization) and whether you have [specified a processing
2185
2233
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2186
2234
  *
2187
- * + Projects scope, location specified:<br/>
2235
+ * + Projects scope, location specified:
2188
2236
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2189
- * + Projects scope, no location specified (defaults to global):<br/>
2237
+ * + Projects scope, no location specified (defaults to global):
2190
2238
  * `projects/`<var>PROJECT_ID</var>
2191
2239
  *
2192
2240
  * The following example `parent` string specifies a parent project with the
@@ -2201,7 +2249,7 @@ class DlpServiceClient {
2201
2249
  * Size of the page. This value can be limited by the server. If zero server
2202
2250
  * returns a page of max size 100.
2203
2251
  * @param {string} request.orderBy
2204
- * Comma separated list of fields to order by,
2252
+ * Comma-separated list of fields to order by,
2205
2253
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
2206
2254
  * default sorting order is ascending. Redundant space characters are
2207
2255
  * insignificant.
@@ -2256,9 +2304,9 @@ class DlpServiceClient {
2256
2304
  * (project or organization) and whether you have [specified a processing
2257
2305
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2258
2306
  *
2259
- * + Projects scope, location specified:<br/>
2307
+ * + Projects scope, location specified:
2260
2308
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2261
- * + Projects scope, no location specified (defaults to global):<br/>
2309
+ * + Projects scope, no location specified (defaults to global):
2262
2310
  * `projects/`<var>PROJECT_ID</var>
2263
2311
  *
2264
2312
  * The following example `parent` string specifies a parent project with the
@@ -2273,7 +2321,7 @@ class DlpServiceClient {
2273
2321
  * Size of the page. This value can be limited by the server. If zero server
2274
2322
  * returns a page of max size 100.
2275
2323
  * @param {string} request.orderBy
2276
- * Comma separated list of fields to order by,
2324
+ * Comma-separated list of fields to order by,
2277
2325
  * followed by `asc` or `desc` postfix. This list is case insensitive. The
2278
2326
  * default sorting order is ascending. Redundant space characters are
2279
2327
  * insignificant.
@@ -2349,7 +2397,7 @@ class DlpServiceClient {
2349
2397
  * Size of the page. This value can be limited by the server. If zero, server
2350
2398
  * returns a page of max size 100.
2351
2399
  * @param {string} request.orderBy
2352
- * Comma separated list of fields to order by, followed by `asc` or `desc`
2400
+ * Comma-separated list of fields to order by, followed by `asc` or `desc`
2353
2401
  * postfix. This list is case insensitive. The default sorting order is
2354
2402
  * ascending. Redundant space characters are insignificant. Only one order
2355
2403
  * field at a time is allowed.
@@ -2427,7 +2475,7 @@ class DlpServiceClient {
2427
2475
  * Size of the page. This value can be limited by the server. If zero, server
2428
2476
  * returns a page of max size 100.
2429
2477
  * @param {string} request.orderBy
2430
- * Comma separated list of fields to order by, followed by `asc` or `desc`
2478
+ * Comma-separated list of fields to order by, followed by `asc` or `desc`
2431
2479
  * postfix. This list is case insensitive. The default sorting order is
2432
2480
  * ascending. Redundant space characters are insignificant. Only one order
2433
2481
  * field at a time is allowed.
@@ -2527,7 +2575,7 @@ class DlpServiceClient {
2527
2575
  * Size of the page. This value can be limited by the server. If zero, server
2528
2576
  * returns a page of max size 100.
2529
2577
  * @param {string} request.orderBy
2530
- * Comma separated list of fields to order by, followed by `asc` or `desc`
2578
+ * Comma-separated list of fields to order by, followed by `asc` or `desc`
2531
2579
  * postfix. This list is case insensitive. The default sorting order is
2532
2580
  * ascending. Redundant space characters are insignificant. Only one order
2533
2581
  * field at a time is allowed.
@@ -2618,7 +2666,7 @@ class DlpServiceClient {
2618
2666
  * Size of the page. This value can be limited by the server. If zero, server
2619
2667
  * returns a page of max size 100.
2620
2668
  * @param {string} request.orderBy
2621
- * Comma separated list of fields to order by, followed by `asc` or `desc`
2669
+ * Comma-separated list of fields to order by, followed by `asc` or `desc`
2622
2670
  * postfix. This list is case insensitive. The default sorting order is
2623
2671
  * ascending. Redundant space characters are insignificant. Only one order
2624
2672
  * field at a time is allowed.
@@ -2729,12 +2777,13 @@ class DlpServiceClient {
2729
2777
  * Size of the page. This value can be limited by the server. If zero, server
2730
2778
  * returns a page of max size 100.
2731
2779
  * @param {string} request.orderBy
2732
- * Comma separated list of fields to order by, followed by `asc` or `desc`
2780
+ * Comma-separated list of fields to order by, followed by `asc` or `desc`
2733
2781
  * postfix. This list is case insensitive. The default sorting order is
2734
2782
  * ascending. Redundant space characters are insignificant. Only one order
2735
2783
  * field at a time is allowed.
2736
2784
  *
2737
2785
  * Examples:
2786
+ *
2738
2787
  * * `project_id asc`
2739
2788
  * * `table_id`
2740
2789
  * * `sensitivity_level desc`
@@ -2821,12 +2870,13 @@ class DlpServiceClient {
2821
2870
  * Size of the page. This value can be limited by the server. If zero, server
2822
2871
  * returns a page of max size 100.
2823
2872
  * @param {string} request.orderBy
2824
- * Comma separated list of fields to order by, followed by `asc` or `desc`
2873
+ * Comma-separated list of fields to order by, followed by `asc` or `desc`
2825
2874
  * postfix. This list is case insensitive. The default sorting order is
2826
2875
  * ascending. Redundant space characters are insignificant. Only one order
2827
2876
  * field at a time is allowed.
2828
2877
  *
2829
2878
  * Examples:
2879
+ *
2830
2880
  * * `project_id asc`
2831
2881
  * * `table_id`
2832
2882
  * * `sensitivity_level desc`
@@ -2898,6 +2948,208 @@ class DlpServiceClient {
2898
2948
  this.initialize();
2899
2949
  return this.descriptors.page.listColumnDataProfiles.asyncIterate(this.innerApiCalls['listColumnDataProfiles'], request, callSettings);
2900
2950
  }
2951
+ listFileStoreDataProfiles(request, optionsOrCallback, callback) {
2952
+ var _a;
2953
+ request = request || {};
2954
+ let options;
2955
+ if (typeof optionsOrCallback === 'function' && callback === undefined) {
2956
+ callback = optionsOrCallback;
2957
+ options = {};
2958
+ }
2959
+ else {
2960
+ options = optionsOrCallback;
2961
+ }
2962
+ options = options || {};
2963
+ options.otherArgs = options.otherArgs || {};
2964
+ options.otherArgs.headers = options.otherArgs.headers || {};
2965
+ options.otherArgs.headers['x-goog-request-params'] =
2966
+ this._gaxModule.routingHeader.fromParams({
2967
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
2968
+ });
2969
+ this.initialize();
2970
+ return this.innerApiCalls.listFileStoreDataProfiles(request, options, callback);
2971
+ }
2972
+ /**
2973
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2974
+ * @param {Object} request
2975
+ * The request object that will be sent.
2976
+ * @param {string} request.parent
2977
+ * Required. Resource name of the organization or project, for
2978
+ * example `organizations/433245324/locations/europe` or
2979
+ * `projects/project-id/locations/asia`.
2980
+ * @param {string} [request.pageToken]
2981
+ * Optional. Page token to continue retrieval.
2982
+ * @param {number} [request.pageSize]
2983
+ * Optional. Size of the page. This value can be limited by the server. If
2984
+ * zero, server returns a page of max size 100.
2985
+ * @param {string} [request.orderBy]
2986
+ * Optional. Comma-separated list of fields to order by, followed by `asc` or
2987
+ * `desc` postfix. This list is case insensitive. The default sorting order is
2988
+ * ascending. Redundant space characters are insignificant. Only one order
2989
+ * field at a time is allowed.
2990
+ *
2991
+ * Examples:
2992
+ *
2993
+ * * `project_id asc`
2994
+ * * `name`
2995
+ * * `sensitivity_level desc`
2996
+ *
2997
+ * Supported fields are:
2998
+ *
2999
+ * - `project_id`: The Google Cloud project ID.
3000
+ * - `sensitivity_level`: How sensitive the data in a table is, at most.
3001
+ * - `data_risk_level`: How much risk is associated with this data.
3002
+ * - `profile_last_generated`: When the profile was last updated in epoch
3003
+ * seconds.
3004
+ * - `last_modified`: The last time the resource was modified.
3005
+ * - `resource_visibility`: Visibility restriction for this resource.
3006
+ * - `name`: The name of the profile.
3007
+ * - `create_time`: The time the file store was first created.
3008
+ * @param {string} [request.filter]
3009
+ * Optional. Allows filtering.
3010
+ *
3011
+ * Supported syntax:
3012
+ *
3013
+ * * Filter expressions are made up of one or more restrictions.
3014
+ * * Restrictions can be combined by `AND` or `OR` logical operators. A
3015
+ * sequence of restrictions implicitly uses `AND`.
3016
+ * * A restriction has the form of `{field} {operator} {value}`.
3017
+ * * Supported fields/values:
3018
+ * - `project_id` - The Google Cloud project ID.
3019
+ * - `file_store_path` - The path like "gs://bucket".
3020
+ * - `sensitivity_level` - HIGH|MODERATE|LOW
3021
+ * - `data_risk_level` - HIGH|MODERATE|LOW
3022
+ * - `resource_visibility`: PUBLIC|RESTRICTED
3023
+ * - `status_code` - an RPC status code as defined in
3024
+ * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
3025
+ * * The operator must be `=` or `!=`.
3026
+ *
3027
+ * Examples:
3028
+ *
3029
+ * * `project_id = 12345 AND status_code = 1`
3030
+ * * `project_id = 12345 AND sensitivity_level = HIGH`
3031
+ * * `project_id = 12345 AND resource_visibility = PUBLIC`
3032
+ * * `file_store_path = "gs://mybucket"`
3033
+ *
3034
+ * The length of this field should be no more than 500 characters.
3035
+ * @param {object} [options]
3036
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
3037
+ * @returns {Stream}
3038
+ * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile} on 'data' event.
3039
+ * The client library will perform auto-pagination by default: it will call the API as many
3040
+ * times as needed. Note that it can affect your quota.
3041
+ * We recommend using `listFileStoreDataProfilesAsync()`
3042
+ * method described below for async iteration which you can stop as needed.
3043
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
3044
+ * for more details and examples.
3045
+ */
3046
+ listFileStoreDataProfilesStream(request, options) {
3047
+ var _a;
3048
+ request = request || {};
3049
+ options = options || {};
3050
+ options.otherArgs = options.otherArgs || {};
3051
+ options.otherArgs.headers = options.otherArgs.headers || {};
3052
+ options.otherArgs.headers['x-goog-request-params'] =
3053
+ this._gaxModule.routingHeader.fromParams({
3054
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
3055
+ });
3056
+ const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
3057
+ const callSettings = defaultCallSettings.merge(options);
3058
+ this.initialize();
3059
+ return this.descriptors.page.listFileStoreDataProfiles.createStream(this.innerApiCalls.listFileStoreDataProfiles, request, callSettings);
3060
+ }
3061
+ /**
3062
+ * Equivalent to `listFileStoreDataProfiles`, but returns an iterable object.
3063
+ *
3064
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
3065
+ * @param {Object} request
3066
+ * The request object that will be sent.
3067
+ * @param {string} request.parent
3068
+ * Required. Resource name of the organization or project, for
3069
+ * example `organizations/433245324/locations/europe` or
3070
+ * `projects/project-id/locations/asia`.
3071
+ * @param {string} [request.pageToken]
3072
+ * Optional. Page token to continue retrieval.
3073
+ * @param {number} [request.pageSize]
3074
+ * Optional. Size of the page. This value can be limited by the server. If
3075
+ * zero, server returns a page of max size 100.
3076
+ * @param {string} [request.orderBy]
3077
+ * Optional. Comma-separated list of fields to order by, followed by `asc` or
3078
+ * `desc` postfix. This list is case insensitive. The default sorting order is
3079
+ * ascending. Redundant space characters are insignificant. Only one order
3080
+ * field at a time is allowed.
3081
+ *
3082
+ * Examples:
3083
+ *
3084
+ * * `project_id asc`
3085
+ * * `name`
3086
+ * * `sensitivity_level desc`
3087
+ *
3088
+ * Supported fields are:
3089
+ *
3090
+ * - `project_id`: The Google Cloud project ID.
3091
+ * - `sensitivity_level`: How sensitive the data in a table is, at most.
3092
+ * - `data_risk_level`: How much risk is associated with this data.
3093
+ * - `profile_last_generated`: When the profile was last updated in epoch
3094
+ * seconds.
3095
+ * - `last_modified`: The last time the resource was modified.
3096
+ * - `resource_visibility`: Visibility restriction for this resource.
3097
+ * - `name`: The name of the profile.
3098
+ * - `create_time`: The time the file store was first created.
3099
+ * @param {string} [request.filter]
3100
+ * Optional. Allows filtering.
3101
+ *
3102
+ * Supported syntax:
3103
+ *
3104
+ * * Filter expressions are made up of one or more restrictions.
3105
+ * * Restrictions can be combined by `AND` or `OR` logical operators. A
3106
+ * sequence of restrictions implicitly uses `AND`.
3107
+ * * A restriction has the form of `{field} {operator} {value}`.
3108
+ * * Supported fields/values:
3109
+ * - `project_id` - The Google Cloud project ID.
3110
+ * - `file_store_path` - The path like "gs://bucket".
3111
+ * - `sensitivity_level` - HIGH|MODERATE|LOW
3112
+ * - `data_risk_level` - HIGH|MODERATE|LOW
3113
+ * - `resource_visibility`: PUBLIC|RESTRICTED
3114
+ * - `status_code` - an RPC status code as defined in
3115
+ * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
3116
+ * * The operator must be `=` or `!=`.
3117
+ *
3118
+ * Examples:
3119
+ *
3120
+ * * `project_id = 12345 AND status_code = 1`
3121
+ * * `project_id = 12345 AND sensitivity_level = HIGH`
3122
+ * * `project_id = 12345 AND resource_visibility = PUBLIC`
3123
+ * * `file_store_path = "gs://mybucket"`
3124
+ *
3125
+ * The length of this field should be no more than 500 characters.
3126
+ * @param {object} [options]
3127
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
3128
+ * @returns {Object}
3129
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
3130
+ * When you iterate the returned iterable, each element will be an object representing
3131
+ * {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile}. The API will be called under the hood as needed, once per the page,
3132
+ * so you can stop the iteration when you don't need more results.
3133
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
3134
+ * for more details and examples.
3135
+ * @example <caption>include:samples/generated/v2/dlp_service.list_file_store_data_profiles.js</caption>
3136
+ * region_tag:dlp_v2_generated_DlpService_ListFileStoreDataProfiles_async
3137
+ */
3138
+ listFileStoreDataProfilesAsync(request, options) {
3139
+ var _a;
3140
+ request = request || {};
3141
+ options = options || {};
3142
+ options.otherArgs = options.otherArgs || {};
3143
+ options.otherArgs.headers = options.otherArgs.headers || {};
3144
+ options.otherArgs.headers['x-goog-request-params'] =
3145
+ this._gaxModule.routingHeader.fromParams({
3146
+ parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
3147
+ });
3148
+ const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
3149
+ const callSettings = defaultCallSettings.merge(options);
3150
+ this.initialize();
3151
+ return this.descriptors.page.listFileStoreDataProfiles.asyncIterate(this.innerApiCalls['listFileStoreDataProfiles'], request, callSettings);
3152
+ }
2901
3153
  listConnections(request, optionsOrCallback, callback) {
2902
3154
  var _a;
2903
3155
  request = request || {};
@@ -2932,8 +3184,7 @@ class DlpServiceClient {
2932
3184
  * Optional. Page token from a previous page to return the next set of
2933
3185
  * results. If set, all other request fields must match the original request.
2934
3186
  * @param {string} [request.filter]
2935
- * Optional. * Supported fields/values
2936
- * - `state` - MISSING|AVAILABLE|ERROR
3187
+ * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR
2937
3188
  * @param {object} [options]
2938
3189
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2939
3190
  * @returns {Stream}
@@ -2975,8 +3226,7 @@ class DlpServiceClient {
2975
3226
  * Optional. Page token from a previous page to return the next set of
2976
3227
  * results. If set, all other request fields must match the original request.
2977
3228
  * @param {string} [request.filter]
2978
- * Optional. * Supported fields/values
2979
- * - `state` - MISSING|AVAILABLE|ERROR
3229
+ * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR
2980
3230
  * @param {object} [options]
2981
3231
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2982
3232
  * @returns {Object}
@@ -3038,8 +3288,7 @@ class DlpServiceClient {
3038
3288
  * Optional. Page token from a previous page to return the next set of
3039
3289
  * results. If set, all other request fields must match the original request.
3040
3290
  * @param {string} [request.filter]
3041
- * Optional. * Supported fields/values
3042
- * - `state` - MISSING|AVAILABLE|ERROR
3291
+ * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR
3043
3292
  * @param {object} [options]
3044
3293
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
3045
3294
  * @returns {Stream}
@@ -3081,8 +3330,7 @@ class DlpServiceClient {
3081
3330
  * Optional. Page token from a previous page to return the next set of
3082
3331
  * results. If set, all other request fields must match the original request.
3083
3332
  * @param {string} [request.filter]
3084
- * Optional. * Supported fields/values
3085
- * - `state` - MISSING|AVAILABLE|ERROR
3333
+ * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR
3086
3334
  * @param {object} [options]
3087
3335
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
3088
3336
  * @returns {Object}
@@ -3550,6 +3798,51 @@ class DlpServiceClient {
3550
3798
  matchDeidentifyTemplateFromOrganizationLocationDeidentifyTemplateName(organizationLocationDeidentifyTemplateName) {
3551
3799
  return this.pathTemplates.organizationLocationDeidentifyTemplatePathTemplate.match(organizationLocationDeidentifyTemplateName).deidentify_template;
3552
3800
  }
3801
+ /**
3802
+ * Return a fully-qualified organizationLocationFileStoreDataProfile resource name string.
3803
+ *
3804
+ * @param {string} organization
3805
+ * @param {string} location
3806
+ * @param {string} file_store_data_profile
3807
+ * @returns {string} Resource name string.
3808
+ */
3809
+ organizationLocationFileStoreDataProfilePath(organization, location, fileStoreDataProfile) {
3810
+ return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.render({
3811
+ organization: organization,
3812
+ location: location,
3813
+ file_store_data_profile: fileStoreDataProfile,
3814
+ });
3815
+ }
3816
+ /**
3817
+ * Parse the organization from OrganizationLocationFileStoreDataProfile resource.
3818
+ *
3819
+ * @param {string} organizationLocationFileStoreDataProfileName
3820
+ * A fully-qualified path representing organization_location_file_store_data_profile resource.
3821
+ * @returns {string} A string representing the organization.
3822
+ */
3823
+ matchOrganizationFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName) {
3824
+ return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.match(organizationLocationFileStoreDataProfileName).organization;
3825
+ }
3826
+ /**
3827
+ * Parse the location from OrganizationLocationFileStoreDataProfile resource.
3828
+ *
3829
+ * @param {string} organizationLocationFileStoreDataProfileName
3830
+ * A fully-qualified path representing organization_location_file_store_data_profile resource.
3831
+ * @returns {string} A string representing the location.
3832
+ */
3833
+ matchLocationFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName) {
3834
+ return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.match(organizationLocationFileStoreDataProfileName).location;
3835
+ }
3836
+ /**
3837
+ * Parse the file_store_data_profile from OrganizationLocationFileStoreDataProfile resource.
3838
+ *
3839
+ * @param {string} organizationLocationFileStoreDataProfileName
3840
+ * A fully-qualified path representing organization_location_file_store_data_profile resource.
3841
+ * @returns {string} A string representing the file_store_data_profile.
3842
+ */
3843
+ matchFileStoreDataProfileFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName) {
3844
+ return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.match(organizationLocationFileStoreDataProfileName).file_store_data_profile;
3845
+ }
3553
3846
  /**
3554
3847
  * Return a fully-qualified organizationLocationInspectTemplate resource name string.
3555
3848
  *
@@ -4074,6 +4367,51 @@ class DlpServiceClient {
4074
4367
  matchDlpJobFromProjectLocationDlpJobName(projectLocationDlpJobName) {
4075
4368
  return this.pathTemplates.projectLocationDlpJobPathTemplate.match(projectLocationDlpJobName).dlp_job;
4076
4369
  }
4370
+ /**
4371
+ * Return a fully-qualified projectLocationFileStoreDataProfile resource name string.
4372
+ *
4373
+ * @param {string} project
4374
+ * @param {string} location
4375
+ * @param {string} file_store_data_profile
4376
+ * @returns {string} Resource name string.
4377
+ */
4378
+ projectLocationFileStoreDataProfilePath(project, location, fileStoreDataProfile) {
4379
+ return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.render({
4380
+ project: project,
4381
+ location: location,
4382
+ file_store_data_profile: fileStoreDataProfile,
4383
+ });
4384
+ }
4385
+ /**
4386
+ * Parse the project from ProjectLocationFileStoreDataProfile resource.
4387
+ *
4388
+ * @param {string} projectLocationFileStoreDataProfileName
4389
+ * A fully-qualified path representing project_location_file_store_data_profile resource.
4390
+ * @returns {string} A string representing the project.
4391
+ */
4392
+ matchProjectFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName) {
4393
+ return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.match(projectLocationFileStoreDataProfileName).project;
4394
+ }
4395
+ /**
4396
+ * Parse the location from ProjectLocationFileStoreDataProfile resource.
4397
+ *
4398
+ * @param {string} projectLocationFileStoreDataProfileName
4399
+ * A fully-qualified path representing project_location_file_store_data_profile resource.
4400
+ * @returns {string} A string representing the location.
4401
+ */
4402
+ matchLocationFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName) {
4403
+ return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.match(projectLocationFileStoreDataProfileName).location;
4404
+ }
4405
+ /**
4406
+ * Parse the file_store_data_profile from ProjectLocationFileStoreDataProfile resource.
4407
+ *
4408
+ * @param {string} projectLocationFileStoreDataProfileName
4409
+ * A fully-qualified path representing project_location_file_store_data_profile resource.
4410
+ * @returns {string} A string representing the file_store_data_profile.
4411
+ */
4412
+ matchFileStoreDataProfileFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName) {
4413
+ return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.match(projectLocationFileStoreDataProfileName).file_store_data_profile;
4414
+ }
4077
4415
  /**
4078
4416
  * Return a fully-qualified projectLocationInspectTemplate resource name string.
4079
4417
  *