@google-cloud/dlp 5.2.0 → 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.
@@ -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/dlp/docs/.
38
+ * https://cloud.google.com/sensitive-data-protection/docs/.
39
39
  * @class
40
40
  * @memberof v2
41
41
  */
@@ -160,9 +160,13 @@ class DlpServiceClient {
160
160
  organizationPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}'),
161
161
  organizationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/deidentifyTemplates/{deidentify_template}'),
162
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}'),
163
165
  organizationLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
164
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}'),
165
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}'),
166
170
  organizationStoredInfoTypePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/storedInfoTypes/{stored_info_type}'),
167
171
  projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'),
168
172
  projectDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/deidentifyTemplates/{deidentify_template}'),
@@ -170,11 +174,14 @@ class DlpServiceClient {
170
174
  projectDlpJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/dlpJobs/{dlp_job}'),
171
175
  projectInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/inspectTemplates/{inspect_template}'),
172
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}'),
173
178
  projectLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
174
179
  projectLocationDlpJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dlpJobs/{dlp_job}'),
175
180
  projectLocationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/inspectTemplates/{inspect_template}'),
176
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}'),
177
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}'),
178
185
  projectStoredInfoTypePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/storedInfoTypes/{stored_info_type}'),
179
186
  };
180
187
  // Some of the methods on this service return "paged" results,
@@ -187,6 +194,9 @@ class DlpServiceClient {
187
194
  listDiscoveryConfigs: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'discoveryConfigs'),
188
195
  listDlpJobs: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'jobs'),
189
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'),
190
200
  };
191
201
  // Put together the default options sent with requests.
