@google-cloud/dlp 5.4.0 → 5.5.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 +7 -0
- package/README.md +7 -0
- package/build/protos/google/privacy/dlp/v2/dlp.proto +561 -17
- package/build/protos/google/privacy/dlp/v2/storage.proto +12 -1
- package/build/protos/protos.d.ts +5389 -2752
- package/build/protos/protos.js +14623 -8286
- package/build/protos/protos.json +642 -2
- package/build/src/v2/dlp_service_client.d.ts +355 -12
- package/build/src/v2/dlp_service_client.js +381 -6
- package/build/src/v2/dlp_service_client_config.json +28 -0
- package/package.json +1 -1
|
@@ -1386,6 +1386,30 @@ export declare class DlpServiceClient {
|
|
|
1386
1386
|
]>;
|
|
1387
1387
|
getColumnDataProfile(request: protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IColumnDataProfile, protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest | null | undefined, {} | null | undefined>): void;
|
|
1388
1388
|
getColumnDataProfile(request: protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest, callback: Callback<protos.google.privacy.dlp.v2.IColumnDataProfile, protos.google.privacy.dlp.v2.IGetColumnDataProfileRequest | null | undefined, {} | null | undefined>): void;
|
|
1389
|
+
/**
|
|
1390
|
+
* Delete a TableDataProfile. Will not prevent the profile from being
|
|
1391
|
+
* regenerated if the table is still included in a discovery configuration.
|
|
1392
|
+
*
|
|
1393
|
+
* @param {Object} request
|
|
1394
|
+
* The request object that will be sent.
|
|
1395
|
+
* @param {string} request.name
|
|
1396
|
+
* Required. Resource name of the table data profile.
|
|
1397
|
+
* @param {object} [options]
|
|
1398
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1399
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1400
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
1401
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1402
|
+
* for more details and examples.
|
|
1403
|
+
* @example <caption>include:samples/generated/v2/dlp_service.delete_table_data_profile.js</caption>
|
|
1404
|
+
* region_tag:dlp_v2_generated_DlpService_DeleteTableDataProfile_async
|
|
1405
|
+
*/
|
|
1406
|
+
deleteTableDataProfile(request?: protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest, options?: CallOptions): Promise<[
|
|
1407
|
+
protos.google.protobuf.IEmpty,
|
|
1408
|
+
protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest | undefined,
|
|
1409
|
+
{} | undefined
|
|
1410
|
+
]>;
|
|
1411
|
+
deleteTableDataProfile(request: protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest | null | undefined, {} | null | undefined>): void;
|
|
1412
|
+
deleteTableDataProfile(request: protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteTableDataProfileRequest | null | undefined, {} | null | undefined>): void;
|
|
1389
1413
|
/**
|
|
1390
1414
|
* Inspect hybrid content and store findings to a job.
|
|
1391
1415
|
* To review the findings, inspect the job. Inspection will occur
|
|
@@ -1438,6 +1462,108 @@ export declare class DlpServiceClient {
|
|
|
1438
1462
|
]>;
|
|
1439
1463
|
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;
|
|
1440
1464
|
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;
|
|
1465
|
+
/**
|
|
1466
|
+
* Create a Connection to an external data source.
|
|
1467
|
+
*
|
|
1468
|
+
* @param {Object} request
|
|
1469
|
+
* The request object that will be sent.
|
|
1470
|
+
* @param {string} request.parent
|
|
1471
|
+
* Required. Parent resource name in the format:
|
|
1472
|
+
* `projects/{project}/locations/{location}`.
|
|
1473
|
+
* @param {google.privacy.dlp.v2.Connection} request.connection
|
|
1474
|
+
* Required. The connection resource.
|
|
1475
|
+
* @param {object} [options]
|
|
1476
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1477
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1478
|
+
* The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection}.
|
|
1479
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1480
|
+
* for more details and examples.
|
|
1481
|
+
* @example <caption>include:samples/generated/v2/dlp_service.create_connection.js</caption>
|
|
1482
|
+
* region_tag:dlp_v2_generated_DlpService_CreateConnection_async
|
|
1483
|
+
*/
|
|
1484
|
+
createConnection(request?: protos.google.privacy.dlp.v2.ICreateConnectionRequest, options?: CallOptions): Promise<[
|
|
1485
|
+
protos.google.privacy.dlp.v2.IConnection,
|
|
1486
|
+
protos.google.privacy.dlp.v2.ICreateConnectionRequest | undefined,
|
|
1487
|
+
{} | undefined
|
|
1488
|
+
]>;
|
|
1489
|
+
createConnection(request: protos.google.privacy.dlp.v2.ICreateConnectionRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.ICreateConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1490
|
+
createConnection(request: protos.google.privacy.dlp.v2.ICreateConnectionRequest, callback: Callback<protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.ICreateConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1491
|
+
/**
|
|
1492
|
+
* Get a Connection by name.
|
|
1493
|
+
*
|
|
1494
|
+
* @param {Object} request
|
|
1495
|
+
* The request object that will be sent.
|
|
1496
|
+
* @param {string} request.name
|
|
1497
|
+
* Required. Resource name in the format:
|
|
1498
|
+
* `projects/{project}/locations/{location}/connections/{connection}`.
|
|
1499
|
+
* @param {object} [options]
|
|
1500
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1501
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1502
|
+
* The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection}.
|
|
1503
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1504
|
+
* for more details and examples.
|
|
1505
|
+
* @example <caption>include:samples/generated/v2/dlp_service.get_connection.js</caption>
|
|
1506
|
+
* region_tag:dlp_v2_generated_DlpService_GetConnection_async
|
|
1507
|
+
*/
|
|
1508
|
+
getConnection(request?: protos.google.privacy.dlp.v2.IGetConnectionRequest, options?: CallOptions): Promise<[
|
|
1509
|
+
protos.google.privacy.dlp.v2.IConnection,
|
|
1510
|
+
protos.google.privacy.dlp.v2.IGetConnectionRequest | undefined,
|
|
1511
|
+
{} | undefined
|
|
1512
|
+
]>;
|
|
1513
|
+
getConnection(request: protos.google.privacy.dlp.v2.IGetConnectionRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.IGetConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1514
|
+
getConnection(request: protos.google.privacy.dlp.v2.IGetConnectionRequest, callback: Callback<protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.IGetConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1515
|
+
/**
|
|
1516
|
+
* Delete a Connection.
|
|
1517
|
+
*
|
|
1518
|
+
* @param {Object} request
|
|
1519
|
+
* The request object that will be sent.
|
|
1520
|
+
* @param {string} request.name
|
|
1521
|
+
* Required. Resource name of the Connection to be deleted, in the format:
|
|
1522
|
+
* `projects/{project}/locations/{location}/connections/{connection}`.
|
|
1523
|
+
* @param {object} [options]
|
|
1524
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1525
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1526
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
1527
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1528
|
+
* for more details and examples.
|
|
1529
|
+
* @example <caption>include:samples/generated/v2/dlp_service.delete_connection.js</caption>
|
|
1530
|
+
* region_tag:dlp_v2_generated_DlpService_DeleteConnection_async
|
|
1531
|
+
*/
|
|
1532
|
+
deleteConnection(request?: protos.google.privacy.dlp.v2.IDeleteConnectionRequest, options?: CallOptions): Promise<[
|
|
1533
|
+
protos.google.protobuf.IEmpty,
|
|
1534
|
+
protos.google.privacy.dlp.v2.IDeleteConnectionRequest | undefined,
|
|
1535
|
+
{} | undefined
|
|
1536
|
+
]>;
|
|
1537
|
+
deleteConnection(request: protos.google.privacy.dlp.v2.IDeleteConnectionRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1538
|
+
deleteConnection(request: protos.google.privacy.dlp.v2.IDeleteConnectionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.privacy.dlp.v2.IDeleteConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1539
|
+
/**
|
|
1540
|
+
* Update a Connection.
|
|
1541
|
+
*
|
|
1542
|
+
* @param {Object} request
|
|
1543
|
+
* The request object that will be sent.
|
|
1544
|
+
* @param {string} request.name
|
|
1545
|
+
* Required. Resource name in the format:
|
|
1546
|
+
* `projects/{project}/locations/{location}/connections/{connection}`.
|
|
1547
|
+
* @param {google.privacy.dlp.v2.Connection} request.connection
|
|
1548
|
+
* Required. The connection with new values for the relevant fields.
|
|
1549
|
+
* @param {google.protobuf.FieldMask} [request.updateMask]
|
|
1550
|
+
* Optional. Mask to control which fields get updated.
|
|
1551
|
+
* @param {object} [options]
|
|
1552
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1553
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1554
|
+
* The first element of the array is an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection}.
|
|
1555
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1556
|
+
* for more details and examples.
|
|
1557
|
+
* @example <caption>include:samples/generated/v2/dlp_service.update_connection.js</caption>
|
|
1558
|
+
* region_tag:dlp_v2_generated_DlpService_UpdateConnection_async
|
|
1559
|
+
*/
|
|
1560
|
+
updateConnection(request?: protos.google.privacy.dlp.v2.IUpdateConnectionRequest, options?: CallOptions): Promise<[
|
|
1561
|
+
protos.google.privacy.dlp.v2.IConnection,
|
|
1562
|
+
protos.google.privacy.dlp.v2.IUpdateConnectionRequest | undefined,
|
|
1563
|
+
{} | undefined
|
|
1564
|
+
]>;
|
|
1565
|
+
updateConnection(request: protos.google.privacy.dlp.v2.IUpdateConnectionRequest, options: CallOptions, callback: Callback<protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.IUpdateConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1566
|
+
updateConnection(request: protos.google.privacy.dlp.v2.IUpdateConnectionRequest, callback: Callback<protos.google.privacy.dlp.v2.IConnection, protos.google.privacy.dlp.v2.IUpdateConnectionRequest | null | undefined, {} | null | undefined>): void;
|
|
1441
1567
|
/**
|
|
1442
1568
|
* Lists InspectTemplates.
|
|
1443
1569
|
* See
|
|
@@ -2686,7 +2812,7 @@ export declare class DlpServiceClient {
|
|
|
2686
2812
|
*/
|
|
2687
2813
|
listStoredInfoTypesAsync(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IStoredInfoType>;
|
|
2688
2814
|
/**
|
|
2689
|
-
* Lists data profiles for an organization.
|
|
2815
|
+
* Lists project data profiles for an organization.
|
|
2690
2816
|
*
|
|
2691
2817
|
* @param {Object} request
|
|
2692
2818
|
* The request object that will be sent.
|
|
@@ -2709,7 +2835,7 @@ export declare class DlpServiceClient {
|
|
|
2709
2835
|
*
|
|
2710
2836
|
* Supported fields are:
|
|
2711
2837
|
*
|
|
2712
|
-
* - `project_id`:
|
|
2838
|
+
* - `project_id`: Google Cloud project ID
|
|
2713
2839
|
* - `sensitivity_level`: How sensitive the data in a project is, at most.
|
|
2714
2840
|
* - `data_risk_level`: How much risk is associated with this data.
|
|
2715
2841
|
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
@@ -2778,7 +2904,7 @@ export declare class DlpServiceClient {
|
|
|
2778
2904
|
*
|
|
2779
2905
|
* Supported fields are:
|
|
2780
2906
|
*
|
|
2781
|
-
* - `project_id`:
|
|
2907
|
+
* - `project_id`: Google Cloud project ID
|
|
2782
2908
|
* - `sensitivity_level`: How sensitive the data in a project is, at most.
|
|
2783
2909
|
* - `data_risk_level`: How much risk is associated with this data.
|
|
2784
2910
|
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
@@ -2842,7 +2968,7 @@ export declare class DlpServiceClient {
|
|
|
2842
2968
|
*
|
|
2843
2969
|
* Supported fields are:
|
|
2844
2970
|
*
|
|
2845
|
-
* - `project_id`:
|
|
2971
|
+
* - `project_id`: Google Cloud project ID
|
|
2846
2972
|
* - `sensitivity_level`: How sensitive the data in a project is, at most.
|
|
2847
2973
|
* - `data_risk_level`: How much risk is associated with this data.
|
|
2848
2974
|
* - `profile_last_generated`: When the profile was last updated in epoch
|
|
@@ -2883,7 +3009,7 @@ export declare class DlpServiceClient {
|
|
|
2883
3009
|
*/
|
|
2884
3010
|
listProjectDataProfilesAsync(request?: protos.google.privacy.dlp.v2.IListProjectDataProfilesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IProjectDataProfile>;
|
|
2885
3011
|
/**
|
|
2886
|
-
* Lists data profiles for an organization.
|
|
3012
|
+
* Lists table data profiles for an organization.
|
|
2887
3013
|
*
|
|
2888
3014
|
* @param {Object} request
|
|
2889
3015
|
* The request object that will be sent.
|
|
@@ -2909,7 +3035,7 @@ export declare class DlpServiceClient {
|
|
|
2909
3035
|
*
|
|
2910
3036
|
* Supported fields are:
|
|
2911
3037
|
*
|
|
2912
|
-
* - `project_id`: The
|
|
3038
|
+
* - `project_id`: The Google Cloud project ID.
|
|
2913
3039
|
* - `dataset_id`: The ID of a BigQuery dataset.
|
|
2914
3040
|
* - `table_id`: The ID of a BigQuery table.
|
|
2915
3041
|
* - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
@@ -2929,7 +3055,7 @@ export declare class DlpServiceClient {
|
|
|
2929
3055
|
* sequence of restrictions implicitly uses `AND`.
|
|
2930
3056
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
2931
3057
|
* * Supported fields/values:
|
|
2932
|
-
* - `project_id` - The
|
|
3058
|
+
* - `project_id` - The Google Cloud project ID.
|
|
2933
3059
|
* - `dataset_id` - The BigQuery dataset ID.
|
|
2934
3060
|
* - `table_id` - The ID of the BigQuery table.
|
|
2935
3061
|
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
@@ -2991,7 +3117,7 @@ export declare class DlpServiceClient {
|
|
|
2991
3117
|
*
|
|
2992
3118
|
* Supported fields are:
|
|
2993
3119
|
*
|
|
2994
|
-
* - `project_id`: The
|
|
3120
|
+
* - `project_id`: The Google Cloud project ID.
|
|
2995
3121
|
* - `dataset_id`: The ID of a BigQuery dataset.
|
|
2996
3122
|
* - `table_id`: The ID of a BigQuery table.
|
|
2997
3123
|
* - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
@@ -3011,7 +3137,7 @@ export declare class DlpServiceClient {
|
|
|
3011
3137
|
* sequence of restrictions implicitly uses `AND`.
|
|
3012
3138
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3013
3139
|
* * Supported fields/values:
|
|
3014
|
-
* - `project_id` - The
|
|
3140
|
+
* - `project_id` - The Google Cloud project ID.
|
|
3015
3141
|
* - `dataset_id` - The BigQuery dataset ID.
|
|
3016
3142
|
* - `table_id` - The ID of the BigQuery table.
|
|
3017
3143
|
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
@@ -3068,7 +3194,7 @@ export declare class DlpServiceClient {
|
|
|
3068
3194
|
*
|
|
3069
3195
|
* Supported fields are:
|
|
3070
3196
|
*
|
|
3071
|
-
* - `project_id`: The
|
|
3197
|
+
* - `project_id`: The Google Cloud project ID.
|
|
3072
3198
|
* - `dataset_id`: The ID of a BigQuery dataset.
|
|
3073
3199
|
* - `table_id`: The ID of a BigQuery table.
|
|
3074
3200
|
* - `sensitivity_level`: How sensitive the data in a table is, at most.
|
|
@@ -3088,7 +3214,7 @@ export declare class DlpServiceClient {
|
|
|
3088
3214
|
* sequence of restrictions implicitly uses `AND`.
|
|
3089
3215
|
* * A restriction has the form of `{field} {operator} {value}`.
|
|
3090
3216
|
* * Supported fields/values:
|
|
3091
|
-
* - `project_id` - The
|
|
3217
|
+
* - `project_id` - The Google Cloud project ID.
|
|
3092
3218
|
* - `dataset_id` - The BigQuery dataset ID.
|
|
3093
3219
|
* - `table_id` - The ID of the BigQuery table.
|
|
3094
3220
|
* - `sensitivity_level` - HIGH|MODERATE|LOW
|
|
@@ -3119,7 +3245,7 @@ export declare class DlpServiceClient {
|
|
|
3119
3245
|
*/
|
|
3120
3246
|
listTableDataProfilesAsync(request?: protos.google.privacy.dlp.v2.IListTableDataProfilesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.ITableDataProfile>;
|
|
3121
3247
|
/**
|
|
3122
|
-
* Lists data profiles for an organization.
|
|
3248
|
+
* Lists column data profiles for an organization.
|
|
3123
3249
|
*
|
|
3124
3250
|
* @param {Object} request
|
|
3125
3251
|
* The request object that will be sent.
|
|
@@ -3357,6 +3483,190 @@ export declare class DlpServiceClient {
|
|
|
3357
3483
|
* region_tag:dlp_v2_generated_DlpService_ListColumnDataProfiles_async
|
|
3358
3484
|
*/
|
|
3359
3485
|
listColumnDataProfilesAsync(request?: protos.google.privacy.dlp.v2.IListColumnDataProfilesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IColumnDataProfile>;
|
|
3486
|
+
/**
|
|
3487
|
+
* Lists Connections in a parent.
|
|
3488
|
+
*
|
|
3489
|
+
* @param {Object} request
|
|
3490
|
+
* The request object that will be sent.
|
|
3491
|
+
* @param {string} request.parent
|
|
3492
|
+
* Required. Parent name, for example:
|
|
3493
|
+
* `projects/project-id/locations/global`.
|
|
3494
|
+
* @param {number} [request.pageSize]
|
|
3495
|
+
* Optional. Number of results per page, max 1000.
|
|
3496
|
+
* @param {string} [request.pageToken]
|
|
3497
|
+
* Optional. Page token from a previous page to return the next set of
|
|
3498
|
+
* results. If set, all other request fields must match the original request.
|
|
3499
|
+
* @param {string} [request.filter]
|
|
3500
|
+
* Optional. * Supported fields/values
|
|
3501
|
+
* - `state` - MISSING|AVAILABLE|ERROR
|
|
3502
|
+
* @param {object} [options]
|
|
3503
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3504
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
3505
|
+
* The first element of the array is Array of {@link protos.google.privacy.dlp.v2.Connection|Connection}.
|
|
3506
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
3507
|
+
* times as needed and will merge results from all the pages into this array.
|
|
3508
|
+
* Note that it can affect your quota.
|
|
3509
|
+
* We recommend using `listConnectionsAsync()`
|
|
3510
|
+
* method described below for async iteration which you can stop as needed.
|
|
3511
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3512
|
+
* for more details and examples.
|
|
3513
|
+
*/
|
|
3514
|
+
listConnections(request?: protos.google.privacy.dlp.v2.IListConnectionsRequest, options?: CallOptions): Promise<[
|
|
3515
|
+
protos.google.privacy.dlp.v2.IConnection[],
|
|
3516
|
+
protos.google.privacy.dlp.v2.IListConnectionsRequest | null,
|
|
3517
|
+
protos.google.privacy.dlp.v2.IListConnectionsResponse
|
|
3518
|
+
]>;
|
|
3519
|
+
listConnections(request: protos.google.privacy.dlp.v2.IListConnectionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListConnectionsRequest, protos.google.privacy.dlp.v2.IListConnectionsResponse | null | undefined, protos.google.privacy.dlp.v2.IConnection>): void;
|
|
3520
|
+
listConnections(request: protos.google.privacy.dlp.v2.IListConnectionsRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.IListConnectionsRequest, protos.google.privacy.dlp.v2.IListConnectionsResponse | null | undefined, protos.google.privacy.dlp.v2.IConnection>): void;
|
|
3521
|
+
/**
|
|
3522
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
3523
|
+
* @param {Object} request
|
|
3524
|
+
* The request object that will be sent.
|
|
3525
|
+
* @param {string} request.parent
|
|
3526
|
+
* Required. Parent name, for example:
|
|
3527
|
+
* `projects/project-id/locations/global`.
|
|
3528
|
+
* @param {number} [request.pageSize]
|
|
3529
|
+
* Optional. Number of results per page, max 1000.
|
|
3530
|
+
* @param {string} [request.pageToken]
|
|
3531
|
+
* Optional. Page token from a previous page to return the next set of
|
|
3532
|
+
* results. If set, all other request fields must match the original request.
|
|
3533
|
+
* @param {string} [request.filter]
|
|
3534
|
+
* Optional. * Supported fields/values
|
|
3535
|
+
* - `state` - MISSING|AVAILABLE|ERROR
|
|
3536
|
+
* @param {object} [options]
|
|
3537
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3538
|
+
* @returns {Stream}
|
|
3539
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection} on 'data' event.
|
|
3540
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
3541
|
+
* times as needed. Note that it can affect your quota.
|
|
3542
|
+
* We recommend using `listConnectionsAsync()`
|
|
3543
|
+
* method described below for async iteration which you can stop as needed.
|
|
3544
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3545
|
+
* for more details and examples.
|
|
3546
|
+
*/
|
|
3547
|
+
listConnectionsStream(request?: protos.google.privacy.dlp.v2.IListConnectionsRequest, options?: CallOptions): Transform;
|
|
3548
|
+
/**
|
|
3549
|
+
* Equivalent to `listConnections`, but returns an iterable object.
|
|
3550
|
+
*
|
|
3551
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
3552
|
+
* @param {Object} request
|
|
3553
|
+
* The request object that will be sent.
|
|
3554
|
+
* @param {string} request.parent
|
|
3555
|
+
* Required. Parent name, for example:
|
|
3556
|
+
* `projects/project-id/locations/global`.
|
|
3557
|
+
* @param {number} [request.pageSize]
|
|
3558
|
+
* Optional. Number of results per page, max 1000.
|
|
3559
|
+
* @param {string} [request.pageToken]
|
|
3560
|
+
* Optional. Page token from a previous page to return the next set of
|
|
3561
|
+
* results. If set, all other request fields must match the original request.
|
|
3562
|
+
* @param {string} [request.filter]
|
|
3563
|
+
* Optional. * Supported fields/values
|
|
3564
|
+
* - `state` - MISSING|AVAILABLE|ERROR
|
|
3565
|
+
* @param {object} [options]
|
|
3566
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3567
|
+
* @returns {Object}
|
|
3568
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
3569
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
3570
|
+
* {@link protos.google.privacy.dlp.v2.Connection|Connection}. The API will be called under the hood as needed, once per the page,
|
|
3571
|
+
* so you can stop the iteration when you don't need more results.
|
|
3572
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3573
|
+
* for more details and examples.
|
|
3574
|
+
* @example <caption>include:samples/generated/v2/dlp_service.list_connections.js</caption>
|
|
3575
|
+
* region_tag:dlp_v2_generated_DlpService_ListConnections_async
|
|
3576
|
+
*/
|
|
3577
|
+
listConnectionsAsync(request?: protos.google.privacy.dlp.v2.IListConnectionsRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IConnection>;
|
|
3578
|
+
/**
|
|
3579
|
+
* Searches for Connections in a parent.
|
|
3580
|
+
*
|
|
3581
|
+
* @param {Object} request
|
|
3582
|
+
* The request object that will be sent.
|
|
3583
|
+
* @param {string} request.parent
|
|
3584
|
+
* Required. Parent name, typically an organization, without location.
|
|
3585
|
+
* For example: `organizations/12345678`.
|
|
3586
|
+
* @param {number} [request.pageSize]
|
|
3587
|
+
* Optional. Number of results per page, max 1000.
|
|
3588
|
+
* @param {string} [request.pageToken]
|
|
3589
|
+
* Optional. Page token from a previous page to return the next set of
|
|
3590
|
+
* results. If set, all other request fields must match the original request.
|
|
3591
|
+
* @param {string} [request.filter]
|
|
3592
|
+
* Optional. * Supported fields/values
|
|
3593
|
+
* - `state` - MISSING|AVAILABLE|ERROR
|
|
3594
|
+
* @param {object} [options]
|
|
3595
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3596
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
3597
|
+
* The first element of the array is Array of {@link protos.google.privacy.dlp.v2.Connection|Connection}.
|
|
3598
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
3599
|
+
* times as needed and will merge results from all the pages into this array.
|
|
3600
|
+
* Note that it can affect your quota.
|
|
3601
|
+
* We recommend using `searchConnectionsAsync()`
|
|
3602
|
+
* method described below for async iteration which you can stop as needed.
|
|
3603
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3604
|
+
* for more details and examples.
|
|
3605
|
+
*/
|
|
3606
|
+
searchConnections(request?: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options?: CallOptions): Promise<[
|
|
3607
|
+
protos.google.privacy.dlp.v2.IConnection[],
|
|
3608
|
+
protos.google.privacy.dlp.v2.ISearchConnectionsRequest | null,
|
|
3609
|
+
protos.google.privacy.dlp.v2.ISearchConnectionsResponse
|
|
3610
|
+
]>;
|
|
3611
|
+
searchConnections(request: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.privacy.dlp.v2.ISearchConnectionsRequest, protos.google.privacy.dlp.v2.ISearchConnectionsResponse | null | undefined, protos.google.privacy.dlp.v2.IConnection>): void;
|
|
3612
|
+
searchConnections(request: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, callback: PaginationCallback<protos.google.privacy.dlp.v2.ISearchConnectionsRequest, protos.google.privacy.dlp.v2.ISearchConnectionsResponse | null | undefined, protos.google.privacy.dlp.v2.IConnection>): void;
|
|
3613
|
+
/**
|
|
3614
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
3615
|
+
* @param {Object} request
|
|
3616
|
+
* The request object that will be sent.
|
|
3617
|
+
* @param {string} request.parent
|
|
3618
|
+
* Required. Parent name, typically an organization, without location.
|
|
3619
|
+
* For example: `organizations/12345678`.
|
|
3620
|
+
* @param {number} [request.pageSize]
|
|
3621
|
+
* Optional. Number of results per page, max 1000.
|
|
3622
|
+
* @param {string} [request.pageToken]
|
|
3623
|
+
* Optional. Page token from a previous page to return the next set of
|
|
3624
|
+
* results. If set, all other request fields must match the original request.
|
|
3625
|
+
* @param {string} [request.filter]
|
|
3626
|
+
* Optional. * Supported fields/values
|
|
3627
|
+
* - `state` - MISSING|AVAILABLE|ERROR
|
|
3628
|
+
* @param {object} [options]
|
|
3629
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3630
|
+
* @returns {Stream}
|
|
3631
|
+
* An object stream which emits an object representing {@link protos.google.privacy.dlp.v2.Connection|Connection} on 'data' event.
|
|
3632
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
3633
|
+
* times as needed. Note that it can affect your quota.
|
|
3634
|
+
* We recommend using `searchConnectionsAsync()`
|
|
3635
|
+
* method described below for async iteration which you can stop as needed.
|
|
3636
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3637
|
+
* for more details and examples.
|
|
3638
|
+
*/
|
|
3639
|
+
searchConnectionsStream(request?: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options?: CallOptions): Transform;
|
|
3640
|
+
/**
|
|
3641
|
+
* Equivalent to `searchConnections`, but returns an iterable object.
|
|
3642
|
+
*
|
|
3643
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
3644
|
+
* @param {Object} request
|
|
3645
|
+
* The request object that will be sent.
|
|
3646
|
+
* @param {string} request.parent
|
|
3647
|
+
* Required. Parent name, typically an organization, without location.
|
|
3648
|
+
* For example: `organizations/12345678`.
|
|
3649
|
+
* @param {number} [request.pageSize]
|
|
3650
|
+
* Optional. Number of results per page, max 1000.
|
|
3651
|
+
* @param {string} [request.pageToken]
|
|
3652
|
+
* Optional. Page token from a previous page to return the next set of
|
|
3653
|
+
* results. If set, all other request fields must match the original request.
|
|
3654
|
+
* @param {string} [request.filter]
|
|
3655
|
+
* Optional. * Supported fields/values
|
|
3656
|
+
* - `state` - MISSING|AVAILABLE|ERROR
|
|
3657
|
+
* @param {object} [options]
|
|
3658
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3659
|
+
* @returns {Object}
|
|
3660
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
3661
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
3662
|
+
* {@link protos.google.privacy.dlp.v2.Connection|Connection}. The API will be called under the hood as needed, once per the page,
|
|
3663
|
+
* so you can stop the iteration when you don't need more results.
|
|
3664
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
3665
|
+
* for more details and examples.
|
|
3666
|
+
* @example <caption>include:samples/generated/v2/dlp_service.search_connections.js</caption>
|
|
3667
|
+
* region_tag:dlp_v2_generated_DlpService_SearchConnections_async
|
|
3668
|
+
*/
|
|
3669
|
+
searchConnectionsAsync(request?: protos.google.privacy.dlp.v2.ISearchConnectionsRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IConnection>;
|
|
3360
3670
|
/**
|
|
3361
3671
|
* Gets information about a location.
|
|
3362
3672
|
*
|
|
@@ -3408,6 +3718,39 @@ export declare class DlpServiceClient {
|
|
|
3408
3718
|
* ```
|
|
3409
3719
|
*/
|
|
3410
3720
|
listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable<LocationProtos.google.cloud.location.ILocation>;
|
|
3721
|
+
/**
|
|
3722
|
+
* Return a fully-qualified connection resource name string.
|
|
3723
|
+
*
|
|
3724
|
+
* @param {string} project
|
|
3725
|
+
* @param {string} location
|
|
3726
|
+
* @param {string} connection
|
|
3727
|
+
* @returns {string} Resource name string.
|
|
3728
|
+
*/
|
|
3729
|
+
connectionPath(project: string, location: string, connection: string): string;
|
|
3730
|
+
/**
|
|
3731
|
+
* Parse the project from Connection resource.
|
|
3732
|
+
*
|
|
3733
|
+
* @param {string} connectionName
|
|
3734
|
+
* A fully-qualified path representing Connection resource.
|
|
3735
|
+
* @returns {string} A string representing the project.
|
|
3736
|
+
*/
|
|
3737
|
+
matchProjectFromConnectionName(connectionName: string): string | number;
|
|
3738
|
+
/**
|
|
3739
|
+
* Parse the location from Connection resource.
|
|
3740
|
+
*
|
|
3741
|
+
* @param {string} connectionName
|
|
3742
|
+
* A fully-qualified path representing Connection resource.
|
|
3743
|
+
* @returns {string} A string representing the location.
|
|
3744
|
+
*/
|
|
3745
|
+
matchLocationFromConnectionName(connectionName: string): string | number;
|
|
3746
|
+
/**
|
|
3747
|
+
* Parse the connection from Connection resource.
|
|
3748
|
+
*
|
|
3749
|
+
* @param {string} connectionName
|
|
3750
|
+
* A fully-qualified path representing Connection resource.
|
|
3751
|
+
* @returns {string} A string representing the connection.
|
|
3752
|
+
*/
|
|
3753
|
+
matchConnectionFromConnectionName(connectionName: string): string | number;
|
|
3411
3754
|
/**
|
|
3412
3755
|
* Return a fully-qualified discoveryConfig resource name string.
|
|
3413
3756
|
*
|