@google-cloud/dlp 3.1.7 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +1 -1
- package/build/protos/google/privacy/dlp/v2/dlp.proto +83 -43
- package/build/protos/google/privacy/dlp/v2/storage.proto +23 -18
- package/build/protos/protos.d.ts +126 -2
- package/build/protos/protos.js +383 -3
- package/build/protos/protos.json +110 -28
- package/build/src/v2/dlp_service_client.d.ts +1300 -44
- package/build/src/v2/dlp_service_client.js +86 -1361
- package/build/src/v2/dlp_service_client.js.map +1 -1
- package/package.json +4 -4
|
@@ -109,98 +109,1125 @@ export declare class DlpServiceClient {
|
|
|
109
109
|
static get scopes(): string[];
|
|
110
110
|
getProjectId(): Promise<string>;
|
|
111
111
|
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
112
|
+
/**
|
|
113
|
+
* Finds potentially sensitive info in content.
|
|
114
|
+
* This method has limits on input size, processing time, and output size.
|
|
115
|
+
*
|
|
116
|
+
* When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
117
|
+
* system will automatically choose what detectors to run. By default this may
|
|
118
|
+
* be all types, but may change over time as detectors are updated.
|
|
119
|
+
*
|
|
120
|
+
* For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
|
|
121
|
+
* and https://cloud.google.com/dlp/docs/inspecting-text,
|
|
122
|
+
*
|
|
123
|
+
* @param {Object} request
|
|
124
|
+
* The request object that will be sent.
|
|
125
|
+
* @param {string} request.parent
|
|
126
|
+
* Parent resource name.
|
|
127
|
+
*
|
|
128
|
+
* The format of this value varies depending on whether you have [specified a
|
|
129
|
+
* processing
|
|
130
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
131
|
+
*
|
|
132
|
+
* + Projects scope, location specified:<br/>
|
|
133
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
134
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
135
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
136
|
+
*
|
|
137
|
+
* The following example `parent` string specifies a parent project with the
|
|
138
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
139
|
+
* for processing data:
|
|
140
|
+
*
|
|
141
|
+
* parent=projects/example-project/locations/europe-west3
|
|
142
|
+
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
143
|
+
* Configuration for the inspector. What specified here will override
|
|
144
|
+
* the template referenced by the inspect_template_name argument.
|
|
145
|
+
* @param {google.privacy.dlp.v2.ContentItem} request.item
|
|
146
|
+
* The item to inspect.
|
|
147
|
+
* @param {string} request.inspectTemplateName
|
|
148
|
+
* Template to use. Any configuration directly specified in
|
|
149
|
+
* inspect_config will override those set in the template. Singular fields
|
|
150
|
+
* that are set in this request will replace their corresponding fields in the
|
|
151
|
+
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
152
|
+
* are recursively merged.
|
|
153
|
+
* @param {string} request.locationId
|
|
154
|
+
* Deprecated. This field has no effect.
|
|
155
|
+
* @param {object} [options]
|
|
156
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
157
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
158
|
+
* The first element of the array is an object representing [InspectContentResponse]{@link google.privacy.dlp.v2.InspectContentResponse}.
|
|
159
|
+
* Please see the
|
|
160
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
161
|
+
* for more details and examples.
|
|
162
|
+
* @example <caption>include:samples/generated/v2/dlp_service.inspect_content.js</caption>
|
|
163
|
+
* region_tag:dlp_v2_generated_DlpService_InspectContent_async
|
|
164
|
+
*/
|
|
112
165
|
inspectContent(request?: protos.google.privacy.dlp.v2.IInspectContentRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IInspectContentResponse, protos.google.privacy.dlp.v2.IInspectContentRequest | undefined, {} | undefined]>;
|
|
113
166
|
inspectContent(request: protos.google.privacy.dlp.v2.IInspectContentRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IInspectContentResponse, protos.google.privacy.dlp.v2.IInspectContentRequest | null | undefined, {} | null | undefined>): void;
|
|
114
167
|
inspectContent(request: protos.google.privacy.dlp.v2.IInspectContentRequest, callback: Callback<protos.google.privacy.dlp.v2.IInspectContentResponse, protos.google.privacy.dlp.v2.IInspectContentRequest | null | undefined, {} | null | undefined>): void;
|
|
168
|
+
/**
|
|
169
|
+
* Redacts potentially sensitive info from an image.
|
|
170
|
+
* This method has limits on input size, processing time, and output size.
|
|
171
|
+
* See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
|
|
172
|
+
* learn more.
|
|
173
|
+
*
|
|
174
|
+
* When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
175
|
+
* system will automatically choose what detectors to run. By default this may
|
|
176
|
+
* be all types, but may change over time as detectors are updated.
|
|
177
|
+
*
|
|
178
|
+
* @param {Object} request
|
|
179
|
+
* The request object that will be sent.
|
|
180
|
+
* @param {string} request.parent
|
|
181
|
+
* Parent resource name.
|
|
182
|
+
*
|
|
183
|
+
* The format of this value varies depending on whether you have [specified a
|
|
184
|
+
* processing
|
|
185
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
186
|
+
*
|
|
187
|
+
* + Projects scope, location specified:<br/>
|
|
188
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
189
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
190
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
191
|
+
*
|
|
192
|
+
* The following example `parent` string specifies a parent project with the
|
|
193
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
194
|
+
* for processing data:
|
|
195
|
+
*
|
|
196
|
+
* parent=projects/example-project/locations/europe-west3
|
|
197
|
+
* @param {string} request.locationId
|
|
198
|
+
* Deprecated. This field has no effect.
|
|
199
|
+
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
200
|
+
* Configuration for the inspector.
|
|
201
|
+
* @param {number[]} request.imageRedactionConfigs
|
|
202
|
+
* The configuration for specifying what content to redact from images.
|
|
203
|
+
* @param {boolean} request.includeFindings
|
|
204
|
+
* Whether the response should include findings along with the redacted
|
|
205
|
+
* image.
|
|
206
|
+
* @param {google.privacy.dlp.v2.ByteContentItem} request.byteItem
|
|
207
|
+
* The content must be PNG, JPEG, SVG or BMP.
|
|
208
|
+
* @param {object} [options]
|
|
209
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
210
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
211
|
+
* The first element of the array is an object representing [RedactImageResponse]{@link google.privacy.dlp.v2.RedactImageResponse}.
|
|
212
|
+
* Please see the
|
|
213
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
214
|
+
* for more details and examples.
|
|
215
|
+
* @example <caption>include:samples/generated/v2/dlp_service.redact_image.js</caption>
|
|
216
|
+
* region_tag:dlp_v2_generated_DlpService_RedactImage_async
|
|
217
|
+
*/
|
|
115
218
|
redactImage(request?: protos.google.privacy.dlp.v2.IRedactImageRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IRedactImageResponse, protos.google.privacy.dlp.v2.IRedactImageRequest | undefined, {} | undefined]>;
|
|
116
219
|
redactImage(request: protos.google.privacy.dlp.v2.IRedactImageRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IRedactImageResponse, protos.google.privacy.dlp.v2.IRedactImageRequest | null | undefined, {} | null | undefined>): void;
|
|
117
220
|
redactImage(request: protos.google.privacy.dlp.v2.IRedactImageRequest, callback: Callback<protos.google.privacy.dlp.v2.IRedactImageResponse, protos.google.privacy.dlp.v2.IRedactImageRequest | null | undefined, {} | null | undefined>): void;
|
|
221
|
+
/**
|
|
222
|
+
* De-identifies potentially sensitive info from a ContentItem.
|
|
223
|
+
* This method has limits on input size and output size.
|
|
224
|
+
* See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
|
|
225
|
+
* learn more.
|
|
226
|
+
*
|
|
227
|
+
* When no InfoTypes or CustomInfoTypes are specified in this request, the
|
|
228
|
+
* system will automatically choose what detectors to run. By default this may
|
|
229
|
+
* be all types, but may change over time as detectors are updated.
|
|
230
|
+
*
|
|
231
|
+
* @param {Object} request
|
|
232
|
+
* The request object that will be sent.
|
|
233
|
+
* @param {string} request.parent
|
|
234
|
+
* Parent resource name.
|
|
235
|
+
*
|
|
236
|
+
* The format of this value varies depending on whether you have [specified a
|
|
237
|
+
* processing
|
|
238
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
239
|
+
*
|
|
240
|
+
* + Projects scope, location specified:<br/>
|
|
241
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
242
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
243
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
244
|
+
*
|
|
245
|
+
* The following example `parent` string specifies a parent project with the
|
|
246
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
247
|
+
* for processing data:
|
|
248
|
+
*
|
|
249
|
+
* parent=projects/example-project/locations/europe-west3
|
|
250
|
+
* @param {google.privacy.dlp.v2.DeidentifyConfig} request.deidentifyConfig
|
|
251
|
+
* Configuration for the de-identification of the content item.
|
|
252
|
+
* Items specified here will override the template referenced by the
|
|
253
|
+
* deidentify_template_name argument.
|
|
254
|
+
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
255
|
+
* Configuration for the inspector.
|
|
256
|
+
* Items specified here will override the template referenced by the
|
|
257
|
+
* inspect_template_name argument.
|
|
258
|
+
* @param {google.privacy.dlp.v2.ContentItem} request.item
|
|
259
|
+
* The item to de-identify. Will be treated as text.
|
|
260
|
+
* @param {string} request.inspectTemplateName
|
|
261
|
+
* Template to use. Any configuration directly specified in
|
|
262
|
+
* inspect_config will override those set in the template. Singular fields
|
|
263
|
+
* that are set in this request will replace their corresponding fields in the
|
|
264
|
+
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
265
|
+
* are recursively merged.
|
|
266
|
+
* @param {string} request.deidentifyTemplateName
|
|
267
|
+
* Template to use. Any configuration directly specified in
|
|
268
|
+
* deidentify_config will override those set in the template. Singular fields
|
|
269
|
+
* that are set in this request will replace their corresponding fields in the
|
|
270
|
+
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
271
|
+
* are recursively merged.
|
|
272
|
+
* @param {string} request.locationId
|
|
273
|
+
* Deprecated. This field has no effect.
|
|
274
|
+
* @param {object} [options]
|
|
275
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
276
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
277
|
+
* The first element of the array is an object representing [DeidentifyContentResponse]{@link google.privacy.dlp.v2.DeidentifyContentResponse}.
|
|
278
|
+
* Please see the
|
|
279
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
280
|
+
* for more details and examples.
|
|
281
|
+
* @example <caption>include:samples/generated/v2/dlp_service.deidentify_content.js</caption>
|
|
282
|
+
* region_tag:dlp_v2_generated_DlpService_DeidentifyContent_async
|
|
283
|
+
*/
|
|
118
284
|
deidentifyContent(request?: protos.google.privacy.dlp.v2.IDeidentifyContentRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDeidentifyContentResponse, protos.google.privacy.dlp.v2.IDeidentifyContentRequest | undefined, {} | undefined]>;
|
|
119
285
|
deidentifyContent(request: protos.google.privacy.dlp.v2.IDeidentifyContentRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyContentResponse, protos.google.privacy.dlp.v2.IDeidentifyContentRequest | null | undefined, {} | null | undefined>): void;
|
|
120
286
|
deidentifyContent(request: protos.google.privacy.dlp.v2.IDeidentifyContentRequest, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyContentResponse, protos.google.privacy.dlp.v2.IDeidentifyContentRequest | null | undefined, {} | null | undefined>): void;
|
|
287
|
+
/**
|
|
288
|
+
* Re-identifies content that has been de-identified.
|
|
289
|
+
* See
|
|
290
|
+
* https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
|
|
291
|
+
* to learn more.
|
|
292
|
+
*
|
|
293
|
+
* @param {Object} request
|
|
294
|
+
* The request object that will be sent.
|
|
295
|
+
* @param {string} request.parent
|
|
296
|
+
* Required. Parent resource name.
|
|
297
|
+
*
|
|
298
|
+
* The format of this value varies depending on whether you have [specified a
|
|
299
|
+
* processing
|
|
300
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
301
|
+
*
|
|
302
|
+
* + Projects scope, location specified:<br/>
|
|
303
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
304
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
305
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
306
|
+
*
|
|
307
|
+
* The following example `parent` string specifies a parent project with the
|
|
308
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
309
|
+
* for processing data:
|
|
310
|
+
*
|
|
311
|
+
* parent=projects/example-project/locations/europe-west3
|
|
312
|
+
* @param {google.privacy.dlp.v2.DeidentifyConfig} request.reidentifyConfig
|
|
313
|
+
* Configuration for the re-identification of the content item.
|
|
314
|
+
* This field shares the same proto message type that is used for
|
|
315
|
+
* de-identification, however its usage here is for the reversal of the
|
|
316
|
+
* previous de-identification. Re-identification is performed by examining
|
|
317
|
+
* the transformations used to de-identify the items and executing the
|
|
318
|
+
* reverse. This requires that only reversible transformations
|
|
319
|
+
* be provided here. The reversible transformations are:
|
|
320
|
+
*
|
|
321
|
+
* - `CryptoDeterministicConfig`
|
|
322
|
+
* - `CryptoReplaceFfxFpeConfig`
|
|
323
|
+
* @param {google.privacy.dlp.v2.InspectConfig} request.inspectConfig
|
|
324
|
+
* Configuration for the inspector.
|
|
325
|
+
* @param {google.privacy.dlp.v2.ContentItem} request.item
|
|
326
|
+
* The item to re-identify. Will be treated as text.
|
|
327
|
+
* @param {string} request.inspectTemplateName
|
|
328
|
+
* Template to use. Any configuration directly specified in
|
|
329
|
+
* `inspect_config` will override those set in the template. Singular fields
|
|
330
|
+
* that are set in this request will replace their corresponding fields in the
|
|
331
|
+
* template. Repeated fields are appended. Singular sub-messages and groups
|
|
332
|
+
* are recursively merged.
|
|
333
|
+
* @param {string} request.reidentifyTemplateName
|
|
334
|
+
* Template to use. References an instance of `DeidentifyTemplate`.
|
|
335
|
+
* Any configuration directly specified in `reidentify_config` or
|
|
336
|
+
* `inspect_config` will override those set in the template. The
|
|
337
|
+
* `DeidentifyTemplate` used must include only reversible transformations.
|
|
338
|
+
* Singular fields that are set in this request will replace their
|
|
339
|
+
* corresponding fields in the template. Repeated fields are appended.
|
|
340
|
+
* Singular sub-messages and groups are recursively merged.
|
|
341
|
+
* @param {string} request.locationId
|
|
342
|
+
* Deprecated. This field has no effect.
|
|
343
|
+
* @param {object} [options]
|
|
344
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
345
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
346
|
+
* The first element of the array is an object representing [ReidentifyContentResponse]{@link google.privacy.dlp.v2.ReidentifyContentResponse}.
|
|
347
|
+
* Please see the
|
|
348
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
349
|
+
* for more details and examples.
|
|
350
|
+
* @example <caption>include:samples/generated/v2/dlp_service.reidentify_content.js</caption>
|
|
351
|
+
* region_tag:dlp_v2_generated_DlpService_ReidentifyContent_async
|
|
352
|
+
*/
|
|
121
353
|
reidentifyContent(request?: protos.google.privacy.dlp.v2.IReidentifyContentRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IReidentifyContentResponse, protos.google.privacy.dlp.v2.IReidentifyContentRequest | undefined, {} | undefined]>;
|
|
122
354
|
reidentifyContent(request: protos.google.privacy.dlp.v2.IReidentifyContentRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IReidentifyContentResponse, protos.google.privacy.dlp.v2.IReidentifyContentRequest | null | undefined, {} | null | undefined>): void;
|
|
123
355
|
reidentifyContent(request: protos.google.privacy.dlp.v2.IReidentifyContentRequest, callback: Callback<protos.google.privacy.dlp.v2.IReidentifyContentResponse, protos.google.privacy.dlp.v2.IReidentifyContentRequest | null | undefined, {} | null | undefined>): void;
|
|
356
|
+
/**
|
|
357
|
+
* Returns a list of the sensitive information types that the DLP API
|
|
358
|
+
* supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
|
|
359
|
+
* learn more.
|
|
360
|
+
*
|
|
361
|
+
* @param {Object} request
|
|
362
|
+
* The request object that will be sent.
|
|
363
|
+
* @param {string} request.parent
|
|
364
|
+
* The parent resource name.
|
|
365
|
+
*
|
|
366
|
+
* The format of this value is as follows:
|
|
367
|
+
*
|
|
368
|
+
* locations/<var>LOCATION_ID</var>
|
|
369
|
+
* @param {string} request.languageCode
|
|
370
|
+
* BCP-47 language code for localized infoType friendly
|
|
371
|
+
* names. If omitted, or if localized strings are not available,
|
|
372
|
+
* en-US strings will be returned.
|
|
373
|
+
* @param {string} request.filter
|
|
374
|
+
* filter to only return infoTypes supported by certain parts of the
|
|
375
|
+
* API. Defaults to supported_by=INSPECT.
|
|
376
|
+
* @param {string} request.locationId
|
|
377
|
+
* Deprecated. This field has no effect.
|
|
378
|
+
* @param {object} [options]
|
|
379
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
380
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
381
|
+
* The first element of the array is an object representing [ListInfoTypesResponse]{@link google.privacy.dlp.v2.ListInfoTypesResponse}.
|
|
382
|
+
* Please see the
|
|
383
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
384
|
+
* for more details and examples.
|
|
385
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_info_types.js</caption>
|
|
386
|
+
* region_tag:dlp_v2_generated_DlpService_ListInfoTypes_async
|
|
387
|
+
*/
|
|
124
388
|
listInfoTypes(request?: protos.google.privacy.dlp.v2.IListInfoTypesRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IListInfoTypesResponse, protos.google.privacy.dlp.v2.IListInfoTypesRequest | undefined, {} | undefined]>;
|
|
125
389
|
listInfoTypes(request: protos.google.privacy.dlp.v2.IListInfoTypesRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IListInfoTypesResponse, protos.google.privacy.dlp.v2.IListInfoTypesRequest | null | undefined, {} | null | undefined>): void;
|
|
126
390
|
listInfoTypes(request: protos.google.privacy.dlp.v2.IListInfoTypesRequest, callback: Callback<protos.google.privacy.dlp.v2.IListInfoTypesResponse, protos.google.privacy.dlp.v2.IListInfoTypesRequest | null | undefined, {} | null | undefined>): void;
|
|
391
|
+
/**
|
|
392
|
+
* Creates an InspectTemplate for re-using frequently used configuration
|
|
393
|
+
* for inspecting content, images, and storage.
|
|
394
|
+
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
395
|
+
*
|
|
396
|
+
* @param {Object} request
|
|
397
|
+
* The request object that will be sent.
|
|
398
|
+
* @param {string} request.parent
|
|
399
|
+
* Required. Parent resource name.
|
|
400
|
+
*
|
|
401
|
+
* The format of this value varies depending on the scope of the request
|
|
402
|
+
* (project or organization) and whether you have [specified a processing
|
|
403
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
404
|
+
*
|
|
405
|
+
* + Projects scope, location specified:<br/>
|
|
406
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
407
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
408
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
409
|
+
* + Organizations scope, location specified:<br/>
|
|
410
|
+
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
411
|
+
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
412
|
+
* `organizations/`<var>ORG_ID</var>
|
|
413
|
+
*
|
|
414
|
+
* The following example `parent` string specifies a parent project with the
|
|
415
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
416
|
+
* for processing data:
|
|
417
|
+
*
|
|
418
|
+
* parent=projects/example-project/locations/europe-west3
|
|
419
|
+
* @param {google.privacy.dlp.v2.InspectTemplate} request.inspectTemplate
|
|
420
|
+
* Required. The InspectTemplate to create.
|
|
421
|
+
* @param {string} request.templateId
|
|
422
|
+
* The template id can contain uppercase and lowercase letters,
|
|
423
|
+
* numbers, and hyphens; that is, it must match the regular
|
|
424
|
+
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
425
|
+
* characters. Can be empty to allow the system to generate one.
|
|
426
|
+
* @param {string} request.locationId
|
|
427
|
+
* Deprecated. This field has no effect.
|
|
428
|
+
* @param {object} [options]
|
|
429
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
430
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
431
|
+
* The first element of the array is an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
432
|
+
* Please see the
|
|
433
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
434
|
+
* for more details and examples.
|
|
435
|
+
* @example <caption>include:samples/generated/v2/dlp_service.create_inspect_template.js</caption>
|
|
436
|
+
* region_tag:dlp_v2_generated_DlpService_CreateInspectTemplate_async
|
|
437
|
+
*/
|
|
127
438
|
createInspectTemplate(request?: protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest | undefined, {} | undefined]>;
|
|
128
439
|
createInspectTemplate(request: protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
129
440
|
createInspectTemplate(request: protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest, callback: Callback<protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.ICreateInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
441
|
+
/**
|
|
442
|
+
* Updates the InspectTemplate.
|
|
443
|
+
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
444
|
+
*
|
|
445
|
+
* @param {Object} request
|
|
446
|
+
* The request object that will be sent.
|
|
447
|
+
* @param {string} request.name
|
|
448
|
+
* Required. Resource name of organization and inspectTemplate to be updated, for
|
|
449
|
+
* example `organizations/433245324/inspectTemplates/432452342` or
|
|
450
|
+
* projects/project-id/inspectTemplates/432452342.
|
|
451
|
+
* @param {google.privacy.dlp.v2.InspectTemplate} request.inspectTemplate
|
|
452
|
+
* New InspectTemplate value.
|
|
453
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
454
|
+
* Mask to control which fields get updated.
|
|
455
|
+
* @param {object} [options]
|
|
456
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
457
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
458
|
+
* The first element of the array is an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
459
|
+
* Please see the
|
|
460
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
461
|
+
* for more details and examples.
|
|
462
|
+
* @example <caption>include:samples/generated/v2/dlp_service.update_inspect_template.js</caption>
|
|
463
|
+
* region_tag:dlp_v2_generated_DlpService_UpdateInspectTemplate_async
|
|
464
|
+
*/
|
|
130
465
|
updateInspectTemplate(request?: protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest | undefined, {} | undefined]>;
|
|
131
466
|
updateInspectTemplate(request: protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
132
467
|
updateInspectTemplate(request: protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest, callback: Callback<protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IUpdateInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
468
|
+
/**
|
|
469
|
+
* Gets an InspectTemplate.
|
|
470
|
+
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
471
|
+
*
|
|
472
|
+
* @param {Object} request
|
|
473
|
+
* The request object that will be sent.
|
|
474
|
+
* @param {string} request.name
|
|
475
|
+
* Required. Resource name of the organization and inspectTemplate to be read, for
|
|
476
|
+
* example `organizations/433245324/inspectTemplates/432452342` or
|
|
477
|
+
* projects/project-id/inspectTemplates/432452342.
|
|
478
|
+
* @param {object} [options]
|
|
479
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
480
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
481
|
+
* The first element of the array is an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
482
|
+
* Please see the
|
|
483
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
484
|
+
* for more details and examples.
|
|
485
|
+
* @example <caption>include:samples/generated/v2/dlp_service.get_inspect_template.js</caption>
|
|
486
|
+
* region_tag:dlp_v2_generated_DlpService_GetInspectTemplate_async
|
|
487
|
+
*/
|
|
133
488
|
getInspectTemplate(request?: protos.google.privacy.dlp.v2.IGetInspectTemplateRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IGetInspectTemplateRequest | undefined, {} | undefined]>;
|
|
134
489
|
getInspectTemplate(request: protos.google.privacy.dlp.v2.IGetInspectTemplateRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IGetInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
135
490
|
getInspectTemplate(request: protos.google.privacy.dlp.v2.IGetInspectTemplateRequest, callback: Callback<protos.google.privacy.dlp.v2.IInspectTemplate, protos.google.privacy.dlp.v2.IGetInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
491
|
+
/**
|
|
492
|
+
* Deletes an InspectTemplate.
|
|
493
|
+
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
494
|
+
*
|
|
495
|
+
* @param {Object} request
|
|
496
|
+
* The request object that will be sent.
|
|
497
|
+
* @param {string} request.name
|
|
498
|
+
* Required. Resource name of the organization and inspectTemplate to be deleted, for
|
|
499
|
+
* example `organizations/433245324/inspectTemplates/432452342` or
|
|
500
|
+
* projects/project-id/inspectTemplates/432452342.
|
|
501
|
+
* @param {object} [options]
|
|
502
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
503
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
504
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
505
|
+
* Please see the
|
|
506
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
507
|
+
* for more details and examples.
|
|
508
|
+
* @example <caption>include:samples/generated/v2/dlp_service.delete_inspect_template.js</caption>
|
|
509
|
+
* region_tag:dlp_v2_generated_DlpService_DeleteInspectTemplate_async
|
|
510
|
+
*/
|
|
136
511
|
deleteInspectTemplate(request?: protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest | undefined, {} | undefined]>;
|
|
137
512
|
deleteInspectTemplate(request: protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
138
513
|
deleteInspectTemplate(request: protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteInspectTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
514
|
+
/**
|
|
515
|
+
* Creates a DeidentifyTemplate for re-using frequently used configuration
|
|
516
|
+
* for de-identifying content, images, and storage.
|
|
517
|
+
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
518
|
+
* more.
|
|
519
|
+
*
|
|
520
|
+
* @param {Object} request
|
|
521
|
+
* The request object that will be sent.
|
|
522
|
+
* @param {string} request.parent
|
|
523
|
+
* Required. Parent resource name.
|
|
524
|
+
*
|
|
525
|
+
* The format of this value varies depending on the scope of the request
|
|
526
|
+
* (project or organization) and whether you have [specified a processing
|
|
527
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
528
|
+
*
|
|
529
|
+
* + Projects scope, location specified:<br/>
|
|
530
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
531
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
532
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
533
|
+
* + Organizations scope, location specified:<br/>
|
|
534
|
+
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
535
|
+
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
536
|
+
* `organizations/`<var>ORG_ID</var>
|
|
537
|
+
*
|
|
538
|
+
* The following example `parent` string specifies a parent project with the
|
|
539
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
540
|
+
* for processing data:
|
|
541
|
+
*
|
|
542
|
+
* parent=projects/example-project/locations/europe-west3
|
|
543
|
+
* @param {google.privacy.dlp.v2.DeidentifyTemplate} request.deidentifyTemplate
|
|
544
|
+
* Required. The DeidentifyTemplate to create.
|
|
545
|
+
* @param {string} request.templateId
|
|
546
|
+
* The template id can contain uppercase and lowercase letters,
|
|
547
|
+
* numbers, and hyphens; that is, it must match the regular
|
|
548
|
+
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
549
|
+
* characters. Can be empty to allow the system to generate one.
|
|
550
|
+
* @param {string} request.locationId
|
|
551
|
+
* Deprecated. This field has no effect.
|
|
552
|
+
* @param {object} [options]
|
|
553
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
554
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
555
|
+
* The first element of the array is an object representing [DeidentifyTemplate]{@link google.privacy.dlp.v2.DeidentifyTemplate}.
|
|
556
|
+
* Please see the
|
|
557
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
558
|
+
* for more details and examples.
|
|
559
|
+
* @example <caption>include:samples/generated/v2/dlp_service.create_deidentify_template.js</caption>
|
|
560
|
+
* region_tag:dlp_v2_generated_DlpService_CreateDeidentifyTemplate_async
|
|
561
|
+
*/
|
|
139
562
|
createDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest | undefined, {} | undefined]>;
|
|
140
563
|
createDeidentifyTemplate(request: protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
141
564
|
createDeidentifyTemplate(request: protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.ICreateDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
565
|
+
/**
|
|
566
|
+
* Updates the DeidentifyTemplate.
|
|
567
|
+
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
568
|
+
* more.
|
|
569
|
+
*
|
|
570
|
+
* @param {Object} request
|
|
571
|
+
* The request object that will be sent.
|
|
572
|
+
* @param {string} request.name
|
|
573
|
+
* Required. Resource name of organization and deidentify template to be updated, for
|
|
574
|
+
* example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
575
|
+
* projects/project-id/deidentifyTemplates/432452342.
|
|
576
|
+
* @param {google.privacy.dlp.v2.DeidentifyTemplate} request.deidentifyTemplate
|
|
577
|
+
* New DeidentifyTemplate value.
|
|
578
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
579
|
+
* Mask to control which fields get updated.
|
|
580
|
+
* @param {object} [options]
|
|
581
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
582
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
583
|
+
* The first element of the array is an object representing [DeidentifyTemplate]{@link google.privacy.dlp.v2.DeidentifyTemplate}.
|
|
584
|
+
* Please see the
|
|
585
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
586
|
+
* for more details and examples.
|
|
587
|
+
* @example <caption>include:samples/generated/v2/dlp_service.update_deidentify_template.js</caption>
|
|
588
|
+
* region_tag:dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_async
|
|
589
|
+
*/
|
|
142
590
|
updateDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest | undefined, {} | undefined]>;
|
|
143
591
|
updateDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
144
592
|
updateDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IUpdateDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
593
|
+
/**
|
|
594
|
+
* Gets a DeidentifyTemplate.
|
|
595
|
+
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
596
|
+
* more.
|
|
597
|
+
*
|
|
598
|
+
* @param {Object} request
|
|
599
|
+
* The request object that will be sent.
|
|
600
|
+
* @param {string} request.name
|
|
601
|
+
* Required. Resource name of the organization and deidentify template to be read, for
|
|
602
|
+
* example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
603
|
+
* projects/project-id/deidentifyTemplates/432452342.
|
|
604
|
+
* @param {object} [options]
|
|
605
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
606
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
607
|
+
* The first element of the array is an object representing [DeidentifyTemplate]{@link google.privacy.dlp.v2.DeidentifyTemplate}.
|
|
608
|
+
* Please see the
|
|
609
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
610
|
+
* for more details and examples.
|
|
611
|
+
* @example <caption>include:samples/generated/v2/dlp_service.get_deidentify_template.js</caption>
|
|
612
|
+
* region_tag:dlp_v2_generated_DlpService_GetDeidentifyTemplate_async
|
|
613
|
+
*/
|
|
145
614
|
getDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest | undefined, {} | undefined]>;
|
|
146
615
|
getDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
147
616
|
getDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest, callback: Callback<protos.google.privacy.dlp.v2.IDeidentifyTemplate, protos.google.privacy.dlp.v2.IGetDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
617
|
+
/**
|
|
618
|
+
* Deletes a DeidentifyTemplate.
|
|
619
|
+
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
620
|
+
* more.
|
|
621
|
+
*
|
|
622
|
+
* @param {Object} request
|
|
623
|
+
* The request object that will be sent.
|
|
624
|
+
* @param {string} request.name
|
|
625
|
+
* Required. Resource name of the organization and deidentify template to be deleted,
|
|
626
|
+
* for example `organizations/433245324/deidentifyTemplates/432452342` or
|
|
627
|
+
* projects/project-id/deidentifyTemplates/432452342.
|
|
628
|
+
* @param {object} [options]
|
|
629
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
630
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
631
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
632
|
+
* Please see the
|
|
633
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
634
|
+
* for more details and examples.
|
|
635
|
+
* @example <caption>include:samples/generated/v2/dlp_service.delete_deidentify_template.js</caption>
|
|
636
|
+
* region_tag:dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_async
|
|
637
|
+
*/
|
|
148
638
|
deleteDeidentifyTemplate(request?: protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest | undefined, {} | undefined]>;
|
|
149
639
|
deleteDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
150
640
|
deleteDeidentifyTemplate(request: protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDeidentifyTemplateRequest | null | undefined, {} | null | undefined>): void;
|
|
641
|
+
/**
|
|
642
|
+
* Creates a job trigger to run DLP actions such as scanning storage for
|
|
643
|
+
* sensitive information on a set schedule.
|
|
644
|
+
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
645
|
+
*
|
|
646
|
+
* @param {Object} request
|
|
647
|
+
* The request object that will be sent.
|
|
648
|
+
* @param {string} request.parent
|
|
649
|
+
* Required. Parent resource name.
|
|
650
|
+
*
|
|
651
|
+
* The format of this value varies depending on whether you have [specified a
|
|
652
|
+
* processing
|
|
653
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
654
|
+
*
|
|
655
|
+
* + Projects scope, location specified:<br/>
|
|
656
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
657
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
658
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
659
|
+
*
|
|
660
|
+
* The following example `parent` string specifies a parent project with the
|
|
661
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
662
|
+
* for processing data:
|
|
663
|
+
*
|
|
664
|
+
* parent=projects/example-project/locations/europe-west3
|
|
665
|
+
* @param {google.privacy.dlp.v2.JobTrigger} request.jobTrigger
|
|
666
|
+
* Required. The JobTrigger to create.
|
|
667
|
+
* @param {string} request.triggerId
|
|
668
|
+
* The trigger id can contain uppercase and lowercase letters,
|
|
669
|
+
* numbers, and hyphens; that is, it must match the regular
|
|
670
|
+
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
671
|
+
* characters. Can be empty to allow the system to generate one.
|
|
672
|
+
* @param {string} request.locationId
|
|
673
|
+
* Deprecated. This field has no effect.
|
|
674
|
+
* @param {object} [options]
|
|
675
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
676
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
677
|
+
* The first element of the array is an object representing [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
678
|
+
* Please see the
|
|
679
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
680
|
+
* for more details and examples.
|
|
681
|
+
* @example <caption>include:samples/generated/v2/dlp_service.create_job_trigger.js</caption>
|
|
682
|
+
* region_tag:dlp_v2_generated_DlpService_CreateJobTrigger_async
|
|
683
|
+
*/
|
|
151
684
|
createJobTrigger(request?: protos.google.privacy.dlp.v2.ICreateJobTriggerRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.ICreateJobTriggerRequest | undefined, {} | undefined]>;
|
|
152
685
|
createJobTrigger(request: protos.google.privacy.dlp.v2.ICreateJobTriggerRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.ICreateJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
153
686
|
createJobTrigger(request: protos.google.privacy.dlp.v2.ICreateJobTriggerRequest, callback: Callback<protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.ICreateJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
687
|
+
/**
|
|
688
|
+
* Updates a job trigger.
|
|
689
|
+
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
690
|
+
*
|
|
691
|
+
* @param {Object} request
|
|
692
|
+
* The request object that will be sent.
|
|
693
|
+
* @param {string} request.name
|
|
694
|
+
* Required. Resource name of the project and the triggeredJob, for example
|
|
695
|
+
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
696
|
+
* @param {google.privacy.dlp.v2.JobTrigger} request.jobTrigger
|
|
697
|
+
* New JobTrigger value.
|
|
698
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
699
|
+
* Mask to control which fields get updated.
|
|
700
|
+
* @param {object} [options]
|
|
701
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
702
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
703
|
+
* The first element of the array is an object representing [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
704
|
+
* Please see the
|
|
705
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
706
|
+
* for more details and examples.
|
|
707
|
+
* @example <caption>include:samples/generated/v2/dlp_service.update_job_trigger.js</caption>
|
|
708
|
+
* region_tag:dlp_v2_generated_DlpService_UpdateJobTrigger_async
|
|
709
|
+
*/
|
|
154
710
|
updateJobTrigger(request?: protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest | undefined, {} | undefined]>;
|
|
155
711
|
updateJobTrigger(request: protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
156
712
|
updateJobTrigger(request: protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest, callback: Callback<protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IUpdateJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
713
|
+
/**
|
|
714
|
+
* Inspect hybrid content and store findings to a trigger. The inspection
|
|
715
|
+
* will be processed asynchronously. To review the findings monitor the
|
|
716
|
+
* jobs within the trigger.
|
|
717
|
+
*
|
|
718
|
+
* @param {Object} request
|
|
719
|
+
* The request object that will be sent.
|
|
720
|
+
* @param {string} request.name
|
|
721
|
+
* Required. Resource name of the trigger to execute a hybrid inspect on, for example
|
|
722
|
+
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
723
|
+
* @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem
|
|
724
|
+
* The item to inspect.
|
|
725
|
+
* @param {object} [options]
|
|
726
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
727
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
728
|
+
* The first element of the array is an object representing [HybridInspectResponse]{@link google.privacy.dlp.v2.HybridInspectResponse}.
|
|
729
|
+
* Please see the
|
|
730
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
731
|
+
* for more details and examples.
|
|
732
|
+
* @example <caption>include:samples/generated/v2/dlp_service.hybrid_inspect_job_trigger.js</caption>
|
|
733
|
+
* region_tag:dlp_v2_generated_DlpService_HybridInspectJobTrigger_async
|
|
734
|
+
*/
|
|
157
735
|
hybridInspectJobTrigger(request?: protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest | undefined, {} | undefined]>;
|
|
158
736
|
hybridInspectJobTrigger(request: protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
159
737
|
hybridInspectJobTrigger(request: protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest, callback: Callback<protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
738
|
+
/**
|
|
739
|
+
* Gets a job trigger.
|
|
740
|
+
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
741
|
+
*
|
|
742
|
+
* @param {Object} request
|
|
743
|
+
* The request object that will be sent.
|
|
744
|
+
* @param {string} request.name
|
|
745
|
+
* Required. Resource name of the project and the triggeredJob, for example
|
|
746
|
+
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
747
|
+
* @param {object} [options]
|
|
748
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
749
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
750
|
+
* The first element of the array is an object representing [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
751
|
+
* Please see the
|
|
752
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
753
|
+
* for more details and examples.
|
|
754
|
+
* @example <caption>include:samples/generated/v2/dlp_service.get_job_trigger.js</caption>
|
|
755
|
+
* region_tag:dlp_v2_generated_DlpService_GetJobTrigger_async
|
|
756
|
+
*/
|
|
160
757
|
getJobTrigger(request?: protos.google.privacy.dlp.v2.IGetJobTriggerRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IGetJobTriggerRequest | undefined, {} | undefined]>;
|
|
161
758
|
getJobTrigger(request: protos.google.privacy.dlp.v2.IGetJobTriggerRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IGetJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
162
759
|
getJobTrigger(request: protos.google.privacy.dlp.v2.IGetJobTriggerRequest, callback: Callback<protos.google.privacy.dlp.v2.IJobTrigger, protos.google.privacy.dlp.v2.IGetJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
760
|
+
/**
|
|
761
|
+
* Deletes a job trigger.
|
|
762
|
+
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
763
|
+
*
|
|
764
|
+
* @param {Object} request
|
|
765
|
+
* The request object that will be sent.
|
|
766
|
+
* @param {string} request.name
|
|
767
|
+
* Required. Resource name of the project and the triggeredJob, for example
|
|
768
|
+
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
769
|
+
* @param {object} [options]
|
|
770
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
771
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
772
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
773
|
+
* Please see the
|
|
774
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
775
|
+
* for more details and examples.
|
|
776
|
+
* @example <caption>include:samples/generated/v2/dlp_service.delete_job_trigger.js</caption>
|
|
777
|
+
* region_tag:dlp_v2_generated_DlpService_DeleteJobTrigger_async
|
|
778
|
+
*/
|
|
163
779
|
deleteJobTrigger(request?: protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest | undefined, {} | undefined]>;
|
|
164
780
|
deleteJobTrigger(request: protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
165
781
|
deleteJobTrigger(request: protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
782
|
+
/**
|
|
783
|
+
* Activate a job trigger. Causes the immediate execute of a trigger
|
|
784
|
+
* instead of waiting on the trigger event to occur.
|
|
785
|
+
*
|
|
786
|
+
* @param {Object} request
|
|
787
|
+
* The request object that will be sent.
|
|
788
|
+
* @param {string} request.name
|
|
789
|
+
* Required. Resource name of the trigger to activate, for example
|
|
790
|
+
* `projects/dlp-test-project/jobTriggers/53234423`.
|
|
791
|
+
* @param {object} [options]
|
|
792
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
793
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
794
|
+
* The first element of the array is an object representing [DlpJob]{@link google.privacy.dlp.v2.DlpJob}.
|
|
795
|
+
* Please see the
|
|
796
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
797
|
+
* for more details and examples.
|
|
798
|
+
* @example <caption>include:samples/generated/v2/dlp_service.activate_job_trigger.js</caption>
|
|
799
|
+
* region_tag:dlp_v2_generated_DlpService_ActivateJobTrigger_async
|
|
800
|
+
*/
|
|
166
801
|
activateJobTrigger(request?: protos.google.privacy.dlp.v2.IActivateJobTriggerRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IActivateJobTriggerRequest | undefined, {} | undefined]>;
|
|
167
802
|
activateJobTrigger(request: protos.google.privacy.dlp.v2.IActivateJobTriggerRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IActivateJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
168
803
|
activateJobTrigger(request: protos.google.privacy.dlp.v2.IActivateJobTriggerRequest, callback: Callback<protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IActivateJobTriggerRequest | null | undefined, {} | null | undefined>): void;
|
|
804
|
+
/**
|
|
805
|
+
* Creates a new job to inspect storage or calculate risk metrics.
|
|
806
|
+
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
807
|
+
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
808
|
+
*
|
|
809
|
+
* When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
|
|
810
|
+
* system will automatically choose what detectors to run. By default this may
|
|
811
|
+
* be all types, but may change over time as detectors are updated.
|
|
812
|
+
*
|
|
813
|
+
* @param {Object} request
|
|
814
|
+
* The request object that will be sent.
|
|
815
|
+
* @param {string} request.parent
|
|
816
|
+
* Required. Parent resource name.
|
|
817
|
+
*
|
|
818
|
+
* The format of this value varies depending on whether you have [specified a
|
|
819
|
+
* processing
|
|
820
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
821
|
+
*
|
|
822
|
+
* + Projects scope, location specified:<br/>
|
|
823
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
824
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
825
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
826
|
+
*
|
|
827
|
+
* The following example `parent` string specifies a parent project with the
|
|
828
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
829
|
+
* for processing data:
|
|
830
|
+
*
|
|
831
|
+
* parent=projects/example-project/locations/europe-west3
|
|
832
|
+
* @param {google.privacy.dlp.v2.InspectJobConfig} request.inspectJob
|
|
833
|
+
* An inspection job scans a storage repository for InfoTypes.
|
|
834
|
+
* @param {google.privacy.dlp.v2.RiskAnalysisJobConfig} request.riskJob
|
|
835
|
+
* A risk analysis job calculates re-identification risk metrics for a
|
|
836
|
+
* BigQuery table.
|
|
837
|
+
* @param {string} request.jobId
|
|
838
|
+
* The job id can contain uppercase and lowercase letters,
|
|
839
|
+
* numbers, and hyphens; that is, it must match the regular
|
|
840
|
+
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
841
|
+
* characters. Can be empty to allow the system to generate one.
|
|
842
|
+
* @param {string} request.locationId
|
|
843
|
+
* Deprecated. This field has no effect.
|
|
844
|
+
* @param {object} [options]
|
|
845
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
846
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
847
|
+
* The first element of the array is an object representing [DlpJob]{@link google.privacy.dlp.v2.DlpJob}.
|
|
848
|
+
* Please see the
|
|
849
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
850
|
+
* for more details and examples.
|
|
851
|
+
* @example <caption>include:samples/generated/v2/dlp_service.create_dlp_job.js</caption>
|
|
852
|
+
* region_tag:dlp_v2_generated_DlpService_CreateDlpJob_async
|
|
853
|
+
*/
|
|
169
854
|
createDlpJob(request?: protos.google.privacy.dlp.v2.ICreateDlpJobRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.ICreateDlpJobRequest | undefined, {} | undefined]>;
|
|
170
855
|
createDlpJob(request: protos.google.privacy.dlp.v2.ICreateDlpJobRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.ICreateDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
171
856
|
createDlpJob(request: protos.google.privacy.dlp.v2.ICreateDlpJobRequest, callback: Callback<protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.ICreateDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
857
|
+
/**
|
|
858
|
+
* Gets the latest state of a long-running DlpJob.
|
|
859
|
+
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
860
|
+
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
861
|
+
*
|
|
862
|
+
* @param {Object} request
|
|
863
|
+
* The request object that will be sent.
|
|
864
|
+
* @param {string} request.name
|
|
865
|
+
* Required. The name of the DlpJob resource.
|
|
866
|
+
* @param {object} [options]
|
|
867
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
868
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
869
|
+
* The first element of the array is an object representing [DlpJob]{@link google.privacy.dlp.v2.DlpJob}.
|
|
870
|
+
* Please see the
|
|
871
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
872
|
+
* for more details and examples.
|
|
873
|
+
* @example <caption>include:samples/generated/v2/dlp_service.get_dlp_job.js</caption>
|
|
874
|
+
* region_tag:dlp_v2_generated_DlpService_GetDlpJob_async
|
|
875
|
+
*/
|
|
172
876
|
getDlpJob(request?: protos.google.privacy.dlp.v2.IGetDlpJobRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IGetDlpJobRequest | undefined, {} | undefined]>;
|
|
173
877
|
getDlpJob(request: protos.google.privacy.dlp.v2.IGetDlpJobRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IGetDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
174
878
|
getDlpJob(request: protos.google.privacy.dlp.v2.IGetDlpJobRequest, callback: Callback<protos.google.privacy.dlp.v2.IDlpJob, protos.google.privacy.dlp.v2.IGetDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
879
|
+
/**
|
|
880
|
+
* Deletes a long-running DlpJob. This method indicates that the client is
|
|
881
|
+
* no longer interested in the DlpJob result. The job will be cancelled if
|
|
882
|
+
* possible.
|
|
883
|
+
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
884
|
+
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
885
|
+
*
|
|
886
|
+
* @param {Object} request
|
|
887
|
+
* The request object that will be sent.
|
|
888
|
+
* @param {string} request.name
|
|
889
|
+
* Required. The name of the DlpJob resource to be deleted.
|
|
890
|
+
* @param {object} [options]
|
|
891
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
892
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
893
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
894
|
+
* Please see the
|
|
895
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
896
|
+
* for more details and examples.
|
|
897
|
+
* @example <caption>include:samples/generated/v2/dlp_service.delete_dlp_job.js</caption>
|
|
898
|
+
* region_tag:dlp_v2_generated_DlpService_DeleteDlpJob_async
|
|
899
|
+
*/
|
|
175
900
|
deleteDlpJob(request?: protos.google.privacy.dlp.v2.IDeleteDlpJobRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDlpJobRequest | undefined, {} | undefined]>;
|
|
176
901
|
deleteDlpJob(request: protos.google.privacy.dlp.v2.IDeleteDlpJobRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
177
902
|
deleteDlpJob(request: protos.google.privacy.dlp.v2.IDeleteDlpJobRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
903
|
+
/**
|
|
904
|
+
* Starts asynchronous cancellation on a long-running DlpJob. The server
|
|
905
|
+
* makes a best effort to cancel the DlpJob, but success is not
|
|
906
|
+
* guaranteed.
|
|
907
|
+
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
908
|
+
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
909
|
+
*
|
|
910
|
+
* @param {Object} request
|
|
911
|
+
* The request object that will be sent.
|
|
912
|
+
* @param {string} request.name
|
|
913
|
+
* Required. The name of the DlpJob resource to be cancelled.
|
|
914
|
+
* @param {object} [options]
|
|
915
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
916
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
917
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
918
|
+
* Please see the
|
|
919
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
920
|
+
* for more details and examples.
|
|
921
|
+
* @example <caption>include:samples/generated/v2/dlp_service.cancel_dlp_job.js</caption>
|
|
922
|
+
* region_tag:dlp_v2_generated_DlpService_CancelDlpJob_async
|
|
923
|
+
*/
|
|
178
924
|
cancelDlpJob(request?: protos.google.privacy.dlp.v2.ICancelDlpJobRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.ICancelDlpJobRequest | undefined, {} | undefined]>;
|
|
179
925
|
cancelDlpJob(request: protos.google.privacy.dlp.v2.ICancelDlpJobRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.ICancelDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
180
926
|
cancelDlpJob(request: protos.google.privacy.dlp.v2.ICancelDlpJobRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.ICancelDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
927
|
+
/**
|
|
928
|
+
* Creates a pre-built stored infoType to be used for inspection.
|
|
929
|
+
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
930
|
+
* learn more.
|
|
931
|
+
*
|
|
932
|
+
* @param {Object} request
|
|
933
|
+
* The request object that will be sent.
|
|
934
|
+
* @param {string} request.parent
|
|
935
|
+
* Required. Parent resource name.
|
|
936
|
+
*
|
|
937
|
+
* The format of this value varies depending on the scope of the request
|
|
938
|
+
* (project or organization) and whether you have [specified a processing
|
|
939
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
940
|
+
*
|
|
941
|
+
* + Projects scope, location specified:<br/>
|
|
942
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
943
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
944
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
945
|
+
* + Organizations scope, location specified:<br/>
|
|
946
|
+
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
947
|
+
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
948
|
+
* `organizations/`<var>ORG_ID</var>
|
|
949
|
+
*
|
|
950
|
+
* The following example `parent` string specifies a parent project with the
|
|
951
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
952
|
+
* for processing data:
|
|
953
|
+
*
|
|
954
|
+
* parent=projects/example-project/locations/europe-west3
|
|
955
|
+
* @param {google.privacy.dlp.v2.StoredInfoTypeConfig} request.config
|
|
956
|
+
* Required. Configuration of the storedInfoType to create.
|
|
957
|
+
* @param {string} request.storedInfoTypeId
|
|
958
|
+
* The storedInfoType ID can contain uppercase and lowercase letters,
|
|
959
|
+
* numbers, and hyphens; that is, it must match the regular
|
|
960
|
+
* expression: `[a-zA-Z\d-_]+`. The maximum length is 100
|
|
961
|
+
* characters. Can be empty to allow the system to generate one.
|
|
962
|
+
* @param {string} request.locationId
|
|
963
|
+
* Deprecated. This field has no effect.
|
|
964
|
+
* @param {object} [options]
|
|
965
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
966
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
967
|
+
* The first element of the array is an object representing [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
968
|
+
* Please see the
|
|
969
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
970
|
+
* for more details and examples.
|
|
971
|
+
* @example <caption>include:samples/generated/v2/dlp_service.create_stored_info_type.js</caption>
|
|
972
|
+
* region_tag:dlp_v2_generated_DlpService_CreateStoredInfoType_async
|
|
973
|
+
*/
|
|
181
974
|
createStoredInfoType(request?: protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest | undefined, {} | undefined]>;
|
|
182
975
|
createStoredInfoType(request: protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
183
976
|
createStoredInfoType(request: protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest, callback: Callback<protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.ICreateStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
977
|
+
/**
|
|
978
|
+
* Updates the stored infoType by creating a new version. The existing version
|
|
979
|
+
* will continue to be used until the new version is ready.
|
|
980
|
+
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
981
|
+
* learn more.
|
|
982
|
+
*
|
|
983
|
+
* @param {Object} request
|
|
984
|
+
* The request object that will be sent.
|
|
985
|
+
* @param {string} request.name
|
|
986
|
+
* Required. Resource name of organization and storedInfoType to be updated, for
|
|
987
|
+
* example `organizations/433245324/storedInfoTypes/432452342` or
|
|
988
|
+
* projects/project-id/storedInfoTypes/432452342.
|
|
989
|
+
* @param {google.privacy.dlp.v2.StoredInfoTypeConfig} request.config
|
|
990
|
+
* Updated configuration for the storedInfoType. If not provided, a new
|
|
991
|
+
* version of the storedInfoType will be created with the existing
|
|
992
|
+
* configuration.
|
|
993
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
994
|
+
* Mask to control which fields get updated.
|
|
995
|
+
* @param {object} [options]
|
|
996
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
997
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
998
|
+
* The first element of the array is an object representing [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
999
|
+
* Please see the
|
|
1000
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1001
|
+
* for more details and examples.
|
|
1002
|
+
* @example <caption>include:samples/generated/v2/dlp_service.update_stored_info_type.js</caption>
|
|
1003
|
+
* region_tag:dlp_v2_generated_DlpService_UpdateStoredInfoType_async
|
|
1004
|
+
*/
|
|
184
1005
|
updateStoredInfoType(request?: protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest | undefined, {} | undefined]>;
|
|
185
1006
|
updateStoredInfoType(request: protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
186
1007
|
updateStoredInfoType(request: protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest, callback: Callback<protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IUpdateStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
1008
|
+
/**
|
|
1009
|
+
* Gets a stored infoType.
|
|
1010
|
+
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1011
|
+
* learn more.
|
|
1012
|
+
*
|
|
1013
|
+
* @param {Object} request
|
|
1014
|
+
* The request object that will be sent.
|
|
1015
|
+
* @param {string} request.name
|
|
1016
|
+
* Required. Resource name of the organization and storedInfoType to be read, for
|
|
1017
|
+
* example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1018
|
+
* projects/project-id/storedInfoTypes/432452342.
|
|
1019
|
+
* @param {object} [options]
|
|
1020
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1021
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1022
|
+
* The first element of the array is an object representing [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
1023
|
+
* Please see the
|
|
1024
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1025
|
+
* for more details and examples.
|
|
1026
|
+
* @example <caption>include:samples/generated/v2/dlp_service.get_stored_info_type.js</caption>
|
|
1027
|
+
* region_tag:dlp_v2_generated_DlpService_GetStoredInfoType_async
|
|
1028
|
+
*/
|
|
187
1029
|
getStoredInfoType(request?: protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest | undefined, {} | undefined]>;
|
|
188
1030
|
getStoredInfoType(request: protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
189
1031
|
getStoredInfoType(request: protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest, callback: Callback<protos.google.privacy.dlp.v2.IStoredInfoType, protos.google.privacy.dlp.v2.IGetStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
1032
|
+
/**
|
|
1033
|
+
* Deletes a stored infoType.
|
|
1034
|
+
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
1035
|
+
* learn more.
|
|
1036
|
+
*
|
|
1037
|
+
* @param {Object} request
|
|
1038
|
+
* The request object that will be sent.
|
|
1039
|
+
* @param {string} request.name
|
|
1040
|
+
* Required. Resource name of the organization and storedInfoType to be deleted, for
|
|
1041
|
+
* example `organizations/433245324/storedInfoTypes/432452342` or
|
|
1042
|
+
* projects/project-id/storedInfoTypes/432452342.
|
|
1043
|
+
* @param {object} [options]
|
|
1044
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1045
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1046
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1047
|
+
* Please see the
|
|
1048
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1049
|
+
* for more details and examples.
|
|
1050
|
+
* @example <caption>include:samples/generated/v2/dlp_service.delete_stored_info_type.js</caption>
|
|
1051
|
+
* region_tag:dlp_v2_generated_DlpService_DeleteStoredInfoType_async
|
|
1052
|
+
*/
|
|
190
1053
|
deleteStoredInfoType(request?: protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest | undefined, {} | undefined]>;
|
|
191
1054
|
deleteStoredInfoType(request: protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
192
1055
|
deleteStoredInfoType(request: protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteStoredInfoTypeRequest | null | undefined, {} | null | undefined>): void;
|
|
1056
|
+
/**
|
|
1057
|
+
* Inspect hybrid content and store findings to a job.
|
|
1058
|
+
* To review the findings, inspect the job. Inspection will occur
|
|
1059
|
+
* asynchronously.
|
|
1060
|
+
*
|
|
1061
|
+
* @param {Object} request
|
|
1062
|
+
* The request object that will be sent.
|
|
1063
|
+
* @param {string} request.name
|
|
1064
|
+
* Required. Resource name of the job to execute a hybrid inspect on, for example
|
|
1065
|
+
* `projects/dlp-test-project/dlpJob/53234423`.
|
|
1066
|
+
* @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem
|
|
1067
|
+
* The item to inspect.
|
|
1068
|
+
* @param {object} [options]
|
|
1069
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1070
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1071
|
+
* The first element of the array is an object representing [HybridInspectResponse]{@link google.privacy.dlp.v2.HybridInspectResponse}.
|
|
1072
|
+
* Please see the
|
|
1073
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1074
|
+
* for more details and examples.
|
|
1075
|
+
* @example <caption>include:samples/generated/v2/dlp_service.hybrid_inspect_dlp_job.js</caption>
|
|
1076
|
+
* region_tag:dlp_v2_generated_DlpService_HybridInspectDlpJob_async
|
|
1077
|
+
*/
|
|
193
1078
|
hybridInspectDlpJob(request?: protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest | undefined, {} | undefined]>;
|
|
194
1079
|
hybridInspectDlpJob(request: protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
195
1080
|
hybridInspectDlpJob(request: protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest, callback: Callback<protos.google.privacy.dlp.v2.IHybridInspectResponse, protos.google.privacy.dlp.v2.IHybridInspectDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
1081
|
+
/**
|
|
1082
|
+
* Finish a running hybrid DlpJob. Triggers the finalization steps and running
|
|
1083
|
+
* of any enabled actions that have not yet run.
|
|
1084
|
+
*
|
|
1085
|
+
* @param {Object} request
|
|
1086
|
+
* The request object that will be sent.
|
|
1087
|
+
* @param {string} request.name
|
|
1088
|
+
* Required. The name of the DlpJob resource to be cancelled.
|
|
1089
|
+
* @param {object} [options]
|
|
1090
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1091
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1092
|
+
* The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
|
|
1093
|
+
* Please see the
|
|
1094
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
1095
|
+
* for more details and examples.
|
|
1096
|
+
* @example <caption>include:samples/generated/v2/dlp_service.finish_dlp_job.js</caption>
|
|
1097
|
+
* region_tag:dlp_v2_generated_DlpService_FinishDlpJob_async
|
|
1098
|
+
*/
|
|
196
1099
|
finishDlpJob(request?: protos.google.privacy.dlp.v2.IFinishDlpJobRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IFinishDlpJobRequest | undefined, {} | undefined]>;
|
|
197
1100
|
finishDlpJob(request: protos.google.privacy.dlp.v2.IFinishDlpJobRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IFinishDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
198
1101
|
finishDlpJob(request: protos.google.privacy.dlp.v2.IFinishDlpJobRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IFinishDlpJobRequest | null | undefined, {} | null | undefined>): void;
|
|
1102
|
+
/**
|
|
1103
|
+
* Lists InspectTemplates.
|
|
1104
|
+
* See https://cloud.google.com/dlp/docs/creating-templates to learn more.
|
|
1105
|
+
*
|
|
1106
|
+
* @param {Object} request
|
|
1107
|
+
* The request object that will be sent.
|
|
1108
|
+
* @param {string} request.parent
|
|
1109
|
+
* Required. Parent resource name.
|
|
1110
|
+
*
|
|
1111
|
+
* The format of this value varies depending on the scope of the request
|
|
1112
|
+
* (project or organization) and whether you have [specified a processing
|
|
1113
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1114
|
+
*
|
|
1115
|
+
* + Projects scope, location specified:<br/>
|
|
1116
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1117
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1118
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
1119
|
+
* + Organizations scope, location specified:<br/>
|
|
1120
|
+
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1121
|
+
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
1122
|
+
* `organizations/`<var>ORG_ID</var>
|
|
1123
|
+
*
|
|
1124
|
+
* The following example `parent` string specifies a parent project with the
|
|
1125
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1126
|
+
* for processing data:
|
|
1127
|
+
*
|
|
1128
|
+
* parent=projects/example-project/locations/europe-west3
|
|
1129
|
+
* @param {string} request.pageToken
|
|
1130
|
+
* Page token to continue retrieval. Comes from previous call
|
|
1131
|
+
* to `ListInspectTemplates`.
|
|
1132
|
+
* @param {number} request.pageSize
|
|
1133
|
+
* Size of the page, can be limited by server. If zero server returns
|
|
1134
|
+
* a page of max size 100.
|
|
1135
|
+
* @param {string} request.orderBy
|
|
1136
|
+
* Comma separated list of fields to order by,
|
|
1137
|
+
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1138
|
+
* default sorting order is ascending, redundant space characters are
|
|
1139
|
+
* insignificant.
|
|
1140
|
+
*
|
|
1141
|
+
* Example: `name asc,update_time, create_time desc`
|
|
1142
|
+
*
|
|
1143
|
+
* Supported fields are:
|
|
1144
|
+
*
|
|
1145
|
+
* - `create_time`: corresponds to time the template was created.
|
|
1146
|
+
* - `update_time`: corresponds to time the template was last updated.
|
|
1147
|
+
* - `name`: corresponds to template's name.
|
|
1148
|
+
* - `display_name`: corresponds to template's display name.
|
|
1149
|
+
* @param {string} request.locationId
|
|
1150
|
+
* Deprecated. This field has no effect.
|
|
1151
|
+
* @param {object} [options]
|
|
1152
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1153
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1154
|
+
* The first element of the array is Array of [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}.
|
|
1155
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1156
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1157
|
+
* Note that it can affect your quota.
|
|
1158
|
+
* We recommend using `listInspectTemplatesAsync()`
|
|
1159
|
+
* method described below for async iteration which you can stop as needed.
|
|
1160
|
+
* Please see the
|
|
1161
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1162
|
+
* for more details and examples.
|
|
1163
|
+
*/
|
|
199
1164
|
listInspectTemplates(request?: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IInspectTemplate[], protos.google.privacy.dlp.v2.IListInspectTemplatesRequest | null, protos.google.privacy.dlp.v2.IListInspectTemplatesResponse]>;
|
|
200
1165
|
listInspectTemplates(request: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, protos.google.privacy.dlp.v2.IListInspectTemplatesResponse | null | undefined, protos.google.privacy.dlp.v2.IInspectTemplate>): void;
|
|
201
1166
|
listInspectTemplates(request: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, protos.google.privacy.dlp.v2.IListInspectTemplatesResponse | null | undefined, protos.google.privacy.dlp.v2.IInspectTemplate>): void;
|
|
202
1167
|
/**
|
|
203
|
-
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
1168
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
1169
|
+
* @param {Object} request
|
|
1170
|
+
* The request object that will be sent.
|
|
1171
|
+
* @param {string} request.parent
|
|
1172
|
+
* Required. Parent resource name.
|
|
1173
|
+
*
|
|
1174
|
+
* The format of this value varies depending on the scope of the request
|
|
1175
|
+
* (project or organization) and whether you have [specified a processing
|
|
1176
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1177
|
+
*
|
|
1178
|
+
* + Projects scope, location specified:<br/>
|
|
1179
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1180
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1181
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
1182
|
+
* + Organizations scope, location specified:<br/>
|
|
1183
|
+
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1184
|
+
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
1185
|
+
* `organizations/`<var>ORG_ID</var>
|
|
1186
|
+
*
|
|
1187
|
+
* The following example `parent` string specifies a parent project with the
|
|
1188
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1189
|
+
* for processing data:
|
|
1190
|
+
*
|
|
1191
|
+
* parent=projects/example-project/locations/europe-west3
|
|
1192
|
+
* @param {string} request.pageToken
|
|
1193
|
+
* Page token to continue retrieval. Comes from previous call
|
|
1194
|
+
* to `ListInspectTemplates`.
|
|
1195
|
+
* @param {number} request.pageSize
|
|
1196
|
+
* Size of the page, can be limited by server. If zero server returns
|
|
1197
|
+
* a page of max size 100.
|
|
1198
|
+
* @param {string} request.orderBy
|
|
1199
|
+
* Comma separated list of fields to order by,
|
|
1200
|
+
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1201
|
+
* default sorting order is ascending, redundant space characters are
|
|
1202
|
+
* insignificant.
|
|
1203
|
+
*
|
|
1204
|
+
* Example: `name asc,update_time, create_time desc`
|
|
1205
|
+
*
|
|
1206
|
+
* Supported fields are:
|
|
1207
|
+
*
|
|
1208
|
+
* - `create_time`: corresponds to time the template was created.
|
|
1209
|
+
* - `update_time`: corresponds to time the template was last updated.
|
|
1210
|
+
* - `name`: corresponds to template's name.
|
|
1211
|
+
* - `display_name`: corresponds to template's display name.
|
|
1212
|
+
* @param {string} request.locationId
|
|
1213
|
+
* Deprecated. This field has no effect.
|
|
1214
|
+
* @param {object} [options]
|
|
1215
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1216
|
+
* @returns {Stream}
|
|
1217
|
+
* An object stream which emits an object representing [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate} on 'data' event.
|
|
1218
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1219
|
+
* times as needed. Note that it can affect your quota.
|
|
1220
|
+
* We recommend using `listInspectTemplatesAsync()`
|
|
1221
|
+
* method described below for async iteration which you can stop as needed.
|
|
1222
|
+
* Please see the
|
|
1223
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1224
|
+
* for more details and examples.
|
|
1225
|
+
*/
|
|
1226
|
+
listInspectTemplatesStream(request?: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: CallOptions): Transform;
|
|
1227
|
+
/**
|
|
1228
|
+
* Equivalent to `listInspectTemplates`, but returns an iterable object.
|
|
1229
|
+
*
|
|
1230
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
204
1231
|
* @param {Object} request
|
|
205
1232
|
* The request object that will be sent.
|
|
206
1233
|
* @param {string} request.parent
|
|
@@ -248,21 +1275,23 @@ export declare class DlpServiceClient {
|
|
|
248
1275
|
* Deprecated. This field has no effect.
|
|
249
1276
|
* @param {object} [options]
|
|
250
1277
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
251
|
-
* @returns {
|
|
252
|
-
* An
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
* method described below for async iteration which you can stop as needed.
|
|
1278
|
+
* @returns {Object}
|
|
1279
|
+
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
|
|
1280
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1281
|
+
* [InspectTemplate]{@link google.privacy.dlp.v2.InspectTemplate}. The API will be called under the hood as needed, once per the page,
|
|
1282
|
+
* so you can stop the iteration when you don't need more results.
|
|
257
1283
|
* Please see the
|
|
258
1284
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
259
1285
|
* for more details and examples.
|
|
1286
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_inspect_templates.js</caption>
|
|
1287
|
+
* region_tag:dlp_v2_generated_DlpService_ListInspectTemplates_async
|
|
260
1288
|
*/
|
|
261
|
-
|
|
1289
|
+
listInspectTemplatesAsync(request?: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IInspectTemplate>;
|
|
262
1290
|
/**
|
|
263
|
-
*
|
|
1291
|
+
* Lists DeidentifyTemplates.
|
|
1292
|
+
* See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
|
|
1293
|
+
* more.
|
|
264
1294
|
*
|
|
265
|
-
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
266
1295
|
* @param {Object} request
|
|
267
1296
|
* The request object that will be sent.
|
|
268
1297
|
* @param {string} request.parent
|
|
@@ -288,7 +1317,7 @@ export declare class DlpServiceClient {
|
|
|
288
1317
|
* parent=projects/example-project/locations/europe-west3
|
|
289
1318
|
* @param {string} request.pageToken
|
|
290
1319
|
* Page token to continue retrieval. Comes from previous call
|
|
291
|
-
* to `
|
|
1320
|
+
* to `ListDeidentifyTemplates`.
|
|
292
1321
|
* @param {number} request.pageSize
|
|
293
1322
|
* Size of the page, can be limited by server. If zero server returns
|
|
294
1323
|
* a page of max size 100.
|
|
@@ -310,21 +1339,17 @@ export declare class DlpServiceClient {
|
|
|
310
1339
|
* Deprecated. This field has no effect.
|
|
311
1340
|
* @param {object} [options]
|
|
312
1341
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
313
|
-
* @returns {
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
1342
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1343
|
+
* The first element of the array is Array of [DeidentifyTemplate]{@link google.privacy.dlp.v2.DeidentifyTemplate}.
|
|
1344
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1345
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1346
|
+
* Note that it can affect your quota.
|
|
1347
|
+
* We recommend using `listDeidentifyTemplatesAsync()`
|
|
1348
|
+
* method described below for async iteration which you can stop as needed.
|
|
318
1349
|
* Please see the
|
|
319
1350
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
320
1351
|
* for more details and examples.
|
|
321
|
-
* @example
|
|
322
|
-
* const iterable = client.listInspectTemplatesAsync(request);
|
|
323
|
-
* for await (const response of iterable) {
|
|
324
|
-
* // process response
|
|
325
|
-
* }
|
|
326
1352
|
*/
|
|
327
|
-
listInspectTemplatesAsync(request?: protos.google.privacy.dlp.v2.IListInspectTemplatesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IInspectTemplate>;
|
|
328
1353
|
listDeidentifyTemplates(request?: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDeidentifyTemplate[], protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest | null, protos.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse]>;
|
|
329
1354
|
listDeidentifyTemplates(request: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, protos.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse | null | undefined, protos.google.privacy.dlp.v2.IDeidentifyTemplate>): void;
|
|
330
1355
|
listDeidentifyTemplates(request: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, protos.google.privacy.dlp.v2.IListDeidentifyTemplatesResponse | null | undefined, protos.google.privacy.dlp.v2.IDeidentifyTemplate>): void;
|
|
@@ -447,13 +1472,97 @@ export declare class DlpServiceClient {
|
|
|
447
1472
|
* Please see the
|
|
448
1473
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
449
1474
|
* for more details and examples.
|
|
450
|
-
* @example
|
|
451
|
-
*
|
|
452
|
-
* for await (const response of iterable) {
|
|
453
|
-
* // process response
|
|
454
|
-
* }
|
|
1475
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_deidentify_templates.js</caption>
|
|
1476
|
+
* region_tag:dlp_v2_generated_DlpService_ListDeidentifyTemplates_async
|
|
455
1477
|
*/
|
|
456
1478
|
listDeidentifyTemplatesAsync(request?: protos.google.privacy.dlp.v2.IListDeidentifyTemplatesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IDeidentifyTemplate>;
|
|
1479
|
+
/**
|
|
1480
|
+
* Lists job triggers.
|
|
1481
|
+
* See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
|
|
1482
|
+
*
|
|
1483
|
+
* @param {Object} request
|
|
1484
|
+
* The request object that will be sent.
|
|
1485
|
+
* @param {string} request.parent
|
|
1486
|
+
* Required. Parent resource name.
|
|
1487
|
+
*
|
|
1488
|
+
* The format of this value varies depending on whether you have [specified a
|
|
1489
|
+
* processing
|
|
1490
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1491
|
+
*
|
|
1492
|
+
* + Projects scope, location specified:<br/>
|
|
1493
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1494
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1495
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
1496
|
+
*
|
|
1497
|
+
* The following example `parent` string specifies a parent project with the
|
|
1498
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1499
|
+
* for processing data:
|
|
1500
|
+
*
|
|
1501
|
+
* parent=projects/example-project/locations/europe-west3
|
|
1502
|
+
* @param {string} request.pageToken
|
|
1503
|
+
* Page token to continue retrieval. Comes from previous call
|
|
1504
|
+
* to ListJobTriggers. `order_by` field must not
|
|
1505
|
+
* change for subsequent calls.
|
|
1506
|
+
* @param {number} request.pageSize
|
|
1507
|
+
* Size of the page, can be limited by a server.
|
|
1508
|
+
* @param {string} request.orderBy
|
|
1509
|
+
* Comma separated list of triggeredJob fields to order by,
|
|
1510
|
+
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1511
|
+
* default sorting order is ascending, redundant space characters are
|
|
1512
|
+
* insignificant.
|
|
1513
|
+
*
|
|
1514
|
+
* Example: `name asc,update_time, create_time desc`
|
|
1515
|
+
*
|
|
1516
|
+
* Supported fields are:
|
|
1517
|
+
*
|
|
1518
|
+
* - `create_time`: corresponds to time the JobTrigger was created.
|
|
1519
|
+
* - `update_time`: corresponds to time the JobTrigger was last updated.
|
|
1520
|
+
* - `last_run_time`: corresponds to the last time the JobTrigger ran.
|
|
1521
|
+
* - `name`: corresponds to JobTrigger's name.
|
|
1522
|
+
* - `display_name`: corresponds to JobTrigger's display name.
|
|
1523
|
+
* - `status`: corresponds to JobTrigger's status.
|
|
1524
|
+
* @param {string} request.filter
|
|
1525
|
+
* Allows filtering.
|
|
1526
|
+
*
|
|
1527
|
+
* Supported syntax:
|
|
1528
|
+
*
|
|
1529
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
1530
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
1531
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
1532
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
1533
|
+
* * Supported fields/values for inspect triggers:
|
|
1534
|
+
* - `status` - HEALTHY|PAUSED|CANCELLED
|
|
1535
|
+
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
1536
|
+
* - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
|
1537
|
+
* quotation marks. Nanoseconds are ignored.
|
|
1538
|
+
* - 'error_count' - Number of errors that have occurred while running.
|
|
1539
|
+
* * The operator must be `=` or `!=` for status and inspected_storage.
|
|
1540
|
+
*
|
|
1541
|
+
* Examples:
|
|
1542
|
+
*
|
|
1543
|
+
* * inspected_storage = cloud_storage AND status = HEALTHY
|
|
1544
|
+
* * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
|
1545
|
+
* * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY)
|
|
1546
|
+
* * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
|
1547
|
+
*
|
|
1548
|
+
* The length of this field should be no more than 500 characters.
|
|
1549
|
+
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
1550
|
+
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
|
|
1551
|
+
* @param {string} request.locationId
|
|
1552
|
+
* Deprecated. This field has no effect.
|
|
1553
|
+
* @param {object} [options]
|
|
1554
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1555
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1556
|
+
* The first element of the array is Array of [JobTrigger]{@link google.privacy.dlp.v2.JobTrigger}.
|
|
1557
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1558
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1559
|
+
* Note that it can affect your quota.
|
|
1560
|
+
* We recommend using `listJobTriggersAsync()`
|
|
1561
|
+
* method described below for async iteration which you can stop as needed.
|
|
1562
|
+
* Please see the
|
|
1563
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1564
|
+
* for more details and examples.
|
|
1565
|
+
*/
|
|
457
1566
|
listJobTriggers(request?: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IJobTrigger[], protos.google.privacy.dlp.v2.IListJobTriggersRequest | null, protos.google.privacy.dlp.v2.IListJobTriggersResponse]>;
|
|
458
1567
|
listJobTriggers(request: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListJobTriggersRequest, protos.google.privacy.dlp.v2.IListJobTriggersResponse | null | undefined, protos.google.privacy.dlp.v2.IJobTrigger>): void;
|
|
459
1568
|
listJobTriggers(request: protos.google.privacy.dlp.v2.IListJobTriggersRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListJobTriggersRequest, protos.google.privacy.dlp.v2.IListJobTriggersResponse | null | undefined, protos.google.privacy.dlp.v2.IJobTrigger>): void;
|
|
@@ -509,7 +1618,7 @@ export declare class DlpServiceClient {
|
|
|
509
1618
|
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
510
1619
|
* sequence of restrictions implicitly uses `AND`.
|
|
511
1620
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
512
|
-
* * Supported fields/values for inspect
|
|
1621
|
+
* * Supported fields/values for inspect triggers:
|
|
513
1622
|
* - `status` - HEALTHY|PAUSED|CANCELLED
|
|
514
1623
|
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
515
1624
|
* - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
|
@@ -525,6 +1634,8 @@ export declare class DlpServiceClient {
|
|
|
525
1634
|
* * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
|
526
1635
|
*
|
|
527
1636
|
* The length of this field should be no more than 500 characters.
|
|
1637
|
+
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
1638
|
+
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
|
|
528
1639
|
* @param {string} request.locationId
|
|
529
1640
|
* Deprecated. This field has no effect.
|
|
530
1641
|
* @param {object} [options]
|
|
@@ -594,7 +1705,7 @@ export declare class DlpServiceClient {
|
|
|
594
1705
|
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
595
1706
|
* sequence of restrictions implicitly uses `AND`.
|
|
596
1707
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
597
|
-
* * Supported fields/values for inspect
|
|
1708
|
+
* * Supported fields/values for inspect triggers:
|
|
598
1709
|
* - `status` - HEALTHY|PAUSED|CANCELLED
|
|
599
1710
|
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
600
1711
|
* - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by
|
|
@@ -610,6 +1721,8 @@ export declare class DlpServiceClient {
|
|
|
610
1721
|
* * last_run_time > \"2017-12-12T00:00:00+00:00\"
|
|
611
1722
|
*
|
|
612
1723
|
* The length of this field should be no more than 500 characters.
|
|
1724
|
+
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
1725
|
+
* The type of jobs. Will use `DlpJobType.INSPECT` if not set.
|
|
613
1726
|
* @param {string} request.locationId
|
|
614
1727
|
* Deprecated. This field has no effect.
|
|
615
1728
|
* @param {object} [options]
|
|
@@ -622,13 +1735,98 @@ export declare class DlpServiceClient {
|
|
|
622
1735
|
* Please see the
|
|
623
1736
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
624
1737
|
* for more details and examples.
|
|
625
|
-
* @example
|
|
626
|
-
*
|
|
627
|
-
* for await (const response of iterable) {
|
|
628
|
-
* // process response
|
|
629
|
-
* }
|
|
1738
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_job_triggers.js</caption>
|
|
1739
|
+
* region_tag:dlp_v2_generated_DlpService_ListJobTriggers_async
|
|
630
1740
|
*/
|
|
631
1741
|
listJobTriggersAsync(request?: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IJobTrigger>;
|
|
1742
|
+
/**
|
|
1743
|
+
* Lists DlpJobs that match the specified filter in the request.
|
|
1744
|
+
* See https://cloud.google.com/dlp/docs/inspecting-storage and
|
|
1745
|
+
* https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
|
|
1746
|
+
*
|
|
1747
|
+
* @param {Object} request
|
|
1748
|
+
* The request object that will be sent.
|
|
1749
|
+
* @param {string} request.parent
|
|
1750
|
+
* Required. Parent resource name.
|
|
1751
|
+
*
|
|
1752
|
+
* The format of this value varies depending on whether you have [specified a
|
|
1753
|
+
* processing
|
|
1754
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
1755
|
+
*
|
|
1756
|
+
* + Projects scope, location specified:<br/>
|
|
1757
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
1758
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
1759
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
1760
|
+
*
|
|
1761
|
+
* The following example `parent` string specifies a parent project with the
|
|
1762
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
1763
|
+
* for processing data:
|
|
1764
|
+
*
|
|
1765
|
+
* parent=projects/example-project/locations/europe-west3
|
|
1766
|
+
* @param {string} request.filter
|
|
1767
|
+
* Allows filtering.
|
|
1768
|
+
*
|
|
1769
|
+
* Supported syntax:
|
|
1770
|
+
*
|
|
1771
|
+
* * Filter expressions are made up of one or more restrictions.
|
|
1772
|
+
* * Restrictions can be combined by `AND` or `OR` logical operators. A
|
|
1773
|
+
* sequence of restrictions implicitly uses `AND`.
|
|
1774
|
+
* * A restriction has the form of `{field} {operator} {value}`.
|
|
1775
|
+
* * Supported fields/values for inspect jobs:
|
|
1776
|
+
* - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
|
|
1777
|
+
* - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
|
|
1778
|
+
* - `trigger_name` - The resource name of the trigger that created job.
|
|
1779
|
+
* - 'end_time` - Corresponds to time the job finished.
|
|
1780
|
+
* - 'start_time` - Corresponds to time the job finished.
|
|
1781
|
+
* * Supported fields for risk analysis jobs:
|
|
1782
|
+
* - `state` - RUNNING|CANCELED|FINISHED|FAILED
|
|
1783
|
+
* - 'end_time` - Corresponds to time the job finished.
|
|
1784
|
+
* - 'start_time` - Corresponds to time the job finished.
|
|
1785
|
+
* * The operator must be `=` or `!=`.
|
|
1786
|
+
*
|
|
1787
|
+
* Examples:
|
|
1788
|
+
*
|
|
1789
|
+
* * inspected_storage = cloud_storage AND state = done
|
|
1790
|
+
* * inspected_storage = cloud_storage OR inspected_storage = bigquery
|
|
1791
|
+
* * inspected_storage = cloud_storage AND (state = done OR state = canceled)
|
|
1792
|
+
* * end_time > \"2017-12-12T00:00:00+00:00\"
|
|
1793
|
+
*
|
|
1794
|
+
* The length of this field should be no more than 500 characters.
|
|
1795
|
+
* @param {number} request.pageSize
|
|
1796
|
+
* The standard list page size.
|
|
1797
|
+
* @param {string} request.pageToken
|
|
1798
|
+
* The standard list page token.
|
|
1799
|
+
* @param {google.privacy.dlp.v2.DlpJobType} request.type
|
|
1800
|
+
* The type of job. Defaults to `DlpJobType.INSPECT`
|
|
1801
|
+
* @param {string} request.orderBy
|
|
1802
|
+
* Comma separated list of fields to order by,
|
|
1803
|
+
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
1804
|
+
* default sorting order is ascending, redundant space characters are
|
|
1805
|
+
* insignificant.
|
|
1806
|
+
*
|
|
1807
|
+
* Example: `name asc, end_time asc, create_time desc`
|
|
1808
|
+
*
|
|
1809
|
+
* Supported fields are:
|
|
1810
|
+
*
|
|
1811
|
+
* - `create_time`: corresponds to time the job was created.
|
|
1812
|
+
* - `end_time`: corresponds to time the job ended.
|
|
1813
|
+
* - `name`: corresponds to job's name.
|
|
1814
|
+
* - `state`: corresponds to `state`
|
|
1815
|
+
* @param {string} request.locationId
|
|
1816
|
+
* Deprecated. This field has no effect.
|
|
1817
|
+
* @param {object} [options]
|
|
1818
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1819
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1820
|
+
* The first element of the array is Array of [DlpJob]{@link google.privacy.dlp.v2.DlpJob}.
|
|
1821
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1822
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1823
|
+
* Note that it can affect your quota.
|
|
1824
|
+
* We recommend using `listDlpJobsAsync()`
|
|
1825
|
+
* method described below for async iteration which you can stop as needed.
|
|
1826
|
+
* Please see the
|
|
1827
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1828
|
+
* for more details and examples.
|
|
1829
|
+
*/
|
|
632
1830
|
listDlpJobs(request?: protos.google.privacy.dlp.v2.IListDlpJobsRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IDlpJob[], protos.google.privacy.dlp.v2.IListDlpJobsRequest | null, protos.google.privacy.dlp.v2.IListDlpJobsResponse]>;
|
|
633
1831
|
listDlpJobs(request: protos.google.privacy.dlp.v2.IListDlpJobsRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListDlpJobsRequest, protos.google.privacy.dlp.v2.IListDlpJobsResponse | null | undefined, protos.google.privacy.dlp.v2.IDlpJob>): void;
|
|
634
1832
|
listDlpJobs(request: protos.google.privacy.dlp.v2.IListDlpJobsRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListDlpJobsRequest, protos.google.privacy.dlp.v2.IListDlpJobsResponse | null | undefined, protos.google.privacy.dlp.v2.IDlpJob>): void;
|
|
@@ -801,13 +1999,74 @@ export declare class DlpServiceClient {
|
|
|
801
1999
|
* Please see the
|
|
802
2000
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
803
2001
|
* for more details and examples.
|
|
804
|
-
* @example
|
|
805
|
-
*
|
|
806
|
-
* for await (const response of iterable) {
|
|
807
|
-
* // process response
|
|
808
|
-
* }
|
|
2002
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_dlp_jobs.js</caption>
|
|
2003
|
+
* region_tag:dlp_v2_generated_DlpService_ListDlpJobs_async
|
|
809
2004
|
*/
|
|
810
2005
|
listDlpJobsAsync(request?: protos.google.privacy.dlp.v2.IListDlpJobsRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IDlpJob>;
|
|
2006
|
+
/**
|
|
2007
|
+
* Lists stored infoTypes.
|
|
2008
|
+
* See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
|
|
2009
|
+
* learn more.
|
|
2010
|
+
*
|
|
2011
|
+
* @param {Object} request
|
|
2012
|
+
* The request object that will be sent.
|
|
2013
|
+
* @param {string} request.parent
|
|
2014
|
+
* Required. Parent resource name.
|
|
2015
|
+
*
|
|
2016
|
+
* The format of this value varies depending on the scope of the request
|
|
2017
|
+
* (project or organization) and whether you have [specified a processing
|
|
2018
|
+
* location](https://cloud.google.com/dlp/docs/specifying-location):
|
|
2019
|
+
*
|
|
2020
|
+
* + Projects scope, location specified:<br/>
|
|
2021
|
+
* `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
2022
|
+
* + Projects scope, no location specified (defaults to global):<br/>
|
|
2023
|
+
* `projects/`<var>PROJECT_ID</var>
|
|
2024
|
+
* + Organizations scope, location specified:<br/>
|
|
2025
|
+
* `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
|
|
2026
|
+
* + Organizations scope, no location specified (defaults to global):<br/>
|
|
2027
|
+
* `organizations/`<var>ORG_ID</var>
|
|
2028
|
+
*
|
|
2029
|
+
* The following example `parent` string specifies a parent project with the
|
|
2030
|
+
* identifier `example-project`, and specifies the `europe-west3` location
|
|
2031
|
+
* for processing data:
|
|
2032
|
+
*
|
|
2033
|
+
* parent=projects/example-project/locations/europe-west3
|
|
2034
|
+
* @param {string} request.pageToken
|
|
2035
|
+
* Page token to continue retrieval. Comes from previous call
|
|
2036
|
+
* to `ListStoredInfoTypes`.
|
|
2037
|
+
* @param {number} request.pageSize
|
|
2038
|
+
* Size of the page, can be limited by server. If zero server returns
|
|
2039
|
+
* a page of max size 100.
|
|
2040
|
+
* @param {string} request.orderBy
|
|
2041
|
+
* Comma separated list of fields to order by,
|
|
2042
|
+
* followed by `asc` or `desc` postfix. This list is case-insensitive,
|
|
2043
|
+
* default sorting order is ascending, redundant space characters are
|
|
2044
|
+
* insignificant.
|
|
2045
|
+
*
|
|
2046
|
+
* Example: `name asc, display_name, create_time desc`
|
|
2047
|
+
*
|
|
2048
|
+
* Supported fields are:
|
|
2049
|
+
*
|
|
2050
|
+
* - `create_time`: corresponds to time the most recent version of the
|
|
2051
|
+
* resource was created.
|
|
2052
|
+
* - `state`: corresponds to the state of the resource.
|
|
2053
|
+
* - `name`: corresponds to resource name.
|
|
2054
|
+
* - `display_name`: corresponds to info type's display name.
|
|
2055
|
+
* @param {string} request.locationId
|
|
2056
|
+
* Deprecated. This field has no effect.
|
|
2057
|
+
* @param {object} [options]
|
|
2058
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2059
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
2060
|
+
* The first element of the array is Array of [StoredInfoType]{@link google.privacy.dlp.v2.StoredInfoType}.
|
|
2061
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2062
|
+
* times as needed and will merge results from all the pages into this array.
|
|
2063
|
+
* Note that it can affect your quota.
|
|
2064
|
+
* We recommend using `listStoredInfoTypesAsync()`
|
|
2065
|
+
* method described below for async iteration which you can stop as needed.
|
|
2066
|
+
* Please see the
|
|
2067
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
2068
|
+
* for more details and examples.
|
|
2069
|
+
*/
|
|
811
2070
|
listStoredInfoTypes(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): Promise<[protos.google.privacy.dlp.v2.IStoredInfoType[], protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest | null, protos.google.privacy.dlp.v2.IListStoredInfoTypesResponse]>;
|
|
812
2071
|
listStoredInfoTypes(request: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, protos.google.privacy.dlp.v2.IListStoredInfoTypesResponse | null | undefined, protos.google.privacy.dlp.v2.IStoredInfoType>): void;
|
|
813
2072
|
listStoredInfoTypes(request: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, protos.google.privacy.dlp.v2.IListStoredInfoTypesResponse | null | undefined, protos.google.privacy.dlp.v2.IStoredInfoType>): void;
|
|
@@ -932,11 +2191,8 @@ export declare class DlpServiceClient {
|
|
|
932
2191
|
* Please see the
|
|
933
2192
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
934
2193
|
* for more details and examples.
|
|
935
|
-
* @example
|
|
936
|
-
*
|
|
937
|
-
* for await (const response of iterable) {
|
|
938
|
-
* // process response
|
|
939
|
-
* }
|
|
2194
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_stored_info_types.js</caption>
|
|
2195
|
+
* region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async
|
|
940
2196
|
*/
|
|
941
2197
|
listStoredInfoTypesAsync(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IStoredInfoType>;
|
|
942
2198
|
/**
|