192
202
  this._defaults = this._gaxGrpc.constructSettings('google.privacy.dlp.v2.DlpService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
@@ -259,6 +269,12 @@ class DlpServiceClient {
259
269
  'getStoredInfoType',
260
270
  'listStoredInfoTypes',
261
271
  'deleteStoredInfoType',
272
+ 'listProjectDataProfiles',
273
+ 'listTableDataProfiles',
274
+ 'listColumnDataProfiles',
275
+ 'getProjectDataProfile',
276
+ 'getTableDataProfile',
277
+ 'getColumnDataProfile',
262
278
  'hybridInspectDlpJob',
263
279
  'finishDlpJob',
264
280
  ];
@@ -989,6 +1005,69 @@ class DlpServiceClient {
989
1005
  this.initialize();
990
1006
  return this.innerApiCalls.deleteStoredInfoType(request, options, callback);
991
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
+ }
992
1071
  hybridInspectDlpJob(request, optionsOrCallback, callback) {
993
1072
  var _a;
994
1073
  request = request || {};
@@ -1061,7 +1140,7 @@ class DlpServiceClient {
1061
1140
  *
1062
1141
  * The format of this value varies depending on the scope of the request
1063
1142
  * (project or organization) and whether you have [specified a processing
1064
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1143
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1065
1144
  *
1066
1145
  * + Projects scope, location specified:<br/>
1067
1146
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1136,7 +1215,7 @@ class DlpServiceClient {
1136
1215
  *
1137
1216
  * The format of this value varies depending on the scope of the request
1138
1217
  * (project or organization) and whether you have [specified a processing
1139
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1218
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1140
1219
  *
1141
1220
  * + Projects scope, location specified:<br/>
1142
1221
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1231,7 +1310,7 @@ class DlpServiceClient {
1231
1310
  *
1232
1311
  * The format of this value varies depending on the scope of the request
1233
1312
  * (project or organization) and whether you have [specified a processing
1234
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1313
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1235
1314
  *
1236
1315
  * + Projects scope, location specified:<br/>
1237
1316
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1306,7 +1385,7 @@ class DlpServiceClient {
1306
1385
  *
1307
1386
  * The format of this value varies depending on the scope of the request
1308
1387
  * (project or organization) and whether you have [specified a processing
1309
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1388
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1310
1389
  *
1311
1390
  * + Projects scope, location specified:<br/>
1312
1391
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1401,7 +1480,7 @@ class DlpServiceClient {
1401
1480
  *
1402
1481
  * The format of this value varies depending on whether you have [specified a
1403
1482
  * processing
1404
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1483
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1405
1484
  *
1406
1485
  * + Projects scope, location specified:<br/>
1407
1486
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1501,7 +1580,7 @@ class DlpServiceClient {
1501
1580
  *
1502
1581
  * The format of this value varies depending on whether you have [specified a
1503
1582
  * processing
1504
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1583
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1505
1584
  *
1506
1585
  * + Projects scope, location specified:<br/>
1507
1586
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1765,7 +1844,7 @@ class DlpServiceClient {
1765
1844
  *
1766
1845
  * The format of this value varies depending on whether you have [specified a
1767
1846
  * processing
1768
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1847
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1769
1848
  *
1770
1849
  * + Projects scope, location specified:<br/>
1771
1850
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1865,7 +1944,7 @@ class DlpServiceClient {
1865
1944
  *
1866
1945
  * The format of this value varies depending on whether you have [specified a
1867
1946
  * processing
1868
- * location](https://cloud.google.com/dlp/docs/specifying-location):
1947
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1869
1948
  *
1870
1949
  * + Projects scope, location specified:<br/>
1871
1950
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1985,7 +2064,7 @@ class DlpServiceClient {
1985
2064
  *
1986
2065
  * The format of this value varies depending on the scope of the request
1987
2066
  * (project or organization) and whether you have [specified a processing
1988
- * location](https://cloud.google.com/dlp/docs/specifying-location):
2067
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1989
2068
  *
1990
2069
  * + Projects scope, location specified:<br/>
1991
2070
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2057,7 +2136,7 @@ class DlpServiceClient {
2057
2136
  *
2058
2137
  * The format of this value varies depending on the scope of the request
2059
2138
  * (project or organization) and whether you have [specified a processing
2060
- * location](https://cloud.google.com/dlp/docs/specifying-location):
2139
+ * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2061
2140
  *
2062
2141
  * + Projects scope, location specified:<br/>
2063
2142
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2119,108 +2198,690 @@ class DlpServiceClient {
2119
2198
  this.initialize();
2120
2199
  return this.descriptors.page.listStoredInfoTypes.asyncIterate(this.innerApiCalls['listStoredInfoTypes'], request, callSettings);
2121
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
+ }
2122
2222
  /**
2123
- * Gets information about a location.
2124
- *
2223
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2125
2224
  * @param {Object} request
2126
2225
  * The request object that will be sent.
2127
- * @param {string} request.name
2128
- * Resource name for the location.
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.
2129
2272
  * @param {object} [options]
2130
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html | CallOptions} for more details.
2131
- * @returns {Promise} - The promise which resolves to an array.
2132
- * The first element of the array is an object representing {@link google.cloud.location.Location | Location}.
2133
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
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 }
2134
2281
  * for more details and examples.
2135
- * @example
2136
- * ```
2137
- * const [response] = await client.getLocation(request);
2138
- * ```
2139
2282
  */
2140
- getLocation(request, options, callback) {
2141
- return this.locationsClient.getLocation(request, options, callback);
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);
2142
2297
  }
2143
2298
  /**
2144
- * Lists information about the supported locations for this service. Returns an iterable object.
2299
+ * Equivalent to `listProjectDataProfiles`, but returns an iterable object.
2145
2300
  *
2146
2301
  * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2147
2302
  * @param {Object} request
2148
2303
  * The request object that will be sent.
2149
- * @param {string} request.name
2150
- * The resource that owns the locations collection, if applicable.
2151
- * @param {string} request.filter
2152
- * The standard list filter.
2153
- * @param {number} request.pageSize
2154
- * The standard list page size.
2304
+ * @param {string} request.parent
2305
+ * Required. organizations/{org_id}/locations/{loc_id}
2155
2306
  * @param {string} request.pageToken
2156
- * The standard list page token.
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.
2157
2350
  * @param {object} [options]
2158
2351
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2159
2352
  * @returns {Object}
2160
2353
  * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2161
2354
  * When you iterate the returned iterable, each element will be an object representing
2162
- * {@link google.cloud.location.Location | Location}. The API will be called under the hood as needed, once per the page,
2355
+ * {@link protos.google.privacy.dlp.v2.ProjectDataProfile|ProjectDataProfile}. The API will be called under the hood as needed, once per the page,
2163
2356
  * so you can stop the iteration when you don't need more results.
2164
2357
  * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2165
2358
  * 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
- * ```
2359
+ * @example <caption>include:samples/generated/v2/dlp_service.list_project_data_profiles.js</caption>
2360
+ * region_tag:dlp_v2_generated_DlpService_ListProjectDataProfiles_async
2173
2361
  */
2174
- listLocationsAsync(request, options) {
2175
- return this.locationsClient.listLocationsAsync(request, options);
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);
2176
2376
  }
2177
- // --------------------
2178
- // -- Path templates --
2179
- // --------------------
2180
- /**
2181
- * Return a fully-qualified discoveryConfig resource name string.
2182
- *
2183
- * @param {string} project
2184
- * @param {string} location
2185
- * @param {string} discovery_config
2186
- * @returns {string} Resource name string.
2187
- */
2188
- discoveryConfigPath(project, location, discoveryConfig) {
2189
- return this.pathTemplates.discoveryConfigPathTemplate.render({
2190
- project: project,
2191
- location: location,
2192
- discovery_config: discoveryConfig,
2193
- });
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);
2194
2397
  }
2195
2398
  /**
2196
- * Parse the project from DiscoveryConfig resource.
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.
2197
2416
  *
2198
- * @param {string} discoveryConfigName
2199
- * A fully-qualified path representing DiscoveryConfig resource.
2200
- * @returns {string} A string representing the project.
2201
- */
2202
- matchProjectFromDiscoveryConfigName(discoveryConfigName) {
2203
- return this.pathTemplates.discoveryConfigPathTemplate.match(discoveryConfigName).project;
2204
- }
2205
- /**
2206
- * Parse the location from DiscoveryConfig resource.
2417
+ * Examples:
2418
+ * * `project_id asc`
2419
+ * * `table_id`
2420
+ * * `sensitivity_level desc`
2207
2421
  *
2208
- * @param {string} discoveryConfigName
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.
2422
+ * Supported fields are:
2217
2423
  *
2218
- * @param {string} discoveryConfigName
2219
- * A fully-qualified path representing DiscoveryConfig resource.
2220
- * @returns {string} A string representing the discovery_config.
2221
- */
2222
- matchDiscoveryConfigFromDiscoveryConfigName(discoveryConfigName) {
2223
- return this.pathTemplates.discoveryConfigPathTemplate.match(discoveryConfigName).discovery_config;
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
+ /**
2877
+ * Parse the discovery_config from DiscoveryConfig resource.
2878
+ *
2879
+ * @param {string} discoveryConfigName
2880
+ * A fully-qualified path representing DiscoveryConfig resource.
2881
+ * @returns {string} A string representing the discovery_config.
2882
+ */
2883
+ matchDiscoveryConfigFromDiscoveryConfigName(discoveryConfigName) {
2884
+ return this.pathTemplates.discoveryConfigPathTemplate.match(discoveryConfigName).discovery_config;
2224
2885
  }
2225
2886
  /**
2226
2887
  * Return a fully-qualified finding resource name string.
@@ -2388,6 +3049,84 @@ class DlpServiceClient {
2388
3049
  matchInspectTemplateFromOrganizationInspectTemplateName(organizationInspectTemplateName) {
2389
3050
  return this.pathTemplates.organizationInspectTemplatePathTemplate.match(organizationInspectTemplateName).inspect_template;
2390
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
+ }
2391
3130
  /**
2392
3131
  * Return a fully-qualified organizationLocationDeidentifyTemplate resource name string.
2393
3132
  *
@@ -2478,6 +3217,51 @@ class DlpServiceClient {
2478
3217
  matchInspectTemplateFromOrganizationLocationInspectTemplateName(organizationLocationInspectTemplateName) {
2479
3218
  return this.pathTemplates.organizationLocationInspectTemplatePathTemplate.match(organizationLocationInspectTemplateName).inspect_template;
2480
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
+ }
2481
3265
  /**
2482
3266
  * Return a fully-qualified organizationLocationStoredInfoType resource name string.
2483
3267
  *
@@ -2523,6 +3307,51 @@ class DlpServiceClient {
2523
3307
  matchStoredInfoTypeFromOrganizationLocationStoredInfoTypeName(organizationLocationStoredInfoTypeName) {
2524
3308
  return this.pathTemplates.organizationLocationStoredInfoTypePathTemplate.match(organizationLocationStoredInfoTypeName).stored_info_type;
2525
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
+ }
2526
3355
  /**
2527
3356
  * Return a fully-qualified organizationStoredInfoType resource name string.
2528
3357
  *
@@ -2732,6 +3561,51 @@ class DlpServiceClient {
2732
3561
  matchJobTriggerFromProjectJobTriggerName(projectJobTriggerName) {
2733
3562
  return this.pathTemplates.projectJobTriggerPathTemplate.match(projectJobTriggerName).job_trigger;
2734
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
+ }
2735
3609
  /**
2736
3610
  * Return a fully-qualified projectLocationDeidentifyTemplate resource name string.
2737
3611
  *
@@ -2912,6 +3786,51 @@ class DlpServiceClient {
2912
3786
  matchJobTriggerFromProjectLocationJobTriggerName(projectLocationJobTriggerName) {
2913
3787
  return this.pathTemplates.projectLocationJobTriggerPathTemplate.match(projectLocationJobTriggerName).job_trigger;
2914
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
+ }
2915
3834
  /**
2916
3835
  * Return a fully-qualified projectLocationStoredInfoType resource name string.
2917
3836
  *
@@ -2957,6 +3876,51 @@ class DlpServiceClient {
2957
3876
  matchStoredInfoTypeFromProjectLocationStoredInfoTypeName(projectLocationStoredInfoTypeName) {
2958
3877
  return this.pathTemplates.projectLocationStoredInfoTypePathTemplate.match(projectLocationStoredInfoTypeName).stored_info_type;
2959
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
+ }
2960
3924
  /**
2961
3925
  * Return a fully-qualified projectStoredInfoType resource name string.
2962
3926
  *