@google-cloud/dlp 4.1.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.
@@ -264,6 +272,13 @@ export declare class DlpServiceClient {
264
272
  * inspect_template_name argument.
265
273
  * @param {google.privacy.dlp.v2.ContentItem} request.item
266
274
  * The item to de-identify. Will be treated as text.
275
+ *
276
+ * This value must be of type
277
+ * {@link google.privacy.dlp.v2.Table|Table} if your
278
+ * {@link google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config|deidentify_config}
279
+ * is a
280
+ * {@link google.privacy.dlp.v2.RecordTransformations|RecordTransformations}
281
+ * object.
267
282
  * @param {string} request.inspectTemplateName
268
283
  * Template to use. Any configuration directly specified in
269
284
  * inspect_config will override those set in the template. Singular fields
@@ -369,7 +384,7 @@ export declare class DlpServiceClient {
369
384
  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
385
  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
386
  /**
372
- * Returns a list of the sensitive information types that the DLP API
387
+ * Returns a list of the sensitive information types that DLP API
373
388
  * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
374
389
  * learn more.
375
390
  *
@@ -408,7 +423,7 @@ export declare class DlpServiceClient {
408
423
  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
424
  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
425
  /**
411
- * Creates an InspectTemplate for re-using frequently used configuration
426
+ * Creates an InspectTemplate for reusing frequently used configuration
412
427
  * for inspecting content, images, and storage.
413
428
  * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
414
429
  *
@@ -547,7 +562,7 @@ export declare class DlpServiceClient {
547
562
  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
563
  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
564
  /**
550
- * Creates a DeidentifyTemplate for re-using frequently used configuration
565
+ * Creates a DeidentifyTemplate for reusing frequently used configuration
551
566
  * for de-identifying content, images, and storage.
552
567
  * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
553
568
  * more.
@@ -961,7 +976,7 @@ export declare class DlpServiceClient {
961
976
  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
977
  /**
963
978
  * 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
979
+ * no longer interested in the DlpJob result. The job will be canceled if
965
980
  * possible.
966
981
  * See https://cloud.google.com/dlp/docs/inspecting-storage and
967
982
  * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
@@ -1245,7 +1260,7 @@ export declare class DlpServiceClient {
1245
1260
  * Page token to continue retrieval. Comes from previous call
1246
1261
  * to `ListInspectTemplates`.
1247
1262
  * @param {number} request.pageSize
1248
- * Size of the page, can be limited by server. If zero server returns
1263
+ * Size of the page, can be limited by the server. If zero server returns
1249
1264
  * a page of max size 100.
1250
1265
  * @param {string} request.orderBy
1251
1266
  * Comma separated list of fields to order by,
@@ -1257,10 +1272,10 @@ export declare class DlpServiceClient {
1257
1272
  *
1258
1273
  * Supported fields are:
1259
1274
  *
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.
1275
+ * - `create_time`: corresponds to the time the template was created.
1276
+ * - `update_time`: corresponds to the time the template was last updated.
1277
+ * - `name`: corresponds to the template's name.
1278
+ * - `display_name`: corresponds to the template's display name.
1264
1279
  * @param {string} request.locationId
1265
1280
  * Deprecated. This field has no effect.
1266
1281
  * @param {object} [options]
@@ -1312,7 +1327,7 @@ export declare class DlpServiceClient {
1312
1327
  * Page token to continue retrieval. Comes from previous call
1313
1328
  * to `ListInspectTemplates`.
1314
1329
  * @param {number} request.pageSize
1315
- * Size of the page, can be limited by server. If zero server returns
1330
+ * Size of the page, can be limited by the server. If zero server returns
1316
1331
  * a page of max size 100.
1317
1332
  * @param {string} request.orderBy
1318
1333
  * Comma separated list of fields to order by,
@@ -1324,10 +1339,10 @@ export declare class DlpServiceClient {
1324
1339
  *
1325
1340
  * Supported fields are:
1326
1341
  *
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.
1342
+ * - `create_time`: corresponds to the time the template was created.
1343
+ * - `update_time`: corresponds to the time the template was last updated.
1344
+ * - `name`: corresponds to the template's name.
1345
+ * - `display_name`: corresponds to the template's display name.
1331
1346
  * @param {string} request.locationId
1332
1347
  * Deprecated. This field has no effect.
1333
1348
  * @param {object} [options]
@@ -1374,7 +1389,7 @@ export declare class DlpServiceClient {
1374
1389
  * Page token to continue retrieval. Comes from previous call
1375
1390
  * to `ListInspectTemplates`.
1376
1391
  * @param {number} request.pageSize
1377
- * Size of the page, can be limited by server. If zero server returns
1392
+ * Size of the page, can be limited by the server. If zero server returns
1378
1393
  * a page of max size 100.
1379
1394
  * @param {string} request.orderBy
1380
1395
  * Comma separated list of fields to order by,
@@ -1386,10 +1401,10 @@ export declare class DlpServiceClient {
1386
1401
  *
1387
1402
  * Supported fields are:
1388
1403
  *
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.
1404
+ * - `create_time`: corresponds to the time the template was created.
1405
+ * - `update_time`: corresponds to the time the template was last updated.
1406
+ * - `name`: corresponds to the template's name.
1407
+ * - `display_name`: corresponds to the template's display name.
1393
1408
  * @param {string} request.locationId
1394
1409
  * Deprecated. This field has no effect.
1395
1410
  * @param {object} [options]
@@ -1438,7 +1453,7 @@ export declare class DlpServiceClient {
1438
1453
  * Page token to continue retrieval. Comes from previous call
1439
1454
  * to `ListDeidentifyTemplates`.
1440
1455
  * @param {number} request.pageSize
1441
- * Size of the page, can be limited by server. If zero server returns
1456
+ * Size of the page, can be limited by the server. If zero server returns
1442
1457
  * a page of max size 100.
1443
1458
  * @param {string} request.orderBy
1444
1459
  * Comma separated list of fields to order by,
@@ -1450,10 +1465,10 @@ export declare class DlpServiceClient {
1450
1465
  *
1451
1466
  * Supported fields are:
1452
1467
  *
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.
1468
+ * - `create_time`: corresponds to the time the template was created.
1469
+ * - `update_time`: corresponds to the time the template was last updated.
1470
+ * - `name`: corresponds to the template's name.
1471
+ * - `display_name`: corresponds to the template's display name.
1457
1472
  * @param {string} request.locationId
1458
1473
  * Deprecated. This field has no effect.
1459
1474
  * @param {object} [options]
@@ -1505,7 +1520,7 @@ export declare class DlpServiceClient {
1505
1520
  * Page token to continue retrieval. Comes from previous call
1506
1521
  * to `ListDeidentifyTemplates`.
1507
1522
  * @param {number} request.pageSize
1508
- * Size of the page, can be limited by server. If zero server returns
1523
+ * Size of the page, can be limited by the server. If zero server returns
1509
1524
  * a page of max size 100.
1510
1525
  * @param {string} request.orderBy
1511
1526
  * Comma separated list of fields to order by,
@@ -1517,10 +1532,10 @@ export declare class DlpServiceClient {
1517
1532
  *
1518
1533
  * Supported fields are:
1519
1534
  *
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.
1535
+ * - `create_time`: corresponds to the time the template was created.
1536
+ * - `update_time`: corresponds to the time the template was last updated.
1537
+ * - `name`: corresponds to the template's name.
1538
+ * - `display_name`: corresponds to the template's display name.
1524
1539
  * @param {string} request.locationId
1525
1540
  * Deprecated. This field has no effect.
1526
1541
  * @param {object} [options]
@@ -1567,7 +1582,7 @@ export declare class DlpServiceClient {
1567
1582
  * Page token to continue retrieval. Comes from previous call
1568
1583
  * to `ListDeidentifyTemplates`.
1569
1584
  * @param {number} request.pageSize
1570
- * Size of the page, can be limited by server. If zero server returns
1585
+ * Size of the page, can be limited by the server. If zero server returns
1571
1586
  * a page of max size 100.
1572
1587
  * @param {string} request.orderBy
1573
1588
  * Comma separated list of fields to order by,
@@ -1579,10 +1594,10 @@ export declare class DlpServiceClient {
1579
1594
  *
1580
1595
  * Supported fields are:
1581
1596
  *
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.
1597
+ * - `create_time`: corresponds to the time the template was created.
1598
+ * - `update_time`: corresponds to the time the template was last updated.
1599
+ * - `name`: corresponds to the template's name.
1600
+ * - `display_name`: corresponds to the template's display name.
1586
1601
  * @param {string} request.locationId
1587
1602
  * Deprecated. This field has no effect.
1588
1603
  * @param {object} [options]
@@ -1638,11 +1653,11 @@ export declare class DlpServiceClient {
1638
1653
  *
1639
1654
  * Supported fields are:
1640
1655
  *
1641
- * - `create_time`: corresponds to time the JobTrigger was created.
1642
- * - `update_time`: corresponds to time the JobTrigger was last updated.
1656
+ * - `create_time`: corresponds to the time the JobTrigger was created.
1657
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
1643
1658
  * - `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.
1659
+ * - `name`: corresponds to the JobTrigger's name.
1660
+ * - `display_name`: corresponds to the JobTrigger's display name.
1646
1661
  * - `status`: corresponds to JobTrigger's status.
1647
1662
  * @param {string} request.filter
1648
1663
  * Allows filtering.
@@ -1730,11 +1745,11 @@ export declare class DlpServiceClient {
1730
1745
  *
1731
1746
  * Supported fields are:
1732
1747
  *
1733
- * - `create_time`: corresponds to time the JobTrigger was created.
1734
- * - `update_time`: corresponds to time the JobTrigger was last updated.
1748
+ * - `create_time`: corresponds to the time the JobTrigger was created.
1749
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
1735
1750
  * - `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.
1751
+ * - `name`: corresponds to the JobTrigger's name.
1752
+ * - `display_name`: corresponds to the JobTrigger's display name.
1738
1753
  * - `status`: corresponds to JobTrigger's status.
1739
1754
  * @param {string} request.filter
1740
1755
  * Allows filtering.
@@ -1817,11 +1832,11 @@ export declare class DlpServiceClient {
1817
1832
  *
1818
1833
  * Supported fields are:
1819
1834
  *
1820
- * - `create_time`: corresponds to time the JobTrigger was created.
1821
- * - `update_time`: corresponds to time the JobTrigger was last updated.
1835
+ * - `create_time`: corresponds to the time the JobTrigger was created.
1836
+ * - `update_time`: corresponds to the time the JobTrigger was last updated.
1822
1837
  * - `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.
1838
+ * - `name`: corresponds to the JobTrigger's name.
1839
+ * - `display_name`: corresponds to the JobTrigger's display name.
1825
1840
  * - `status`: corresponds to JobTrigger's status.
1826
1841
  * @param {string} request.filter
1827
1842
  * Allows filtering.
@@ -1902,13 +1917,13 @@ export declare class DlpServiceClient {
1902
1917
  * * Supported fields/values for inspect jobs:
1903
1918
  * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
1904
1919
  * - `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.
1920
+ * - `trigger_name` - The name of the trigger that created the job.
1921
+ * - 'end_time` - Corresponds to the time the job finished.
1922
+ * - 'start_time` - Corresponds to the time the job finished.
1908
1923
  * * Supported fields for risk analysis jobs:
1909
1924
  * - `state` - RUNNING|CANCELED|FINISHED|FAILED
1910
- * - 'end_time` - Corresponds to time the job finished.
1911
- * - 'start_time` - Corresponds to time the job finished.
1925
+ * - 'end_time` - Corresponds to the time the job finished.
1926
+ * - 'start_time` - Corresponds to the time the job finished.
1912
1927
  * * The operator must be `=` or `!=`.
1913
1928
  *
1914
1929
  * Examples:
@@ -1935,9 +1950,9 @@ export declare class DlpServiceClient {
1935
1950
  *
1936
1951
  * Supported fields are:
1937
1952
  *
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.
1953
+ * - `create_time`: corresponds to the time the job was created.
1954
+ * - `end_time`: corresponds to the time the job ended.
1955
+ * - `name`: corresponds to the job's name.
1941
1956
  * - `state`: corresponds to `state`
1942
1957
  * @param {string} request.locationId
1943
1958
  * Deprecated. This field has no effect.
@@ -1994,13 +2009,13 @@ export declare class DlpServiceClient {
1994
2009
  * * Supported fields/values for inspect jobs:
1995
2010
  * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
1996
2011
  * - `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.
2012
+ * - `trigger_name` - The name of the trigger that created the job.
2013
+ * - 'end_time` - Corresponds to the time the job finished.
2014
+ * - 'start_time` - Corresponds to the time the job finished.
2000
2015
  * * Supported fields for risk analysis jobs:
2001
2016
  * - `state` - RUNNING|CANCELED|FINISHED|FAILED
2002
- * - 'end_time` - Corresponds to time the job finished.
2003
- * - 'start_time` - Corresponds to time the job finished.
2017
+ * - 'end_time` - Corresponds to the time the job finished.
2018
+ * - 'start_time` - Corresponds to the time the job finished.
2004
2019
  * * The operator must be `=` or `!=`.
2005
2020
  *
2006
2021
  * Examples:
@@ -2027,9 +2042,9 @@ export declare class DlpServiceClient {
2027
2042
  *
2028
2043
  * Supported fields are:
2029
2044
  *
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.
2045
+ * - `create_time`: corresponds to the time the job was created.
2046
+ * - `end_time`: corresponds to the time the job ended.
2047
+ * - `name`: corresponds to the job's name.
2033
2048
  * - `state`: corresponds to `state`
2034
2049
  * @param {string} request.locationId
2035
2050
  * Deprecated. This field has no effect.
@@ -2081,13 +2096,13 @@ export declare class DlpServiceClient {
2081
2096
  * * Supported fields/values for inspect jobs:
2082
2097
  * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED
2083
2098
  * - `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.
2099
+ * - `trigger_name` - The name of the trigger that created the job.
2100
+ * - 'end_time` - Corresponds to the time the job finished.
2101
+ * - 'start_time` - Corresponds to the time the job finished.
2087
2102
  * * Supported fields for risk analysis jobs:
2088
2103
  * - `state` - RUNNING|CANCELED|FINISHED|FAILED
2089
- * - 'end_time` - Corresponds to time the job finished.
2090
- * - 'start_time` - Corresponds to time the job finished.
2104
+ * - 'end_time` - Corresponds to the time the job finished.
2105
+ * - 'start_time` - Corresponds to the time the job finished.
2091
2106
  * * The operator must be `=` or `!=`.
2092
2107
  *
2093
2108
  * Examples:
@@ -2114,9 +2129,9 @@ export declare class DlpServiceClient {
2114
2129
  *
2115
2130
  * Supported fields are:
2116
2131
  *
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.
2132
+ * - `create_time`: corresponds to the time the job was created.
2133
+ * - `end_time`: corresponds to the time the job ended.
2134
+ * - `name`: corresponds to the job's name.
2120
2135
  * - `state`: corresponds to `state`
2121
2136
  * @param {string} request.locationId
2122
2137
  * Deprecated. This field has no effect.
@@ -2152,10 +2167,6 @@ export declare class DlpServiceClient {
2152
2167
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2153
2168
  * + Projects scope, no location specified (defaults to global):<br/>
2154
2169
  * `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
2170
  *
2160
2171
  * The following example `parent` string specifies a parent project with the
2161
2172
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2166,7 +2177,7 @@ export declare class DlpServiceClient {
2166
2177
  * Page token to continue retrieval. Comes from previous call
2167
2178
  * to `ListStoredInfoTypes`.
2168
2179
  * @param {number} request.pageSize
2169
- * Size of the page, can be limited by server. If zero server returns
2180
+ * Size of the page, can be limited by the server. If zero server returns
2170
2181
  * a page of max size 100.
2171
2182
  * @param {string} request.orderBy
2172
2183
  * Comma separated list of fields to order by,
@@ -2178,7 +2189,7 @@ export declare class DlpServiceClient {
2178
2189
  *
2179
2190
  * Supported fields are:
2180
2191
  *
2181
- * - `create_time`: corresponds to time the most recent version of the
2192
+ * - `create_time`: corresponds to the time the most recent version of the
2182
2193
  * resource was created.
2183
2194
  * - `state`: corresponds to the state of the resource.
2184
2195
  * - `name`: corresponds to resource name.
@@ -2220,10 +2231,6 @@ export declare class DlpServiceClient {
2220
2231
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2221
2232
  * + Projects scope, no location specified (defaults to global):<br/>
2222
2233
  * `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
2234
  *
2228
2235
  * The following example `parent` string specifies a parent project with the
2229
2236
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2234,7 +2241,7 @@ export declare class DlpServiceClient {
2234
2241
  * Page token to continue retrieval. Comes from previous call
2235
2242
  * to `ListStoredInfoTypes`.
2236
2243
  * @param {number} request.pageSize
2237
- * Size of the page, can be limited by server. If zero server returns
2244
+ * Size of the page, can be limited by the server. If zero server returns
2238
2245
  * a page of max size 100.
2239
2246
  * @param {string} request.orderBy
2240
2247
  * Comma separated list of fields to order by,
@@ -2246,7 +2253,7 @@ export declare class DlpServiceClient {
2246
2253
  *
2247
2254
  * Supported fields are:
2248
2255
  *
2249
- * - `create_time`: corresponds to time the most recent version of the
2256
+ * - `create_time`: corresponds to the time the most recent version of the
2250
2257
  * resource was created.
2251
2258
  * - `state`: corresponds to the state of the resource.
2252
2259
  * - `name`: corresponds to resource name.
@@ -2283,10 +2290,6 @@ export declare class DlpServiceClient {
2283
2290
  * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2284
2291
  * + Projects scope, no location specified (defaults to global):<br/>
2285
2292
  * `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
2293
  *
2291
2294
  * The following example `parent` string specifies a parent project with the
2292
2295
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2297,7 +2300,7 @@ export declare class DlpServiceClient {
2297
2300
  * Page token to continue retrieval. Comes from previous call
2298
2301
  * to `ListStoredInfoTypes`.
2299
2302
  * @param {number} request.pageSize
2300
- * Size of the page, can be limited by server. If zero server returns
2303
+ * Size of the page, can be limited by the server. If zero server returns
2301
2304
  * a page of max size 100.
2302
2305
  * @param {string} request.orderBy
2303
2306
  * Comma separated list of fields to order by,
@@ -2309,7 +2312,7 @@ export declare class DlpServiceClient {
2309
2312
  *
2310
2313
  * Supported fields are:
2311
2314
  *
2312
- * - `create_time`: corresponds to time the most recent version of the
2315
+ * - `create_time`: corresponds to the time the most recent version of the
2313
2316
  * resource was created.
2314
2317
  * - `state`: corresponds to the state of the resource.
2315
2318
  * - `name`: corresponds to resource name.
@@ -2330,6 +2333,59 @@ export declare class DlpServiceClient {
2330
2333
  * region_tag:dlp_v2_generated_DlpService_ListStoredInfoTypes_async
2331
2334
  */
2332
2335
  listStoredInfoTypesAsync(request?: protos.google.privacy.dlp.v2.IListStoredInfoTypesRequest, options?: CallOptions): AsyncIterable<protos.google.privacy.dlp.v2.IStoredInfoType>;
2336
+ /**
2337
+ * Gets information about a location.
2338
+ *
2339
+ * @param {Object} request
2340
+ * The request object that will be sent.
2341
+ * @param {string} request.name
2342
+ * Resource name for the location.
2343
+ * @param {object} [options]
2344
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2345
+ * @returns {Promise} - The promise which resolves to an array.
2346
+ * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}.
2347
+ * Please see the
2348
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
2349
+ * for more details and examples.
2350
+ * @example
2351
+ * ```
2352
+ * const [response] = await client.getLocation(request);
2353
+ * ```
2354
+ */
2355
+ 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>;
2356
+ /**
2357
+ * Lists information about the supported locations for this service. Returns an iterable object.
2358
+ *
2359
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
2360
+ * @param {Object} request
2361
+ * The request object that will be sent.
2362
+ * @param {string} request.name
2363
+ * The resource that owns the locations collection, if applicable.
2364
+ * @param {string} request.filter
2365
+ * The standard list filter.
2366
+ * @param {number} request.pageSize
2367
+ * The standard list page size.
2368
+ * @param {string} request.pageToken
2369
+ * The standard list page token.
2370
+ * @param {object} [options]
2371
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
2372
+ * @returns {Object}
2373
+ * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
2374
+ * When you iterate the returned iterable, each element will be an object representing
2375
+ * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page,
2376
+ * so you can stop the iteration when you don't need more results.
2377
+ * Please see the
2378
+ * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
2379
+ * for more details and examples.
2380
+ * @example
2381
+ * ```
2382
+ * const iterable = client.listLocationsAsync(request);
2383
+ * for await (const response of iterable) {
2384
+ * // process response
2385
+ * }
2386
+ * ```
2387
+ */
2388
+ listLocationsAsync(request: LocationProtos.google.cloud.location.IListLocationsRequest, options?: CallOptions): AsyncIterable<LocationProtos.google.cloud.location.ILocation>;
2333
2389
  /**
2334
2390
  * Return a fully-qualified finding resource name string.
2335
2391
  *