@google-cloud/dlp 5.8.0 → 5.9.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.
@@ -157,7 +157,6 @@ class DlpServiceClient {
157
157
  // identifiers to uniquely identify resources within the API.
158
158
  // Create useful helper objects for these.
159
159
  this.pathTemplates = {
160
- connectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/connections/{connection}'),
161
160
  discoveryConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}'),
162
161
  findingPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/findings/{finding}'),
163
162
  locationPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}'),
@@ -166,6 +165,7 @@ class DlpServiceClient {
166
165
  organizationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/inspectTemplates/{inspect_template}'),
167
166
  organizationLocationPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}'),
168
167
  organizationLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}'),
168
+ organizationLocationConnectionPathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/connections/{connection}'),
169
169
  organizationLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
170
170
  organizationLocationFileStoreDataProfilePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}'),
171
171
  organizationLocationInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}'),
@@ -180,6 +180,7 @@ class DlpServiceClient {
180
180
  projectInspectTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/inspectTemplates/{inspect_template}'),
181
181
  projectJobTriggerPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/jobTriggers/{job_trigger}'),
182
182
  projectLocationColumnDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}'),
183
+ projectLocationConnectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/connections/{connection}'),
183
184
  projectLocationDeidentifyTemplatePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}'),
184
185
  projectLocationDlpJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dlpJobs/{dlp_job}'),
185
186
  projectLocationFileStoreDataProfilePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}'),
