@google-cloud/dlp 5.7.0 → 5.9.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 +14 -0
- package/README.md +3 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +861 -119
- package/build/protos/google/privacy/dlp/v2/storage.proto +9 -7
- package/build/protos/protos.d.ts +5269 -2439
- package/build/protos/protos.js +15068 -7549
- package/build/protos/protos.json +856 -109
- package/build/src/v2/dlp_service_client.d.ts +618 -214
- package/build/src/v2/dlp_service_client.js +522 -133
- package/build/src/v2/dlp_service_client_config.json +15 -0
- package/package.json +1 -1
|
@@ -157,7 +157,6 @@ class DlpServiceClient {
|
|
|
157
157
|
// identifiers to uniquely identify resources within the API.
|
|
158
158
|
// Create useful helper objects for these.
|
|
159
159
|
this.pathTemplates = {
|
|
160
|
-
connectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/connections/{connection}'),
|
|
161
160
|
discoveryConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}'),
|
|
162
161
|
findingPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/findings/{finding}'),
|
|
163
162
|
locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
|
|
@@ -166,7 +165,9 @@ class DlpServiceClient {
|
|
|
166
165
|
organizationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/inspectTemplates/{inspect_template}'),
|
|
167
166
|
organizationLocationPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}'),
|
|
168
167
|
organizationLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}'),
|
|
168
|
+
organizationLocationConnectionPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/connections/{connection}'),
|
|
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}'),
|
|
@@ -179,8 +180,10 @@ class DlpServiceClient {
|
|
|
179
180
|
projectInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/inspectTemplates/{inspect_template}'),
|
|
180
181
|
projectJobTriggerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/jobTriggers/{job_trigger}'),
|
|
181
182
|
projectLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}'),
|
|
183
|
+
projectLocationConnectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/connections/{connection}'),
|
|
182
184
|
projectLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
|
|
183
185
|
projectLocationDlpJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dlpJobs/{dlp_job}'),
|
|
186
|
+
projectLocationFileStoreDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}'),
|
|
184
187
|
projectLocationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/inspectTemplates/{inspect_template}'),
|
|
185
188
|
projectLocationJobTriggerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/jobTriggers/{job_trigger}'),
|
|
186
189
|
projectLocationProjectDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}'),
|
|
@@ -201,6 +204,7 @@ class DlpServiceClient {
|
|
|
201
204
|
listProjectDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'projectDataProfiles'),
|
|
202
205
|
listTableDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'tableDataProfiles'),
|
|
203
206
|
listColumnDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'columnDataProfiles'),
|
|
207
|
+
listFileStoreDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'fileStoreDataProfiles'),
|
|
204
208
|
listConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connections'),
|
|
205
209
|
searchConnections: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'connections'),
|
|
206
210
|
};
|
|
@@ -279,6 +283,9 @@ class DlpServiceClient {
|
|
|
279
283
|
'listTableDataProfiles',
|
|
280
284
|
'listColumnDataProfiles',
|
|
281
285
|
'getProjectDataProfile',
|
|
286
|
+
'listFileStoreDataProfiles',
|
|
287
|
+
'getFileStoreDataProfile',
|
|
288
|
+
'deleteFileStoreDataProfile',
|
|
282
289
|
'getTableDataProfile',
|
|
283
290
|
'getColumnDataProfile',
|
|
284
291
|
'deleteTableDataProfile',
|
|
@@ -1039,6 +1046,48 @@ class DlpServiceClient {
|
|
|
1039
1046
|
this.initialize();
|
|
1040
1047
|
return this.innerApiCalls.getProjectDataProfile(request, options, callback);
|
|
1041
1048
|
}
|
|
1049
|
+
getFileStoreDataProfile(request, optionsOrCallback, callback) {
|
|
1050
|
+
var _a;
|
|
1051
|
+
request = request || {};
|
|
1052
|
+
let options;
|
|
1053
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1054
|
+
callback = optionsOrCallback;
|
|
1055
|
+
options = {};
|
|
1056
|
+
}
|
|
1057
|
+
else {
|
|
1058
|
+
options = optionsOrCallback;
|
|
1059
|
+
}
|
|
1060
|
+
options = options || {};
|
|
1061
|
+
options.otherArgs = options.otherArgs || {};
|
|
1062
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1063
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1064
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1065
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1066
|
+
});
|
|
1067
|
+
this.initialize();
|
|
1068
|
+
return this.innerApiCalls.getFileStoreDataProfile(request, options, callback);
|
|
1069
|
+
}
|
|
1070
|
+
deleteFileStoreDataProfile(request, optionsOrCallback, callback) {
|
|
1071
|
+
var _a;
|
|
1072
|
+
request = request || {};
|
|
1073
|
+
let options;
|
|
1074
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1075
|
+
callback = optionsOrCallback;
|
|
1076
|
+
options = {};
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
options = optionsOrCallback;
|
|
1080
|
+
}
|
|
1081
|
+
options = options || {};
|
|
1082
|
+
options.otherArgs = options.otherArgs || {};
|
|
1083
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1084
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1085
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1086
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1087
|
+
});
|
|
1088
|
+
this.initialize();
|
|
1089
|
+
return this.innerApiCalls.deleteFileStoreDataProfile(request, options, callback);
|
|
1090
|
+
}
|
|
1042
1091
|
getTableDataProfile(request, optionsOrCallback, callback) {
|
|
1043
1092
|
var _a;
|
|
1044
1093
|
request = request || {};
|
|
@@ -1260,14 +1309,14 @@ class DlpServiceClient {
|
|
|
1260
1309
|
* (project or organization) and whether you have [specified a processing
|
|
1261
1310
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1262
1311
|
*
|
|
1263
|
-
* + Projects scope, location specified
|
|
1264
|
-
* `projects
|
|
1265
|
-
* + Projects scope, no location specified (defaults to global)
|
|
1266
|
-
* `projects
|
|
1267
|
-
* + Organizations scope, location specified
|
|
1268
|
-
* `organizations
|
|
1269
|
-
* + Organizations scope, no location specified (defaults to global)
|
|
1270
|
-
* `organizations
|
|
1312
|
+
* + Projects scope, location specified:
|
|
1313
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1314
|
+
* + Projects scope, no location specified (defaults to global):
|
|
1315
|
+
* `projects/{project_id}`
|
|
1316
|
+
* + Organizations scope, location specified:
|
|
1317
|
+
* `organizations/{org_id}/locations/{location_id}`
|
|
1318
|
+
* + Organizations scope, no location specified (defaults to global):
|
|
1319
|
+
* `organizations/{org_id}`
|
|
1271
1320
|
*
|
|
1272
1321
|
* The following example `parent` string specifies a parent project with the
|
|
1273
1322
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1281,7 +1330,7 @@ class DlpServiceClient {
|
|
|
1281
1330
|
* Size of the page. This value can be limited by the server. If zero server
|
|
1282
1331
|
* returns a page of max size 100.
|
|
1283
1332
|
* @param {string} request.orderBy
|
|
1284
|
-
* Comma
|
|
1333
|
+
* Comma-separated list of fields to order by,
|
|
1285
1334
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1286
1335
|
* default sorting order is ascending. Redundant space characters are
|
|
1287
1336
|
* insignificant.
|
|
@@ -1335,14 +1384,14 @@ class DlpServiceClient {
|
|
|
1335
1384
|
* (project or organization) and whether you have [specified a processing
|
|
1336
1385
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1337
1386
|
*
|
|
1338
|
-
* + Projects scope, location specified
|
|
1339
|
-
* `projects
|
|
1340
|
-
* + Projects scope, no location specified (defaults to global)
|
|
1341
|
-
* `projects
|
|
1342
|
-
* + Organizations scope, location specified
|
|
1343
|
-
* `organizations
|
|
1344
|
-
* + Organizations scope, no location specified (defaults to global)
|
|
1345
|
-
* `organizations
|
|
1387
|
+
* + Projects scope, location specified:
|
|
1388
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1389
|
+
* + Projects scope, no location specified (defaults to global):
|
|
1390
|
+
* `projects/{project_id}`
|
|
1391
|
+
* + Organizations scope, location specified:
|
|
1392
|
+
* `organizations/{org_id}/locations/{location_id}`
|
|
1393
|
+
* + Organizations scope, no location specified (defaults to global):
|
|
1394
|
+
* `organizations/{org_id}`
|
|
1346
1395
|
*
|
|
1347
1396
|
* The following example `parent` string specifies a parent project with the
|
|
1348
1397
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1356,7 +1405,7 @@ class DlpServiceClient {
|
|
|
1356
1405
|
* Size of the page. This value can be limited by the server. If zero server
|
|
1357
1406
|
* returns a page of max size 100.
|
|
1358
1407
|
* @param {string} request.orderBy
|
|
1359
|
-
* Comma
|
|
1408
|
+
* Comma-separated list of fields to order by,
|
|
1360
1409
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1361
1410
|
* default sorting order is ascending. Redundant space characters are
|
|
1362
1411
|
* insignificant.
|
|
@@ -1430,14 +1479,14 @@ class DlpServiceClient {
|
|
|
1430
1479
|
* (project or organization) and whether you have [specified a processing
|
|
1431
1480
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1432
1481
|
*
|
|
1433
|
-
* + Projects scope, location specified
|
|
1434
|
-
* `projects
|
|
1435
|
-
* + Projects scope, no location specified (defaults to global)
|
|
1436
|
-
* `projects
|
|
1437
|
-
* + Organizations scope, location specified
|
|
1438
|
-
* `organizations
|
|
1439
|
-
* + Organizations scope, no location specified (defaults to global)
|
|
1440
|
-
* `organizations
|
|
1482
|
+
* + Projects scope, location specified:
|
|
1483
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1484
|
+
* + Projects scope, no location specified (defaults to global):
|
|
1485
|
+
* `projects/{project_id}`
|
|
1486
|
+
* + Organizations scope, location specified:
|
|
1487
|
+
* `organizations/{org_id}/locations/{location_id}`
|
|
1488
|
+
* + Organizations scope, no location specified (defaults to global):
|
|
1489
|
+
* `organizations/{org_id}`
|
|
1441
1490
|
*
|
|
1442
1491
|
* The following example `parent` string specifies a parent project with the
|
|
1443
1492
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1451,7 +1500,7 @@ class DlpServiceClient {
|
|
|
1451
1500
|
* Size of the page. This value can be limited by the server. If zero server
|
|
1452
1501
|
* returns a page of max size 100.
|
|
1453
1502
|
* @param {string} request.orderBy
|
|
1454
|
-
* Comma
|
|
1503
|
+
* Comma-separated list of fields to order by,
|
|
1455
1504
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1456
1505
|
* default sorting order is ascending. Redundant space characters are
|
|
1457
1506
|
* insignificant.
|
|
@@ -1505,14 +1554,14 @@ class DlpServiceClient {
|
|
|
1505
1554
|
* (project or organization) and whether you have [specified a processing
|
|
1506
1555
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1507
1556
|
*
|
|
1508
|
-
* + Projects scope, location specified
|
|
1509
|
-
* `projects
|
|
1510
|
-
* + Projects scope, no location specified (defaults to global)
|
|
1511
|
-
* `projects
|
|
1512
|
-
* + Organizations scope, location specified
|
|
1513
|
-
* `organizations
|
|
1514
|
-
* + Organizations scope, no location specified (defaults to global)
|
|
1515
|
-
* `organizations
|
|
1557
|
+
* + Projects scope, location specified:
|
|
1558
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1559
|
+
* + Projects scope, no location specified (defaults to global):
|
|
1560
|
+
* `projects/{project_id}`
|
|
1561
|
+
* + Organizations scope, location specified:
|
|
1562
|
+
* `organizations/{org_id}/locations/{location_id}`
|
|
1563
|
+
* + Organizations scope, no location specified (defaults to global):
|
|
1564
|
+
* `organizations/{org_id}`
|
|
1516
1565
|
*
|
|
1517
1566
|
* The following example `parent` string specifies a parent project with the
|
|
1518
1567
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1526,7 +1575,7 @@ class DlpServiceClient {
|
|
|
1526
1575
|
* Size of the page. This value can be limited by the server. If zero server
|
|
1527
1576
|
* returns a page of max size 100.
|
|
1528
1577
|
* @param {string} request.orderBy
|
|
1529
|
-
* Comma
|
|
1578
|
+
* Comma-separated list of fields to order by,
|
|
1530
1579
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1531
1580
|
* default sorting order is ascending. Redundant space characters are
|
|
1532
1581
|
* insignificant.
|
|
@@ -1600,10 +1649,10 @@ class DlpServiceClient {
|
|
|
1600
1649
|
* processing
|
|
1601
1650
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1602
1651
|
*
|
|
1603
|
-
* + Projects scope, location specified
|
|
1604
|
-
* `projects
|
|
1605
|
-
* + Projects scope, no location specified (defaults to global)
|
|
1606
|
-
* `projects
|
|
1652
|
+
* + Projects scope, location specified:
|
|
1653
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1654
|
+
* + Projects scope, no location specified (defaults to global):
|
|
1655
|
+
* `projects/{project_id}`
|
|
1607
1656
|
*
|
|
1608
1657
|
* The following example `parent` string specifies a parent project with the
|
|
1609
1658
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1617,7 +1666,7 @@ class DlpServiceClient {
|
|
|
1617
1666
|
* @param {number} request.pageSize
|
|
1618
1667
|
* Size of the page. This value can be limited by a server.
|
|
1619
1668
|
* @param {string} request.orderBy
|
|
1620
|
-
* Comma
|
|
1669
|
+
* Comma-separated list of triggeredJob fields to order by,
|
|
1621
1670
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1622
1671
|
* default sorting order is ascending. Redundant space characters are
|
|
1623
1672
|
* insignificant.
|
|
@@ -1700,10 +1749,10 @@ class DlpServiceClient {
|
|
|
1700
1749
|
* processing
|
|
1701
1750
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1702
1751
|
*
|
|
1703
|
-
* + Projects scope, location specified
|
|
1704
|
-
* `projects
|
|
1705
|
-
* + Projects scope, no location specified (defaults to global)
|
|
1706
|
-
* `projects
|
|
1752
|
+
* + Projects scope, location specified:
|
|
1753
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1754
|
+
* + Projects scope, no location specified (defaults to global):
|
|
1755
|
+
* `projects/{project_id}`
|
|
1707
1756
|
*
|
|
1708
1757
|
* The following example `parent` string specifies a parent project with the
|
|
1709
1758
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1717,7 +1766,7 @@ class DlpServiceClient {
|
|
|
1717
1766
|
* @param {number} request.pageSize
|
|
1718
1767
|
* Size of the page. This value can be limited by a server.
|
|
1719
1768
|
* @param {string} request.orderBy
|
|
1720
|
-
* Comma
|
|
1769
|
+
* Comma-separated list of triggeredJob fields to order by,
|
|
1721
1770
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1722
1771
|
* default sorting order is ascending. Redundant space characters are
|
|
1723
1772
|
* insignificant.
|
|
@@ -1817,7 +1866,7 @@ class DlpServiceClient {
|
|
|
1817
1866
|
* Required. Parent resource name.
|
|
1818
1867
|
*
|
|
1819
1868
|
* The format of this value is as follows:
|
|
1820
|
-
* `projects
|
|
1869
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1821
1870
|
*
|
|
1822
1871
|
* The following example `parent` string specifies a parent project with the
|
|
1823
1872
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1831,7 +1880,7 @@ class DlpServiceClient {
|
|
|
1831
1880
|
* @param {number} request.pageSize
|
|
1832
1881
|
* Size of the page. This value can be limited by a server.
|
|
1833
1882
|
* @param {string} request.orderBy
|
|
1834
|
-
* Comma
|
|
1883
|
+
* Comma-separated list of config fields to order by,
|
|
1835
1884
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1836
1885
|
* default sorting order is ascending. Redundant space characters are
|
|
1837
1886
|
* insignificant.
|
|
@@ -1879,7 +1928,7 @@ class DlpServiceClient {
|
|
|
1879
1928
|
* Required. Parent resource name.
|
|
1880
1929
|
*
|
|
1881
1930
|
* The format of this value is as follows:
|
|
1882
|
-
* `projects
|
|
1931
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
1883
1932
|
*
|
|
1884
1933
|
* The following example `parent` string specifies a parent project with the
|
|
1885
1934
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -1893,7 +1942,7 @@ class DlpServiceClient {
|
|
|
1893
1942
|
* @param {number} request.pageSize
|
|
1894
1943
|
* Size of the page. This value can be limited by a server.
|
|
1895
1944
|
* @param {string} request.orderBy
|
|
1896
|
-
* Comma
|
|
1945
|
+
* Comma-separated list of config fields to order by,
|
|
1897
1946
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
1898
1947
|
* default sorting order is ascending. Redundant space characters are
|
|
1899
1948
|
* insignificant.
|
|
@@ -1964,10 +2013,10 @@ class DlpServiceClient {
|
|
|
1964
2013
|
* processing
|
|
1965
2014
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1966
2015
|
*
|
|
1967
|
-
* + Projects scope, location specified
|
|
1968
|
-
* `projects
|
|
1969
|
-
* + Projects scope, no location specified (defaults to global)
|
|
1970
|
-
* `projects
|
|
2016
|
+
* + Projects scope, location specified:
|
|
2017
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
2018
|
+
* + Projects scope, no location specified (defaults to global):
|
|
2019
|
+
* `projects/{project_id}`
|
|
1971
2020
|
*
|
|
1972
2021
|
* The following example `parent` string specifies a parent project with the
|
|
1973
2022
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -2010,7 +2059,7 @@ class DlpServiceClient {
|
|
|
2010
2059
|
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
2011
2060
|
* The type of job. Defaults to `DlpJobType.INSPECT`
|
|
2012
2061
|
* @param {string} request.orderBy
|
|
2013
|
-
* Comma
|
|
2062
|
+
* Comma-separated list of fields to order by,
|
|
2014
2063
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
2015
2064
|
* default sorting order is ascending. Redundant space characters are
|
|
2016
2065
|
* insignificant.
|
|
@@ -2064,10 +2113,10 @@ class DlpServiceClient {
|
|
|
2064
2113
|
* processing
|
|
2065
2114
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
2066
2115
|
*
|
|
2067
|
-
* + Projects scope, location specified
|
|
2068
|
-
* `projects
|
|
2069
|
-
* + Projects scope, no location specified (defaults to global)
|
|
2070
|
-
* `projects
|
|
2116
|
+
* + Projects scope, location specified:
|
|
2117
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
2118
|
+
* + Projects scope, no location specified (defaults to global):
|
|
2119
|
+
* `projects/{project_id}`
|
|
2071
2120
|
*
|
|
2072
2121
|
* The following example `parent` string specifies a parent project with the
|
|
2073
2122
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -2110,7 +2159,7 @@ class DlpServiceClient {
|
|
|
2110
2159
|
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
2111
2160
|
* The type of job. Defaults to `DlpJobType.INSPECT`
|
|
2112
2161
|
* @param {string} request.orderBy
|
|
2113
|
-
* Comma
|
|
2162
|
+
* Comma-separated list of fields to order by,
|
|
2114
2163
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
2115
2164
|
* default sorting order is ascending. Redundant space characters are
|
|
2116
2165
|
* insignificant.
|
|
@@ -2184,10 +2233,10 @@ class DlpServiceClient {
|
|
|
2184
2233
|
* (project or organization) and whether you have [specified a processing
|
|
2185
2234
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
2186
2235
|
*
|
|
2187
|
-
* + Projects scope, location specified
|
|
2188
|
-
* `projects
|
|
2189
|
-
* + Projects scope, no location specified (defaults to global)
|
|
2190
|
-
* `projects
|
|
2236
|
+
* + Projects scope, location specified:
|
|
2237
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
2238
|
+
* + Projects scope, no location specified (defaults to global):
|
|
2239
|
+
* `projects/{project_id}`
|
|
2191
2240
|
*
|
|
2192
2241
|
* The following example `parent` string specifies a parent project with the
|
|
2193
2242
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -2201,7 +2250,7 @@ class DlpServiceClient {
|
|
|
2201
2250
|
* Size of the page. This value can be limited by the server. If zero server
|
|
2202
2251
|
* returns a page of max size 100.
|
|
2203
2252
|
* @param {string} request.orderBy
|
|
2204
|
-
* Comma
|
|
2253
|
+
* Comma-separated list of fields to order by,
|
|
2205
2254
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
2206
2255
|
* default sorting order is ascending. Redundant space characters are
|
|
2207
2256
|
* insignificant.
|
|
@@ -2256,10 +2305,10 @@ class DlpServiceClient {
|
|
|
2256
2305
|
* (project or organization) and whether you have [specified a processing
|
|
2257
2306
|
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
2258
2307
|
*
|
|
2259
|
-
* + Projects scope, location specified
|
|
2260
|
-
* `projects
|
|
2261
|
-
* + Projects scope, no location specified (defaults to global)
|
|
2262
|
-
* `projects
|
|
2308
|
+
* + Projects scope, location specified:
|
|
2309
|
+
* `projects/{project_id}/locations/{location_id}`
|
|
2310
|
+
* + Projects scope, no location specified (defaults to global):
|
|
2311
|
+
* `projects/{project_id}`
|
|
2263
2312
|
*
|
|
2264
2313
|
* The following example `parent` string specifies a parent project with the
|
|
2265
2314
|
* identifier `example-project`, and specifies the `europe-west3` location
|
|
@@ -2273,7 +2322,7 @@ class DlpServiceClient {
|
|
|
2273
2322
|
* Size of the page. This value can be limited by the server. If zero server
|
|
2274
2323
|
* returns a page of max size 100.
|
|
2275
2324
|
* @param {string} request.orderBy
|
|
2276
|
-
* Comma
|
|
2325
|
+
* Comma-separated list of fields to order by,
|
|
2277
2326
|
* followed by `asc` or `desc` postfix. This list is case insensitive. The
|
|
2278
2327
|
* default sorting order is ascending. Redundant space characters are
|
|
2279
2328
|
* insignificant.
|
|
@@ -2349,7 +2398,7 @@ class DlpServiceClient {
|
|
|
2349
2398
|
* Size of the page. This value can be limited by the server. If zero, server
|
|
2350
2399
|
* returns a page of max size 100.
|
|
2351
2400
|
* @param {string} request.orderBy
|
|
2352
|
-
* Comma
|
|
2401
|
+
* Comma-separated list of fields to order by, followed by `asc` or `desc`
|
|
2353
2402
|
* postfix. This list is case insensitive. The default sorting order is
|
|
2354
2403
|
* ascending. Redundant space characters are insignificant. Only one order
|
|
2355
2404
|
* field at a time is allowed.
|
|
@@ -2427,7 +2476,7 @@ class DlpServiceClient {
|
|
|
2427
2476
|
* Size of the page. This value can be limited by the server. If zero, server
|
|
2428
2477
|
* returns a page of max size 100.
|
|
2429
2478
|
* @param {string} request.orderBy
|
|
2430
|
-
* Comma
|
|
2479
|
+
* Comma-separated list of fields to order by, followed by `asc` or `desc`
|
|
2431
2480
|
* postfix. This list is case insensitive. The default sorting order is
|
|
2432
2481
|
* ascending. Redundant space characters are insignificant. Only one order
|
|
2433
2482
|
* field at a time is allowed.
|
|
@@ -2527,7 +2576,7 @@ class DlpServiceClient {
|
|
|
2527
2576
|
* Size of the page. This value can be limited by the server. If zero, server
|
|
2528
2577
|
* returns a page of max size 100.
|
|
2529
2578
|
* @param {string} request.orderBy
|
|
2530
|
-
* Comma
|
|
2579
|
+
* Comma-separated list of fields to order by, followed by `asc` or `desc`
|
|
2531
2580
|
* postfix. This list is case insensitive. The default sorting order is
|
|
2532
2581
|
* ascending. Redundant space characters are insignificant. Only one order
|
|
2533
2582
|
* field at a time is allowed.
|
|
@@ -2618,7 +2667,7 @@ class DlpServiceClient {
|
|
|
2618
2667
|
* Size of the page. This value can be limited by the server. If zero, server
|
|
2619
2668
|
* returns a page of max size 100.
|
|
2620
2669
|
* @param {string} request.orderBy
|
|
2621
|
-
* Comma
|
|
2670
|
+
* Comma-separated list of fields to order by, followed by `asc` or `desc`
|
|
2622
2671
|
* postfix. This list is case insensitive. The default sorting order is
|
|
2623
2672
|
* ascending. Redundant space characters are insignificant. Only one order
|
|
2624
2673
|
* field at a time is allowed.
|
|
@@ -2729,12 +2778,13 @@ class DlpServiceClient {
|
|
|
2729
2778
|
* Size of the page. This value can be limited by the server. If zero, server
|
|
2730
2779
|
* returns a page of max size 100.
|
|
2731
2780
|
* @param {string} request.orderBy
|
|
2732
|
-
* Comma
|
|
2781
|
+
* Comma-separated list of fields to order by, followed by `asc` or `desc`
|
|
2733
2782
|
* postfix. This list is case insensitive. The default sorting order is
|
|
2734
2783
|
* ascending. Redundant space characters are insignificant. Only one order
|
|
2735
2784
|
* field at a time is allowed.
|
|
2736
2785
|
*
|
|
2737
2786
|
* Examples:
|
|
2787
|
+
*
|
|
2738
2788
|
* * `project_id asc`
|
|
2739
2789
|
* * `table_id`
|
|
2740
2790
|
* * `sensitivity_level desc`
|
|
@@ -2821,12 +2871,13 @@ class DlpServiceClient {
|
|
|
2821
2871
|
* Size of the page. This value can be limited by the server. If zero, server
|
|
2822
2872
|
* returns a page of max size 100.
|
|
2823
2873
|
* @param {string} request.orderBy
|
|
2824
|
-
* Comma
|
|
2874
|
+
* Comma-separated list of fields to order by, followed by `asc` or `desc`
|
|
2825
2875
|
* postfix. This list is case insensitive. The default sorting order is
|
|
2826
2876
|
* ascending. Redundant space characters are insignificant. Only one order
|
|
2827
2877
|
* field at a time is allowed.
|
|
2828
2878
|
*
|
|
2829
2879
|
* Examples:
|
|
2880
|
+
*
|
|
2830
2881
|
* * `project_id asc`
|
|
2831
2882
|
* * `table_id`
|
|
2832
2883
|
* * `sensitivity_level desc`
|
|
@@ -2898,6 +2949,208 @@ class DlpServiceClient {
|
|
|
2898
2949
|
this.initialize();
|
|
2899
2950
|
return this.descriptors.page.listColumnDataProfiles.asyncIterate(this.innerApiCalls['listColumnDataProfiles'], request, callSettings);
|
|
2900
2951
|
}
|
|
2952
|
+
listFileStoreDataProfiles(request, optionsOrCallback, callback) {
|
|
2953
|
+
var _a;
|
|
2954
|
+
request = request || {};
|
|
2955
|
+
let options;
|
|
2956
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
2957
|
+
callback = optionsOrCallback;
|
|
2958
|
+
options = {};
|
|
2959
|
+
}
|
|
2960
|
+
else {
|
|
2961
|
+
options = optionsOrCallback;
|
|
2962
|
+
}
|
|
2963
|
+
options = options || {};
|
|
2964
|
+
options.otherArgs = options.otherArgs || {};
|
|
2965
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2966
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2967
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2968
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2969
|
+
});
|
|
2970
|
+
this.initialize();
|
|
2971
|
+
return this.innerApiCalls.listFileStoreDataProfiles(request, options, callback);
|
|
2972
|
+
}
|
|
2973
|
+
/**
|
|
2974
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
2975
|
+
* @param {Object} request
|
|
2976
|
+
* The request object that will be sent.
|
|
2977
|
+
* @param {string} request.parent
|
|
2978
|
+
* Required. Resource name of the organization or project, for
|
|
2979
|
+
* example `organizations/433245324/locations/europe` or
|
|
2980
|
+
* `projects/project-id/locations/asia`.
|
|
2981
|
+
* @param {string} [request.pageToken]
|
|
2982
|
+
* Optional. Page token to continue retrieval.
|
|
2983
|
+
* @param {number} [request.pageSize]
|
|
2984
|
+
* Optional. Size of the page. This value can be limited by the server. If
|
|
2985
|
+
* zero, server returns a page of max size 100.
|
|
2986
|
+
* @param {string} [request.orderBy]
|
|
2987
|
+
* Optional. Comma-separated list of fields to order by, followed by `asc` or
|
|
2988
|
+
* `desc` postfix. This list is case insensitive. The default sorting order is
|
|
2989
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
2990
|
+
* field at a time is allowed.
|
|
2991
|
+
*
|
|
2992
|
+
* Examples:
|
|
2993
|
+
*
|
|
2994
|
+
* * `project_id asc`
|
|
2995
|
+
* * `name`
|
|
2996
|
+
* * `sensitivity_level desc`
|
|
2997
|
+
*
|
|
2998
|
+
* Supported fields are:
|
|
2999
|
+
*
|
|
3000
|
+
* - `project_id`: The Google Cloud project ID.
|
|
3001
|
+
* - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
3002
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
3003
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
3004
|
+
* seconds.
|
|
3005
|
+
* - `last_modified`: The last time the resource was modified.
|
|
3006
|
+
* - `resource_visibility`: Visibility restriction for this resource.
|
|
3007
|
+
* - `name`: The name of the profile.
|
|
3008
|
+
* - `create_time`: The time the file store was first created.
|
|
3009
|
+
* @param {string} [request.filter]
|
|
3010
|
+
* Optional. Allows filtering.
|
|
3011
|
+
*
|
|
3012
|
+
* Supported syntax:
|
|
3013
|
+
*
|
|
3014
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
3015
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
3016
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
3017
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3018
|
+
* * Supported fields/values:
|
|
3019
|
+
* - `project_id` - The Google Cloud project ID.
|
|
3020
|
+
* - `file_store_path` - The path like "gs://bucket".
|
|
3021
|
+
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
3022
|
+
* - `data_risk_level` - HIGH|MODERATE|LOW
|
|
3023
|
+
* - `resource_visibility`: PUBLIC|RESTRICTED
|
|
3024
|
+
* - `status_code` - an RPC status code as defined in
|
|
3025
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
3026
|
+
* * The operator must be `=` or `!=`.
|
|
3027
|
+
*
|
|
3028
|
+
* Examples:
|
|
3029
|
+
*
|
|
3030
|
+
* * `project_id = 12345 AND status_code = 1`
|
|
3031
|
+
* * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
3032
|
+
* * `project_id = 12345 AND resource_visibility = PUBLIC`
|
|
3033
|
+
* * `file_store_path = "gs://mybucket"`
|
|
3034
|
+
*
|
|
3035
|
+
* The length of this field should be no more than 500 characters.
|
|
3036
|
+
* @param {object} [options]
|
|
3037
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3038
|
+
* @returns {Stream}
|
|
3039
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile} on 'data' event.
|
|
3040
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
3041
|
+
* times as needed. Note that it can affect your quota.
|
|
3042
|
+
* We recommend using `listFileStoreDataProfilesAsync()`
|
|
3043
|
+
* method described below for async iteration which you can stop as needed.
|
|
3044
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3045
|
+
* for more details and examples.
|
|
3046
|
+
*/
|
|
3047
|
+
listFileStoreDataProfilesStream(request, options) {
|
|
3048
|
+
var _a;
|
|
3049
|
+
request = request || {};
|
|
3050
|
+
options = options || {};
|
|
3051
|
+
options.otherArgs = options.otherArgs || {};
|
|
3052
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3053
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3054
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3055
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
3056
|
+
});
|
|
3057
|
+
const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
|
|
3058
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
3059
|
+
this.initialize();
|
|
3060
|
+
return this.descriptors.page.listFileStoreDataProfiles.createStream(this.innerApiCalls.listFileStoreDataProfiles, request, callSettings);
|
|
3061
|
+
}
|
|
3062
|
+
/**
|
|
3063
|
+
* Equivalent to `listFileStoreDataProfiles`, but returns an iterable object.
|
|
3064
|
+
*
|
|
3065
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
3066
|
+
* @param {Object} request
|
|
3067
|
+
* The request object that will be sent.
|
|
3068
|
+
* @param {string} request.parent
|
|
3069
|
+
* Required. Resource name of the organization or project, for
|
|
3070
|
+
* example `organizations/433245324/locations/europe` or
|
|
3071
|
+
* `projects/project-id/locations/asia`.
|
|
3072
|
+
* @param {string} [request.pageToken]
|
|
3073
|
+
* Optional. Page token to continue retrieval.
|
|
3074
|
+
* @param {number} [request.pageSize]
|
|
3075
|
+
* Optional. Size of the page. This value can be limited by the server. If
|
|
3076
|
+
* zero, server returns a page of max size 100.
|
|
3077
|
+
* @param {string} [request.orderBy]
|
|
3078
|
+
* Optional. Comma-separated list of fields to order by, followed by `asc` or
|
|
3079
|
+
* `desc` postfix. This list is case insensitive. The default sorting order is
|
|
3080
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
3081
|
+
* field at a time is allowed.
|
|
3082
|
+
*
|
|
3083
|
+
* Examples:
|
|
3084
|
+
*
|
|
3085
|
+
* * `project_id asc`
|
|
3086
|
+
* * `name`
|
|
3087
|
+
* * `sensitivity_level desc`
|
|
3088
|
+
*
|
|
3089
|
+
* Supported fields are:
|
|
3090
|
+
*
|
|
3091
|
+
* - `project_id`: The Google Cloud project ID.
|
|
3092
|
+
* - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
3093
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
3094
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
3095
|
+
* seconds.
|
|
3096
|
+
* - `last_modified`: The last time the resource was modified.
|
|
3097
|
+
* - `resource_visibility`: Visibility restriction for this resource.
|
|
3098
|
+
* - `name`: The name of the profile.
|
|
3099
|
+
* - `create_time`: The time the file store was first created.
|
|
3100
|
+
* @param {string} [request.filter]
|
|
3101
|
+
* Optional. Allows filtering.
|
|
3102
|
+
*
|
|
3103
|
+
* Supported syntax:
|
|
3104
|
+
*
|
|
3105
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
3106
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
3107
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
3108
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3109
|
+
* * Supported fields/values:
|
|
3110
|
+
* - `project_id` - The Google Cloud project ID.
|
|
3111
|
+
* - `file_store_path` - The path like "gs://bucket".
|
|
3112
|
+
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
3113
|
+
* - `data_risk_level` - HIGH|MODERATE|LOW
|
|
3114
|
+
* - `resource_visibility`: PUBLIC|RESTRICTED
|
|
3115
|
+
* - `status_code` - an RPC status code as defined in
|
|
3116
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
3117
|
+
* * The operator must be `=` or `!=`.
|
|
3118
|
+
*
|
|
3119
|
+
* Examples:
|
|
3120
|
+
*
|
|
3121
|
+
* * `project_id = 12345 AND status_code = 1`
|
|
3122
|
+
* * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
3123
|
+
* * `project_id = 12345 AND resource_visibility = PUBLIC`
|
|
3124
|
+
* * `file_store_path = "gs://mybucket"`
|
|
3125
|
+
*
|
|
3126
|
+
* The length of this field should be no more than 500 characters.
|
|
3127
|
+
* @param {object} [options]
|
|
3128
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3129
|
+
* @returns {Object}
|
|
3130
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
3131
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
3132
|
+
* {@link protos.google.privacy.dlp.v2.FileStoreDataProfile|FileStoreDataProfile}. The API will be called under the hood as needed, once per the page,
|
|
3133
|
+
* so you can stop the iteration when you don't need more results.
|
|
3134
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3135
|
+
* for more details and examples.
|
|
3136
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_file_store_data_profiles.js</caption>
|
|
3137
|
+
* region_tag:dlp_v2_generated_DlpService_ListFileStoreDataProfiles_async
|
|
3138
|
+
*/
|
|
3139
|
+
listFileStoreDataProfilesAsync(request, options) {
|
|
3140
|
+
var _a;
|
|
3141
|
+
request = request || {};
|
|
3142
|
+
options = options || {};
|
|
3143
|
+
options.otherArgs = options.otherArgs || {};
|
|
3144
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
3145
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
3146
|
+
this._gaxModule.routingHeader.fromParams({
|
|
3147
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
3148
|
+
});
|
|
3149
|
+
const defaultCallSettings = this._defaults['listFileStoreDataProfiles'];
|
|
3150
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
3151
|
+
this.initialize();
|
|
3152
|
+
return this.descriptors.page.listFileStoreDataProfiles.asyncIterate(this.innerApiCalls['listFileStoreDataProfiles'], request, callSettings);
|
|
3153
|
+
}
|
|
2901
3154
|
listConnections(request, optionsOrCallback, callback) {
|
|
2902
3155
|
var _a;
|
|
2903
3156
|
request = request || {};
|
|
@@ -2924,8 +3177,9 @@ class DlpServiceClient {
|
|
|
2924
3177
|
* @param {Object} request
|
|
2925
3178
|
* The request object that will be sent.
|
|
2926
3179
|
* @param {string} request.parent
|
|
2927
|
-
* Required.
|
|
2928
|
-
* `
|
|
3180
|
+
* Required. Resource name of the organization or project, for
|
|
3181
|
+
* example, `organizations/433245324/locations/europe` or
|
|
3182
|
+
* `projects/project-id/locations/asia`.
|
|
2929
3183
|
* @param {number} [request.pageSize]
|
|
2930
3184
|
* Optional. Number of results per page, max 1000.
|
|
2931
3185
|
* @param {string} [request.pageToken]
|
|
@@ -2966,8 +3220,9 @@ class DlpServiceClient {
|
|
|
2966
3220
|
* @param {Object} request
|
|
2967
3221
|
* The request object that will be sent.
|
|
2968
3222
|
* @param {string} request.parent
|
|
2969
|
-
* Required.
|
|
2970
|
-
* `
|
|
3223
|
+
* Required. Resource name of the organization or project, for
|
|
3224
|
+
* example, `organizations/433245324/locations/europe` or
|
|
3225
|
+
* `projects/project-id/locations/asia`.
|
|
2971
3226
|
* @param {number} [request.pageSize]
|
|
2972
3227
|
* Optional. Number of results per page, max 1000.
|
|
2973
3228
|
* @param {string} [request.pageToken]
|
|
@@ -3028,8 +3283,9 @@ class DlpServiceClient {
|
|
|
3028
3283
|
* @param {Object} request
|
|
3029
3284
|
* The request object that will be sent.
|
|
3030
3285
|
* @param {string} request.parent
|
|
3031
|
-
* Required.
|
|
3032
|
-
*
|
|
3286
|
+
* Required. Resource name of the organization or project with a wildcard
|
|
3287
|
+
* location, for example, `organizations/433245324/locations/-` or
|
|
3288
|
+
* `projects/project-id/locations/-`.
|
|
3033
3289
|
* @param {number} [request.pageSize]
|
|
3034
3290
|
* Optional. Number of results per page, max 1000.
|
|
3035
3291
|
* @param {string} [request.pageToken]
|
|
@@ -3070,8 +3326,9 @@ class DlpServiceClient {
|
|
|
3070
3326
|
* @param {Object} request
|
|
3071
3327
|
* The request object that will be sent.
|
|
3072
3328
|
* @param {string} request.parent
|
|
3073
|
-
* Required.
|
|
3074
|
-
*
|
|
3329
|
+
* Required. Resource name of the organization or project with a wildcard
|
|
3330
|
+
* location, for example, `organizations/433245324/locations/-` or
|
|
3331
|
+
* `projects/project-id/locations/-`.
|
|
3075
3332
|
* @param {number} [request.pageSize]
|
|
3076
3333
|
* Optional. Number of results per page, max 1000.
|
|
3077
3334
|
* @param {string} [request.pageToken]
|
|
@@ -3164,54 +3421,6 @@ class DlpServiceClient {
|
|
|
3164
3421
|
// --------------------
|
|
3165
3422
|
// -- Path templates --
|
|
3166
3423
|
// --------------------
|
|
3167
|
-
/**
|
|
3168
|
-
* Return a fully-qualified connection resource name string.
|
|
3169
|
-
*
|
|
3170
|
-
* @param {string} project
|
|
3171
|
-
* @param {string} location
|
|
3172
|
-
* @param {string} connection
|
|
3173
|
-
* @returns {string} Resource name string.
|
|
3174
|
-
*/
|
|
3175
|
-
connectionPath(project, location, connection) {
|
|
3176
|
-
return this.pathTemplates.connectionPathTemplate.render({
|
|
3177
|
-
project: project,
|
|
3178
|
-
location: location,
|
|
3179
|
-
connection: connection,
|
|
3180
|
-
});
|
|
3181
|
-
}
|
|
3182
|
-
/**
|
|
3183
|
-
* Parse the project from Connection resource.
|
|
3184
|
-
*
|
|
3185
|
-
* @param {string} connectionName
|
|
3186
|
-
* A fully-qualified path representing Connection resource.
|
|
3187
|
-
* @returns {string} A string representing the project.
|
|
3188
|
-
*/
|
|
3189
|
-
matchProjectFromConnectionName(connectionName) {
|
|
3190
|
-
return this.pathTemplates.connectionPathTemplate.match(connectionName)
|
|
3191
|
-
.project;
|
|
3192
|
-
}
|
|
3193
|
-
/**
|
|
3194
|
-
* Parse the location from Connection resource.
|
|
3195
|
-
*
|
|
3196
|
-
* @param {string} connectionName
|
|
3197
|
-
* A fully-qualified path representing Connection resource.
|
|
3198
|
-
* @returns {string} A string representing the location.
|
|
3199
|
-
*/
|
|
3200
|
-
matchLocationFromConnectionName(connectionName) {
|
|
3201
|
-
return this.pathTemplates.connectionPathTemplate.match(connectionName)
|
|
3202
|
-
.location;
|
|
3203
|
-
}
|
|
3204
|
-
/**
|
|
3205
|
-
* Parse the connection from Connection resource.
|
|
3206
|
-
*
|
|
3207
|
-
* @param {string} connectionName
|
|
3208
|
-
* A fully-qualified path representing Connection resource.
|
|
3209
|
-
* @returns {string} A string representing the connection.
|
|
3210
|
-
*/
|
|
3211
|
-
matchConnectionFromConnectionName(connectionName) {
|
|
3212
|
-
return this.pathTemplates.connectionPathTemplate.match(connectionName)
|
|
3213
|
-
.connection;
|
|
3214
|
-
}
|
|
3215
3424
|
/**
|
|
3216
3425
|
* Return a fully-qualified discoveryConfig resource name string.
|
|
3217
3426
|
*
|
|
@@ -3501,6 +3710,51 @@ class DlpServiceClient {
|
|
|
3501
3710
|
matchColumnDataProfileFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName) {
|
|
3502
3711
|
return this.pathTemplates.organizationLocationColumnDataProfilePathTemplate.match(organizationLocationColumnDataProfileName).column_data_profile;
|
|
3503
3712
|
}
|
|
3713
|
+
/**
|
|
3714
|
+
* Return a fully-qualified organizationLocationConnection resource name string.
|
|
3715
|
+
*
|
|
3716
|
+
* @param {string} organization
|
|
3717
|
+
* @param {string} location
|
|
3718
|
+
* @param {string} connection
|
|
3719
|
+
* @returns {string} Resource name string.
|
|
3720
|
+
*/
|
|
3721
|
+
organizationLocationConnectionPath(organization, location, connection) {
|
|
3722
|
+
return this.pathTemplates.organizationLocationConnectionPathTemplate.render({
|
|
3723
|
+
organization: organization,
|
|
3724
|
+
location: location,
|
|
3725
|
+
connection: connection,
|
|
3726
|
+
});
|
|
3727
|
+
}
|
|
3728
|
+
/**
|
|
3729
|
+
* Parse the organization from OrganizationLocationConnection resource.
|
|
3730
|
+
*
|
|
3731
|
+
* @param {string} organizationLocationConnectionName
|
|
3732
|
+
* A fully-qualified path representing organization_location_connection resource.
|
|
3733
|
+
* @returns {string} A string representing the organization.
|
|
3734
|
+
*/
|
|
3735
|
+
matchOrganizationFromOrganizationLocationConnectionName(organizationLocationConnectionName) {
|
|
3736
|
+
return this.pathTemplates.organizationLocationConnectionPathTemplate.match(organizationLocationConnectionName).organization;
|
|
3737
|
+
}
|
|
3738
|
+
/**
|
|
3739
|
+
* Parse the location from OrganizationLocationConnection resource.
|
|
3740
|
+
*
|
|
3741
|
+
* @param {string} organizationLocationConnectionName
|
|
3742
|
+
* A fully-qualified path representing organization_location_connection resource.
|
|
3743
|
+
* @returns {string} A string representing the location.
|
|
3744
|
+
*/
|
|
3745
|
+
matchLocationFromOrganizationLocationConnectionName(organizationLocationConnectionName) {
|
|
3746
|
+
return this.pathTemplates.organizationLocationConnectionPathTemplate.match(organizationLocationConnectionName).location;
|
|
3747
|
+
}
|
|
3748
|
+
/**
|
|
3749
|
+
* Parse the connection from OrganizationLocationConnection resource.
|
|
3750
|
+
*
|
|
3751
|
+
* @param {string} organizationLocationConnectionName
|
|
3752
|
+
* A fully-qualified path representing organization_location_connection resource.
|
|
3753
|
+
* @returns {string} A string representing the connection.
|
|
3754
|
+
*/
|
|
3755
|
+
matchConnectionFromOrganizationLocationConnectionName(organizationLocationConnectionName) {
|
|
3756
|
+
return this.pathTemplates.organizationLocationConnectionPathTemplate.match(organizationLocationConnectionName).connection;
|
|
3757
|
+
}
|
|
3504
3758
|
/**
|
|
3505
3759
|
* Return a fully-qualified organizationLocationDeidentifyTemplate resource name string.
|
|
3506
3760
|
*
|
|
@@ -3546,6 +3800,51 @@ class DlpServiceClient {
|
|
|
3546
3800
|
matchDeidentifyTemplateFromOrganizationLocationDeidentifyTemplateName(organizationLocationDeidentifyTemplateName) {
|
|
3547
3801
|
return this.pathTemplates.organizationLocationDeidentifyTemplatePathTemplate.match(organizationLocationDeidentifyTemplateName).deidentify_template;
|
|
3548
3802
|
}
|
|
3803
|
+
/**
|
|
3804
|
+
* Return a fully-qualified organizationLocationFileStoreDataProfile resource name string.
|
|
3805
|
+
*
|
|
3806
|
+
* @param {string} organization
|
|
3807
|
+
* @param {string} location
|
|
3808
|
+
* @param {string} file_store_data_profile
|
|
3809
|
+
* @returns {string} Resource name string.
|
|
3810
|
+
*/
|
|
3811
|
+
organizationLocationFileStoreDataProfilePath(organization, location, fileStoreDataProfile) {
|
|
3812
|
+
return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.render({
|
|
3813
|
+
organization: organization,
|
|
3814
|
+
location: location,
|
|
3815
|
+
file_store_data_profile: fileStoreDataProfile,
|
|
3816
|
+
});
|
|
3817
|
+
}
|
|
3818
|
+
/**
|
|
3819
|
+
* Parse the organization from OrganizationLocationFileStoreDataProfile resource.
|
|
3820
|
+
*
|
|
3821
|
+
* @param {string} organizationLocationFileStoreDataProfileName
|
|
3822
|
+
* A fully-qualified path representing organization_location_file_store_data_profile resource.
|
|
3823
|
+
* @returns {string} A string representing the organization.
|
|
3824
|
+
*/
|
|
3825
|
+
matchOrganizationFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName) {
|
|
3826
|
+
return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.match(organizationLocationFileStoreDataProfileName).organization;
|
|
3827
|
+
}
|
|
3828
|
+
/**
|
|
3829
|
+
* Parse the location from OrganizationLocationFileStoreDataProfile resource.
|
|
3830
|
+
*
|
|
3831
|
+
* @param {string} organizationLocationFileStoreDataProfileName
|
|
3832
|
+
* A fully-qualified path representing organization_location_file_store_data_profile resource.
|
|
3833
|
+
* @returns {string} A string representing the location.
|
|
3834
|
+
*/
|
|
3835
|
+
matchLocationFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName) {
|
|
3836
|
+
return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.match(organizationLocationFileStoreDataProfileName).location;
|
|
3837
|
+
}
|
|
3838
|
+
/**
|
|
3839
|
+
* Parse the file_store_data_profile from OrganizationLocationFileStoreDataProfile resource.
|
|
3840
|
+
*
|
|
3841
|
+
* @param {string} organizationLocationFileStoreDataProfileName
|
|
3842
|
+
* A fully-qualified path representing organization_location_file_store_data_profile resource.
|
|
3843
|
+
* @returns {string} A string representing the file_store_data_profile.
|
|
3844
|
+
*/
|
|
3845
|
+
matchFileStoreDataProfileFromOrganizationLocationFileStoreDataProfileName(organizationLocationFileStoreDataProfileName) {
|
|
3846
|
+
return this.pathTemplates.organizationLocationFileStoreDataProfilePathTemplate.match(organizationLocationFileStoreDataProfileName).file_store_data_profile;
|
|
3847
|
+
}
|
|
3549
3848
|
/**
|
|
3550
3849
|
* Return a fully-qualified organizationLocationInspectTemplate resource name string.
|
|
3551
3850
|
*
|
|
@@ -3980,6 +4279,51 @@ class DlpServiceClient {
|
|
|
3980
4279
|
matchColumnDataProfileFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName) {
|
|
3981
4280
|
return this.pathTemplates.projectLocationColumnDataProfilePathTemplate.match(projectLocationColumnDataProfileName).column_data_profile;
|
|
3982
4281
|
}
|
|
4282
|
+
/**
|
|
4283
|
+
* Return a fully-qualified projectLocationConnection resource name string.
|
|
4284
|
+
*
|
|
4285
|
+
* @param {string} project
|
|
4286
|
+
* @param {string} location
|
|
4287
|
+
* @param {string} connection
|
|
4288
|
+
* @returns {string} Resource name string.
|
|
4289
|
+
*/
|
|
4290
|
+
projectLocationConnectionPath(project, location, connection) {
|
|
4291
|
+
return this.pathTemplates.projectLocationConnectionPathTemplate.render({
|
|
4292
|
+
project: project,
|
|
4293
|
+
location: location,
|
|
4294
|
+
connection: connection,
|
|
4295
|
+
});
|
|
4296
|
+
}
|
|
4297
|
+
/**
|
|
4298
|
+
* Parse the project from ProjectLocationConnection resource.
|
|
4299
|
+
*
|
|
4300
|
+
* @param {string} projectLocationConnectionName
|
|
4301
|
+
* A fully-qualified path representing project_location_connection resource.
|
|
4302
|
+
* @returns {string} A string representing the project.
|
|
4303
|
+
*/
|
|
4304
|
+
matchProjectFromProjectLocationConnectionName(projectLocationConnectionName) {
|
|
4305
|
+
return this.pathTemplates.projectLocationConnectionPathTemplate.match(projectLocationConnectionName).project;
|
|
4306
|
+
}
|
|
4307
|
+
/**
|
|
4308
|
+
* Parse the location from ProjectLocationConnection resource.
|
|
4309
|
+
*
|
|
4310
|
+
* @param {string} projectLocationConnectionName
|
|
4311
|
+
* A fully-qualified path representing project_location_connection resource.
|
|
4312
|
+
* @returns {string} A string representing the location.
|
|
4313
|
+
*/
|
|
4314
|
+
matchLocationFromProjectLocationConnectionName(projectLocationConnectionName) {
|
|
4315
|
+
return this.pathTemplates.projectLocationConnectionPathTemplate.match(projectLocationConnectionName).location;
|
|
4316
|
+
}
|
|
4317
|
+
/**
|
|
4318
|
+
* Parse the connection from ProjectLocationConnection resource.
|
|
4319
|
+
*
|
|
4320
|
+
* @param {string} projectLocationConnectionName
|
|
4321
|
+
* A fully-qualified path representing project_location_connection resource.
|
|
4322
|
+
* @returns {string} A string representing the connection.
|
|
4323
|
+
*/
|
|
4324
|
+
matchConnectionFromProjectLocationConnectionName(projectLocationConnectionName) {
|
|
4325
|
+
return this.pathTemplates.projectLocationConnectionPathTemplate.match(projectLocationConnectionName).connection;
|
|
4326
|
+
}
|
|
3983
4327
|
/**
|
|
3984
4328
|
* Return a fully-qualified projectLocationDeidentifyTemplate resource name string.
|
|
3985
4329
|
*
|
|
@@ -4070,6 +4414,51 @@ class DlpServiceClient {
|
|
|
4070
4414
|
matchDlpJobFromProjectLocationDlpJobName(projectLocationDlpJobName) {
|
|
4071
4415
|
return this.pathTemplates.projectLocationDlpJobPathTemplate.match(projectLocationDlpJobName).dlp_job;
|
|
4072
4416
|
}
|
|
4417
|
+
/**
|
|
4418
|
+
* Return a fully-qualified projectLocationFileStoreDataProfile resource name string.
|
|
4419
|
+
*
|
|
4420
|
+
* @param {string} project
|
|
4421
|
+
* @param {string} location
|
|
4422
|
+
* @param {string} file_store_data_profile
|
|
4423
|
+
* @returns {string} Resource name string.
|
|
4424
|
+
*/
|
|
4425
|
+
projectLocationFileStoreDataProfilePath(project, location, fileStoreDataProfile) {
|
|
4426
|
+
return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.render({
|
|
4427
|
+
project: project,
|
|
4428
|
+
location: location,
|
|
4429
|
+
file_store_data_profile: fileStoreDataProfile,
|
|
4430
|
+
});
|
|
4431
|
+
}
|
|
4432
|
+
/**
|
|
4433
|
+
* Parse the project from ProjectLocationFileStoreDataProfile resource.
|
|
4434
|
+
*
|
|
4435
|
+
* @param {string} projectLocationFileStoreDataProfileName
|
|
4436
|
+
* A fully-qualified path representing project_location_file_store_data_profile resource.
|
|
4437
|
+
* @returns {string} A string representing the project.
|
|
4438
|
+
*/
|
|
4439
|
+
matchProjectFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName) {
|
|
4440
|
+
return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.match(projectLocationFileStoreDataProfileName).project;
|
|
4441
|
+
}
|
|
4442
|
+
/**
|
|
4443
|
+
* Parse the location from ProjectLocationFileStoreDataProfile resource.
|
|
4444
|
+
*
|
|
4445
|
+
* @param {string} projectLocationFileStoreDataProfileName
|
|
4446
|
+
* A fully-qualified path representing project_location_file_store_data_profile resource.
|
|
4447
|
+
* @returns {string} A string representing the location.
|
|
4448
|
+
*/
|
|
4449
|
+
matchLocationFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName) {
|
|
4450
|
+
return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.match(projectLocationFileStoreDataProfileName).location;
|
|
4451
|
+
}
|
|
4452
|
+
/**
|
|
4453
|
+
* Parse the file_store_data_profile from ProjectLocationFileStoreDataProfile resource.
|
|
4454
|
+
*
|
|
4455
|
+
* @param {string} projectLocationFileStoreDataProfileName
|
|
4456
|
+
* A fully-qualified path representing project_location_file_store_data_profile resource.
|
|
4457
|
+
* @returns {string} A string representing the file_store_data_profile.
|
|
4458
|
+
*/
|
|
4459
|
+
matchFileStoreDataProfileFromProjectLocationFileStoreDataProfileName(projectLocationFileStoreDataProfileName) {
|
|
4460
|
+
return this.pathTemplates.projectLocationFileStoreDataProfilePathTemplate.match(projectLocationFileStoreDataProfileName).file_store_data_profile;
|
|
4461
|
+
}
|
|
4073
4462
|
/**
|
|
4074
4463
|
* Return a fully-qualified projectLocationInspectTemplate resource name string.
|
|
4075
4464
|
*
|