@google-cloud/dlp 4.1.0 → 4.2.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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
- import * as gax from 'google-gax';
3
- import { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback } from 'google-gax';
2
+ import type * as gax from 'google-gax';
3
+ import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, LocationsClient, LocationProtos } from 'google-gax';
4
4
  import { Transform } from 'stream';
5
5
  import * as protos from '../../protos/protos';
6
6
  /**
@@ -30,6 +30,7 @@ export declare class DlpServiceClient {
30
30
  innerApiCalls: {
31
31
  [name: string]: Function;
32
32
  };
33
+ locationsClient: LocationsClient;
33
34
  pathTemplates: {
34
35
  [name: string]: gax.PathTemplate;
35
36
  };
@@ -68,8 +69,15 @@ export declare class DlpServiceClient {
68
69
  * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
69
70
  * For more information, please check the
70
71
  * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
72
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
73
+ * need to avoid loading the default gRPC version and want to use the fallback
74
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
75
+ * ```
76
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
77
+ * const client = new DlpServiceClient({fallback: 'rest'}, gax);
78
+ * ```
71
79
  */
72
- constructor(opts?: ClientOptions);
80
+ constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
73
81
  /**
74
82
  * Initialize the client.
75
83
  * Performs asynchronous operations (such as authentication) and prepares the client.
@@ -369,7 +377,7 @@ export declare class DlpServiceClient {
369
377
  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;
370
378
  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;
371
379
  /**
372
- * Returns a list of the sensitive information types that the DLP API
380
+ * Returns a list of the sensitive information types that DLP API
373
381
  * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
374
382
  * learn more.
375
383
  *
@@ -408,7 +416,7 @@ export declare class DlpServiceClient {
408
416
  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;
409
417
  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;
410
418
  /**
411
- * Creates an InspectTemplate for re-using frequently used configuration
419
+ * Creates an InspectTemplate for reusing frequently used configuration
412
420
  * for inspecting content, images, and storage.
413
421
  * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
414
422
  *
@@ -547,7 +555,7 @@ export declare class DlpServiceClient {
547
555
  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;
548
556
  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;
549
557
  /**
550
- * Creates a DeidentifyTemplate for re-using frequently used configuration
558
+ * Creates a DeidentifyTemplate for reusing frequently used configuration
551
559
  * for de-identifying content, images, and storage.
552
560
  * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
553
561
  * more.
@@ -961,7 +969,7 @@ export declare class DlpServiceClient {
961
969
  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;
962
970
  /**
963
971
  * Deletes a long-running DlpJob. This method indicates that the client is
964
- * no longer interested in the DlpJob result. The job will be cancelled if
972
+ * no longer interested in the DlpJob result. The job will be canceled if
965
973
  * possible.
966
974
  * See https://cloud.google.com/dlp/docs/inspecting-storage and
967
975
  * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -1245,7 +1253,7 @@ export declare class DlpServiceClient {
1245
1253
  * Page token to continue retrieval. Comes from previous call
1246
1254
  * to `ListInspectTemplates`.
1247
1255
  * @param {number} request.pageSize
1248
- * Size of the page, can be limited by server. If zero server returns
1256
+ * Size of the page, can be limited by the server. If zero server returns
1249
1257
  * a page of max size 100.
1250
1258
  * @param {string} request.orderBy
1251
1259
  * Comma separated list of fields to order by,
@@ -1257,10 +1265,10 @@ export declare class DlpServiceClient {
1257
1265
  *
1258
1266
  * Supported fields are:
1259
1267
  *
1260
- * - `create_time`: corresponds to time the template was created.
1261
- * - `update_time`: corresponds to time the template was last updated.
1262
- * - `name`: corresponds to template's name.
1263
- * - `display_name`: corresponds to template's display name.
1268
+ * - `create_time`: corresponds to the time the template was created.
1269
+ * - `update_time`: corresponds to the time the template was last updated.
1270
+ * - `name`: corresponds to the template's name.
1271
+ * - `display_name`: corresponds to the template's display name.
1264
1272
  * @param {string} request.locationId
1265
1273
  * Deprecated. This field has no effect.
1266
1274
  * @param {object} [options]
@@ -1312,7 +1320,7 @@ export declare class DlpServiceClient {
1312
1320
  * Page token to continue retrieval. Comes from previous call
1313
1321
  * to `ListInspectTemplates`.
1314
1322
  * @param {number} request.pageSize
1315
- * Size of the page, can be limited by server. If zero server returns
1323
+ * Size of the page, can be limited by the server. If zero server returns
1316
1324
  * a page of max size 100.
1317
1325
  * @param {string} request.orderBy
1318
1326
  * Comma separated list of fields to order by,
@@ -1324,10 +1332,10 @@ export declare class DlpServiceClient {
1324
1332
  *
1325
1333
  * Supported fields are:
1326
1334
  *
1327
- * - `create_time`: corresponds to time the template was created.
1328
- * - `update_time`: corresponds to time the template was last updated.
1329
- * - `name`: corresponds to template's name.
1330
- * - `display_name`: corresponds to template's display name.
1335
+ * - `create_time`: corresponds to the time the template was created.
1336
+ * - `update_time`: corresponds to the time the template was last updated.
1337
+ * - `name`: corresponds to the template's name.
1338
+ * - `display_name`: corresponds to the template's display name.
1331
1339
  * @param {string} request.locationId
1332
1340
  * Deprecated. This field has no effect.
1333
1341
  * @param {object} [options]
@@ -1374,7 +1382,7 @@ export declare class DlpServiceClient {
1374
1382
  * Page token to continue retrieval. Comes from previous call
1375
1383
  * to `ListInspectTemplates`.
1376
1384
  * @param {number} request.pageSize
1377
- * Size of the page, can be limited by server. If zero server returns
1385
+ * Size of the page, can be limited by the server. If zero server returns
1378
1386
  * a page of max size 100.
1379
1387
  * @param {string} request.orderBy
1380
1388
  * Comma separated list of fields to order by,
@@ -1386,10 +1394,10 @@ export declare class DlpServiceClient {
1386
1394
  *
1387
1395
  * Supported fields are:
1388
1396
  *
1389
- * - `create_time`: corresponds to time the template was created.
1390
- * - `update_time`: corresponds to time the template was last updated.
1391
- * - `name`: corresponds to template's name.
1392
- * - `display_name`: corresponds to template's display name.
1397
+ * - `create_time`: corresponds to the time the template was created.
1398
+ * - `update_time`: corresponds to the time the template was last updated.
1399
+ * - `name`: corresponds to the template's name.
1400
+ * - `display_name`: corresponds to the template's display name.
1393
1401
  * @param {string} request.locationId
1394
1402
  * Deprecated. This field has no effect.
1395
1403
  * @param {object} [options]
@@ -1438,7 +1446,7 @@ export declare class DlpServiceClient {
1438
1446
  * Page token to continue retrieval. Comes from previous call
1439
1447
  * to `ListDeidentifyTemplates`.
1440
1448
  * @param {number} request.pageSize
1441
- * Size of the page, can be limited by server. If zero server returns
1449
+ * Size of the page, can be limited by the server. If zero server returns
1442
1450
  * a page of max size 100.
1443
1451
  * @param {string} request.orderBy
1444
1452
  * Comma separated list of fields to order by,
@@ -1450,10 +1458,10 @@ export declare class DlpServiceClient {
1450
1458
  *
1451
1459
  * Supported fields are:
1452
1460
  *
1453
- * - `create_time`: corresponds to time the template was created.
1454
- * - `update_time`: corresponds to time the template was last updated.
1455
- * - `name`: corresponds to template's name.
1456
- * - `display_name`: corresponds to template's display name.
1461
+ * - `create_time`: corresponds to the time the template was created.
1462
+ * - `update_time`: corresponds to the time the template was last updated.
1463
+ * - `name`: corresponds to the template's name.
1464
+ * - `display_name`: corresponds to the template's display name.
1457
1465
  * @param {string} request.locationId
1458
1466
  * Deprecated. This field has no effect.
1459
1467
  * @param {object} [options]
@@ -1505,7 +1513,7 @@ export declare class DlpServiceClient {
1505
1513
  * Page token to continue retrieval. Comes from previous call
1506
1514
  * to `ListDeidentifyTemplates`.
1507
1515
  * @param {number} request.pageSize
1508
- * Size of the page, can be limited by server. If zero server returns
1516
+ * Size of the page, can be limited by the server. If zero server returns
1509
1517
  * a page of max size 100.
1510
1518
  * @param {string} request.orderBy
1511
1519
  * Comma separated list of fields to order by,
@@ -1517,10 +1525,10 @@ export declare class DlpServiceClient {
1517
1525
  *
1518
1526
  * Supported fields are:
1519
1527
  *
1520
- * - `create_time`: corresponds to time the template was created.
1521
- * - `update_time`: corresponds to time the template was last updated.
1522
- * - `name`: corresponds to template's name.
1523
- * - `display_name`: corresponds to template's display name.
1528
+ * - `create_time`: corresponds to the time the template was created.
1529
+ * - `update_time`: corresponds to the time the template was last updated.
1530
+ * - `name`: corresponds to the template's name.
1531
+ * - `display_name`: corresponds to the template's display name.
1524
1532
  * @param {string} request.locationId
1525
1533
  * Deprecated. This field has no effect.
1526
1534
  * @param {object} [options]
@@ -1567,7 +1575,7 @@ export declare class DlpServiceClient {
1567
1575
  * Page token to continue retrieval. Comes from previous call
1568
1576
  * to `ListDeidentifyTemplates`.
1569
1577
  * @param {number} request.pageSize
1570
- * Size of the page, can be limited by server. If zero server returns
1578
+ * Size of the page, can be limited by the server. If zero server returns
1571
1579
  * a page of max size 100.
1572
1580
  * @param {string} request.orderBy
1573
1581
  * Comma separated list of fields to order by,
@@ -1579,10 +1587,10 @@ export declare class DlpServiceClient {
1579
1587
  *
1580
1588
  * Supported fields are:
1581
1589
  *
1582
- * - `create_time`: corresponds to time the template was created.
1583
- * - `update_time`: corresponds to time the template was last updated.
1584
- * - `name`: corresponds to template's name.
1585
- * - `display_name`: corresponds to template's display name.
1590
+ * - `create_time`: corresponds to the time the template was created.
1591
+ * - `update_time`: corresponds to the time the template was last updated.
1592
+ * - `name`: corresponds to the template's name.
1593
+ * - `display_name`: corresponds to the template's display name.
1586
1594
  * @param {string} request.locationId
1587
1595
  * Deprecated. This field has no effect.
1588
1596
  * @param {object} [options]
@@ -1638,11 +1646,11 @@ export declare class DlpServiceClient {
1638
1646
  *
1639
1647
  * Supported fields are:
1640
1648
  *
1641
- * - `create_time`: corresponds to time the JobTrigger was created.
1642
- * - `update_time`: corresponds to time the JobTrigger was last updated.
1649
+ * - `create_time`: corresponds to the time the JobTrigger was created.
1650
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
1643
1651
  * - `last_run_time`: corresponds to the last time the JobTrigger ran.
1644
- * - `name`: corresponds to JobTrigger's name.
1645
- * - `display_name`: corresponds to JobTrigger's display name.
1652
+ * - `name`: corresponds to the JobTrigger's name.
1653
+ * - `display_name`: corresponds to the JobTrigger's display name.
1646
1654
  * - `status`: corresponds to JobTrigger's status.
1647
1655
  * @param {string} request.filter
1648
1656
  * Allows filtering.
@@ -1730,11 +1738,11 @@ export declare class DlpServiceClient {
1730
1738
  *
1731
1739
  * Supported fields are:
1732
1740
  *
1733
- * - `create_time`: corresponds to time the JobTrigger was created.
1734
- * - `update_time`: corresponds to time the JobTrigger was last updated.
1741
+ * - `create_time`: corresponds to the time the JobTrigger was created.
1742
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
1735
1743
  * - `last_run_time`: corresponds to the last time the JobTrigger ran.
1736
- * - `name`: corresponds to JobTrigger's name.
1737
- * - `display_name`: corresponds to JobTrigger's display name.
1744
+ * - `name`: corresponds to the JobTrigger's name.
1745
+ * - `display_name`: corresponds to the JobTrigger's display name.
1738
1746
  * - `status`: corresponds to JobTrigger's status.
1739
1747
  * @param {string} request.filter
1740
1748
  * Allows filtering.
@@ -1817,11 +1825,11 @@ export declare class DlpServiceClient {
1817
1825
  *
1818
1826
  * Supported fields are:
1819
1827
  *
1820
- * - `create_time`: corresponds to time the JobTrigger was created.
1821
- * - `update_time`: corresponds to time the JobTrigger was last updated.
1828
+ * - `create_time`: corresponds to the time the JobTrigger was created.
1829
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
1822
1830
  * - `last_run_time`: corresponds to the last time the JobTrigger ran.
1823
- * - `name`: corresponds to JobTrigger's name.
1824
- * - `display_name`: corresponds to JobTrigger's display name.
1831
+ * - `name`: corresponds to the JobTrigger's name.
1832
+ * - `display_name`: corresponds to the JobTrigger's display name.
1825
1833
  * - `status`: corresponds to JobTrigger's status.
1826
1834
  * @param {string} request.filter
1827
1835
  * Allows filtering.
@@ -1902,13 +1910,13 @@ export declare class DlpServiceClient {
1902
1910
  * * Supported fields/values for inspect jobs:
1903
1911
  * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
1904
1912
  * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
1905
- * - `trigger_name` - The resource name of the trigger that created job.
1906
- * - 'end_time` - Corresponds to time the job finished.
1907
- * - 'start_time` - Corresponds to time the job finished.
1913
+ * - `trigger_name` - The name of the trigger that created the job.
1914
+ * - 'end_time` - Corresponds to the time the job finished.
1915
+ * - 'start_time` - Corresponds to the time the job finished.
1908
1916
  * * Supported fields for risk analysis jobs:
1909
1917
  * - `state` - RUNNING|CANCELED|FINISHED|FAILED
1910
- * - 'end_time` - Corresponds to time the job finished.
1911
- * - 'start_time` - Corresponds to time the job finished.
1918
+ * - 'end_time` - Corresponds to the time the job finished.
1919
+ * - 'start_time` - Corresponds to the time the job finished.
1912
1920
  * * The operator must be `=` or `!=`.
1913
1921
  *
1914
1922
  * Examples:
@@ -1935,9 +1943,9 @@ export declare class DlpServiceClient {
1935
1943
  *
1936
1944
  * Supported fields are:
1937
1945
  *
1938
- * - `create_time`: corresponds to time the job was created.
1939
- * - `end_time`: corresponds to time the job ended.
1940
- * - `name`: corresponds to job's name.
1946
+ * - `create_time`: corresponds to the time the job was created.
1947
+ * - `end_time`: corresponds to the time the job ended.
1948
+ * - `name`: corresponds to the job's name.
1941
1949
  * - `state`: corresponds to `state`
1942
1950
  * @param {string} request.locationId
1943
1951
  * Deprecated. This field has no effect.
@@ -1994,13 +2002,13 @@ export declare class DlpServiceClient {
1994
2002
  * * Supported fields/values for inspect jobs:
1995
2003
  * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
1996
2004
  * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
1997
- * - `trigger_name` - The resource name of the trigger that created job.
1998
- * - 'end_time` - Corresponds to time the job finished.
1999
- * - 'start_time` - Corresponds to time the job finished.
2005
+ * - `trigger_name` - The name of the trigger that created the job.
2006
+ * - 'end_time` - Corresponds to the time the job finished.
2007
+ * - 'start_time` - Corresponds to the time the job finished.
2000
2008
  * * Supported fields for risk analysis jobs:
2001
2009
  * - `state` - RUNNING|CANCELED|FINISHED|FAILED
2002
- * - 'end_time` - Corresponds to time the job finished.
2003
- * - 'start_time` - Corresponds to time the job finished.
2010
+ * - 'end_time` - Corresponds to the time the job finished.
2011
+ * - 'start_time` - Corresponds to the time the job finished.
2004
2012
  * * The operator must be `=` or `!=`.
2005
2013
  *
2006
2014
  * Examples:
@@ -2027,9 +2035,9 @@ export declare class DlpServiceClient {
2027
2035
  *
2028
2036
  * Supported fields are:
2029
2037
  *
2030
- * - `create_time`: corresponds to time the job was created.
2031
- * - `end_time`: corresponds to time the job ended.
2032
- * - `name`: corresponds to job's name.
2038
+ * - `create_time`: corresponds to the time the job was created.
2039
+ * - `end_time`: corresponds to the time the job ended.
2040
+ * - `name`: corresponds to the job's name.
2033
2041
  * - `state`: corresponds to `state`
2034
2042
  * @param {string} request.locationId
2035
2043
  * Deprecated. This field has no effect.
@@ -2081,13 +2089,13 @@ export declare class DlpServiceClient {
2081
2089
  * * Supported fields/values for inspect jobs:
2082
2090
  * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
2083
2091
  * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY
2084
- * - `trigger_name` - The resource name of the trigger that created job.
2085
- * - 'end_time` - Corresponds to time the job finished.
2086
- * - 'start_time` - Corresponds to time the job finished.
2092
+ * - `trigger_name` - The name of the trigger that created the job.
2093
+ * - 'end_time` - Corresponds to the time the job finished.
2094
+ * - 'start_time` - Corresponds to the time the job finished.
2087
2095
  * * Supported fields for risk analysis jobs:
2088
2096
  * - `state` - RUNNING|CANCELED|FINISHED|FAILED
2089
- * - 'end_time` - Corresponds to time the job finished.
2090
- * - 'start_time` - Corresponds to time the job finished.
2097
+ * - 'end_time` - Corresponds to the time the job finished.
2098
+ * - 'start_time` - Corresponds to the time the job finished.
2091
2099
  * * The operator must be `=` or `!=`.
2092
2100
  *
2093
2101
  * Examples:
@@ -2114,9 +2122,9 @@ export declare class DlpServiceClient {
2114
2122
  *
2115
2123
  * Supported fields are:
2116
2124
  *
2117
- * - `create_time`: corresponds to time the job was created.
2118
- * - `end_time`: corresponds to time the job ended.
2119
- * - `name`: corresponds to job's name.
2125
+ * - `create_time`: corresponds to the time the job was created.
2126
+ * - `end_time`: corresponds to the time the job ended.
2127
+ * - `name`: corresponds to the job's name.
2120
2128
  * - `state`: corresponds to `state`
2121
2129
  * @param {string} request.locationId
2122
2130
  * Deprecated. This field has no effect.
@@ -2152,10 +2160,6 @@ export declare class DlpServiceClient {
2152
2160
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2153
2161
  * + Projects scope, no location specified (defaults to global):<br/>
2154
2162
  * `projects/`<var>PROJECT_ID</var>
2155
- * + Organizations scope, location specified:<br/>
2156
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2157
- * + Organizations scope, no location specified (defaults to global):<br/>
2158
- * `organizations/`<var>ORG_ID</var>
2159
2163
  *
2160
2164
  * The following example `parent` string specifies a parent project with the
2161
2165
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2166,7 +2170,7 @@ export declare class DlpServiceClient {
2166
2170
  * Page token to continue retrieval. Comes from previous call
2167
2171
  * to `ListStoredInfoTypes`.
2168
2172
  * @param {number} request.pageSize
2169
- * Size of the page, can be limited by server. If zero server returns
2173
+ * Size of the page, can be limited by the server. If zero server returns
2170
2174
  * a page of max size 100.
2171
2175
  * @param {string} request.orderBy
2172
2176
  * Comma separated list of fields to order by,
@@ -2178,7 +2182,7 @@ export declare class DlpServiceClient {
2178
2182
  *
2179
2183
  * Supported fields are:
2180
2184
  *
2181
- * - `create_time`: corresponds to time the most recent version of the
2185
+ * - `create_time`: corresponds to the time the most recent version of the
2182
2186
  * resource was created.
2183
2187
  * - `state`: corresponds to the state of the resource.
2184
2188
  * - `name`: corresponds to resource name.
@@ -2220,10 +2224,6 @@ export declare class DlpServiceClient {
2220
2224
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2221
2225
  * + Projects scope, no location specified (defaults to global):<br/>
2222
2226
  * `projects/`<var>PROJECT_ID</var>
2223
- * + Organizations scope, location specified:<br/>
2224
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2225
- * + Organizations scope, no location specified (defaults to global):<br/>
2226
- * `organizations/`<var>ORG_ID</var>
2227
2227
  *
2228
2228
  * The following example `parent` string specifies a parent project with the
2229
2229
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2234,7 +2234,7 @@ export declare class DlpServiceClient {
2234
2234
  * Page token to continue retrieval. Comes from previous call
2235
2235
  * to `ListStoredInfoTypes`.
2236
2236
  * @param {number} request.pageSize
2237
- * Size of the page, can be limited by server. If zero server returns
2237
+ * Size of the page, can be limited by the server. If zero server returns
2238
2238
  * a page of max size 100.
2239
2239
  * @param {string} request.orderBy
2240
2240
  * Comma separated list of fields to order by,
@@ -2246,7 +2246,7 @@ export declare class DlpServiceClient {
2246
2246
  *
2247
2247
  * Supported fields are:
2248
2248
  *
2249
- * - `create_time`: corresponds to time the most recent version of the
2249
+ * - `create_time`: corresponds to the time the most recent version of the
2250
2250
  * resource was created.
2251
2251
  * - `state`: corresponds to the state of the resource.
2252
2252
  * - `name`: corresponds to resource name.
@@ -2283,10 +2283,6 @@ export declare class DlpServiceClient {
2283
2283
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2284
2284
  * + Projects scope, no location specified (defaults to global):<br/>
2285
2285
  * `projects/`<var>PROJECT_ID</var>
2286
- * + Organizations scope, location specified:<br/>
2287
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
2288
- * + Organizations scope, no location specified (defaults to global):<br/>
2289
- * `organizations/`<var>ORG_ID</var>
2290
2286
  *
2291
2287
  * The following example `parent` string specifies a parent project with the
2292
2288
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2297,7 +2293,7 @@ export declare class DlpServiceClient {
2297
2293
  * Page token to continue retrieval. Comes from previous call
2298
2294
  * to `ListStoredInfoTypes`.
2299
2295
  * @param {number} request.pageSize
2300
- * Size of the page, can be limited by server. If zero server returns
2296
+ * Size of the page, can be limited by the server. If zero server returns
2301
2297
  * a page of max size 100.
2302
2298
  * @param {string} request.orderBy
2303
2299
  * Comma separated list of fields to order by,
@@ -2309,7 +2305,7 @@ export declare class DlpServiceClient {
2309
2305
  *
2310
2306
  * Supported fields are:
2311
2307
  *
2312
- * - `create_time`: corresponds to time the most recent version of the
2308
+ * - `create_time`: corresponds to the time the most recent version of the
2313
2309
  * resource was created.
2314
2310
  * - `state`: corresponds to the state of the resource.
2315
2311
  * - `name`: corresponds to resource name.
@@ -2330,6 +2326,59 @@ export declare class DlpServiceClient {
2330
2326
  * region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async
2331
2327
  */