@@ -1309,13 +1310,13 @@ class DlpServiceClient {
1309
1310
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1310
1311
  *
1311
1312
  * + Projects scope, location specified:
1312
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1313
+ * `projects/{project_id}/locations/{location_id}`
1313
1314
  * + Projects scope, no location specified (defaults to global):
1314
- * `projects/`<var>PROJECT_ID</var>
1315
+ * `projects/{project_id}`
1315
1316
  * + Organizations scope, location specified:
1316
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1317
+ * `organizations/{org_id}/locations/{location_id}`
1317
1318
  * + Organizations scope, no location specified (defaults to global):
1318
- * `organizations/`<var>ORG_ID</var>
1319
+ * `organizations/{org_id}`
1319
1320
  *
1320
1321
  * The following example `parent` string specifies a parent project with the
1321
1322
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -1384,13 +1385,13 @@ class DlpServiceClient {
1384
1385
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1385
1386
  *
1386
1387
  * + Projects scope, location specified:
1387
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1388
+ * `projects/{project_id}/locations/{location_id}`
1388
1389
  * + Projects scope, no location specified (defaults to global):
1389
- * `projects/`<var>PROJECT_ID</var>
1390
+ * `projects/{project_id}`
1390
1391
  * + Organizations scope, location specified:
1391
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1392
+ * `organizations/{org_id}/locations/{location_id}`
1392
1393
  * + Organizations scope, no location specified (defaults to global):
1393
- * `organizations/`<var>ORG_ID</var>
1394
+ * `organizations/{org_id}`
1394
1395
  *
1395
1396
  * The following example `parent` string specifies a parent project with the
1396
1397
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -1479,13 +1480,13 @@ class DlpServiceClient {
1479
1480
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1480
1481
  *
1481
1482
  * + Projects scope, location specified:
1482
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1483
+ * `projects/{project_id}/locations/{location_id}`
1483
1484
  * + Projects scope, no location specified (defaults to global):
1484
- * `projects/`<var>PROJECT_ID</var>
1485
+ * `projects/{project_id}`
1485
1486
  * + Organizations scope, location specified:
1486
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1487
+ * `organizations/{org_id}/locations/{location_id}`
1487
1488
  * + Organizations scope, no location specified (defaults to global):
1488
- * `organizations/`<var>ORG_ID</var>
1489
+ * `organizations/{org_id}`
1489
1490
  *
1490
1491
  * The following example `parent` string specifies a parent project with the
1491
1492
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -1554,13 +1555,13 @@ class DlpServiceClient {
1554
1555
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1555
1556
  *
1556
1557
  * + Projects scope, location specified:
1557
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1558
+ * `projects/{project_id}/locations/{location_id}`
1558
1559
  * + Projects scope, no location specified (defaults to global):
1559
- * `projects/`<var>PROJECT_ID</var>
1560
+ * `projects/{project_id}`
1560
1561
  * + Organizations scope, location specified:
1561
- * `organizations/`<var>ORG_ID</var>`/locations/`<var>LOCATION_ID</var>
1562
+ * `organizations/{org_id}/locations/{location_id}`
1562
1563
  * + Organizations scope, no location specified (defaults to global):
1563
- * `organizations/`<var>ORG_ID</var>
1564
+ * `organizations/{org_id}`
1564
1565
  *
1565
1566
  * The following example `parent` string specifies a parent project with the
1566
1567
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -1649,9 +1650,9 @@ class DlpServiceClient {
1649
1650
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1650
1651
  *
1651
1652
  * + Projects scope, location specified:
1652
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1653
+ * `projects/{project_id}/locations/{location_id}`
1653
1654
  * + Projects scope, no location specified (defaults to global):
1654
- * `projects/`<var>PROJECT_ID</var>
1655
+ * `projects/{project_id}`
1655
1656
  *
1656
1657
  * The following example `parent` string specifies a parent project with the
1657
1658
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -1749,9 +1750,9 @@ class DlpServiceClient {
1749
1750
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1750
1751
  *
1751
1752
  * + Projects scope, location specified:
1752
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1753
+ * `projects/{project_id}/locations/{location_id}`
1753
1754
  * + Projects scope, no location specified (defaults to global):
1754
- * `projects/`<var>PROJECT_ID</var>
1755
+ * `projects/{project_id}`
1755
1756
  *
1756
1757
  * The following example `parent` string specifies a parent project with the
1757
1758
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -1865,7 +1866,7 @@ class DlpServiceClient {
1865
1866
  * Required. Parent resource name.
1866
1867
  *
1867
1868
  * The format of this value is as follows:
1868
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1869
+ * `projects/{project_id}/locations/{location_id}`
1869
1870
  *
1870
1871
  * The following example `parent` string specifies a parent project with the
1871
1872
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -1927,7 +1928,7 @@ class DlpServiceClient {
1927
1928
  * Required. Parent resource name.
1928
1929
  *
1929
1930
  * The format of this value is as follows:
1930
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
1931
+ * `projects/{project_id}/locations/{location_id}`
1931
1932
  *
1932
1933
  * The following example `parent` string specifies a parent project with the
1933
1934
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2013,9 +2014,9 @@ class DlpServiceClient {
2013
2014
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2014
2015
  *
2015
2016
  * + Projects scope, location specified:
2016
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2017
+ * `projects/{project_id}/locations/{location_id}`
2017
2018
  * + Projects scope, no location specified (defaults to global):
2018
- * `projects/`<var>PROJECT_ID</var>
2019
+ * `projects/{project_id}`
2019
2020
  *
2020
2021
  * The following example `parent` string specifies a parent project with the
2021
2022
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2113,9 +2114,9 @@ class DlpServiceClient {
2113
2114
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2114
2115
  *
2115
2116
  * + Projects scope, location specified:
2116
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2117
+ * `projects/{project_id}/locations/{location_id}`
2117
2118
  * + Projects scope, no location specified (defaults to global):
2118
- * `projects/`<var>PROJECT_ID</var>
2119
+ * `projects/{project_id}`
2119
2120
  *
2120
2121
  * The following example `parent` string specifies a parent project with the
2121
2122
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2233,9 +2234,9 @@ class DlpServiceClient {
2233
2234
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2234
2235
  *
2235
2236
  * + Projects scope, location specified:
2236
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2237
+ * `projects/{project_id}/locations/{location_id}`
2237
2238
  * + Projects scope, no location specified (defaults to global):
2238
- * `projects/`<var>PROJECT_ID</var>
2239
+ * `projects/{project_id}`
2239
2240
  *
2240
2241
  * The following example `parent` string specifies a parent project with the
2241
2242
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -2305,9 +2306,9 @@ class DlpServiceClient {
2305
2306
  * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2306
2307
  *
2307
2308
  * + Projects scope, location specified:
2308
- * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
2309
+ * `projects/{project_id}/locations/{location_id}`
2309
2310
  * + Projects scope, no location specified (defaults to global):
2310
- * `projects/`<var>PROJECT_ID</var>
2311
+ * `projects/{project_id}`
2311
2312
  *
2312
2313
  * The following example `parent` string specifies a parent project with the
2313
2314
  * identifier `example-project`, and specifies the `europe-west3` location
@@ -3176,8 +3177,9 @@ class DlpServiceClient {
3176
3177
  * @param {Object} request
3177
3178
  * The request object that will be sent.
3178
3179
  * @param {string} request.parent
3179
- * Required. Parent name, for example:
3180
- * `projects/project-id/locations/global`.
3180
+ * Required. Resource name of the organization or project, for
3181
+ * example, `organizations/433245324/locations/europe` or
3182
+ * `projects/project-id/locations/asia`.
3181
3183
  * @param {number} [request.pageSize]
3182
3184
  * Optional. Number of results per page, max 1000.
3183
3185
  * @param {string} [request.pageToken]
@@ -3218,8 +3220,9 @@ class DlpServiceClient {
3218
3220
  * @param {Object} request
3219
3221
  * The request object that will be sent.
3220
3222
  * @param {string} request.parent
3221
- * Required. Parent name, for example:
3222
- * `projects/project-id/locations/global`.
3223
+ * Required. Resource name of the organization or project, for
3224
+ * example, `organizations/433245324/locations/europe` or
3225
+ * `projects/project-id/locations/asia`.
3223
3226
  * @param {number} [request.pageSize]
3224
3227
  * Optional. Number of results per page, max 1000.
3225
3228
  * @param {string} [request.pageToken]
@@ -3280,8 +3283,9 @@ class DlpServiceClient {
3280
3283
  * @param {Object} request
3281
3284
  * The request object that will be sent.
3282
3285
  * @param {string} request.parent
3283
- * Required. Parent name, typically an organization, without location.
3284
- * For example: `organizations/12345678`.
3286
+ * Required. Resource name of the organization or project with a wildcard
3287
+ * location, for example, `organizations/433245324/locations/-` or
3288
+ * `projects/project-id/locations/-`.
3285
3289
  * @param {number} [request.pageSize]
3286
3290
  * Optional. Number of results per page, max 1000.
3287
3291
  * @param {string} [request.pageToken]
@@ -3322,8 +3326,9 @@ class DlpServiceClient {
3322
3326
  * @param {Object} request
3323
3327
  * The request object that will be sent.
3324
3328
  * @param {string} request.parent
3325
- * Required. Parent name, typically an organization, without location.
3326
- * For example: `organizations/12345678`.
3329
+ * Required. Resource name of the organization or project with a wildcard
3330
+ * location, for example, `organizations/433245324/locations/-` or
3331
+ * `projects/project-id/locations/-`.
3327
3332
  * @param {number} [request.pageSize]
3328
3333
  * Optional. Number of results per page, max 1000.
3329
3334
  * @param {string} [request.pageToken]
@@ -3416,54 +3421,6 @@ class DlpServiceClient {
3416
3421
  // --------------------
3417
3422
  // -- Path templates --
3418
3423
  // --------------------
3419
- /**
3420
- * Return a fully-qualified connection resource name string.
3421
- *
3422
- * @param {string} project
3423
- * @param {string} location
3424
- * @param {string} connection
3425
- * @returns {string} Resource name string.
3426
- */
3427
- connectionPath(project, location, connection) {
3428
- return this.pathTemplates.connectionPathTemplate.render({
3429
- project: project,
3430
- location: location,
3431
- connection: connection,
3432
- });
3433
- }
3434
- /**
3435
- * Parse the project from Connection resource.
3436
- *
3437
- * @param {string} connectionName
3438
- * A fully-qualified path representing Connection resource.
3439
- * @returns {string} A string representing the project.
3440
- */
3441
- matchProjectFromConnectionName(connectionName) {
3442
- return this.pathTemplates.connectionPathTemplate.match(connectionName)
3443
- .project;
3444
- }
3445
- /**
3446
- * Parse the location from Connection resource.
3447
- *
3448
- * @param {string} connectionName
3449
- * A fully-qualified path representing Connection resource.
3450
- * @returns {string} A string representing the location.
3451
- */
3452
- matchLocationFromConnectionName(connectionName) {
3453
- return this.pathTemplates.connectionPathTemplate.match(connectionName)
3454
- .location;
3455
- }
3456
- /**
3457
- * Parse the connection from Connection resource.
3458
- *
3459
- * @param {string} connectionName
3460
- * A fully-qualified path representing Connection resource.
3461
- * @returns {string} A string representing the connection.
3462
- */
3463
- matchConnectionFromConnectionName(connectionName) {
3464
- return this.pathTemplates.connectionPathTemplate.match(connectionName)
3465
- .connection;
3466
- }
3467
3424
  /**
3468
3425
  * Return a fully-qualified discoveryConfig resource name string.
3469
3426
  *
@@ -3753,6 +3710,51 @@ class DlpServiceClient {
3753
3710
  matchColumnDataProfileFromOrganizationLocationColumnDataProfileName(organizationLocationColumnDataProfileName) {
3754
3711
  return this.pathTemplates.organizationLocationColumnDataProfilePathTemplate.match(organizationLocationColumnDataProfileName).column_data_profile;
3755
3712
  }
3713
+ /**
3714
+ * Return a fully-qualified organizationLocationConnection resource name string.
3715
+ *
3716
+ * @param {string} organization
3717
+ * @param {string} location
3718
+ * @param {string} connection
3719
+ * @returns {string} Resource name string.
3720
+ */
3721
+ organizationLocationConnectionPath(organization, location, connection) {
3722
+ return this.pathTemplates.organizationLocationConnectionPathTemplate.render({
3723
+ organization: organization,
3724
+ location: location,
3725
+ connection: connection,
3726
+ });
3727
+ }
3728
+ /**
3729
+ * Parse the organization from OrganizationLocationConnection resource.
3730
+ *
3731
+ * @param {string} organizationLocationConnectionName
3732
+ * A fully-qualified path representing organization_location_connection resource.
3733
+ * @returns {string} A string representing the organization.
3734
+ */
3735
+ matchOrganizationFromOrganizationLocationConnectionName(organizationLocationConnectionName) {
3736
+ return this.pathTemplates.organizationLocationConnectionPathTemplate.match(organizationLocationConnectionName).organization;
3737
+ }
3738
+ /**
3739
+ * Parse the location from OrganizationLocationConnection resource.
3740
+ *
3741
+ * @param {string} organizationLocationConnectionName
3742
+ * A fully-qualified path representing organization_location_connection resource.
3743
+ * @returns {string} A string representing the location.
3744
+ */
3745
+ matchLocationFromOrganizationLocationConnectionName(organizationLocationConnectionName) {
3746
+ return this.pathTemplates.organizationLocationConnectionPathTemplate.match(organizationLocationConnectionName).location;
3747
+ }
3748
+ /**
3749
+ * Parse the connection from OrganizationLocationConnection resource.
3750
+ *
3751
+ * @param {string} organizationLocationConnectionName
3752
+ * A fully-qualified path representing organization_location_connection resource.
3753
+ * @returns {string} A string representing the connection.
3754
+ */
3755
+ matchConnectionFromOrganizationLocationConnectionName(organizationLocationConnectionName) {
3756
+ return this.pathTemplates.organizationLocationConnectionPathTemplate.match(organizationLocationConnectionName).connection;
3757
+ }
3756
3758
  /**
3757
3759
  * Return a fully-qualified organizationLocationDeidentifyTemplate resource name string.
3758
3760
  *
@@ -4277,6 +4279,51 @@ class DlpServiceClient {
4277
4279
  matchColumnDataProfileFromProjectLocationColumnDataProfileName(projectLocationColumnDataProfileName) {
4278
4280
  return this.pathTemplates.projectLocationColumnDataProfilePathTemplate.match(projectLocationColumnDataProfileName).column_data_profile;
4279
4281
  }
4282
+ /**
4283
+ * Return a fully-qualified projectLocationConnection resource name string.
4284
+ *
4285
+ * @param {string} project
4286
+ * @param {string} location
4287
+ * @param {string} connection
4288
+ * @returns {string} Resource name string.
4289
+ */
4290
+ projectLocationConnectionPath(project, location, connection) {
4291
+ return this.pathTemplates.projectLocationConnectionPathTemplate.render({
4292
+ project: project,
4293
+ location: location,
4294
+ connection: connection,
4295
+ });
4296
+ }
4297
+ /**
4298
+ * Parse the project from ProjectLocationConnection resource.
4299
+ *
4300
+ * @param {string} projectLocationConnectionName
4301
+ * A fully-qualified path representing project_location_connection resource.
4302
+ * @returns {string} A string representing the project.
4303
+ */
4304
+ matchProjectFromProjectLocationConnectionName(projectLocationConnectionName) {
4305
+ return this.pathTemplates.projectLocationConnectionPathTemplate.match(projectLocationConnectionName).project;
4306
+ }
4307
+ /**
4308
+ * Parse the location from ProjectLocationConnection resource.
4309
+ *
4310
+ * @param {string} projectLocationConnectionName
4311
+ * A fully-qualified path representing project_location_connection resource.
4312
+ * @returns {string} A string representing the location.
4313
+ */
4314
+ matchLocationFromProjectLocationConnectionName(projectLocationConnectionName) {
4315
+ return this.pathTemplates.projectLocationConnectionPathTemplate.match(projectLocationConnectionName).location;
4316
+ }
4317
+ /**
4318
+ * Parse the connection from ProjectLocationConnection resource.
4319
+ *
4320
+ * @param {string} projectLocationConnectionName
4321
+ * A fully-qualified path representing project_location_connection resource.
4322
+ * @returns {string} A string representing the connection.
4323
+ */
4324
+ matchConnectionFromProjectLocationConnectionName(projectLocationConnectionName) {
4325
+ return this.pathTemplates.projectLocationConnectionPathTemplate.match(projectLocationConnectionName).connection;
4326
+ }
4280
4327
  /**
4281
4328
  * Return a fully-qualified projectLocationDeidentifyTemplate resource name string.
4282
4329
  *
@@ -226,15 +226,18 @@
226
226
  "retry_params_name": "default"
227
227
  },
228
228
  "ListFileStoreDataProfiles": {
229
- "retry_codes_name": "non_idempotent",
229
+ "timeout_millis": 300000,
230
+ "retry_codes_name": "idempotent",
230
231
  "retry_params_name": "default"
231
232
  },
232
233
  "GetFileStoreDataProfile": {
233
- "retry_codes_name": "non_idempotent",
234
+ "timeout_millis": 300000,
235
+ "retry_codes_name": "idempotent",
234
236
  "retry_params_name": "default"
235
237
  },
236
238
  "DeleteFileStoreDataProfile": {
237
- "retry_codes_name": "non_idempotent",
239
+ "timeout_millis": 300000,
240
+ "retry_codes_name": "idempotent",
238
241
  "retry_params_name": "default"
239
242
  },
240
243
  "GetTableDataProfile": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/dlp",
3
3
  "description": "DLP API client for Node.js",
4
- "version": "5.8.0",
4
+ "version": "5.9.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc",
7
7
  "engines": {