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