@google-cloud/dlp 5.0.1 → 5.1.1

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.
@@ -476,8 +476,8 @@ export declare class DlpServiceClient {
476
476
  * @param {Object} request
477
477
  * The request object that will be sent.
478
478
  * @param {string} request.name
479
- * Required. Resource name of organization and inspectTemplate to be updated, for
480
- * example `organizations/433245324/inspectTemplates/432452342` or
479
+ * Required. Resource name of organization and inspectTemplate to be updated,
480
+ * for example `organizations/433245324/inspectTemplates/432452342` or
481
481
  * projects/project-id/inspectTemplates/432452342.
482
482
  * @param {google.privacy.dlp.v2.InspectTemplate} request.inspectTemplate
483
483
  * New InspectTemplate value.
@@ -506,8 +506,8 @@ export declare class DlpServiceClient {
506
506
  * @param {Object} request
507
507
  * The request object that will be sent.
508
508
  * @param {string} request.name
509
- * Required. Resource name of the organization and inspectTemplate to be read, for
510
- * example `organizations/433245324/inspectTemplates/432452342` or
509
+ * Required. Resource name of the organization and inspectTemplate to be read,
510
+ * for example `organizations/433245324/inspectTemplates/432452342` or
511
511
  * projects/project-id/inspectTemplates/432452342.
512
512
  * @param {object} [options]
513
513
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
@@ -532,9 +532,9 @@ export declare class DlpServiceClient {
532
532
  * @param {Object} request
533
533
  * The request object that will be sent.
534
534
  * @param {string} request.name
535
- * Required. Resource name of the organization and inspectTemplate to be deleted, for
536
- * example `organizations/433245324/inspectTemplates/432452342` or
537
- * projects/project-id/inspectTemplates/432452342.
535
+ * Required. Resource name of the organization and inspectTemplate to be
536
+ * deleted, for example `organizations/433245324/inspectTemplates/432452342`
537
+ * or projects/project-id/inspectTemplates/432452342.
538
538
  * @param {object} [options]
539
539
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
540
540
  * @returns {Promise} - The promise which resolves to an array.
@@ -613,8 +613,9 @@ export declare class DlpServiceClient {
613
613
  * @param {Object} request
614
614
  * The request object that will be sent.
615
615
  * @param {string} request.name
616
- * Required. Resource name of organization and deidentify template to be updated, for
617
- * example `organizations/433245324/deidentifyTemplates/432452342` or
616
+ * Required. Resource name of organization and deidentify template to be
617
+ * updated, for example
618
+ * `organizations/433245324/deidentifyTemplates/432452342` or
618
619
  * projects/project-id/deidentifyTemplates/432452342.
619
620
  * @param {google.privacy.dlp.v2.DeidentifyTemplate} request.deidentifyTemplate
620
621
  * New DeidentifyTemplate value.
@@ -644,9 +645,9 @@ export declare class DlpServiceClient {
644
645
  * @param {Object} request
645
646
  * The request object that will be sent.
646
647
  * @param {string} request.name
647
- * Required. Resource name of the organization and deidentify template to be read, for
648
- * example `organizations/433245324/deidentifyTemplates/432452342` or
649
- * projects/project-id/deidentifyTemplates/432452342.
648
+ * Required. Resource name of the organization and deidentify template to be
649
+ * read, for example `organizations/433245324/deidentifyTemplates/432452342`
650
+ * or projects/project-id/deidentifyTemplates/432452342.
650
651
  * @param {object} [options]
651
652
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
652
653
  * @returns {Promise} - The promise which resolves to an array.
@@ -671,8 +672,9 @@ export declare class DlpServiceClient {
671
672
  * @param {Object} request
672
673
  * The request object that will be sent.
673
674
  * @param {string} request.name
674
- * Required. Resource name of the organization and deidentify template to be deleted,
675
- * for example `organizations/433245324/deidentifyTemplates/432452342` or
675
+ * Required. Resource name of the organization and deidentify template to be
676
+ * deleted, for example
677
+ * `organizations/433245324/deidentifyTemplates/432452342` or
676
678
  * projects/project-id/deidentifyTemplates/432452342.
677
679
  * @param {object} [options]
678
680
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
@@ -776,8 +778,8 @@ export declare class DlpServiceClient {
776
778
  * @param {Object} request
777
779
  * The request object that will be sent.
778
780
  * @param {string} request.name
779
- * Required. Resource name of the trigger to execute a hybrid inspect on, for example
780
- * `projects/dlp-test-project/jobTriggers/53234423`.
781
+ * Required. Resource name of the trigger to execute a hybrid inspect on, for
782
+ * example `projects/dlp-test-project/jobTriggers/53234423`.
781
783
  * @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem
782
784
  * The item to inspect.
783
785
  * @param {object} [options]
@@ -871,6 +873,121 @@ export declare class DlpServiceClient {
871
873
  ]>;
872
874
  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;
873
875
  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;
876
+ /**
877
+ * Creates a config for discovery to scan and profile storage.
878
+ *
879
+ * @param {Object} request
880
+ * The request object that will be sent.
881
+ * @param {string} request.parent
882
+ * Required. Parent resource name.
883
+ *
884
+ * The format of this value is as follows:
885
+ * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
886
+ *
887
+ * The following example `parent` string specifies a parent project with the
888
+ * identifier `example-project`, and specifies the `europe-west3` location
889
+ * for processing data:
890
+ *
891
+ * parent=projects/example-project/locations/europe-west3
892
+ * @param {google.privacy.dlp.v2.DiscoveryConfig} request.discoveryConfig
893
+ * Required. The DiscoveryConfig to create.
894
+ * @param {string} request.configId
895
+ * The config ID can contain uppercase and lowercase letters,
896
+ * numbers, and hyphens; that is, it must match the regular
897
+ * expression: `[a-zA-Z\d-_]+`. The maximum length is 100
898
+ * characters. Can be empty to allow the system to generate one.
899
+ * @param {object} [options]
900
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
901
+ * @returns {Promise} - The promise which resolves to an array.
902
+ * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}.
903
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
904
+ * for more details and examples.
905
+ * @example <caption>include:samples/generated/v2/dlp_service.create_discovery_config.js</caption>
906
+ * region_tag:dlp_v2_generated_DlpService_CreateDiscoveryConfig_async
907
+ */
908
+ createDiscoveryConfig(request?: protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest, options?: CallOptions): Promise<[
909
+ protos.google.privacy.dlp.v2.IDiscoveryConfig,
910
+ protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest | undefined,
911
+ {} | undefined
912
+ ]>;
913
+ createDiscoveryConfig(request: protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
914
+ createDiscoveryConfig(request: protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest, callback: Callback<protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.ICreateDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
915
+ /**
916
+ * Updates a discovery configuration.
917
+ *
918
+ * @param {Object} request
919
+ * The request object that will be sent.
920
+ * @param {string} request.name
921
+ * Required. Resource name of the project and the configuration, for example
922
+ * `projects/dlp-test-project/discoveryConfigs/53234423`.
923
+ * @param {google.privacy.dlp.v2.DiscoveryConfig} request.discoveryConfig
924
+ * Required. New DiscoveryConfig value.
925
+ * @param {google.protobuf.FieldMask} request.updateMask
926
+ * Mask to control which fields get updated.
927
+ * @param {object} [options]
928
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
929
+ * @returns {Promise} - The promise which resolves to an array.
930
+ * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}.
931
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
932
+ * for more details and examples.
933
+ * @example <caption>include:samples/generated/v2/dlp_service.update_discovery_config.js</caption>
934
+ * region_tag:dlp_v2_generated_DlpService_UpdateDiscoveryConfig_async
935
+ */
936
+ updateDiscoveryConfig(request?: protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest, options?: CallOptions): Promise<[
937
+ protos.google.privacy.dlp.v2.IDiscoveryConfig,
938
+ protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest | undefined,
939
+ {} | undefined
940
+ ]>;
941
+ updateDiscoveryConfig(request: protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
942
+ updateDiscoveryConfig(request: protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest, callback: Callback<protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.IUpdateDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
943
+ /**
944
+ * Gets a discovery configuration.
945
+ *
946
+ * @param {Object} request
947
+ * The request object that will be sent.
948
+ * @param {string} request.name
949
+ * Required. Resource name of the project and the configuration, for example
950
+ * `projects/dlp-test-project/discoveryConfigs/53234423`.
951
+ * @param {object} [options]
952
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
953
+ * @returns {Promise} - The promise which resolves to an array.
954
+ * The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}.
955
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
956
+ * for more details and examples.
957
+ * @example <caption>include:samples/generated/v2/dlp_service.get_discovery_config.js</caption>
958
+ * region_tag:dlp_v2_generated_DlpService_GetDiscoveryConfig_async
959
+ */
960
+ getDiscoveryConfig(request?: protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest, options?: CallOptions): Promise<[
961
+ protos.google.privacy.dlp.v2.IDiscoveryConfig,
962
+ protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest | undefined,
963
+ {} | undefined
964
+ ]>;
965
+ getDiscoveryConfig(request: protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
966
+ getDiscoveryConfig(request: protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest, callback: Callback<protos.google.privacy.dlp.v2.IDiscoveryConfig, protos.google.privacy.dlp.v2.IGetDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
967
+ /**
968
+ * Deletes a discovery configuration.
969
+ *
970
+ * @param {Object} request
971
+ * The request object that will be sent.
972
+ * @param {string} request.name
973
+ * Required. Resource name of the project and the config, for example
974
+ * `projects/dlp-test-project/discoveryConfigs/53234423`.
975
+ * @param {object} [options]
976
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
977
+ * @returns {Promise} - The promise which resolves to an array.
978
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
979
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
980
+ * for more details and examples.
981
+ * @example <caption>include:samples/generated/v2/dlp_service.delete_discovery_config.js</caption>
982
+ * region_tag:dlp_v2_generated_DlpService_DeleteDiscoveryConfig_async
983
+ */
984
+ deleteDiscoveryConfig(request?: protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest, options?: CallOptions): Promise<[
985
+ protos.google.protobuf.IEmpty,
986
+ protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest | undefined,
987
+ {} | undefined
988
+ ]>;
989
+ deleteDiscoveryConfig(request: protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
990
+ deleteDiscoveryConfig(request: protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteDiscoveryConfigRequest | null | undefined, {} | null | undefined>): void;
874
991
  /**
875
992
  * Creates a new job to inspect storage or calculate risk metrics.
876
993
  * See https://cloud.google.com/dlp/docs/inspecting-storage and
@@ -1068,8 +1185,8 @@ export declare class DlpServiceClient {
1068
1185
  * @param {Object} request
1069
1186
  * The request object that will be sent.
1070
1187
  * @param {string} request.name
1071
- * Required. Resource name of organization and storedInfoType to be updated, for
1072
- * example `organizations/433245324/storedInfoTypes/432452342` or
1188
+ * Required. Resource name of organization and storedInfoType to be updated,
1189
+ * for example `organizations/433245324/storedInfoTypes/432452342` or
1073
1190
  * projects/project-id/storedInfoTypes/432452342.
1074
1191
  * @param {google.privacy.dlp.v2.StoredInfoTypeConfig} request.config
1075
1192
  * Updated configuration for the storedInfoType. If not provided, a new
@@ -1101,8 +1218,8 @@ export declare class DlpServiceClient {
1101
1218
  * @param {Object} request
1102
1219
  * The request object that will be sent.
1103
1220
  * @param {string} request.name
1104
- * Required. Resource name of the organization and storedInfoType to be read, for
1105
- * example `organizations/433245324/storedInfoTypes/432452342` or
1221
+ * Required. Resource name of the organization and storedInfoType to be read,
1222
+ * for example `organizations/433245324/storedInfoTypes/432452342` or
1106
1223
  * projects/project-id/storedInfoTypes/432452342.
1107
1224
  * @param {object} [options]
1108
1225
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
@@ -1128,8 +1245,8 @@ export declare class DlpServiceClient {
1128
1245
  * @param {Object} request
1129
1246
  * The request object that will be sent.
1130
1247
  * @param {string} request.name
1131
- * Required. Resource name of the organization and storedInfoType to be deleted, for
1132
- * example `organizations/433245324/storedInfoTypes/432452342` or
1248
+ * Required. Resource name of the organization and storedInfoType to be
1249
+ * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
1133
1250
  * projects/project-id/storedInfoTypes/432452342.
1134
1251
  * @param {object} [options]
1135
1252
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
@@ -1155,8 +1272,8 @@ export declare class DlpServiceClient {
1155
1272
  * @param {Object} request
1156
1273
  * The request object that will be sent.
1157
1274
  * @param {string} request.name
1158
- * Required. Resource name of the job to execute a hybrid inspect on, for example
1159
- * `projects/dlp-test-project/dlpJob/53234423`.
1275
+ * Required. Resource name of the job to execute a hybrid inspect on, for
1276
+ * example `projects/dlp-test-project/dlpJob/53234423`.
1160
1277
  * @param {google.privacy.dlp.v2.HybridContentItem} request.hybridItem
1161
1278
  * The item to inspect.
1162
1279
  * @param {object} [options]
@@ -1227,15 +1344,15 @@ export declare class DlpServiceClient {
1227
1344
  *
1228
1345
  * parent=projects/example-project/locations/europe-west3
1229
1346
  * @param {string} request.pageToken
1230
- * Page token to continue retrieval. Comes from previous call
1347
+ * Page token to continue retrieval. Comes from the previous call
1231
1348
  * to `ListInspectTemplates`.
1232
1349
  * @param {number} request.pageSize
1233
- * Size of the page, can be limited by the server. If zero server returns
1234
- * a page of max size 100.
1350
+ * Size of the page. This value can be limited by the server. If zero server
1351
+ * returns a page of max size 100.
1235
1352
  * @param {string} request.orderBy
1236
1353
  * Comma separated list of fields to order by,
1237
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1238
- * default sorting order is ascending, redundant space characters are
1354
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1355
+ * default sorting order is ascending. Redundant space characters are
1239
1356
  * insignificant.
1240
1357
  *
1241
1358
  * Example: `name asc,update_time, create_time desc`
@@ -1293,15 +1410,15 @@ export declare class DlpServiceClient {
1293
1410
  *
1294
1411
  * parent=projects/example-project/locations/europe-west3
1295
1412
  * @param {string} request.pageToken
1296
- * Page token to continue retrieval. Comes from previous call
1413
+ * Page token to continue retrieval. Comes from the previous call
1297
1414
  * to `ListInspectTemplates`.
1298
1415
  * @param {number} request.pageSize
1299
- * Size of the page, can be limited by the server. If zero server returns
1300
- * a page of max size 100.
1416
+ * Size of the page. This value can be limited by the server. If zero server
1417
+ * returns a page of max size 100.
1301
1418
  * @param {string} request.orderBy
1302
1419
  * Comma separated list of fields to order by,
1303
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1304
- * default sorting order is ascending, redundant space characters are
1420
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1421
+ * default sorting order is ascending. Redundant space characters are
1305
1422
  * insignificant.
1306
1423
  *
1307
1424
  * Example: `name asc,update_time, create_time desc`
@@ -1354,15 +1471,15 @@ export declare class DlpServiceClient {
1354
1471
  *
1355
1472
  * parent=projects/example-project/locations/europe-west3
1356
1473
  * @param {string} request.pageToken
1357
- * Page token to continue retrieval. Comes from previous call
1474
+ * Page token to continue retrieval. Comes from the previous call
1358
1475
  * to `ListInspectTemplates`.
1359
1476
  * @param {number} request.pageSize
1360
- * Size of the page, can be limited by the server. If zero server returns
1361
- * a page of max size 100.
1477
+ * Size of the page. This value can be limited by the server. If zero server
1478
+ * returns a page of max size 100.
1362
1479
  * @param {string} request.orderBy
1363
1480
  * Comma separated list of fields to order by,
1364
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1365
- * default sorting order is ascending, redundant space characters are
1481
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1482
+ * default sorting order is ascending. Redundant space characters are
1366
1483
  * insignificant.
1367
1484
  *
1368
1485
  * Example: `name asc,update_time, create_time desc`
@@ -1417,15 +1534,15 @@ export declare class DlpServiceClient {
1417
1534
  *
1418
1535
  * parent=projects/example-project/locations/europe-west3
1419
1536
  * @param {string} request.pageToken
1420
- * Page token to continue retrieval. Comes from previous call
1537
+ * Page token to continue retrieval. Comes from the previous call
1421
1538
  * to `ListDeidentifyTemplates`.
1422
1539
  * @param {number} request.pageSize
1423
- * Size of the page, can be limited by the server. If zero server returns
1424
- * a page of max size 100.
1540
+ * Size of the page. This value can be limited by the server. If zero server
1541
+ * returns a page of max size 100.
1425
1542
  * @param {string} request.orderBy
1426
1543
  * Comma separated list of fields to order by,
1427
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1428
- * default sorting order is ascending, redundant space characters are
1544
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1545
+ * default sorting order is ascending. Redundant space characters are
1429
1546
  * insignificant.
1430
1547
  *
1431
1548
  * Example: `name asc,update_time, create_time desc`
@@ -1483,15 +1600,15 @@ export declare class DlpServiceClient {
1483
1600
  *
1484
1601
  * parent=projects/example-project/locations/europe-west3
1485
1602
  * @param {string} request.pageToken
1486
- * Page token to continue retrieval. Comes from previous call
1603
+ * Page token to continue retrieval. Comes from the previous call
1487
1604
  * to `ListDeidentifyTemplates`.
1488
1605
  * @param {number} request.pageSize
1489
- * Size of the page, can be limited by the server. If zero server returns
1490
- * a page of max size 100.
1606
+ * Size of the page. This value can be limited by the server. If zero server
1607
+ * returns a page of max size 100.
1491
1608
  * @param {string} request.orderBy
1492
1609
  * Comma separated list of fields to order by,
1493
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1494
- * default sorting order is ascending, redundant space characters are
1610
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1611
+ * default sorting order is ascending. Redundant space characters are
1495
1612
  * insignificant.
1496
1613
  *
1497
1614
  * Example: `name asc,update_time, create_time desc`
@@ -1544,15 +1661,15 @@ export declare class DlpServiceClient {
1544
1661
  *
1545
1662
  * parent=projects/example-project/locations/europe-west3
1546
1663
  * @param {string} request.pageToken
1547
- * Page token to continue retrieval. Comes from previous call
1664
+ * Page token to continue retrieval. Comes from the previous call
1548
1665
  * to `ListDeidentifyTemplates`.
1549
1666
  * @param {number} request.pageSize
1550
- * Size of the page, can be limited by the server. If zero server returns
1551
- * a page of max size 100.
1667
+ * Size of the page. This value can be limited by the server. If zero server
1668
+ * returns a page of max size 100.
1552
1669
  * @param {string} request.orderBy
1553
1670
  * Comma separated list of fields to order by,
1554
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1555
- * default sorting order is ascending, redundant space characters are
1671
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1672
+ * default sorting order is ascending. Redundant space characters are
1556
1673
  * insignificant.
1557
1674
  *
1558
1675
  * Example: `name asc,update_time, create_time desc`
@@ -1602,15 +1719,15 @@ export declare class DlpServiceClient {
1602
1719
  *
1603
1720
  * parent=projects/example-project/locations/europe-west3
1604
1721
  * @param {string} request.pageToken
1605
- * Page token to continue retrieval. Comes from previous call
1722
+ * Page token to continue retrieval. Comes from the previous call
1606
1723
  * to ListJobTriggers. `order_by` field must not
1607
1724
  * change for subsequent calls.
1608
1725
  * @param {number} request.pageSize
1609
- * Size of the page, can be limited by a server.
1726
+ * Size of the page. This value can be limited by a server.
1610
1727
  * @param {string} request.orderBy
1611
1728
  * Comma separated list of triggeredJob fields to order by,
1612
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1613
- * default sorting order is ascending, redundant space characters are
1729
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1730
+ * default sorting order is ascending. Redundant space characters are
1614
1731
  * insignificant.
1615
1732
  *
1616
1733
  * Example: `name asc,update_time, create_time desc`
@@ -1693,15 +1810,15 @@ export declare class DlpServiceClient {
1693
1810
  *
1694
1811
  * parent=projects/example-project/locations/europe-west3
1695
1812
  * @param {string} request.pageToken
1696
- * Page token to continue retrieval. Comes from previous call
1813
+ * Page token to continue retrieval. Comes from the previous call
1697
1814
  * to ListJobTriggers. `order_by` field must not
1698
1815
  * change for subsequent calls.
1699
1816
  * @param {number} request.pageSize
1700
- * Size of the page, can be limited by a server.
1817
+ * Size of the page. This value can be limited by a server.
1701
1818
  * @param {string} request.orderBy
1702
1819
  * Comma separated list of triggeredJob fields to order by,
1703
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1704
- * default sorting order is ascending, redundant space characters are
1820
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1821
+ * default sorting order is ascending. Redundant space characters are
1705
1822
  * insignificant.
1706
1823
  *
1707
1824
  * Example: `name asc,update_time, create_time desc`
@@ -1779,15 +1896,15 @@ export declare class DlpServiceClient {
1779
1896
  *
1780
1897
  * parent=projects/example-project/locations/europe-west3
1781
1898
  * @param {string} request.pageToken
1782
- * Page token to continue retrieval. Comes from previous call
1899
+ * Page token to continue retrieval. Comes from the previous call
1783
1900
  * to ListJobTriggers. `order_by` field must not
1784
1901
  * change for subsequent calls.
1785
1902
  * @param {number} request.pageSize
1786
- * Size of the page, can be limited by a server.
1903
+ * Size of the page. This value can be limited by a server.
1787
1904
  * @param {string} request.orderBy
1788
1905
  * Comma separated list of triggeredJob fields to order by,
1789
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1790
- * default sorting order is ascending, redundant space characters are
1906
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1907
+ * default sorting order is ascending. Redundant space characters are
1791
1908
  * insignificant.
1792
1909
  *
1793
1910
  * Example: `name asc,update_time, create_time desc`
@@ -1842,6 +1959,155 @@ export declare class DlpServiceClient {
1842
1959
  * region_tag:dlp_v2_generated_DlpService_ListJobTriggers_async
1843
1960
  */
1844
1961
  listJobTriggersAsync(request?: protos.google.privacy.dlp.v2.IListJobTriggersRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IJobTrigger>;
1962
+ /**
1963
+ * Lists discovery configurations.
1964
+ *
1965
+ * @param {Object} request
1966
+ * The request object that will be sent.
1967
+ * @param {string} request.parent
1968
+ * Required. Parent resource name.
1969
+ *
1970
+ * The format of this value is as follows:
1971
+ * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1972
+ *
1973
+ * The following example `parent` string specifies a parent project with the
1974
+ * identifier `example-project`, and specifies the `europe-west3` location
1975
+ * for processing data:
1976
+ *
1977
+ * parent=projects/example-project/locations/europe-west3
1978
+ * @param {string} request.pageToken
1979
+ * Page token to continue retrieval. Comes from the previous call
1980
+ * to ListDiscoveryConfigs. `order_by` field must not
1981
+ * change for subsequent calls.
1982
+ * @param {number} request.pageSize
1983
+ * Size of the page. This value can be limited by a server.
1984
+ * @param {string} request.orderBy
1985
+ * Comma separated list of config fields to order by,
1986
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
1987
+ * default sorting order is ascending. Redundant space characters are
1988
+ * insignificant.
1989
+ *
1990
+ * Example: `name asc,update_time, create_time desc`
1991
+ *
1992
+ * Supported fields are:
1993
+ *
1994
+ * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran.
1995
+ * - `name`: corresponds to the DiscoveryConfig's name.
1996
+ * - `status`: corresponds to DiscoveryConfig's status.
1997
+ * @param {object} [options]
1998
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1999
+ * @returns {Promise} - The promise which resolves to an array.
2000
+ * The first element of the array is Array of {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}.
2001
+ * The client library will perform auto-pagination by default: it will call the API as many
2002
+ * times as needed and will merge results from all the pages into this array.
2003
+ * Note that it can affect your quota.
2004
+ * We recommend using `listDiscoveryConfigsAsync()`
2005
+ * method described below for async iteration which you can stop as needed.
2006
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2007
+ * for more details and examples.
2008
+ */
2009
+ listDiscoveryConfigs(request?: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options?: CallOptions): Promise<[
2010
+ protos.google.privacy.dlp.v2.IDiscoveryConfig[],
2011
+ protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest | null,
2012
+ protos.google.privacy.dlp.v2.IListDiscoveryConfigsResponse
2013
+ ]>;
2014
+ listDiscoveryConfigs(request: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, protos.google.privacy.dlp.v2.IListDiscoveryConfigsResponse | null | undefined, protos.google.privacy.dlp.v2.IDiscoveryConfig>): void;
2015
+ listDiscoveryConfigs(request: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, protos.google.privacy.dlp.v2.IListDiscoveryConfigsResponse | null | undefined, protos.google.privacy.dlp.v2.IDiscoveryConfig>): void;
2016
+ /**
2017
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2018
+ * @param {Object} request
2019
+ * The request object that will be sent.
2020
+ * @param {string} request.parent
2021
+ * Required. Parent resource name.
2022
+ *
2023
+ * The format of this value is as follows:
2024
+ * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2025
+ *
2026
+ * The following example `parent` string specifies a parent project with the
2027
+ * identifier `example-project`, and specifies the `europe-west3` location
2028
+ * for processing data:
2029
+ *
2030
+ * parent=projects/example-project/locations/europe-west3
2031
+ * @param {string} request.pageToken
2032
+ * Page token to continue retrieval. Comes from the previous call
2033
+ * to ListDiscoveryConfigs. `order_by` field must not
2034
+ * change for subsequent calls.
2035
+ * @param {number} request.pageSize
2036
+ * Size of the page. This value can be limited by a server.
2037
+ * @param {string} request.orderBy
2038
+ * Comma separated list of config fields to order by,
2039
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2040
+ * default sorting order is ascending. Redundant space characters are
2041
+ * insignificant.
2042
+ *
2043
+ * Example: `name asc,update_time, create_time desc`
2044
+ *
2045
+ * Supported fields are:
2046
+ *
2047
+ * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran.
2048
+ * - `name`: corresponds to the DiscoveryConfig's name.
2049
+ * - `status`: corresponds to DiscoveryConfig's status.
2050
+ * @param {object} [options]
2051
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2052
+ * @returns {Stream}
2053
+ * An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig} on 'data' event.
2054
+ * The client library will perform auto-pagination by default: it will call the API as many
2055
+ * times as needed. Note that it can affect your quota.
2056
+ * We recommend using `listDiscoveryConfigsAsync()`
2057
+ * method described below for async iteration which you can stop as needed.
2058
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2059
+ * for more details and examples.
2060
+ */
2061
+ listDiscoveryConfigsStream(request?: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options?: CallOptions): Transform;
2062
+ /**
2063
+ * Equivalent to `listDiscoveryConfigs`, but returns an iterable object.
2064
+ *
2065
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2066
+ * @param {Object} request
2067
+ * The request object that will be sent.
2068
+ * @param {string} request.parent
2069
+ * Required. Parent resource name.
2070
+ *
2071
+ * The format of this value is as follows:
2072
+ * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2073
+ *
2074
+ * The following example `parent` string specifies a parent project with the
2075
+ * identifier `example-project`, and specifies the `europe-west3` location
2076
+ * for processing data:
2077
+ *
2078
+ * parent=projects/example-project/locations/europe-west3
2079
+ * @param {string} request.pageToken
2080
+ * Page token to continue retrieval. Comes from the previous call
2081
+ * to ListDiscoveryConfigs. `order_by` field must not
2082
+ * change for subsequent calls.
2083
+ * @param {number} request.pageSize
2084
+ * Size of the page. This value can be limited by a server.
2085
+ * @param {string} request.orderBy
2086
+ * Comma separated list of config fields to order by,
2087
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2088
+ * default sorting order is ascending. Redundant space characters are
2089
+ * insignificant.
2090
+ *
2091
+ * Example: `name asc,update_time, create_time desc`
2092
+ *
2093
+ * Supported fields are:
2094
+ *
2095
+ * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran.
2096
+ * - `name`: corresponds to the DiscoveryConfig's name.
2097
+ * - `status`: corresponds to DiscoveryConfig's status.
2098
+ * @param {object} [options]
2099
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2100
+ * @returns {Object}
2101
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
2102
+ * When you iterate the returned iterable, each element will be an object representing
2103
+ * {@link protos.google.privacy.dlp.v2.DiscoveryConfig|DiscoveryConfig}. The API will be called under the hood as needed, once per the page,
2104
+ * so you can stop the iteration when you don't need more results.
2105
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
2106
+ * for more details and examples.
2107
+ * @example <caption>include:samples/generated/v2/dlp_service.list_discovery_configs.js</caption>
2108
+ * region_tag:dlp_v2_generated_DlpService_ListDiscoveryConfigs_async
2109
+ */
2110
+ listDiscoveryConfigsAsync(request?: protos.google.privacy.dlp.v2.IListDiscoveryConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IDiscoveryConfig>;
1845
2111
  /**
1846
2112
  * Lists DlpJobs that match the specified filter in the request.
1847
2113
  * See https://cloud.google.com/dlp/docs/inspecting-storage and
@@ -1903,8 +2169,8 @@ export declare class DlpServiceClient {
1903
2169
  * The type of job. Defaults to `DlpJobType.INSPECT`
1904
2170
  * @param {string} request.orderBy
1905
2171
  * Comma separated list of fields to order by,
1906
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1907
- * default sorting order is ascending, redundant space characters are
2172
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2173
+ * default sorting order is ascending. Redundant space characters are
1908
2174
  * insignificant.
1909
2175
  *
1910
2176
  * Example: `name asc, end_time asc, create_time desc`
@@ -1994,8 +2260,8 @@ export declare class DlpServiceClient {
1994
2260
  * The type of job. Defaults to `DlpJobType.INSPECT`
1995
2261
  * @param {string} request.orderBy
1996
2262
  * Comma separated list of fields to order by,
1997
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
1998
- * default sorting order is ascending, redundant space characters are
2263
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2264
+ * default sorting order is ascending. Redundant space characters are
1999
2265
  * insignificant.
2000
2266
  *
2001
2267
  * Example: `name asc, end_time asc, create_time desc`
@@ -2080,8 +2346,8 @@ export declare class DlpServiceClient {
2080
2346
  * The type of job. Defaults to `DlpJobType.INSPECT`
2081
2347
  * @param {string} request.orderBy
2082
2348
  * Comma separated list of fields to order by,
2083
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
2084
- * default sorting order is ascending, redundant space characters are
2349
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2350
+ * default sorting order is ascending. Redundant space characters are
2085
2351
  * insignificant.
2086
2352
  *
2087
2353
  * Example: `name asc, end_time asc, create_time desc`
@@ -2132,15 +2398,15 @@ export declare class DlpServiceClient {
2132
2398
  *
2133
2399
  * parent=projects/example-project/locations/europe-west3
2134
2400
  * @param {string} request.pageToken
2135
- * Page token to continue retrieval. Comes from previous call
2401
+ * Page token to continue retrieval. Comes from the previous call
2136
2402
  * to `ListStoredInfoTypes`.
2137
2403
  * @param {number} request.pageSize
2138
- * Size of the page, can be limited by the server. If zero server returns
2139
- * a page of max size 100.
2404
+ * Size of the page. This value can be limited by the server. If zero server
2405
+ * returns a page of max size 100.
2140
2406
  * @param {string} request.orderBy
2141
2407
  * Comma separated list of fields to order by,
2142
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
2143
- * default sorting order is ascending, redundant space characters are
2408
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2409
+ * default sorting order is ascending. Redundant space characters are
2144
2410
  * insignificant.
2145
2411
  *
2146
2412
  * Example: `name asc, display_name, create_time desc`
@@ -2195,15 +2461,15 @@ export declare class DlpServiceClient {
2195
2461
  *
2196
2462
  * parent=projects/example-project/locations/europe-west3
2197
2463
  * @param {string} request.pageToken
2198
- * Page token to continue retrieval. Comes from previous call
2464
+ * Page token to continue retrieval. Comes from the previous call
2199
2465
  * to `ListStoredInfoTypes`.
2200
2466
  * @param {number} request.pageSize
2201
- * Size of the page, can be limited by the server. If zero server returns
2202
- * a page of max size 100.
2467
+ * Size of the page. This value can be limited by the server. If zero server
2468
+ * returns a page of max size 100.
2203
2469
  * @param {string} request.orderBy
2204
2470
  * Comma separated list of fields to order by,
2205
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
2206
- * default sorting order is ascending, redundant space characters are
2471
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2472
+ * default sorting order is ascending. Redundant space characters are
2207
2473
  * insignificant.
2208
2474
  *
2209
2475
  * Example: `name asc, display_name, create_time desc`
@@ -2253,15 +2519,15 @@ export declare class DlpServiceClient {
2253
2519
  *
2254
2520
  * parent=projects/example-project/locations/europe-west3
2255
2521
  * @param {string} request.pageToken
2256
- * Page token to continue retrieval. Comes from previous call
2522
+ * Page token to continue retrieval. Comes from the previous call
2257
2523
  * to `ListStoredInfoTypes`.
2258
2524
  * @param {number} request.pageSize
2259
- * Size of the page, can be limited by the server. If zero server returns
2260
- * a page of max size 100.
2525
+ * Size of the page. This value can be limited by the server. If zero server
2526
+ * returns a page of max size 100.
2261
2527
  * @param {string} request.orderBy
2262
2528
  * Comma separated list of fields to order by,
2263
- * followed by `asc` or `desc` postfix. This list is case-insensitive,
2264
- * default sorting order is ascending, redundant space characters are
2529
+ * followed by `asc` or `desc` postfix. This list is case insensitive. The
2530
+ * default sorting order is ascending. Redundant space characters are
2265
2531
  * insignificant.
2266
2532
  *
2267
2533
  * Example: `name asc, display_name, create_time desc`
@@ -2339,6 +2605,39 @@ export declare class DlpServiceClient {
2339
2605
  * ```
2340
2606
  */
2341
2607
  listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable<LocationProtos.google.cloud.location.ILocation>;
2608
+ /**
2609
+ * Return a fully-qualified discoveryConfig resource name string.
2610
+ *
2611
+ * @param {string} project
2612
+ * @param {string} location
2613
+ * @param {string} discovery_config
2614
+ * @returns {string} Resource name string.
2615
+ */
2616
+ discoveryConfigPath(project: string, location: string, discoveryConfig: string): string;
2617
+ /**
2618
+ * Parse the project from DiscoveryConfig resource.
2619
+ *
2620
+ * @param {string} discoveryConfigName
2621
+ * A fully-qualified path representing DiscoveryConfig resource.
2622
+ * @returns {string} A string representing the project.
2623
+ */
2624
+ matchProjectFromDiscoveryConfigName(discoveryConfigName: string): string | number;
2625
+ /**
2626
+ * Parse the location from DiscoveryConfig resource.
2627
+ *
2628
+ * @param {string} discoveryConfigName
2629
+ * A fully-qualified path representing DiscoveryConfig resource.
2630
+ * @returns {string} A string representing the location.
2631
+ */
2632
+ matchLocationFromDiscoveryConfigName(discoveryConfigName: string): string | number;
2633
+ /**
2634
+ * Parse the discovery_config from DiscoveryConfig resource.
2635
+ *
2636
+ * @param {string} discoveryConfigName
2637
+ * A fully-qualified path representing DiscoveryConfig resource.
2638
+ * @returns {string} A string representing the discovery_config.
2639
+ */
2640
+ matchDiscoveryConfigFromDiscoveryConfigName(discoveryConfigName: string): string | number;
2342
2641
  /**
2343
2642
  * Return a fully-qualified finding resource name string.
2344
2643
  *
@@ -2372,6 +2671,30 @@ export declare class DlpServiceClient {
2372
2671
  * @returns {string} A string representing the finding.
2373
2672
  */
2374
2673
  matchFindingFromFindingName(findingName: string): string | number;
2674
+ /**
2675
+ * Return a fully-qualified location resource name string.
2676
+ *
2677
+ * @param {string} project
2678
+ * @param {string} location
2679
+ * @returns {string} Resource name string.
2680
+ */
2681
+ locationPath(project: string, location: string): string;
2682
+ /**
2683
+ * Parse the project from Location resource.
2684
+ *
2685
+ * @param {string} locationName
2686
+ * A fully-qualified path representing Location resource.
2687
+ * @returns {string} A string representing the project.
2688
+ */
2689
+ matchProjectFromLocationName(locationName: string): string | number;
2690
+ /**
2691
+ * Parse the location from Location resource.
2692
+ *
2693
+ * @param {string} locationName
2694
+ * A fully-qualified path representing Location resource.
2695
+ * @returns {string} A string representing the location.
2696
+ */
2697
+ matchLocationFromLocationName(locationName: string): string | number;
2375
2698
  /**
2376
2699
  * Return a fully-qualified organization resource name string.
2377
2700
  *