2332
2328
  listStoredInfoTypesAsync(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IStoredInfoType>;
2329
+ /**
2330
+ * Gets information about a location.
2331
+ *
2332
+ * @param {Object} request
2333
+ * The request object that will be sent.
2334
+ * @param {string} request.name
2335
+ * Resource name for the location.
2336
+ * @param {object} [options]
2337
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2338
+ * @returns {Promise} - The promise which resolves to an array.
2339
+ * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}.
2340
+ * Please see the
2341
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
2342
+ * for more details and examples.
2343
+ * @example
2344
+ * ```
2345
+ * const [response] = await client.getLocation(request);
2346
+ * ```
2347
+ */
2348
+ getLocation(request: LocationProtos.google.cloud.location.IGetLocationRequest, options?: gax.CallOptions | Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>, callback?: Callback<LocationProtos.google.cloud.location.ILocation, LocationProtos.google.cloud.location.IGetLocationRequest | null | undefined, {} | null | undefined>): Promise<LocationProtos.google.cloud.location.ILocation>;
2349
+ /**
2350
+ * Lists information about the supported locations for this service. Returns an iterable object.
2351
+ *
2352
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2353
+ * @param {Object} request
2354
+ * The request object that will be sent.
2355
+ * @param {string} request.name
2356
+ * The resource that owns the locations collection, if applicable.
2357
+ * @param {string} request.filter
2358
+ * The standard list filter.
2359
+ * @param {number} request.pageSize
2360
+ * The standard list page size.
2361
+ * @param {string} request.pageToken
2362
+ * The standard list page token.
2363
+ * @param {object} [options]
2364
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2365
+ * @returns {Object}
2366
+ * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
2367
+ * When you iterate the returned iterable, each element will be an object representing
2368
+ * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page,
2369
+ * so you can stop the iteration when you don't need more results.
2370
+ * Please see the
2371
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2372
+ * for more details and examples.
2373
+ * @example
2374
+ * ```
2375
+ * const iterable = client.listLocationsAsync(request);
2376
+ * for await (const response of iterable) {
2377
+ * // process response
2378
+ * }
2379
+ * ```
2380
+ */
2381
+ listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable<LocationProtos.google.cloud.location.ILocation>;
2333
2382
  /**
2334
2383
  * Return a fully-qualified finding resource name string.
2335
2384
  *