@google-cloud/dlp 5.1.1 → 5.3.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 +6 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +598 -106
- package/build/protos/google/privacy/dlp/v2/storage.proto +41 -18
- package/build/protos/protos.d.ts +2108 -17
- package/build/protos/protos.js +10644 -4862
- package/build/protos/protos.json +710 -17
- package/build/src/index.js +1 -1
- package/build/src/v2/dlp_service_client.d.ts +1156 -131
- package/build/src/v2/dlp_service_client.js +1079 -88
- package/build/src/v2/dlp_service_client_config.json +30 -0
- package/build/src/v2/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2024 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -35,7 +35,7 @@ const version = require('../../../package.json').version;
|
|
|
35
35
|
* scheduling of data scans on Google Cloud Platform based data sets.
|
|
36
36
|
*
|
|
37
37
|
* To learn more about concepts and find how-to guides see
|
|
38
|
-
* https://cloud.google.com/
|
|
38
|
+
* https://cloud.google.com/sensitive-data-protection/docs/.
|
|
39
39
|
* @class
|
|
40
40
|
* @memberof v2
|
|
41
41
|
*/
|
|
@@ -80,7 +80,7 @@ class DlpServiceClient {
|
|
|
80
80
|
* ```
|
|
81
81
|
*/
|
|
82
82
|
constructor(opts, gaxInstance) {
|
|
83
|
-
var _a, _b;
|
|
83
|
+
var _a, _b, _c, _d;
|
|
84
84
|
this._terminated = false;
|
|
85
85
|
this.descriptors = {
|
|
86
86
|
page: {},
|
|
@@ -90,16 +90,24 @@ class DlpServiceClient {
|
|
|
90
90
|
};
|
|
91
91
|
// Ensure that options include all the required fields.
|
|
92
92
|
const staticMembers = this.constructor;
|
|
93
|
-
|
|
93
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
|
94
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
|
95
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
96
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
97
|
+
}
|
|
98
|
+
this._universeDomain =
|
|
99
|
+
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
|
100
|
+
this._servicePath = 'dlp.' + this._universeDomain;
|
|
101
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
94
102
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
95
103
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
96
|
-
const clientConfig = (
|
|
97
|
-
const fallback = (
|
|
104
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
|
105
|
+
const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
98
106
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
99
107
|
// Request numeric enum values if REST transport is used.
|
|
100
108
|
opts.numericEnums = true;
|
|
101
109
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
|
102
|
-
if (servicePath !==
|
|
110
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
|
103
111
|
opts['scopes'] = staticMembers.scopes;
|
|
104
112
|
}
|
|
105
113
|
// Load google-gax module synchronously if needed
|
|
@@ -117,9 +125,9 @@ class DlpServiceClient {
|
|
|
117
125
|
// Set useJWTAccessWithScope on the auth object.
|
|
118
126
|
this.auth.useJWTAccessWithScope = true;
|
|
119
127
|
// Set defaultServicePath on the auth object.
|
|
120
|
-
this.auth.defaultServicePath =
|
|
128
|
+
this.auth.defaultServicePath = this._servicePath;
|
|
121
129
|
// Set the default scopes in auth client if needed.
|
|
122
|
-
if (servicePath ===
|
|
130
|
+
if (servicePath === this._servicePath) {
|
|
123
131
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
124
132
|
}
|
|
125
133
|
this.locationsClient = new this._gaxModule.LocationsClient(this._gaxGrpc, opts);
|
|
@@ -152,9 +160,13 @@ class DlpServiceClient {
|
|
|
152
160
|
organizationPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}'),
|
|
153
161
|
organizationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/deidentifyTemplates/{deidentify_template}'),
|
|
154
162
|
organizationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/inspectTemplates/{inspect_template}'),
|
|
163
|
+
organizationLocationPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}'),
|
|
164
|
+
organizationLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}'),
|
|
155
165
|
organizationLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
|
|
156
166
|
organizationLocationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}'),
|
|
167
|
+
organizationLocationProjectDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}'),
|
|
157
168
|
organizationLocationStoredInfoTypePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}'),
|
|
169
|
+
organizationLocationTableDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}'),
|
|
158
170
|
organizationStoredInfoTypePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/storedInfoTypes/{stored_info_type}'),
|
|
159
171
|
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
|
|
160
172
|
projectDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/deidentifyTemplates/{deidentify_template}'),
|
|
@@ -162,11 +174,14 @@ class DlpServiceClient {
|
|
|
162
174
|
projectDlpJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/dlpJobs/{dlp_job}'),
|
|
163
175
|
projectInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/inspectTemplates/{inspect_template}'),
|
|
164
176
|
projectJobTriggerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/jobTriggers/{job_trigger}'),
|
|
177
|
+
projectLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}'),
|
|
165
178
|
projectLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
|
|
166
179
|
projectLocationDlpJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dlpJobs/{dlp_job}'),
|
|
167
180
|
projectLocationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/inspectTemplates/{inspect_template}'),
|
|
168
181
|
projectLocationJobTriggerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/jobTriggers/{job_trigger}'),
|
|
182
|
+
projectLocationProjectDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}'),
|
|
169
183
|
projectLocationStoredInfoTypePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}'),
|
|
184
|
+
projectLocationTableDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}'),
|
|
170
185
|
projectStoredInfoTypePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/storedInfoTypes/{stored_info_type}'),
|
|
171
186
|
};
|
|
172
187
|
// Some of the methods on this service return "paged" results,
|
|
@@ -179,6 +194,9 @@ class DlpServiceClient {
|
|
|
179
194
|
listDiscoveryConfigs: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'discoveryConfigs'),
|
|
180
195
|
listDlpJobs: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'jobs'),
|
|
181
196
|
listStoredInfoTypes: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'storedInfoTypes'),
|
|
197
|
+
listProjectDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'projectDataProfiles'),
|
|
198
|
+
listTableDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'tableDataProfiles'),
|
|
199
|
+
listColumnDataProfiles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'columnDataProfiles'),
|
|
182
200
|
};
|
|
183
201
|
// Put together the default options sent with requests.
|
|
184
202
|
this._defaults = this._gaxGrpc.constructSettings('google.privacy.dlp.v2.DlpService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -251,6 +269,12 @@ class DlpServiceClient {
|
|
|
251
269
|
'getStoredInfoType',
|
|
252
270
|
'listStoredInfoTypes',
|
|
253
271
|
'deleteStoredInfoType',
|
|
272
|
+
'listProjectDataProfiles',
|
|
273
|
+
'listTableDataProfiles',
|
|
274
|
+
'listColumnDataProfiles',
|
|
275
|
+
'getProjectDataProfile',
|
|
276
|
+
'getTableDataProfile',
|
|
277
|
+
'getColumnDataProfile',
|
|
254
278
|
'hybridInspectDlpJob',
|
|
255
279
|
'finishDlpJob',
|
|
256
280
|
];
|
|
@@ -272,19 +296,38 @@ class DlpServiceClient {
|
|
|
272
296
|
}
|
|
273
297
|
/**
|
|
274
298
|
* The DNS address for this API service.
|
|
299
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
275
300
|
* @returns {string} The DNS address for this service.
|
|
276
301
|
*/
|
|
277
302
|
static get servicePath() {
|
|
303
|
+
if (typeof process !== undefined &&
|
|
304
|
+
typeof process.emitWarning === 'function') {
|
|
305
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
306
|
+
}
|
|
278
307
|
return 'dlp.googleapis.com';
|
|
279
308
|
}
|
|
280
309
|
/**
|
|
281
|
-
* The DNS address for this API service - same as servicePath
|
|
282
|
-
*
|
|
310
|
+
* The DNS address for this API service - same as servicePath.
|
|
311
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
283
312
|
* @returns {string} The DNS address for this service.
|
|
284
313
|
*/
|
|
285
314
|
static get apiEndpoint() {
|
|
315
|
+
if (typeof process !== undefined &&
|
|
316
|
+
typeof process.emitWarning === 'function') {
|
|
317
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
318
|
+
}
|
|
286
319
|
return 'dlp.googleapis.com';
|
|
287
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* The DNS address for this API service.
|
|
323
|
+
* @returns {string} The DNS address for this service.
|
|
324
|
+
*/
|
|
325
|
+
get apiEndpoint() {
|
|
326
|
+
return this._servicePath;
|
|
327
|
+
}
|
|
328
|
+
get universeDomain() {
|
|
329
|
+
return this._universeDomain;
|
|
330
|
+
}
|
|
288
331
|
/**
|
|
289
332
|
* The port for this API service.
|
|
290
333
|
* @returns {number} The default port for this service.
|
|
@@ -962,6 +1005,69 @@ class DlpServiceClient {
|
|
|
962
1005
|
this.initialize();
|
|
963
1006
|
return this.innerApiCalls.deleteStoredInfoType(request, options, callback);
|
|
964
1007
|
}
|
|
1008
|
+
getProjectDataProfile(request, optionsOrCallback, callback) {
|
|
1009
|
+
var _a;
|
|
1010
|
+
request = request || {};
|
|
1011
|
+
let options;
|
|
1012
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1013
|
+
callback = optionsOrCallback;
|
|
1014
|
+
options = {};
|
|
1015
|
+
}
|
|
1016
|
+
else {
|
|
1017
|
+
options = optionsOrCallback;
|
|
1018
|
+
}
|
|
1019
|
+
options = options || {};
|
|
1020
|
+
options.otherArgs = options.otherArgs || {};
|
|
1021
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1022
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1023
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1024
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1025
|
+
});
|
|
1026
|
+
this.initialize();
|
|
1027
|
+
return this.innerApiCalls.getProjectDataProfile(request, options, callback);
|
|
1028
|
+
}
|
|
1029
|
+
getTableDataProfile(request, optionsOrCallback, callback) {
|
|
1030
|
+
var _a;
|
|
1031
|
+
request = request || {};
|
|
1032
|
+
let options;
|
|
1033
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1034
|
+
callback = optionsOrCallback;
|
|
1035
|
+
options = {};
|
|
1036
|
+
}
|
|
1037
|
+
else {
|
|
1038
|
+
options = optionsOrCallback;
|
|
1039
|
+
}
|
|
1040
|
+
options = options || {};
|
|
1041
|
+
options.otherArgs = options.otherArgs || {};
|
|
1042
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1043
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1044
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1045
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1046
|
+
});
|
|
1047
|
+
this.initialize();
|
|
1048
|
+
return this.innerApiCalls.getTableDataProfile(request, options, callback);
|
|
1049
|
+
}
|
|
1050
|
+
getColumnDataProfile(request, optionsOrCallback, callback) {
|
|
1051
|
+
var _a;
|
|
1052
|
+
request = request || {};
|
|
1053
|
+
let options;
|
|
1054
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1055
|
+
callback = optionsOrCallback;
|
|
1056
|
+
options = {};
|
|
1057
|
+
}
|
|
1058
|
+
else {
|
|
1059
|
+
options = optionsOrCallback;
|
|
1060
|
+
}
|
|
1061
|
+
options = options || {};
|
|
1062
|
+
options.otherArgs = options.otherArgs || {};
|
|
1063
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1064
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1065
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1066
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1067
|
+
});
|
|
1068
|
+
this.initialize();
|
|
1069
|
+
return this.innerApiCalls.getColumnDataProfile(request, options, callback);
|
|
1070
|
+
}
|
|
965
1071
|
hybridInspectDlpJob(request, optionsOrCallback, callback) {
|
|
966
1072
|
var _a;
|
|
967
1073
|
request = request || {};
|
|
@@ -1034,7 +1140,7 @@ class DlpServiceClient {
|
|
|
1034
1140
|
*
|
|
1035
1141
|
* The format of this value varies depending on the scope of the request
|
|
1036
1142
|
* (project or organization) and whether you have [specified a processing
|
|
1037
|
-
* location](https://cloud.google.com/
|
|
1143
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1038
1144
|
*
|
|
1039
1145
|
* + Projects scope, location specified:<br/>
|
|
1040
1146
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1109,7 +1215,7 @@ class DlpServiceClient {
|
|
|
1109
1215
|
*
|
|
1110
1216
|
* The format of this value varies depending on the scope of the request
|
|
1111
1217
|
* (project or organization) and whether you have [specified a processing
|
|
1112
|
-
* location](https://cloud.google.com/
|
|
1218
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1113
1219
|
*
|
|
1114
1220
|
* + Projects scope, location specified:<br/>
|
|
1115
1221
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1204,7 +1310,7 @@ class DlpServiceClient {
|
|
|
1204
1310
|
*
|
|
1205
1311
|
* The format of this value varies depending on the scope of the request
|
|
1206
1312
|
* (project or organization) and whether you have [specified a processing
|
|
1207
|
-
* location](https://cloud.google.com/
|
|
1313
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1208
1314
|
*
|
|
1209
1315
|
* + Projects scope, location specified:<br/>
|
|
1210
1316
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1279,7 +1385,7 @@ class DlpServiceClient {
|
|
|
1279
1385
|
*
|
|
1280
1386
|
* The format of this value varies depending on the scope of the request
|
|
1281
1387
|
* (project or organization) and whether you have [specified a processing
|
|
1282
|
-
* location](https://cloud.google.com/
|
|
1388
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1283
1389
|
*
|
|
1284
1390
|
* + Projects scope, location specified:<br/>
|
|
1285
1391
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1374,7 +1480,7 @@ class DlpServiceClient {
|
|
|
1374
1480
|
*
|
|
1375
1481
|
* The format of this value varies depending on whether you have [specified a
|
|
1376
1482
|
* processing
|
|
1377
|
-
* location](https://cloud.google.com/
|
|
1483
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1378
1484
|
*
|
|
1379
1485
|
* + Projects scope, location specified:<br/>
|
|
1380
1486
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1474,7 +1580,7 @@ class DlpServiceClient {
|
|
|
1474
1580
|
*
|
|
1475
1581
|
* The format of this value varies depending on whether you have [specified a
|
|
1476
1582
|
* processing
|
|
1477
|
-
* location](https://cloud.google.com/
|
|
1583
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1478
1584
|
*
|
|
1479
1585
|
* + Projects scope, location specified:<br/>
|
|
1480
1586
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1738,7 +1844,7 @@ class DlpServiceClient {
|
|
|
1738
1844
|
*
|
|
1739
1845
|
* The format of this value varies depending on whether you have [specified a
|
|
1740
1846
|
* processing
|
|
1741
|
-
* location](https://cloud.google.com/
|
|
1847
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1742
1848
|
*
|
|
1743
1849
|
* + Projects scope, location specified:<br/>
|
|
1744
1850
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1838,7 +1944,7 @@ class DlpServiceClient {
|
|
|
1838
1944
|
*
|
|
1839
1945
|
* The format of this value varies depending on whether you have [specified a
|
|
1840
1946
|
* processing
|
|
1841
|
-
* location](https://cloud.google.com/
|
|
1947
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1842
1948
|
*
|
|
1843
1949
|
* + Projects scope, location specified:<br/>
|
|
1844
1950
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -1958,7 +2064,7 @@ class DlpServiceClient {
|
|
|
1958
2064
|
*
|
|
1959
2065
|
* The format of this value varies depending on the scope of the request
|
|
1960
2066
|
* (project or organization) and whether you have [specified a processing
|
|
1961
|
-
* location](https://cloud.google.com/
|
|
2067
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
1962
2068
|
*
|
|
1963
2069
|
* + Projects scope, location specified:<br/>
|
|
1964
2070
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -2030,7 +2136,7 @@ class DlpServiceClient {
|
|
|
2030
2136
|
*
|
|
2031
2137
|
* The format of this value varies depending on the scope of the request
|
|
2032
2138
|
* (project or organization) and whether you have [specified a processing
|
|
2033
|
-
* location](https://cloud.google.com/
|
|
2139
|
+
* location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
|
|
2034
2140
|
*
|
|
2035
2141
|
* + Projects scope, location specified:<br/>
|
|
2036
2142
|
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
@@ -2092,100 +2198,682 @@ class DlpServiceClient {
|
|
|
2092
2198
|
this.initialize();
|
|
2093
2199
|
return this.descriptors.page.listStoredInfoTypes.asyncIterate(this.innerApiCalls['listStoredInfoTypes'], request, callSettings);
|
|
2094
2200
|
}
|
|
2201
|
+
listProjectDataProfiles(request, optionsOrCallback, callback) {
|
|
2202
|
+
var _a;
|
|
2203
|
+
request = request || {};
|
|
2204
|
+
let options;
|
|
2205
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
2206
|
+
callback = optionsOrCallback;
|
|
2207
|
+
options = {};
|
|
2208
|
+
}
|
|
2209
|
+
else {
|
|
2210
|
+
options = optionsOrCallback;
|
|
2211
|
+
}
|
|
2212
|
+
options = options || {};
|
|
2213
|
+
options.otherArgs = options.otherArgs || {};
|
|
2214
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2215
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2216
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2217
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2218
|
+
});
|
|
2219
|
+
this.initialize();
|
|
2220
|
+
return this.innerApiCalls.listProjectDataProfiles(request, options, callback);
|
|
2221
|
+
}
|
|
2095
2222
|
/**
|
|
2096
|
-
*
|
|
2097
|
-
*
|
|
2223
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
2098
2224
|
* @param {Object} request
|
|
2099
2225
|
* The request object that will be sent.
|
|
2100
|
-
* @param {string} request.
|
|
2101
|
-
*
|
|
2226
|
+
* @param {string} request.parent
|
|
2227
|
+
* Required. organizations/{org_id}/locations/{loc_id}
|
|
2228
|
+
* @param {string} request.pageToken
|
|
2229
|
+
* Page token to continue retrieval.
|
|
2230
|
+
* @param {number} request.pageSize
|
|
2231
|
+
* Size of the page. This value can be limited by the server. If zero, server
|
|
2232
|
+
* returns a page of max size 100.
|
|
2233
|
+
* @param {string} request.orderBy
|
|
2234
|
+
* Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
2235
|
+
* postfix. This list is case insensitive. The default sorting order is
|
|
2236
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
2237
|
+
* field at a time is allowed.
|
|
2238
|
+
*
|
|
2239
|
+
* Examples:
|
|
2240
|
+
* * `project_id`
|
|
2241
|
+
* * `sensitivity_level desc`
|
|
2242
|
+
*
|
|
2243
|
+
* Supported fields are:
|
|
2244
|
+
*
|
|
2245
|
+
* - `project_id`: GCP project ID
|
|
2246
|
+
* - `sensitivity_level`: How sensitive the data in a project is, at most.
|
|
2247
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2248
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
2249
|
+
* seconds.
|
|
2250
|
+
* @param {string} request.filter
|
|
2251
|
+
* Allows filtering.
|
|
2252
|
+
*
|
|
2253
|
+
* Supported syntax:
|
|
2254
|
+
*
|
|
2255
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
2256
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2257
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
2258
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2259
|
+
* * Supported fields/values:
|
|
2260
|
+
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
2261
|
+
* - `data_risk_level` - HIGH|MODERATE|LOW
|
|
2262
|
+
* - `status_code` - an RPC status code as defined in
|
|
2263
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
2264
|
+
* * The operator must be `=` or `!=`.
|
|
2265
|
+
*
|
|
2266
|
+
* Examples:
|
|
2267
|
+
*
|
|
2268
|
+
* * `project_id = 12345 AND status_code = 1`
|
|
2269
|
+
* * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
2270
|
+
*
|
|
2271
|
+
* The length of this field should be no more than 500 characters.
|
|
2102
2272
|
* @param {object} [options]
|
|
2103
|
-
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html
|
|
2104
|
-
* @returns {
|
|
2105
|
-
*
|
|
2106
|
-
*
|
|
2273
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2274
|
+
* @returns {Stream}
|
|
2275
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.ProjectDataProfile|ProjectDataProfile} on 'data' event.
|
|
2276
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2277
|
+
* times as needed. Note that it can affect your quota.
|
|
2278
|
+
* We recommend using `listProjectDataProfilesAsync()`
|
|
2279
|
+
* method described below for async iteration which you can stop as needed.
|
|
2280
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2107
2281
|
* for more details and examples.
|
|
2108
|
-
* @example
|
|
2109
|
-
* ```
|
|
2110
|
-
* const [response] = await client.getLocation(request);
|
|
2111
|
-
* ```
|
|
2112
2282
|
*/
|
|
2113
|
-
|
|
2114
|
-
|
|
2283
|
+
listProjectDataProfilesStream(request, options) {
|
|
2284
|
+
var _a;
|
|
2285
|
+
request = request || {};
|
|
2286
|
+
options = options || {};
|
|
2287
|
+
options.otherArgs = options.otherArgs || {};
|
|
2288
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2289
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2290
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2291
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2292
|
+
});
|
|
2293
|
+
const defaultCallSettings = this._defaults['listProjectDataProfiles'];
|
|
2294
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2295
|
+
this.initialize();
|
|
2296
|
+
return this.descriptors.page.listProjectDataProfiles.createStream(this.innerApiCalls.listProjectDataProfiles, request, callSettings);
|
|
2115
2297
|
}
|
|
2116
2298
|
/**
|
|
2117
|
-
*
|
|
2299
|
+
* Equivalent to `listProjectDataProfiles`, but returns an iterable object.
|
|
2118
2300
|
*
|
|
2119
2301
|
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
2120
2302
|
* @param {Object} request
|
|
2121
2303
|
* The request object that will be sent.
|
|
2122
|
-
* @param {string} request.
|
|
2123
|
-
*
|
|
2124
|
-
* @param {string} request.filter
|
|
2125
|
-
* The standard list filter.
|
|
2126
|
-
* @param {number} request.pageSize
|
|
2127
|
-
* The standard list page size.
|
|
2304
|
+
* @param {string} request.parent
|
|
2305
|
+
* Required. organizations/{org_id}/locations/{loc_id}
|
|
2128
2306
|
* @param {string} request.pageToken
|
|
2129
|
-
*
|
|
2307
|
+
* Page token to continue retrieval.
|
|
2308
|
+
* @param {number} request.pageSize
|
|
2309
|
+
* Size of the page. This value can be limited by the server. If zero, server
|
|
2310
|
+
* returns a page of max size 100.
|
|
2311
|
+
* @param {string} request.orderBy
|
|
2312
|
+
* Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
2313
|
+
* postfix. This list is case insensitive. The default sorting order is
|
|
2314
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
2315
|
+
* field at a time is allowed.
|
|
2316
|
+
*
|
|
2317
|
+
* Examples:
|
|
2318
|
+
* * `project_id`
|
|
2319
|
+
* * `sensitivity_level desc`
|
|
2320
|
+
*
|
|
2321
|
+
* Supported fields are:
|
|
2322
|
+
*
|
|
2323
|
+
* - `project_id`: GCP project ID
|
|
2324
|
+
* - `sensitivity_level`: How sensitive the data in a project is, at most.
|
|
2325
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2326
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
2327
|
+
* seconds.
|
|
2328
|
+
* @param {string} request.filter
|
|
2329
|
+
* Allows filtering.
|
|
2330
|
+
*
|
|
2331
|
+
* Supported syntax:
|
|
2332
|
+
*
|
|
2333
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
2334
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2335
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
2336
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2337
|
+
* * Supported fields/values:
|
|
2338
|
+
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
2339
|
+
* - `data_risk_level` - HIGH|MODERATE|LOW
|
|
2340
|
+
* - `status_code` - an RPC status code as defined in
|
|
2341
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
2342
|
+
* * The operator must be `=` or `!=`.
|
|
2343
|
+
*
|
|
2344
|
+
* Examples:
|
|
2345
|
+
*
|
|
2346
|
+
* * `project_id = 12345 AND status_code = 1`
|
|
2347
|
+
* * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
2348
|
+
*
|
|
2349
|
+
* The length of this field should be no more than 500 characters.
|
|
2130
2350
|
* @param {object} [options]
|
|
2131
2351
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2132
2352
|
* @returns {Object}
|
|
2133
2353
|
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
2134
2354
|
* When you iterate the returned iterable, each element will be an object representing
|
|
2135
|
-
* {@link google.
|
|
2355
|
+
* {@link protos.google.privacy.dlp.v2.ProjectDataProfile|ProjectDataProfile}. The API will be called under the hood as needed, once per the page,
|
|
2136
2356
|
* so you can stop the iteration when you don't need more results.
|
|
2137
2357
|
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2138
2358
|
* for more details and examples.
|
|
2139
|
-
* @example
|
|
2140
|
-
*
|
|
2141
|
-
* const iterable = client.listLocationsAsync(request);
|
|
2142
|
-
* for await (const response of iterable) {
|
|
2143
|
-
* // process response
|
|
2144
|
-
* }
|
|
2145
|
-
* ```
|
|
2359
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_project_data_profiles.js</caption>
|
|
2360
|
+
* region_tag:dlp_v2_generated_DlpService_ListProjectDataProfiles_async
|
|
2146
2361
|
*/
|
|
2147
|
-
|
|
2148
|
-
|
|
2362
|
+
listProjectDataProfilesAsync(request, options) {
|
|
2363
|
+
var _a;
|
|
2364
|
+
request = request || {};
|
|
2365
|
+
options = options || {};
|
|
2366
|
+
options.otherArgs = options.otherArgs || {};
|
|
2367
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2368
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2369
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2370
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2371
|
+
});
|
|
2372
|
+
const defaultCallSettings = this._defaults['listProjectDataProfiles'];
|
|
2373
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2374
|
+
this.initialize();
|
|
2375
|
+
return this.descriptors.page.listProjectDataProfiles.asyncIterate(this.innerApiCalls['listProjectDataProfiles'], request, callSettings);
|
|
2149
2376
|
}
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2377
|
+
listTableDataProfiles(request, optionsOrCallback, callback) {
|
|
2378
|
+
var _a;
|
|
2379
|
+
request = request || {};
|
|
2380
|
+
let options;
|
|
2381
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
2382
|
+
callback = optionsOrCallback;
|
|
2383
|
+
options = {};
|
|
2384
|
+
}
|
|
2385
|
+
else {
|
|
2386
|
+
options = optionsOrCallback;
|
|
2387
|
+
}
|
|
2388
|
+
options = options || {};
|
|
2389
|
+
options.otherArgs = options.otherArgs || {};
|
|
2390
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2391
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2392
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2393
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2394
|
+
});
|
|
2395
|
+
this.initialize();
|
|
2396
|
+
return this.innerApiCalls.listTableDataProfiles(request, options, callback);
|
|
2167
2397
|
}
|
|
2168
2398
|
/**
|
|
2169
|
-
*
|
|
2399
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
2400
|
+
* @param {Object} request
|
|
2401
|
+
* The request object that will be sent.
|
|
2402
|
+
* @param {string} request.parent
|
|
2403
|
+
* Required. Resource name of the organization or project, for
|
|
2404
|
+
* example `organizations/433245324/locations/europe` or
|
|
2405
|
+
* `projects/project-id/locations/asia`.
|
|
2406
|
+
* @param {string} request.pageToken
|
|
2407
|
+
* Page token to continue retrieval.
|
|
2408
|
+
* @param {number} request.pageSize
|
|
2409
|
+
* Size of the page. This value can be limited by the server. If zero, server
|
|
2410
|
+
* returns a page of max size 100.
|
|
2411
|
+
* @param {string} request.orderBy
|
|
2412
|
+
* Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
2413
|
+
* postfix. This list is case insensitive. The default sorting order is
|
|
2414
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
2415
|
+
* field at a time is allowed.
|
|
2170
2416
|
*
|
|
2171
|
-
*
|
|
2172
|
-
*
|
|
2173
|
-
*
|
|
2174
|
-
|
|
2175
|
-
matchProjectFromDiscoveryConfigName(discoveryConfigName) {
|
|
2176
|
-
return this.pathTemplates.discoveryConfigPathTemplate.match(discoveryConfigName).project;
|
|
2177
|
-
}
|
|
2178
|
-
/**
|
|
2179
|
-
* Parse the location from DiscoveryConfig resource.
|
|
2417
|
+
* Examples:
|
|
2418
|
+
* * `project_id asc`
|
|
2419
|
+
* * `table_id`
|
|
2420
|
+
* * `sensitivity_level desc`
|
|
2180
2421
|
*
|
|
2181
|
-
*
|
|
2182
|
-
*
|
|
2183
|
-
*
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2422
|
+
* Supported fields are:
|
|
2423
|
+
*
|
|
2424
|
+
* - `project_id`: The GCP project ID.
|
|
2425
|
+
* - `dataset_id`: The ID of a BigQuery dataset.
|
|
2426
|
+
* - `table_id`: The ID of a BigQuery table.
|
|
2427
|
+
* - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
2428
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2429
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
2430
|
+
* seconds.
|
|
2431
|
+
* - `last_modified`: The last time the resource was modified.
|
|
2432
|
+
* - `resource_visibility`: Visibility restriction for this resource.
|
|
2433
|
+
* - `row_count`: Number of rows in this resource.
|
|
2434
|
+
* @param {string} request.filter
|
|
2435
|
+
* Allows filtering.
|
|
2436
|
+
*
|
|
2437
|
+
* Supported syntax:
|
|
2438
|
+
*
|
|
2439
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
2440
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2441
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
2442
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2443
|
+
* * Supported fields/values:
|
|
2444
|
+
* - `project_id` - The GCP project ID.
|
|
2445
|
+
* - `dataset_id` - The BigQuery dataset ID.
|
|
2446
|
+
* - `table_id` - The ID of the BigQuery table.
|
|
2447
|
+
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
2448
|
+
* - `data_risk_level` - HIGH|MODERATE|LOW
|
|
2449
|
+
* - `resource_visibility`: PUBLIC|RESTRICTED
|
|
2450
|
+
* - `status_code` - an RPC status code as defined in
|
|
2451
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
2452
|
+
* * The operator must be `=` or `!=`.
|
|
2453
|
+
*
|
|
2454
|
+
* Examples:
|
|
2455
|
+
*
|
|
2456
|
+
* * `project_id = 12345 AND status_code = 1`
|
|
2457
|
+
* * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
2458
|
+
* * `project_id = 12345 AND resource_visibility = PUBLIC`
|
|
2459
|
+
*
|
|
2460
|
+
* The length of this field should be no more than 500 characters.
|
|
2461
|
+
* @param {object} [options]
|
|
2462
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2463
|
+
* @returns {Stream}
|
|
2464
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.TableDataProfile|TableDataProfile} on 'data' event.
|
|
2465
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2466
|
+
* times as needed. Note that it can affect your quota.
|
|
2467
|
+
* We recommend using `listTableDataProfilesAsync()`
|
|
2468
|
+
* method described below for async iteration which you can stop as needed.
|
|
2469
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2470
|
+
* for more details and examples.
|
|
2471
|
+
*/
|
|
2472
|
+
listTableDataProfilesStream(request, options) {
|
|
2473
|
+
var _a;
|
|
2474
|
+
request = request || {};
|
|
2475
|
+
options = options || {};
|
|
2476
|
+
options.otherArgs = options.otherArgs || {};
|
|
2477
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2478
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2479
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2480
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2481
|
+
});
|
|
2482
|
+
const defaultCallSettings = this._defaults['listTableDataProfiles'];
|
|
2483
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2484
|
+
this.initialize();
|
|
2485
|
+
return this.descriptors.page.listTableDataProfiles.createStream(this.innerApiCalls.listTableDataProfiles, request, callSettings);
|
|
2486
|
+
}
|
|
2487
|
+
/**
|
|
2488
|
+
* Equivalent to `listTableDataProfiles`, but returns an iterable object.
|
|
2489
|
+
*
|
|
2490
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
2491
|
+
* @param {Object} request
|
|
2492
|
+
* The request object that will be sent.
|
|
2493
|
+
* @param {string} request.parent
|
|
2494
|
+
* Required. Resource name of the organization or project, for
|
|
2495
|
+
* example `organizations/433245324/locations/europe` or
|
|
2496
|
+
* `projects/project-id/locations/asia`.
|
|
2497
|
+
* @param {string} request.pageToken
|
|
2498
|
+
* Page token to continue retrieval.
|
|
2499
|
+
* @param {number} request.pageSize
|
|
2500
|
+
* Size of the page. This value can be limited by the server. If zero, server
|
|
2501
|
+
* returns a page of max size 100.
|
|
2502
|
+
* @param {string} request.orderBy
|
|
2503
|
+
* Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
2504
|
+
* postfix. This list is case insensitive. The default sorting order is
|
|
2505
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
2506
|
+
* field at a time is allowed.
|
|
2507
|
+
*
|
|
2508
|
+
* Examples:
|
|
2509
|
+
* * `project_id asc`
|
|
2510
|
+
* * `table_id`
|
|
2511
|
+
* * `sensitivity_level desc`
|
|
2512
|
+
*
|
|
2513
|
+
* Supported fields are:
|
|
2514
|
+
*
|
|
2515
|
+
* - `project_id`: The GCP project ID.
|
|
2516
|
+
* - `dataset_id`: The ID of a BigQuery dataset.
|
|
2517
|
+
* - `table_id`: The ID of a BigQuery table.
|
|
2518
|
+
* - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
2519
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2520
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
2521
|
+
* seconds.
|
|
2522
|
+
* - `last_modified`: The last time the resource was modified.
|
|
2523
|
+
* - `resource_visibility`: Visibility restriction for this resource.
|
|
2524
|
+
* - `row_count`: Number of rows in this resource.
|
|
2525
|
+
* @param {string} request.filter
|
|
2526
|
+
* Allows filtering.
|
|
2527
|
+
*
|
|
2528
|
+
* Supported syntax:
|
|
2529
|
+
*
|
|
2530
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
2531
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2532
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
2533
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2534
|
+
* * Supported fields/values:
|
|
2535
|
+
* - `project_id` - The GCP project ID.
|
|
2536
|
+
* - `dataset_id` - The BigQuery dataset ID.
|
|
2537
|
+
* - `table_id` - The ID of the BigQuery table.
|
|
2538
|
+
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
2539
|
+
* - `data_risk_level` - HIGH|MODERATE|LOW
|
|
2540
|
+
* - `resource_visibility`: PUBLIC|RESTRICTED
|
|
2541
|
+
* - `status_code` - an RPC status code as defined in
|
|
2542
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
2543
|
+
* * The operator must be `=` or `!=`.
|
|
2544
|
+
*
|
|
2545
|
+
* Examples:
|
|
2546
|
+
*
|
|
2547
|
+
* * `project_id = 12345 AND status_code = 1`
|
|
2548
|
+
* * `project_id = 12345 AND sensitivity_level = HIGH`
|
|
2549
|
+
* * `project_id = 12345 AND resource_visibility = PUBLIC`
|
|
2550
|
+
*
|
|
2551
|
+
* The length of this field should be no more than 500 characters.
|
|
2552
|
+
* @param {object} [options]
|
|
2553
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2554
|
+
* @returns {Object}
|
|
2555
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
2556
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
2557
|
+
* {@link protos.google.privacy.dlp.v2.TableDataProfile|TableDataProfile}. The API will be called under the hood as needed, once per the page,
|
|
2558
|
+
* so you can stop the iteration when you don't need more results.
|
|
2559
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2560
|
+
* for more details and examples.
|
|
2561
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_table_data_profiles.js</caption>
|
|
2562
|
+
* region_tag:dlp_v2_generated_DlpService_ListTableDataProfiles_async
|
|
2563
|
+
*/
|
|
2564
|
+
listTableDataProfilesAsync(request, options) {
|
|
2565
|
+
var _a;
|
|
2566
|
+
request = request || {};
|
|
2567
|
+
options = options || {};
|
|
2568
|
+
options.otherArgs = options.otherArgs || {};
|
|
2569
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2570
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2571
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2572
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2573
|
+
});
|
|
2574
|
+
const defaultCallSettings = this._defaults['listTableDataProfiles'];
|
|
2575
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2576
|
+
this.initialize();
|
|
2577
|
+
return this.descriptors.page.listTableDataProfiles.asyncIterate(this.innerApiCalls['listTableDataProfiles'], request, callSettings);
|
|
2578
|
+
}
|
|
2579
|
+
listColumnDataProfiles(request, optionsOrCallback, callback) {
|
|
2580
|
+
var _a;
|
|
2581
|
+
request = request || {};
|
|
2582
|
+
let options;
|
|
2583
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
2584
|
+
callback = optionsOrCallback;
|
|
2585
|
+
options = {};
|
|
2586
|
+
}
|
|
2587
|
+
else {
|
|
2588
|
+
options = optionsOrCallback;
|
|
2589
|
+
}
|
|
2590
|
+
options = options || {};
|
|
2591
|
+
options.otherArgs = options.otherArgs || {};
|
|
2592
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2593
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2594
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2595
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2596
|
+
});
|
|
2597
|
+
this.initialize();
|
|
2598
|
+
return this.innerApiCalls.listColumnDataProfiles(request, options, callback);
|
|
2599
|
+
}
|
|
2600
|
+
/**
|
|
2601
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
2602
|
+
* @param {Object} request
|
|
2603
|
+
* The request object that will be sent.
|
|
2604
|
+
* @param {string} request.parent
|
|
2605
|
+
* Required. Resource name of the organization or project, for
|
|
2606
|
+
* example `organizations/433245324/locations/europe` or
|
|
2607
|
+
* `projects/project-id/locations/asia`.
|
|
2608
|
+
* @param {string} request.pageToken
|
|
2609
|
+
* Page token to continue retrieval.
|
|
2610
|
+
* @param {number} request.pageSize
|
|
2611
|
+
* Size of the page. This value can be limited by the server. If zero, server
|
|
2612
|
+
* returns a page of max size 100.
|
|
2613
|
+
* @param {string} request.orderBy
|
|
2614
|
+
* Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
2615
|
+
* postfix. This list is case insensitive. The default sorting order is
|
|
2616
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
2617
|
+
* field at a time is allowed.
|
|
2618
|
+
*
|
|
2619
|
+
* Examples:
|
|
2620
|
+
* * `project_id asc`
|
|
2621
|
+
* * `table_id`
|
|
2622
|
+
* * `sensitivity_level desc`
|
|
2623
|
+
*
|
|
2624
|
+
* Supported fields are:
|
|
2625
|
+
*
|
|
2626
|
+
* - `project_id`: The Google Cloud project ID.
|
|
2627
|
+
* - `dataset_id`: The ID of a BigQuery dataset.
|
|
2628
|
+
* - `table_id`: The ID of a BigQuery table.
|
|
2629
|
+
* - `sensitivity_level`: How sensitive the data in a column is, at most.
|
|
2630
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2631
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
2632
|
+
* seconds.
|
|
2633
|
+
* @param {string} request.filter
|
|
2634
|
+
* Allows filtering.
|
|
2635
|
+
*
|
|
2636
|
+
* Supported syntax:
|
|
2637
|
+
*
|
|
2638
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
2639
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2640
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
2641
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2642
|
+
* * Supported fields/values:
|
|
2643
|
+
* - `table_data_profile_name` - The name of the related table data
|
|
2644
|
+
* profile.
|
|
2645
|
+
* - `project_id` - The Google Cloud project ID. (REQUIRED)
|
|
2646
|
+
* - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
|
|
2647
|
+
* - `table_id` - The BigQuery table ID. (REQUIRED)
|
|
2648
|
+
* - `field_id` - The ID of the BigQuery field.
|
|
2649
|
+
* - `info_type` - The infotype detected in the resource.
|
|
2650
|
+
* - `sensitivity_level` - HIGH|MEDIUM|LOW
|
|
2651
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2652
|
+
* - `status_code` - an RPC status code as defined in
|
|
2653
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
2654
|
+
* * The operator must be `=` for project_id, dataset_id, and table_id. Other
|
|
2655
|
+
* filters also support `!=`.
|
|
2656
|
+
*
|
|
2657
|
+
* Examples:
|
|
2658
|
+
*
|
|
2659
|
+
* * project_id = 12345 AND status_code = 1
|
|
2660
|
+
* * project_id = 12345 AND sensitivity_level = HIGH
|
|
2661
|
+
* * project_id = 12345 AND info_type = STREET_ADDRESS
|
|
2662
|
+
*
|
|
2663
|
+
* The length of this field should be no more than 500 characters.
|
|
2664
|
+
* @param {object} [options]
|
|
2665
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2666
|
+
* @returns {Stream}
|
|
2667
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.ColumnDataProfile|ColumnDataProfile} on 'data' event.
|
|
2668
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2669
|
+
* times as needed. Note that it can affect your quota.
|
|
2670
|
+
* We recommend using `listColumnDataProfilesAsync()`
|
|
2671
|
+
* method described below for async iteration which you can stop as needed.
|
|
2672
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2673
|
+
* for more details and examples.
|
|
2674
|
+
*/
|
|
2675
|
+
listColumnDataProfilesStream(request, options) {
|
|
2676
|
+
var _a;
|
|
2677
|
+
request = request || {};
|
|
2678
|
+
options = options || {};
|
|
2679
|
+
options.otherArgs = options.otherArgs || {};
|
|
2680
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2681
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2682
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2683
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2684
|
+
});
|
|
2685
|
+
const defaultCallSettings = this._defaults['listColumnDataProfiles'];
|
|
2686
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2687
|
+
this.initialize();
|
|
2688
|
+
return this.descriptors.page.listColumnDataProfiles.createStream(this.innerApiCalls.listColumnDataProfiles, request, callSettings);
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* Equivalent to `listColumnDataProfiles`, but returns an iterable object.
|
|
2692
|
+
*
|
|
2693
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
2694
|
+
* @param {Object} request
|
|
2695
|
+
* The request object that will be sent.
|
|
2696
|
+
* @param {string} request.parent
|
|
2697
|
+
* Required. Resource name of the organization or project, for
|
|
2698
|
+
* example `organizations/433245324/locations/europe` or
|
|
2699
|
+
* `projects/project-id/locations/asia`.
|
|
2700
|
+
* @param {string} request.pageToken
|
|
2701
|
+
* Page token to continue retrieval.
|
|
2702
|
+
* @param {number} request.pageSize
|
|
2703
|
+
* Size of the page. This value can be limited by the server. If zero, server
|
|
2704
|
+
* returns a page of max size 100.
|
|
2705
|
+
* @param {string} request.orderBy
|
|
2706
|
+
* Comma separated list of fields to order by, followed by `asc` or `desc`
|
|
2707
|
+
* postfix. This list is case insensitive. The default sorting order is
|
|
2708
|
+
* ascending. Redundant space characters are insignificant. Only one order
|
|
2709
|
+
* field at a time is allowed.
|
|
2710
|
+
*
|
|
2711
|
+
* Examples:
|
|
2712
|
+
* * `project_id asc`
|
|
2713
|
+
* * `table_id`
|
|
2714
|
+
* * `sensitivity_level desc`
|
|
2715
|
+
*
|
|
2716
|
+
* Supported fields are:
|
|
2717
|
+
*
|
|
2718
|
+
* - `project_id`: The Google Cloud project ID.
|
|
2719
|
+
* - `dataset_id`: The ID of a BigQuery dataset.
|
|
2720
|
+
* - `table_id`: The ID of a BigQuery table.
|
|
2721
|
+
* - `sensitivity_level`: How sensitive the data in a column is, at most.
|
|
2722
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2723
|
+
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
2724
|
+
* seconds.
|
|
2725
|
+
* @param {string} request.filter
|
|
2726
|
+
* Allows filtering.
|
|
2727
|
+
*
|
|
2728
|
+
* Supported syntax:
|
|
2729
|
+
*
|
|
2730
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
2731
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
2732
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
2733
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2734
|
+
* * Supported fields/values:
|
|
2735
|
+
* - `table_data_profile_name` - The name of the related table data
|
|
2736
|
+
* profile.
|
|
2737
|
+
* - `project_id` - The Google Cloud project ID. (REQUIRED)
|
|
2738
|
+
* - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
|
|
2739
|
+
* - `table_id` - The BigQuery table ID. (REQUIRED)
|
|
2740
|
+
* - `field_id` - The ID of the BigQuery field.
|
|
2741
|
+
* - `info_type` - The infotype detected in the resource.
|
|
2742
|
+
* - `sensitivity_level` - HIGH|MEDIUM|LOW
|
|
2743
|
+
* - `data_risk_level`: How much risk is associated with this data.
|
|
2744
|
+
* - `status_code` - an RPC status code as defined in
|
|
2745
|
+
* https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
|
|
2746
|
+
* * The operator must be `=` for project_id, dataset_id, and table_id. Other
|
|
2747
|
+
* filters also support `!=`.
|
|
2748
|
+
*
|
|
2749
|
+
* Examples:
|
|
2750
|
+
*
|
|
2751
|
+
* * project_id = 12345 AND status_code = 1
|
|
2752
|
+
* * project_id = 12345 AND sensitivity_level = HIGH
|
|
2753
|
+
* * project_id = 12345 AND info_type = STREET_ADDRESS
|
|
2754
|
+
*
|
|
2755
|
+
* The length of this field should be no more than 500 characters.
|
|
2756
|
+
* @param {object} [options]
|
|
2757
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2758
|
+
* @returns {Object}
|
|
2759
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
2760
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
2761
|
+
* {@link protos.google.privacy.dlp.v2.ColumnDataProfile|ColumnDataProfile}. The API will be called under the hood as needed, once per the page,
|
|
2762
|
+
* so you can stop the iteration when you don't need more results.
|
|
2763
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2764
|
+
* for more details and examples.
|
|
2765
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_column_data_profiles.js</caption>
|
|
2766
|
+
* region_tag:dlp_v2_generated_DlpService_ListColumnDataProfiles_async
|
|
2767
|
+
*/
|
|
2768
|
+
listColumnDataProfilesAsync(request, options) {
|
|
2769
|
+
var _a;
|
|
2770
|
+
request = request || {};
|
|
2771
|
+
options = options || {};
|
|
2772
|
+
options.otherArgs = options.otherArgs || {};
|
|
2773
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2774
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2775
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2776
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
2777
|
+
});
|
|
2778
|
+
const defaultCallSettings = this._defaults['listColumnDataProfiles'];
|
|
2779
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2780
|
+
this.initialize();
|
|
2781
|
+
return this.descriptors.page.listColumnDataProfiles.asyncIterate(this.innerApiCalls['listColumnDataProfiles'], request, callSettings);
|
|
2782
|
+
}
|
|
2783
|
+
/**
|
|
2784
|
+
* Gets information about a location.
|
|
2785
|
+
*
|
|
2786
|
+
* @param {Object} request
|
|
2787
|
+
* The request object that will be sent.
|
|
2788
|
+
* @param {string} request.name
|
|
2789
|
+
* Resource name for the location.
|
|
2790
|
+
* @param {object} [options]
|
|
2791
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
|
|
2792
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
2793
|
+
* The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
|
|
2794
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
2795
|
+
* for more details and examples.
|
|
2796
|
+
* @example
|
|
2797
|
+
* ```
|
|
2798
|
+
* const [response] = await client.getLocation(request);
|
|
2799
|
+
* ```
|
|
2800
|
+
*/
|
|
2801
|
+
getLocation(request, options, callback) {
|
|
2802
|
+
return this.locationsClient.getLocation(request, options, callback);
|
|
2803
|
+
}
|
|
2804
|
+
/**
|
|
2805
|
+
* Lists information about the supported locations for this service. Returns an iterable object.
|
|
2806
|
+
*
|
|
2807
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
2808
|
+
* @param {Object} request
|
|
2809
|
+
* The request object that will be sent.
|
|
2810
|
+
* @param {string} request.name
|
|
2811
|
+
* The resource that owns the locations collection, if applicable.
|
|
2812
|
+
* @param {string} request.filter
|
|
2813
|
+
* The standard list filter.
|
|
2814
|
+
* @param {number} request.pageSize
|
|
2815
|
+
* The standard list page size.
|
|
2816
|
+
* @param {string} request.pageToken
|
|
2817
|
+
* The standard list page token.
|
|
2818
|
+
* @param {object} [options]
|
|
2819
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2820
|
+
* @returns {Object}
|
|
2821
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
2822
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
2823
|
+
* {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
|
|
2824
|
+
* so you can stop the iteration when you don't need more results.
|
|
2825
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2826
|
+
* for more details and examples.
|
|
2827
|
+
* @example
|
|
2828
|
+
* ```
|
|
2829
|
+
* const iterable = client.listLocationsAsync(request);
|
|
2830
|
+
* for await (const response of iterable) {
|
|
2831
|
+
* // process response
|
|
2832
|
+
* }
|
|
2833
|
+
* ```
|
|
2834
|
+
*/
|
|
2835
|
+
listLocationsAsync(request, options) {
|
|
2836
|
+
return this.locationsClient.listLocationsAsync(request, options);
|
|
2837
|
+
}
|
|
2838
|
+
// --------------------
|
|
2839
|
+
// -- Path templates --
|
|
2840
|
+
// --------------------
|
|
2841
|
+
/**
|
|
2842
|
+
* Return a fully-qualified discoveryConfig resource name string.
|
|
2843
|
+
*
|
|
2844
|
+
* @param {string} project
|
|
2845
|
+
* @param {string} location
|
|
2846
|
+
* @param {string} discovery_config
|
|
2847
|
+
* @returns {string} Resource name string.
|
|
2848
|
+
*/
|
|
2849
|
+
discoveryConfigPath(project, location, discoveryConfig) {
|
|
2850
|
+
return this.pathTemplates.discoveryConfigPathTemplate.render({
|
|
2851
|
+
project: project,
|
|
2852
|
+
location: location,
|
|
2853
|
+
discovery_config: discoveryConfig,
|
|
2854
|
+
});
|
|
2855
|
+
}
|
|
2856
|
+
/**
|
|
2857
|
+
* Parse the project from DiscoveryConfig resource.
|
|
2858
|
+
*
|
|
2859
|
+
* @param {string} discoveryConfigName
|
|
2860
|
+
* A fully-qualified path representing DiscoveryConfig resource.
|
|
2861
|
+
* @returns {string} A string representing the project.
|
|
2862
|
+
*/
|
|
2863
|
+
matchProjectFromDiscoveryConfigName(discoveryConfigName) {
|
|
2864
|
+
return this.pathTemplates.discoveryConfigPathTemplate.match(discoveryConfigName).project;
|
|
2865
|
+
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Parse the location from DiscoveryConfig resource.
|
|
2868
|
+
*
|
|
2869
|
+
* @param {string} discoveryConfigName
|
|
2870
|
+
* A fully-qualified path representing DiscoveryConfig resource.
|
|
2871
|
+
* @returns {string} A string representing the location.
|
|
2872
|
+
*/
|
|
2873
|
+
matchLocationFromDiscoveryConfigName(discoveryConfigName) {
|
|
2874
|
+
return this.pathTemplates.discoveryConfigPathTemplate.match(discoveryConfigName).location;
|
|
2875
|
+
}
|
|
2876
|
+
/**
|
|
2189
2877
|
* Parse the discovery_config from DiscoveryConfig resource.
|
|
2190
2878
|
*
|
|
2191
2879
|
* @param {string} discoveryConfigName
|
|
@@ -2361,6 +3049,84 @@ class DlpServiceClient {
|
|
|
2361
3049
|
matchInspectTemplateFromOrganizationInspectTemplateName(organizationInspectTemplateName) {
|
|
2362
3050
|
return this.pathTemplates.organizationInspectTemplatePathTemplate.match(organizationInspectTemplateName).inspect_template;
|
|
2363
3051
|
}
|
|
3052
|
+
/**
|
|
3053
|
+
* Return a fully-qualified organizationLocation resource name string.
|
|
3054
|
+
*
|
|
3055
|
+
* @param {string} organization
|
|
3056
|
+
* @param {string} location
|
|
3057
|
+
* @returns {string} Resource name string.
|
|
3058
|
+
*/
|
|
3059
|
+
organizationLocationPath(organization, location) {
|
|
3060
|
+
return this.pathTemplates.organizationLocationPathTemplate.render({
|
|
3061
|
+
organization: organization,
|
|
3062
|
+
location: location,
|
|
3063
|
+
});
|
|
3064
|
+
}
|
|
3065
|
+
/**
|
|
3066
|
+
* Parse the organization from OrganizationLocation resource.
|
|
3067
|
+
*
|
|
3068
|
+
* @param {string} organizationLocationName
|
|
3069
|
+
* A fully-qualified path representing OrganizationLocation resource.
|
|
3070
|
+
* @returns {string} A string representing the organization.
|
|
3071
|
+
*/
|
|
3072
|
+
matchOrganizationFromOrganizationLocationName(organizationLocationName) {
|
|
3073
|
+
return this.pathTemplates.organizationLocationPathTemplate.match(organizationLocationName).organization;
|
|
3074
|
+
}
|
|
3075
|
+
/**
|
|
3076
|
+
* Parse the location from OrganizationLocation resource.
|
|
3077
|
+
*
|
|
3078
|
+
* @param {string} organizationLocationName
|
|
3079
|
+
* A fully-qualified path representing OrganizationLocation resource.
|
|
3080
|
+
* @returns {string} A string representing the location.
|
|
3081
|
+
*/
|
|
3082
|
+
matchLocationFromOrganizationLocationName(organizationLocationName) {
|
|
3083
|
+
return this.pathTemplates.organizationLocationPathTemplate.match(organizationLocationName).location;
|
|
3084
|
+
}
|
|
3085
|
+
/**
|
|
3086
|
+
* Return a fully-qualified organizationLocationColumnDataProfile resource name string.
|
|
3087
|
+
*
|
|
3088
|
+
* @param {string} organization
|
|
3089
|
+
* @param {string} location
|
|
3090
|
+
* @param {string} column_data_profile
|
|
3091
|
+
* @returns {string} Resource name string.
|
|
3092
|
+
*/
|
|
3093
|
+
organizationLocationColumnDataProfilePath(organization, location, columnDataProfile) {
|
|
3094
|
+
return this.pathTemplates.organizationLocationColumnDataProfilePathTemplate.render({
|
|
3095
|
+
organization: organization,
|
|
3096
|
+
location: location,
|
|
3097
|
+
column_data_profile: columnDataProfile,
|
|
3098
|
+
});
|
|
3099
|
+
}
|
|
3100
|
+
/**
|
|
3101
|
+
* Parse the organization from OrganizationLocationColumnDataProfile resource.
|
|
3102
|
+
*
|
|
3103
|
+
* @param {string} organizationLocationColumnDataProfileName
|
|
3104
|
+
* A fully-qualified path representing organization_location_column_data_profile resource.
|
|
3105
|
+
* @returns {string} A string representing the organization.
|
|
3106
|
+
*/
|
|
3107
|
+
matchOrganizationFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName) {
|
|
3108
|
+
return this.pathTemplates.organizationLocationColumnDataProfilePathTemplate.match(organizationLocationColumnDataProfileName).organization;
|
|
3109
|
+
}
|
|
3110
|
+
/**
|
|
3111
|
+
* Parse the location from OrganizationLocationColumnDataProfile resource.
|
|
3112
|
+
*
|
|
3113
|
+
* @param {string} organizationLocationColumnDataProfileName
|
|
3114
|
+
* A fully-qualified path representing organization_location_column_data_profile resource.
|
|
3115
|
+
* @returns {string} A string representing the location.
|
|
3116
|
+
*/
|
|
3117
|
+
matchLocationFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName) {
|
|
3118
|
+
return this.pathTemplates.organizationLocationColumnDataProfilePathTemplate.match(organizationLocationColumnDataProfileName).location;
|
|
3119
|
+
}
|
|
3120
|
+
/**
|
|
3121
|
+
* Parse the column_data_profile from OrganizationLocationColumnDataProfile resource.
|
|
3122
|
+
*
|
|
3123
|
+
* @param {string} organizationLocationColumnDataProfileName
|
|
3124
|
+
* A fully-qualified path representing organization_location_column_data_profile resource.
|
|
3125
|
+
* @returns {string} A string representing the column_data_profile.
|
|
3126
|
+
*/
|
|
3127
|
+
matchColumnDataProfileFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName) {
|
|
3128
|
+
return this.pathTemplates.organizationLocationColumnDataProfilePathTemplate.match(organizationLocationColumnDataProfileName).column_data_profile;
|
|
3129
|
+
}
|
|
2364
3130
|
/**
|
|
2365
3131
|
* Return a fully-qualified organizationLocationDeidentifyTemplate resource name string.
|
|
2366
3132
|
*
|
|
@@ -2451,6 +3217,51 @@ class DlpServiceClient {
|
|
|
2451
3217
|
matchInspectTemplateFromOrganizationLocationInspectTemplateName(organizationLocationInspectTemplateName) {
|
|
2452
3218
|
return this.pathTemplates.organizationLocationInspectTemplatePathTemplate.match(organizationLocationInspectTemplateName).inspect_template;
|
|
2453
3219
|
}
|
|
3220
|
+
/**
|
|
3221
|
+
* Return a fully-qualified organizationLocationProjectDataProfile resource name string.
|
|
3222
|
+
*
|
|
3223
|
+
* @param {string} organization
|
|
3224
|
+
* @param {string} location
|
|
3225
|
+
* @param {string} project_data_profile
|
|
3226
|
+
* @returns {string} Resource name string.
|
|
3227
|
+
*/
|
|
3228
|
+
organizationLocationProjectDataProfilePath(organization, location, projectDataProfile) {
|
|
3229
|
+
return this.pathTemplates.organizationLocationProjectDataProfilePathTemplate.render({
|
|
3230
|
+
organization: organization,
|
|
3231
|
+
location: location,
|
|
3232
|
+
project_data_profile: projectDataProfile,
|
|
3233
|
+
});
|
|
3234
|
+
}
|
|
3235
|
+
/**
|
|
3236
|
+
* Parse the organization from OrganizationLocationProjectDataProfile resource.
|
|
3237
|
+
*
|
|
3238
|
+
* @param {string} organizationLocationProjectDataProfileName
|
|
3239
|
+
* A fully-qualified path representing organization_location_project_data_profile resource.
|
|
3240
|
+
* @returns {string} A string representing the organization.
|
|
3241
|
+
*/
|
|
3242
|
+
matchOrganizationFromOrganizationLocationProjectDataProfileName(organizationLocationProjectDataProfileName) {
|
|
3243
|
+
return this.pathTemplates.organizationLocationProjectDataProfilePathTemplate.match(organizationLocationProjectDataProfileName).organization;
|
|
3244
|
+
}
|
|
3245
|
+
/**
|
|
3246
|
+
* Parse the location from OrganizationLocationProjectDataProfile resource.
|
|
3247
|
+
*
|
|
3248
|
+
* @param {string} organizationLocationProjectDataProfileName
|
|
3249
|
+
* A fully-qualified path representing organization_location_project_data_profile resource.
|
|
3250
|
+
* @returns {string} A string representing the location.
|
|
3251
|
+
*/
|
|
3252
|
+
matchLocationFromOrganizationLocationProjectDataProfileName(organizationLocationProjectDataProfileName) {
|
|
3253
|
+
return this.pathTemplates.organizationLocationProjectDataProfilePathTemplate.match(organizationLocationProjectDataProfileName).location;
|
|
3254
|
+
}
|
|
3255
|
+
/**
|
|
3256
|
+
* Parse the project_data_profile from OrganizationLocationProjectDataProfile resource.
|
|
3257
|
+
*
|
|
3258
|
+
* @param {string} organizationLocationProjectDataProfileName
|
|
3259
|
+
* A fully-qualified path representing organization_location_project_data_profile resource.
|
|
3260
|
+
* @returns {string} A string representing the project_data_profile.
|
|
3261
|
+
*/
|
|
3262
|
+
matchProjectDataProfileFromOrganizationLocationProjectDataProfileName(organizationLocationProjectDataProfileName) {
|
|
3263
|
+
return this.pathTemplates.organizationLocationProjectDataProfilePathTemplate.match(organizationLocationProjectDataProfileName).project_data_profile;
|
|
3264
|
+
}
|
|
2454
3265
|
/**
|
|
2455
3266
|
* Return a fully-qualified organizationLocationStoredInfoType resource name string.
|
|
2456
3267
|
*
|
|
@@ -2496,6 +3307,51 @@ class DlpServiceClient {
|
|
|
2496
3307
|
matchStoredInfoTypeFromOrganizationLocationStoredInfoTypeName(organizationLocationStoredInfoTypeName) {
|
|
2497
3308
|
return this.pathTemplates.organizationLocationStoredInfoTypePathTemplate.match(organizationLocationStoredInfoTypeName).stored_info_type;
|
|
2498
3309
|
}
|
|
3310
|
+
/**
|
|
3311
|
+
* Return a fully-qualified organizationLocationTableDataProfile resource name string.
|
|
3312
|
+
*
|
|
3313
|
+
* @param {string} organization
|
|
3314
|
+
* @param {string} location
|
|
3315
|
+
* @param {string} table_data_profile
|
|
3316
|
+
* @returns {string} Resource name string.
|
|
3317
|
+
*/
|
|
3318
|
+
organizationLocationTableDataProfilePath(organization, location, tableDataProfile) {
|
|
3319
|
+
return this.pathTemplates.organizationLocationTableDataProfilePathTemplate.render({
|
|
3320
|
+
organization: organization,
|
|
3321
|
+
location: location,
|
|
3322
|
+
table_data_profile: tableDataProfile,
|
|
3323
|
+
});
|
|
3324
|
+
}
|
|
3325
|
+
/**
|
|
3326
|
+
* Parse the organization from OrganizationLocationTableDataProfile resource.
|
|
3327
|
+
*
|
|
3328
|
+
* @param {string} organizationLocationTableDataProfileName
|
|
3329
|
+
* A fully-qualified path representing organization_location_table_data_profile resource.
|
|
3330
|
+
* @returns {string} A string representing the organization.
|
|
3331
|
+
*/
|
|
3332
|
+
matchOrganizationFromOrganizationLocationTableDataProfileName(organizationLocationTableDataProfileName) {
|
|
3333
|
+
return this.pathTemplates.organizationLocationTableDataProfilePathTemplate.match(organizationLocationTableDataProfileName).organization;
|
|
3334
|
+
}
|
|
3335
|
+
/**
|
|
3336
|
+
* Parse the location from OrganizationLocationTableDataProfile resource.
|
|
3337
|
+
*
|
|
3338
|
+
* @param {string} organizationLocationTableDataProfileName
|
|
3339
|
+
* A fully-qualified path representing organization_location_table_data_profile resource.
|
|
3340
|
+
* @returns {string} A string representing the location.
|
|
3341
|
+
*/
|
|
3342
|
+
matchLocationFromOrganizationLocationTableDataProfileName(organizationLocationTableDataProfileName) {
|
|
3343
|
+
return this.pathTemplates.organizationLocationTableDataProfilePathTemplate.match(organizationLocationTableDataProfileName).location;
|
|
3344
|
+
}
|
|
3345
|
+
/**
|
|
3346
|
+
* Parse the table_data_profile from OrganizationLocationTableDataProfile resource.
|
|
3347
|
+
*
|
|
3348
|
+
* @param {string} organizationLocationTableDataProfileName
|
|
3349
|
+
* A fully-qualified path representing organization_location_table_data_profile resource.
|
|
3350
|
+
* @returns {string} A string representing the table_data_profile.
|
|
3351
|
+
*/
|
|
3352
|
+
matchTableDataProfileFromOrganizationLocationTableDataProfileName(organizationLocationTableDataProfileName) {
|
|
3353
|
+
return this.pathTemplates.organizationLocationTableDataProfilePathTemplate.match(organizationLocationTableDataProfileName).table_data_profile;
|
|
3354
|
+
}
|
|
2499
3355
|
/**
|
|
2500
3356
|
* Return a fully-qualified organizationStoredInfoType resource name string.
|
|
2501
3357
|
*
|
|
@@ -2705,6 +3561,51 @@ class DlpServiceClient {
|
|
|
2705
3561
|
matchJobTriggerFromProjectJobTriggerName(projectJobTriggerName) {
|
|
2706
3562
|
return this.pathTemplates.projectJobTriggerPathTemplate.match(projectJobTriggerName).job_trigger;
|
|
2707
3563
|
}
|
|
3564
|
+
/**
|
|
3565
|
+
* Return a fully-qualified projectLocationColumnDataProfile resource name string.
|
|
3566
|
+
*
|
|
3567
|
+
* @param {string} project
|
|
3568
|
+
* @param {string} location
|
|
3569
|
+
* @param {string} column_data_profile
|
|
3570
|
+
* @returns {string} Resource name string.
|
|
3571
|
+
*/
|
|
3572
|
+
projectLocationColumnDataProfilePath(project, location, columnDataProfile) {
|
|
3573
|
+
return this.pathTemplates.projectLocationColumnDataProfilePathTemplate.render({
|
|
3574
|
+
project: project,
|
|
3575
|
+
location: location,
|
|
3576
|
+
column_data_profile: columnDataProfile,
|
|
3577
|
+
});
|
|
3578
|
+
}
|
|
3579
|
+
/**
|
|
3580
|
+
* Parse the project from ProjectLocationColumnDataProfile resource.
|
|
3581
|
+
*
|
|
3582
|
+
* @param {string} projectLocationColumnDataProfileName
|
|
3583
|
+
* A fully-qualified path representing project_location_column_data_profile resource.
|
|
3584
|
+
* @returns {string} A string representing the project.
|
|
3585
|
+
*/
|
|
3586
|
+
matchProjectFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName) {
|
|
3587
|
+
return this.pathTemplates.projectLocationColumnDataProfilePathTemplate.match(projectLocationColumnDataProfileName).project;
|
|
3588
|
+
}
|
|
3589
|
+
/**
|
|
3590
|
+
* Parse the location from ProjectLocationColumnDataProfile resource.
|
|
3591
|
+
*
|
|
3592
|
+
* @param {string} projectLocationColumnDataProfileName
|
|
3593
|
+
* A fully-qualified path representing project_location_column_data_profile resource.
|
|
3594
|
+
* @returns {string} A string representing the location.
|
|
3595
|
+
*/
|
|
3596
|
+
matchLocationFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName) {
|
|
3597
|
+
return this.pathTemplates.projectLocationColumnDataProfilePathTemplate.match(projectLocationColumnDataProfileName).location;
|
|
3598
|
+
}
|
|
3599
|
+
/**
|
|
3600
|
+
* Parse the column_data_profile from ProjectLocationColumnDataProfile resource.
|
|
3601
|
+
*
|
|
3602
|
+
* @param {string} projectLocationColumnDataProfileName
|
|
3603
|
+
* A fully-qualified path representing project_location_column_data_profile resource.
|
|
3604
|
+
* @returns {string} A string representing the column_data_profile.
|
|
3605
|
+
*/
|
|
3606
|
+
matchColumnDataProfileFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName) {
|
|
3607
|
+
return this.pathTemplates.projectLocationColumnDataProfilePathTemplate.match(projectLocationColumnDataProfileName).column_data_profile;
|
|
3608
|
+
}
|
|
2708
3609
|
/**
|
|
2709
3610
|
* Return a fully-qualified projectLocationDeidentifyTemplate resource name string.
|
|
2710
3611
|
*
|
|
@@ -2885,6 +3786,51 @@ class DlpServiceClient {
|
|
|
2885
3786
|
matchJobTriggerFromProjectLocationJobTriggerName(projectLocationJobTriggerName) {
|
|
2886
3787
|
return this.pathTemplates.projectLocationJobTriggerPathTemplate.match(projectLocationJobTriggerName).job_trigger;
|
|
2887
3788
|
}
|
|
3789
|
+
/**
|
|
3790
|
+
* Return a fully-qualified projectLocationProjectDataProfile resource name string.
|
|
3791
|
+
*
|
|
3792
|
+
* @param {string} project
|
|
3793
|
+
* @param {string} location
|
|
3794
|
+
* @param {string} project_data_profile
|
|
3795
|
+
* @returns {string} Resource name string.
|
|
3796
|
+
*/
|
|
3797
|
+
projectLocationProjectDataProfilePath(project, location, projectDataProfile) {
|
|
3798
|
+
return this.pathTemplates.projectLocationProjectDataProfilePathTemplate.render({
|
|
3799
|
+
project: project,
|
|
3800
|
+
location: location,
|
|
3801
|
+
project_data_profile: projectDataProfile,
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
/**
|
|
3805
|
+
* Parse the project from ProjectLocationProjectDataProfile resource.
|
|
3806
|
+
*
|
|
3807
|
+
* @param {string} projectLocationProjectDataProfileName
|
|
3808
|
+
* A fully-qualified path representing project_location_project_data_profile resource.
|
|
3809
|
+
* @returns {string} A string representing the project.
|
|
3810
|
+
*/
|
|
3811
|
+
matchProjectFromProjectLocationProjectDataProfileName(projectLocationProjectDataProfileName) {
|
|
3812
|
+
return this.pathTemplates.projectLocationProjectDataProfilePathTemplate.match(projectLocationProjectDataProfileName).project;
|
|
3813
|
+
}
|
|
3814
|
+
/**
|
|
3815
|
+
* Parse the location from ProjectLocationProjectDataProfile resource.
|
|
3816
|
+
*
|
|
3817
|
+
* @param {string} projectLocationProjectDataProfileName
|
|
3818
|
+
* A fully-qualified path representing project_location_project_data_profile resource.
|
|
3819
|
+
* @returns {string} A string representing the location.
|
|
3820
|
+
*/
|
|
3821
|
+
matchLocationFromProjectLocationProjectDataProfileName(projectLocationProjectDataProfileName) {
|
|
3822
|
+
return this.pathTemplates.projectLocationProjectDataProfilePathTemplate.match(projectLocationProjectDataProfileName).location;
|
|
3823
|
+
}
|
|
3824
|
+
/**
|
|
3825
|
+
* Parse the project_data_profile from ProjectLocationProjectDataProfile resource.
|
|
3826
|
+
*
|
|
3827
|
+
* @param {string} projectLocationProjectDataProfileName
|
|
3828
|
+
* A fully-qualified path representing project_location_project_data_profile resource.
|
|
3829
|
+
* @returns {string} A string representing the project_data_profile.
|
|
3830
|
+
*/
|
|
3831
|
+
matchProjectDataProfileFromProjectLocationProjectDataProfileName(projectLocationProjectDataProfileName) {
|
|
3832
|
+
return this.pathTemplates.projectLocationProjectDataProfilePathTemplate.match(projectLocationProjectDataProfileName).project_data_profile;
|
|
3833
|
+
}
|
|
2888
3834
|
/**
|
|
2889
3835
|
* Return a fully-qualified projectLocationStoredInfoType resource name string.
|
|
2890
3836
|
*
|
|
@@ -2930,6 +3876,51 @@ class DlpServiceClient {
|
|
|
2930
3876
|
matchStoredInfoTypeFromProjectLocationStoredInfoTypeName(projectLocationStoredInfoTypeName) {
|
|
2931
3877
|
return this.pathTemplates.projectLocationStoredInfoTypePathTemplate.match(projectLocationStoredInfoTypeName).stored_info_type;
|
|
2932
3878
|
}
|
|
3879
|
+
/**
|
|
3880
|
+
* Return a fully-qualified projectLocationTableDataProfile resource name string.
|
|
3881
|
+
*
|
|
3882
|
+
* @param {string} project
|
|
3883
|
+
* @param {string} location
|
|
3884
|
+
* @param {string} table_data_profile
|
|
3885
|
+
* @returns {string} Resource name string.
|
|
3886
|
+
*/
|
|
3887
|
+
projectLocationTableDataProfilePath(project, location, tableDataProfile) {
|
|
3888
|
+
return this.pathTemplates.projectLocationTableDataProfilePathTemplate.render({
|
|
3889
|
+
project: project,
|
|
3890
|
+
location: location,
|
|
3891
|
+
table_data_profile: tableDataProfile,
|
|
3892
|
+
});
|
|
3893
|
+
}
|
|
3894
|
+
/**
|
|
3895
|
+
* Parse the project from ProjectLocationTableDataProfile resource.
|
|
3896
|
+
*
|
|
3897
|
+
* @param {string} projectLocationTableDataProfileName
|
|
3898
|
+
* A fully-qualified path representing project_location_table_data_profile resource.
|
|
3899
|
+
* @returns {string} A string representing the project.
|
|
3900
|
+
*/
|
|
3901
|
+
matchProjectFromProjectLocationTableDataProfileName(projectLocationTableDataProfileName) {
|
|
3902
|
+
return this.pathTemplates.projectLocationTableDataProfilePathTemplate.match(projectLocationTableDataProfileName).project;
|
|
3903
|
+
}
|
|
3904
|
+
/**
|
|
3905
|
+
* Parse the location from ProjectLocationTableDataProfile resource.
|
|
3906
|
+
*
|
|
3907
|
+
* @param {string} projectLocationTableDataProfileName
|
|
3908
|
+
* A fully-qualified path representing project_location_table_data_profile resource.
|
|
3909
|
+
* @returns {string} A string representing the location.
|
|
3910
|
+
*/
|
|
3911
|
+
matchLocationFromProjectLocationTableDataProfileName(projectLocationTableDataProfileName) {
|
|
3912
|
+
return this.pathTemplates.projectLocationTableDataProfilePathTemplate.match(projectLocationTableDataProfileName).location;
|
|
3913
|
+
}
|
|
3914
|
+
/**
|
|
3915
|
+
* Parse the table_data_profile from ProjectLocationTableDataProfile resource.
|
|
3916
|
+
*
|
|
3917
|
+
* @param {string} projectLocationTableDataProfileName
|
|
3918
|
+
* A fully-qualified path representing project_location_table_data_profile resource.
|
|
3919
|
+
* @returns {string} A string representing the table_data_profile.
|
|
3920
|
+
*/
|
|
3921
|
+
matchTableDataProfileFromProjectLocationTableDataProfileName(projectLocationTableDataProfileName) {
|
|
3922
|
+
return this.pathTemplates.projectLocationTableDataProfilePathTemplate.match(projectLocationTableDataProfileName).table_data_profile;
|
|
3923
|
+
}
|
|
2933
3924
|
/**
|
|
2934
3925
|
* Return a fully-qualified projectStoredInfoType resource name string.
|
|
2935
3926
|
*
|