google-cloud-dlp-v2 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,7 @@ module Google
36
36
  # scheduling of data scans on Google Cloud Platform based data sets.
37
37
  #
38
38
  # To learn more about concepts and find how-to guides see
39
- # https://cloud.google.com/dlp/docs/.
39
+ # https://cloud.google.com/sensitive-data-protection/docs/.
40
40
  #
41
41
  class Client
42
42
  # @private
@@ -219,6 +219,36 @@ module Google
219
219
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
220
220
  }
221
221
 
222
+ default_config.rpcs.list_project_data_profiles.timeout = 300.0
223
+ default_config.rpcs.list_project_data_profiles.retry_policy = {
224
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
225
+ }
226
+
227
+ default_config.rpcs.list_table_data_profiles.timeout = 300.0
228
+ default_config.rpcs.list_table_data_profiles.retry_policy = {
229
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
230
+ }
231
+
232
+ default_config.rpcs.list_column_data_profiles.timeout = 300.0
233
+ default_config.rpcs.list_column_data_profiles.retry_policy = {
234
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
235
+ }
236
+
237
+ default_config.rpcs.get_project_data_profile.timeout = 300.0
238
+ default_config.rpcs.get_project_data_profile.retry_policy = {
239
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
240
+ }
241
+
242
+ default_config.rpcs.get_table_data_profile.timeout = 300.0
243
+ default_config.rpcs.get_table_data_profile.retry_policy = {
244
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
245
+ }
246
+
247
+ default_config.rpcs.get_column_data_profile.timeout = 300.0
248
+ default_config.rpcs.get_column_data_profile.retry_policy = {
249
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
250
+ }
251
+
222
252
  default_config.rpcs.hybrid_inspect_dlp_job.timeout = 300.0
223
253
 
224
254
  default_config.rpcs.finish_dlp_job.timeout = 300.0
@@ -338,8 +368,10 @@ module Google
338
368
  # system will automatically choose what detectors to run. By default this may
339
369
  # be all types, but may change over time as detectors are updated.
340
370
  #
341
- # For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
342
- # and https://cloud.google.com/dlp/docs/inspecting-text,
371
+ # For how to guides, see
372
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-images
373
+ # and
374
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,
343
375
  #
344
376
  # @overload inspect_content(request, options = nil)
345
377
  # Pass arguments to `inspect_content` via a request object, either of type
@@ -361,7 +393,7 @@ module Google
361
393
  #
362
394
  # The format of this value varies depending on whether you have [specified a
363
395
  # processing
364
- # location](https://cloud.google.com/dlp/docs/specifying-location):
396
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
365
397
  #
366
398
  # + Projects scope, location specified:<br/>
367
399
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -454,8 +486,9 @@ module Google
454
486
  ##
455
487
  # Redacts potentially sensitive info from an image.
456
488
  # This method has limits on input size, processing time, and output size.
457
- # See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
458
- # learn more.
489
+ # See
490
+ # https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
491
+ # to learn more.
459
492
  #
460
493
  # When no InfoTypes or CustomInfoTypes are specified in this request, the
461
494
  # system will automatically choose what detectors to run. By default this may
@@ -481,7 +514,7 @@ module Google
481
514
  #
482
515
  # The format of this value varies depending on whether you have [specified a
483
516
  # processing
484
- # location](https://cloud.google.com/dlp/docs/specifying-location):
517
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
485
518
  #
486
519
  # + Projects scope, location specified:<br/>
487
520
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -572,8 +605,9 @@ module Google
572
605
  ##
573
606
  # De-identifies potentially sensitive info from a ContentItem.
574
607
  # This method has limits on input size and output size.
575
- # See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
576
- # learn more.
608
+ # See
609
+ # https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
610
+ # to learn more.
577
611
  #
578
612
  # When no InfoTypes or CustomInfoTypes are specified in this request, the
579
613
  # system will automatically choose what detectors to run. By default this may
@@ -599,7 +633,7 @@ module Google
599
633
  #
600
634
  # The format of this value varies depending on whether you have [specified a
601
635
  # processing
602
- # location](https://cloud.google.com/dlp/docs/specifying-location):
636
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
603
637
  #
604
638
  # + Projects scope, location specified:<br/>
605
639
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -710,7 +744,7 @@ module Google
710
744
  ##
711
745
  # Re-identifies content that has been de-identified.
712
746
  # See
713
- # https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
747
+ # https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
714
748
  # to learn more.
715
749
  #
716
750
  # @overload reidentify_content(request, options = nil)
@@ -733,7 +767,7 @@ module Google
733
767
  #
734
768
  # The format of this value varies depending on whether you have [specified a
735
769
  # processing
736
- # location](https://cloud.google.com/dlp/docs/specifying-location):
770
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
737
771
  #
738
772
  # + Projects scope, location specified:<br/>
739
773
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -843,8 +877,9 @@ module Google
843
877
 
844
878
  ##
845
879
  # Returns a list of the sensitive information types that DLP API
846
- # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
847
- # learn more.
880
+ # supports. See
881
+ # https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
882
+ # to learn more.
848
883
  #
849
884
  # @overload list_info_types(request, options = nil)
850
885
  # Pass arguments to `list_info_types` via a request object, either of type
@@ -936,7 +971,9 @@ module Google
936
971
  ##
937
972
  # Creates an InspectTemplate for reusing frequently used configuration
938
973
  # for inspecting content, images, and storage.
939
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
974
+ # See
975
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
976
+ # to learn more.
940
977
  #
941
978
  # @overload create_inspect_template(request, options = nil)
942
979
  # Pass arguments to `create_inspect_template` via a request object, either of type
@@ -958,7 +995,7 @@ module Google
958
995
  #
959
996
  # The format of this value varies depending on the scope of the request
960
997
  # (project or organization) and whether you have [specified a processing
961
- # location](https://cloud.google.com/dlp/docs/specifying-location):
998
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
962
999
  #
963
1000
  # + Projects scope, location specified:<br/>
964
1001
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1050,7 +1087,9 @@ module Google
1050
1087
 
1051
1088
  ##
1052
1089
  # Updates the InspectTemplate.
1053
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1090
+ # See
1091
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
1092
+ # to learn more.
1054
1093
  #
1055
1094
  # @overload update_inspect_template(request, options = nil)
1056
1095
  # Pass arguments to `update_inspect_template` via a request object, either of type
@@ -1142,7 +1181,9 @@ module Google
1142
1181
 
1143
1182
  ##
1144
1183
  # Gets an InspectTemplate.
1145
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1184
+ # See
1185
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
1186
+ # to learn more.
1146
1187
  #
1147
1188
  # @overload get_inspect_template(request, options = nil)
1148
1189
  # Pass arguments to `get_inspect_template` via a request object, either of type
@@ -1230,7 +1271,9 @@ module Google
1230
1271
 
1231
1272
  ##
1232
1273
  # Lists InspectTemplates.
1233
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1274
+ # See
1275
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
1276
+ # to learn more.
1234
1277
  #
1235
1278
  # @overload list_inspect_templates(request, options = nil)
1236
1279
  # Pass arguments to `list_inspect_templates` via a request object, either of type
@@ -1252,7 +1295,7 @@ module Google
1252
1295
  #
1253
1296
  # The format of this value varies depending on the scope of the request
1254
1297
  # (project or organization) and whether you have [specified a processing
1255
- # location](https://cloud.google.com/dlp/docs/specifying-location):
1298
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1256
1299
  #
1257
1300
  # + Projects scope, location specified:<br/>
1258
1301
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1362,7 +1405,9 @@ module Google
1362
1405
 
1363
1406
  ##
1364
1407
  # Deletes an InspectTemplate.
1365
- # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
1408
+ # See
1409
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates
1410
+ # to learn more.
1366
1411
  #
1367
1412
  # @overload delete_inspect_template(request, options = nil)
1368
1413
  # Pass arguments to `delete_inspect_template` via a request object, either of type
@@ -1451,8 +1496,9 @@ module Google
1451
1496
  ##
1452
1497
  # Creates a DeidentifyTemplate for reusing frequently used configuration
1453
1498
  # for de-identifying content, images, and storage.
1454
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
1455
- # more.
1499
+ # See
1500
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
1501
+ # to learn more.
1456
1502
  #
1457
1503
  # @overload create_deidentify_template(request, options = nil)
1458
1504
  # Pass arguments to `create_deidentify_template` via a request object, either of type
@@ -1474,7 +1520,7 @@ module Google
1474
1520
  #
1475
1521
  # The format of this value varies depending on the scope of the request
1476
1522
  # (project or organization) and whether you have [specified a processing
1477
- # location](https://cloud.google.com/dlp/docs/specifying-location):
1523
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1478
1524
  #
1479
1525
  # + Projects scope, location specified:<br/>
1480
1526
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1566,8 +1612,9 @@ module Google
1566
1612
 
1567
1613
  ##
1568
1614
  # Updates the DeidentifyTemplate.
1569
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
1570
- # more.
1615
+ # See
1616
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
1617
+ # to learn more.
1571
1618
  #
1572
1619
  # @overload update_deidentify_template(request, options = nil)
1573
1620
  # Pass arguments to `update_deidentify_template` via a request object, either of type
@@ -1660,8 +1707,9 @@ module Google
1660
1707
 
1661
1708
  ##
1662
1709
  # Gets a DeidentifyTemplate.
1663
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
1664
- # more.
1710
+ # See
1711
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
1712
+ # to learn more.
1665
1713
  #
1666
1714
  # @overload get_deidentify_template(request, options = nil)
1667
1715
  # Pass arguments to `get_deidentify_template` via a request object, either of type
@@ -1749,8 +1797,9 @@ module Google
1749
1797
 
1750
1798
  ##
1751
1799
  # Lists DeidentifyTemplates.
1752
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
1753
- # more.
1800
+ # See
1801
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
1802
+ # to learn more.
1754
1803
  #
1755
1804
  # @overload list_deidentify_templates(request, options = nil)
1756
1805
  # Pass arguments to `list_deidentify_templates` via a request object, either of type
@@ -1772,7 +1821,7 @@ module Google
1772
1821
  #
1773
1822
  # The format of this value varies depending on the scope of the request
1774
1823
  # (project or organization) and whether you have [specified a processing
1775
- # location](https://cloud.google.com/dlp/docs/specifying-location):
1824
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1776
1825
  #
1777
1826
  # + Projects scope, location specified:<br/>
1778
1827
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -1882,8 +1931,9 @@ module Google
1882
1931
 
1883
1932
  ##
1884
1933
  # Deletes a DeidentifyTemplate.
1885
- # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
1886
- # more.
1934
+ # See
1935
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
1936
+ # to learn more.
1887
1937
  #
1888
1938
  # @overload delete_deidentify_template(request, options = nil)
1889
1939
  # Pass arguments to `delete_deidentify_template` via a request object, either of type
@@ -1973,7 +2023,9 @@ module Google
1973
2023
  ##
1974
2024
  # Creates a job trigger to run DLP actions such as scanning storage for
1975
2025
  # sensitive information on a set schedule.
1976
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
2026
+ # See
2027
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
2028
+ # to learn more.
1977
2029
  #
1978
2030
  # @overload create_job_trigger(request, options = nil)
1979
2031
  # Pass arguments to `create_job_trigger` via a request object, either of type
@@ -1995,7 +2047,7 @@ module Google
1995
2047
  #
1996
2048
  # The format of this value varies depending on whether you have [specified a
1997
2049
  # processing
1998
- # location](https://cloud.google.com/dlp/docs/specifying-location):
2050
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
1999
2051
  #
2000
2052
  # + Projects scope, location specified:<br/>
2001
2053
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2083,7 +2135,9 @@ module Google
2083
2135
 
2084
2136
  ##
2085
2137
  # Updates a job trigger.
2086
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
2138
+ # See
2139
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
2140
+ # to learn more.
2087
2141
  #
2088
2142
  # @overload update_job_trigger(request, options = nil)
2089
2143
  # Pass arguments to `update_job_trigger` via a request object, either of type
@@ -2264,7 +2318,9 @@ module Google
2264
2318
 
2265
2319
  ##
2266
2320
  # Gets a job trigger.
2267
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
2321
+ # See
2322
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
2323
+ # to learn more.
2268
2324
  #
2269
2325
  # @overload get_job_trigger(request, options = nil)
2270
2326
  # Pass arguments to `get_job_trigger` via a request object, either of type
@@ -2351,7 +2407,9 @@ module Google
2351
2407
 
2352
2408
  ##
2353
2409
  # Lists job triggers.
2354
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
2410
+ # See
2411
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
2412
+ # to learn more.
2355
2413
  #
2356
2414
  # @overload list_job_triggers(request, options = nil)
2357
2415
  # Pass arguments to `list_job_triggers` via a request object, either of type
@@ -2373,7 +2431,7 @@ module Google
2373
2431
  #
2374
2432
  # The format of this value varies depending on whether you have [specified a
2375
2433
  # processing
2376
- # location](https://cloud.google.com/dlp/docs/specifying-location):
2434
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
2377
2435
  #
2378
2436
  # + Projects scope, location specified:<br/>
2379
2437
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -2508,7 +2566,9 @@ module Google
2508
2566
 
2509
2567
  ##
2510
2568
  # Deletes a job trigger.
2511
- # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
2569
+ # See
2570
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
2571
+ # to learn more.
2512
2572
  #
2513
2573
  # @overload delete_job_trigger(request, options = nil)
2514
2574
  # Pass arguments to `delete_job_trigger` via a request object, either of type
@@ -3163,8 +3223,11 @@ module Google
3163
3223
 
3164
3224
  ##
3165
3225
  # Creates a new job to inspect storage or calculate risk metrics.
3166
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
3167
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
3226
+ # See
3227
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
3228
+ # and
3229
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
3230
+ # to learn more.
3168
3231
  #
3169
3232
  # When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
3170
3233
  # system will automatically choose what detectors to run. By default this may
@@ -3190,7 +3253,7 @@ module Google
3190
3253
  #
3191
3254
  # The format of this value varies depending on whether you have [specified a
3192
3255
  # processing
3193
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3256
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3194
3257
  #
3195
3258
  # + Projects scope, location specified:<br/>
3196
3259
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3281,8 +3344,11 @@ module Google
3281
3344
 
3282
3345
  ##
3283
3346
  # Lists DlpJobs that match the specified filter in the request.
3284
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
3285
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
3347
+ # See
3348
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
3349
+ # and
3350
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
3351
+ # to learn more.
3286
3352
  #
3287
3353
  # @overload list_dlp_jobs(request, options = nil)
3288
3354
  # Pass arguments to `list_dlp_jobs` via a request object, either of type
@@ -3304,7 +3370,7 @@ module Google
3304
3370
  #
3305
3371
  # The format of this value varies depending on whether you have [specified a
3306
3372
  # processing
3307
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3373
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3308
3374
  #
3309
3375
  # + Projects scope, location specified:<br/>
3310
3376
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3439,8 +3505,11 @@ module Google
3439
3505
 
3440
3506
  ##
3441
3507
  # Gets the latest state of a long-running DlpJob.
3442
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
3443
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
3508
+ # See
3509
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
3510
+ # and
3511
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
3512
+ # to learn more.
3444
3513
  #
3445
3514
  # @overload get_dlp_job(request, options = nil)
3446
3515
  # Pass arguments to `get_dlp_job` via a request object, either of type
@@ -3528,8 +3597,11 @@ module Google
3528
3597
  # Deletes a long-running DlpJob. This method indicates that the client is
3529
3598
  # no longer interested in the DlpJob result. The job will be canceled if
3530
3599
  # possible.
3531
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
3532
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
3600
+ # See
3601
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
3602
+ # and
3603
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
3604
+ # to learn more.
3533
3605
  #
3534
3606
  # @overload delete_dlp_job(request, options = nil)
3535
3607
  # Pass arguments to `delete_dlp_job` via a request object, either of type
@@ -3617,8 +3689,11 @@ module Google
3617
3689
  # Starts asynchronous cancellation on a long-running DlpJob. The server
3618
3690
  # makes a best effort to cancel the DlpJob, but success is not
3619
3691
  # guaranteed.
3620
- # See https://cloud.google.com/dlp/docs/inspecting-storage and
3621
- # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
3692
+ # See
3693
+ # https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
3694
+ # and
3695
+ # https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
3696
+ # to learn more.
3622
3697
  #
3623
3698
  # @overload cancel_dlp_job(request, options = nil)
3624
3699
  # Pass arguments to `cancel_dlp_job` via a request object, either of type
@@ -3704,8 +3779,9 @@ module Google
3704
3779
 
3705
3780
  ##
3706
3781
  # Creates a pre-built stored infoType to be used for inspection.
3707
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
3708
- # learn more.
3782
+ # See
3783
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
3784
+ # to learn more.
3709
3785
  #
3710
3786
  # @overload create_stored_info_type(request, options = nil)
3711
3787
  # Pass arguments to `create_stored_info_type` via a request object, either of type
@@ -3727,7 +3803,7 @@ module Google
3727
3803
  #
3728
3804
  # The format of this value varies depending on the scope of the request
3729
3805
  # (project or organization) and whether you have [specified a processing
3730
- # location](https://cloud.google.com/dlp/docs/specifying-location):
3806
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
3731
3807
  #
3732
3808
  # + Projects scope, location specified:<br/>
3733
3809
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -3820,8 +3896,9 @@ module Google
3820
3896
  ##
3821
3897
  # Updates the stored infoType by creating a new version. The existing version
3822
3898
  # will continue to be used until the new version is ready.
3823
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
3824
- # learn more.
3899
+ # See
3900
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
3901
+ # to learn more.
3825
3902
  #
3826
3903
  # @overload update_stored_info_type(request, options = nil)
3827
3904
  # Pass arguments to `update_stored_info_type` via a request object, either of type
@@ -3915,8 +3992,9 @@ module Google
3915
3992
 
3916
3993
  ##
3917
3994
  # Gets a stored infoType.
3918
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
3919
- # learn more.
3995
+ # See
3996
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
3997
+ # to learn more.
3920
3998
  #
3921
3999
  # @overload get_stored_info_type(request, options = nil)
3922
4000
  # Pass arguments to `get_stored_info_type` via a request object, either of type
@@ -4004,8 +4082,9 @@ module Google
4004
4082
 
4005
4083
  ##
4006
4084
  # Lists stored infoTypes.
4007
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
4008
- # learn more.
4085
+ # See
4086
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
4087
+ # to learn more.
4009
4088
  #
4010
4089
  # @overload list_stored_info_types(request, options = nil)
4011
4090
  # Pass arguments to `list_stored_info_types` via a request object, either of type
@@ -4027,7 +4106,7 @@ module Google
4027
4106
  #
4028
4107
  # The format of this value varies depending on the scope of the request
4029
4108
  # (project or organization) and whether you have [specified a processing
4030
- # location](https://cloud.google.com/dlp/docs/specifying-location):
4109
+ # location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
4031
4110
  #
4032
4111
  # + Projects scope, location specified:<br/>
4033
4112
  # `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var>
@@ -4134,8 +4213,9 @@ module Google
4134
4213
 
4135
4214
  ##
4136
4215
  # Deletes a stored infoType.
4137
- # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
4138
- # learn more.
4216
+ # See
4217
+ # https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
4218
+ # to learn more.
4139
4219
  #
4140
4220
  # @overload delete_stored_info_type(request, options = nil)
4141
4221
  # Pass arguments to `delete_stored_info_type` via a request object, either of type
@@ -4222,36 +4302,75 @@ module Google
4222
4302
  end
4223
4303
 
4224
4304
  ##
4225
- # Inspect hybrid content and store findings to a job.
4226
- # To review the findings, inspect the job. Inspection will occur
4227
- # asynchronously.
4305
+ # Lists data profiles for an organization.
4228
4306
  #
4229
- # @overload hybrid_inspect_dlp_job(request, options = nil)
4230
- # Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type
4231
- # {::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest} or an equivalent Hash.
4307
+ # @overload list_project_data_profiles(request, options = nil)
4308
+ # Pass arguments to `list_project_data_profiles` via a request object, either of type
4309
+ # {::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest} or an equivalent Hash.
4232
4310
  #
4233
- # @param request [::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Hash]
4311
+ # @param request [::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest, ::Hash]
4234
4312
  # A request object representing the call parameters. Required. To specify no
4235
4313
  # parameters, or to keep all the default parameter values, pass an empty Hash.
4236
4314
  # @param options [::Gapic::CallOptions, ::Hash]
4237
4315
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4238
4316
  #
4239
- # @overload hybrid_inspect_dlp_job(name: nil, hybrid_item: nil)
4240
- # Pass arguments to `hybrid_inspect_dlp_job` via keyword arguments. Note that at
4317
+ # @overload list_project_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
4318
+ # Pass arguments to `list_project_data_profiles` via keyword arguments. Note that at
4241
4319
  # least one keyword argument is required. To specify no parameters, or to keep all
4242
4320
  # the default parameter values, pass an empty Hash as a request object (see above).
4243
4321
  #
4244
- # @param name [::String]
4245
- # Required. Resource name of the job to execute a hybrid inspect on, for
4246
- # example `projects/dlp-test-project/dlpJob/53234423`.
4247
- # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
4248
- # The item to inspect.
4322
+ # @param parent [::String]
4323
+ # Required. organizations/\\{org_id}/locations/\\{loc_id}
4324
+ # @param page_token [::String]
4325
+ # Page token to continue retrieval.
4326
+ # @param page_size [::Integer]
4327
+ # Size of the page. This value can be limited by the server. If zero, server
4328
+ # returns a page of max size 100.
4329
+ # @param order_by [::String]
4330
+ # Comma separated list of fields to order by, followed by `asc` or `desc`
4331
+ # postfix. This list is case insensitive. The default sorting order is
4332
+ # ascending. Redundant space characters are insignificant. Only one order
4333
+ # field at a time is allowed.
4334
+ #
4335
+ # Examples:
4336
+ # * `project_id`
4337
+ # * `sensitivity_level desc`
4338
+ #
4339
+ # Supported fields are:
4340
+ #
4341
+ # - `project_id`: GCP project ID
4342
+ # - `sensitivity_level`: How sensitive the data in a project is, at most.
4343
+ # - `data_risk_level`: How much risk is associated with this data.
4344
+ # - `profile_last_generated`: When the profile was last updated in epoch
4345
+ # seconds.
4346
+ # @param filter [::String]
4347
+ # Allows filtering.
4348
+ #
4349
+ # Supported syntax:
4350
+ #
4351
+ # * Filter expressions are made up of one or more restrictions.
4352
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
4353
+ # sequence of restrictions implicitly uses `AND`.
4354
+ # * A restriction has the form of `{field} {operator} {value}`.
4355
+ # * Supported fields/values:
4356
+ # - `sensitivity_level` - HIGH|MODERATE|LOW
4357
+ # - `data_risk_level` - HIGH|MODERATE|LOW
4358
+ # - `status_code` - an RPC status code as defined in
4359
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
4360
+ # * The operator must be `=` or `!=`.
4361
+ #
4362
+ # Examples:
4363
+ #
4364
+ # * `project_id = 12345 AND status_code = 1`
4365
+ # * `project_id = 12345 AND sensitivity_level = HIGH`
4366
+ #
4367
+ # The length of this field should be no more than 500 characters.
4249
4368
  #
4250
4369
  # @yield [response, operation] Access the result along with the RPC operation
4251
- # @yieldparam response [::Google::Cloud::Dlp::V2::HybridInspectResponse]
4370
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
4252
4371
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
4253
4372
  #
4254
- # @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
4373
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ProjectDataProfile>]
4255
4374
  #
4256
4375
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4257
4376
  #
@@ -4262,24 +4381,28 @@ module Google
4262
4381
  # client = Google::Cloud::Dlp::V2::DlpService::Client.new
4263
4382
  #
4264
4383
  # # Create a request. To set request fields, pass in keyword arguments.
4265
- # request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new
4384
+ # request = Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest.new
4266
4385
  #
4267
- # # Call the hybrid_inspect_dlp_job method.
4268
- # result = client.hybrid_inspect_dlp_job request
4386
+ # # Call the list_project_data_profiles method.
4387
+ # result = client.list_project_data_profiles request
4269
4388
  #
4270
- # # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
4271
- # p result
4389
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4390
+ # # over elements, and API calls will be issued to fetch pages as needed.
4391
+ # result.each do |item|
4392
+ # # Each element is of type ::Google::Cloud::Dlp::V2::ProjectDataProfile.
4393
+ # p item
4394
+ # end
4272
4395
  #
4273
- def hybrid_inspect_dlp_job request, options = nil
4396
+ def list_project_data_profiles request, options = nil
4274
4397
  raise ::ArgumentError, "request must be provided" if request.nil?
4275
4398
 
4276
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest
4399
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListProjectDataProfilesRequest
4277
4400
 
4278
4401
  # Converts hash and nil to an options object
4279
4402
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4280
4403
 
4281
4404
  # Customize the options with defaults
4282
- metadata = @config.rpcs.hybrid_inspect_dlp_job.metadata.to_h
4405
+ metadata = @config.rpcs.list_project_data_profiles.metadata.to_h
4283
4406
 
4284
4407
  # Set x-goog-api-client and x-goog-user-project headers
4285
4408
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -4288,22 +4411,23 @@ module Google
4288
4411
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4289
4412
 
4290
4413
  header_params = {}
4291
- if request.name
4292
- header_params["name"] = request.name
4414
+ if request.parent
4415
+ header_params["parent"] = request.parent
4293
4416
  end
4294
4417
 
4295
4418
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4296
4419
  metadata[:"x-goog-request-params"] ||= request_params_header
4297
4420
 
4298
- options.apply_defaults timeout: @config.rpcs.hybrid_inspect_dlp_job.timeout,
4421
+ options.apply_defaults timeout: @config.rpcs.list_project_data_profiles.timeout,
4299
4422
  metadata: metadata,
4300
- retry_policy: @config.rpcs.hybrid_inspect_dlp_job.retry_policy
4423
+ retry_policy: @config.rpcs.list_project_data_profiles.retry_policy
4301
4424
 
4302
4425
  options.apply_defaults timeout: @config.timeout,
4303
4426
  metadata: @config.metadata,
4304
4427
  retry_policy: @config.retry_policy
4305
4428
 
4306
- @dlp_service_stub.call_rpc :hybrid_inspect_dlp_job, request, options: options do |response, operation|
4429
+ @dlp_service_stub.call_rpc :list_project_data_profiles, request, options: options do |response, operation|
4430
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, request, response, operation, options
4307
4431
  yield response, operation if block_given?
4308
4432
  return response
4309
4433
  end
@@ -4312,32 +4436,88 @@ module Google
4312
4436
  end
4313
4437
 
4314
4438
  ##
4315
- # Finish a running hybrid DlpJob. Triggers the finalization steps and running
4316
- # of any enabled actions that have not yet run.
4439
+ # Lists data profiles for an organization.
4317
4440
  #
4318
- # @overload finish_dlp_job(request, options = nil)
4319
- # Pass arguments to `finish_dlp_job` via a request object, either of type
4320
- # {::Google::Cloud::Dlp::V2::FinishDlpJobRequest} or an equivalent Hash.
4441
+ # @overload list_table_data_profiles(request, options = nil)
4442
+ # Pass arguments to `list_table_data_profiles` via a request object, either of type
4443
+ # {::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest} or an equivalent Hash.
4321
4444
  #
4322
- # @param request [::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Hash]
4445
+ # @param request [::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest, ::Hash]
4323
4446
  # A request object representing the call parameters. Required. To specify no
4324
4447
  # parameters, or to keep all the default parameter values, pass an empty Hash.
4325
4448
  # @param options [::Gapic::CallOptions, ::Hash]
4326
4449
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4327
4450
  #
4328
- # @overload finish_dlp_job(name: nil)
4329
- # Pass arguments to `finish_dlp_job` via keyword arguments. Note that at
4451
+ # @overload list_table_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
4452
+ # Pass arguments to `list_table_data_profiles` via keyword arguments. Note that at
4330
4453
  # least one keyword argument is required. To specify no parameters, or to keep all
4331
4454
  # the default parameter values, pass an empty Hash as a request object (see above).
4332
4455
  #
4333
- # @param name [::String]
4334
- # Required. The name of the DlpJob resource to be cancelled.
4456
+ # @param parent [::String]
4457
+ # Required. Resource name of the organization or project, for
4458
+ # example `organizations/433245324/locations/europe` or
4459
+ # `projects/project-id/locations/asia`.
4460
+ # @param page_token [::String]
4461
+ # Page token to continue retrieval.
4462
+ # @param page_size [::Integer]
4463
+ # Size of the page. This value can be limited by the server. If zero, server
4464
+ # returns a page of max size 100.
4465
+ # @param order_by [::String]
4466
+ # Comma separated list of fields to order by, followed by `asc` or `desc`
4467
+ # postfix. This list is case insensitive. The default sorting order is
4468
+ # ascending. Redundant space characters are insignificant. Only one order
4469
+ # field at a time is allowed.
4470
+ #
4471
+ # Examples:
4472
+ # * `project_id asc`
4473
+ # * `table_id`
4474
+ # * `sensitivity_level desc`
4475
+ #
4476
+ # Supported fields are:
4477
+ #
4478
+ # - `project_id`: The GCP project ID.
4479
+ # - `dataset_id`: The ID of a BigQuery dataset.
4480
+ # - `table_id`: The ID of a BigQuery table.
4481
+ # - `sensitivity_level`: How sensitive the data in a table is, at most.
4482
+ # - `data_risk_level`: How much risk is associated with this data.
4483
+ # - `profile_last_generated`: When the profile was last updated in epoch
4484
+ # seconds.
4485
+ # - `last_modified`: The last time the resource was modified.
4486
+ # - `resource_visibility`: Visibility restriction for this resource.
4487
+ # - `row_count`: Number of rows in this resource.
4488
+ # @param filter [::String]
4489
+ # Allows filtering.
4490
+ #
4491
+ # Supported syntax:
4492
+ #
4493
+ # * Filter expressions are made up of one or more restrictions.
4494
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
4495
+ # sequence of restrictions implicitly uses `AND`.
4496
+ # * A restriction has the form of `{field} {operator} {value}`.
4497
+ # * Supported fields/values:
4498
+ # - `project_id` - The GCP project ID.
4499
+ # - `dataset_id` - The BigQuery dataset ID.
4500
+ # - `table_id` - The ID of the BigQuery table.
4501
+ # - `sensitivity_level` - HIGH|MODERATE|LOW
4502
+ # - `data_risk_level` - HIGH|MODERATE|LOW
4503
+ # - `resource_visibility`: PUBLIC|RESTRICTED
4504
+ # - `status_code` - an RPC status code as defined in
4505
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
4506
+ # * The operator must be `=` or `!=`.
4507
+ #
4508
+ # Examples:
4509
+ #
4510
+ # * `project_id = 12345 AND status_code = 1`
4511
+ # * `project_id = 12345 AND sensitivity_level = HIGH`
4512
+ # * `project_id = 12345 AND resource_visibility = PUBLIC`
4513
+ #
4514
+ # The length of this field should be no more than 500 characters.
4335
4515
  #
4336
4516
  # @yield [response, operation] Access the result along with the RPC operation
4337
- # @yieldparam response [::Google::Protobuf::Empty]
4517
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
4338
4518
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
4339
4519
  #
4340
- # @return [::Google::Protobuf::Empty]
4520
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::TableDataProfile>]
4341
4521
  #
4342
4522
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
4343
4523
  #
@@ -4348,24 +4528,28 @@ module Google
4348
4528
  # client = Google::Cloud::Dlp::V2::DlpService::Client.new
4349
4529
  #
4350
4530
  # # Create a request. To set request fields, pass in keyword arguments.
4351
- # request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new
4531
+ # request = Google::Cloud::Dlp::V2::ListTableDataProfilesRequest.new
4352
4532
  #
4353
- # # Call the finish_dlp_job method.
4354
- # result = client.finish_dlp_job request
4533
+ # # Call the list_table_data_profiles method.
4534
+ # result = client.list_table_data_profiles request
4355
4535
  #
4356
- # # The returned object is of type Google::Protobuf::Empty.
4357
- # p result
4536
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4537
+ # # over elements, and API calls will be issued to fetch pages as needed.
4538
+ # result.each do |item|
4539
+ # # Each element is of type ::Google::Cloud::Dlp::V2::TableDataProfile.
4540
+ # p item
4541
+ # end
4358
4542
  #
4359
- def finish_dlp_job request, options = nil
4543
+ def list_table_data_profiles request, options = nil
4360
4544
  raise ::ArgumentError, "request must be provided" if request.nil?
4361
4545
 
4362
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::FinishDlpJobRequest
4546
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListTableDataProfilesRequest
4363
4547
 
4364
4548
  # Converts hash and nil to an options object
4365
4549
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4366
4550
 
4367
4551
  # Customize the options with defaults
4368
- metadata = @config.rpcs.finish_dlp_job.metadata.to_h
4552
+ metadata = @config.rpcs.list_table_data_profiles.metadata.to_h
4369
4553
 
4370
4554
  # Set x-goog-api-client and x-goog-user-project headers
4371
4555
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -4374,22 +4558,23 @@ module Google
4374
4558
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4375
4559
 
4376
4560
  header_params = {}
4377
- if request.name
4378
- header_params["name"] = request.name
4561
+ if request.parent
4562
+ header_params["parent"] = request.parent
4379
4563
  end
4380
4564
 
4381
4565
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4382
4566
  metadata[:"x-goog-request-params"] ||= request_params_header
4383
4567
 
4384
- options.apply_defaults timeout: @config.rpcs.finish_dlp_job.timeout,
4568
+ options.apply_defaults timeout: @config.rpcs.list_table_data_profiles.timeout,
4385
4569
  metadata: metadata,
4386
- retry_policy: @config.rpcs.finish_dlp_job.retry_policy
4570
+ retry_policy: @config.rpcs.list_table_data_profiles.retry_policy
4387
4571
 
4388
4572
  options.apply_defaults timeout: @config.timeout,
4389
4573
  metadata: @config.metadata,
4390
4574
  retry_policy: @config.retry_policy
4391
4575
 
4392
- @dlp_service_stub.call_rpc :finish_dlp_job, request, options: options do |response, operation|
4576
+ @dlp_service_stub.call_rpc :list_table_data_profiles, request, options: options do |response, operation|
4577
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, request, response, operation, options
4393
4578
  yield response, operation if block_given?
4394
4579
  return response
4395
4580
  end
@@ -4398,65 +4583,647 @@ module Google
4398
4583
  end
4399
4584
 
4400
4585
  ##
4401
- # Configuration class for the DlpService API.
4586
+ # Lists data profiles for an organization.
4402
4587
  #
4403
- # This class represents the configuration for DlpService,
4404
- # providing control over timeouts, retry behavior, logging, transport
4405
- # parameters, and other low-level controls. Certain parameters can also be
4406
- # applied individually to specific RPCs. See
4407
- # {::Google::Cloud::Dlp::V2::DlpService::Client::Configuration::Rpcs}
4408
- # for a list of RPCs that can be configured independently.
4588
+ # @overload list_column_data_profiles(request, options = nil)
4589
+ # Pass arguments to `list_column_data_profiles` via a request object, either of type
4590
+ # {::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest} or an equivalent Hash.
4409
4591
  #
4410
- # Configuration can be applied globally to all clients, or to a single client
4411
- # on construction.
4592
+ # @param request [::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest, ::Hash]
4593
+ # A request object representing the call parameters. Required. To specify no
4594
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4595
+ # @param options [::Gapic::CallOptions, ::Hash]
4596
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4412
4597
  #
4413
- # @example
4598
+ # @overload list_column_data_profiles(parent: nil, page_token: nil, page_size: nil, order_by: nil, filter: nil)
4599
+ # Pass arguments to `list_column_data_profiles` via keyword arguments. Note that at
4600
+ # least one keyword argument is required. To specify no parameters, or to keep all
4601
+ # the default parameter values, pass an empty Hash as a request object (see above).
4414
4602
  #
4415
- # # Modify the global config, setting the timeout for
4416
- # # inspect_content to 20 seconds,
4417
- # # and all remaining timeouts to 10 seconds.
4418
- # ::Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
4419
- # config.timeout = 10.0
4420
- # config.rpcs.inspect_content.timeout = 20.0
4421
- # end
4603
+ # @param parent [::String]
4604
+ # Required. Resource name of the organization or project, for
4605
+ # example `organizations/433245324/locations/europe` or
4606
+ # `projects/project-id/locations/asia`.
4607
+ # @param page_token [::String]
4608
+ # Page token to continue retrieval.
4609
+ # @param page_size [::Integer]
4610
+ # Size of the page. This value can be limited by the server. If zero, server
4611
+ # returns a page of max size 100.
4612
+ # @param order_by [::String]
4613
+ # Comma separated list of fields to order by, followed by `asc` or `desc`
4614
+ # postfix. This list is case insensitive. The default sorting order is
4615
+ # ascending. Redundant space characters are insignificant. Only one order
4616
+ # field at a time is allowed.
4422
4617
  #
4423
- # # Apply the above configuration only to a new client.
4424
- # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
4425
- # config.timeout = 10.0
4426
- # config.rpcs.inspect_content.timeout = 20.0
4427
- # end
4618
+ # Examples:
4619
+ # * `project_id asc`
4620
+ # * `table_id`
4621
+ # * `sensitivity_level desc`
4428
4622
  #
4429
- # @!attribute [rw] endpoint
4430
- # A custom service endpoint, as a hostname or hostname:port. The default is
4431
- # nil, indicating to use the default endpoint in the current universe domain.
4432
- # @return [::String,nil]
4433
- # @!attribute [rw] credentials
4434
- # Credentials to send with calls. You may provide any of the following types:
4435
- # * (`String`) The path to a service account key file in JSON format
4436
- # * (`Hash`) A service account key as a Hash
4437
- # * (`Google::Auth::Credentials`) A googleauth credentials object
4438
- # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
4439
- # * (`Signet::OAuth2::Client`) A signet oauth2 client object
4440
- # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
4441
- # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4442
- # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4443
- # * (`nil`) indicating no credentials
4444
- # @return [::Object]
4445
- # @!attribute [rw] scope
4446
- # The OAuth scopes
4447
- # @return [::Array<::String>]
4448
- # @!attribute [rw] lib_name
4449
- # The library name as recorded in instrumentation and logging
4450
- # @return [::String]
4451
- # @!attribute [rw] lib_version
4452
- # The library version as recorded in instrumentation and logging
4453
- # @return [::String]
4454
- # @!attribute [rw] channel_args
4455
- # Extra parameters passed to the gRPC channel. Note: this is ignored if a
4456
- # `GRPC::Core::Channel` object is provided as the credential.
4457
- # @return [::Hash]
4458
- # @!attribute [rw] interceptors
4459
- # An array of interceptors that are run before calls are executed.
4623
+ # Supported fields are:
4624
+ #
4625
+ # - `project_id`: The Google Cloud project ID.
4626
+ # - `dataset_id`: The ID of a BigQuery dataset.
4627
+ # - `table_id`: The ID of a BigQuery table.
4628
+ # - `sensitivity_level`: How sensitive the data in a column is, at most.
4629
+ # - `data_risk_level`: How much risk is associated with this data.
4630
+ # - `profile_last_generated`: When the profile was last updated in epoch
4631
+ # seconds.
4632
+ # @param filter [::String]
4633
+ # Allows filtering.
4634
+ #
4635
+ # Supported syntax:
4636
+ #
4637
+ # * Filter expressions are made up of one or more restrictions.
4638
+ # * Restrictions can be combined by `AND` or `OR` logical operators. A
4639
+ # sequence of restrictions implicitly uses `AND`.
4640
+ # * A restriction has the form of `{field} {operator} {value}`.
4641
+ # * Supported fields/values:
4642
+ # - `table_data_profile_name` - The name of the related table data
4643
+ # profile.
4644
+ # - `project_id` - The Google Cloud project ID. (REQUIRED)
4645
+ # - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
4646
+ # - `table_id` - The BigQuery table ID. (REQUIRED)
4647
+ # - `field_id` - The ID of the BigQuery field.
4648
+ # - `info_type` - The infotype detected in the resource.
4649
+ # - `sensitivity_level` - HIGH|MEDIUM|LOW
4650
+ # - `data_risk_level`: How much risk is associated with this data.
4651
+ # - `status_code` - an RPC status code as defined in
4652
+ # https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
4653
+ # * The operator must be `=` for project_id, dataset_id, and table_id. Other
4654
+ # filters also support `!=`.
4655
+ #
4656
+ # Examples:
4657
+ #
4658
+ # * project_id = 12345 AND status_code = 1
4659
+ # * project_id = 12345 AND sensitivity_level = HIGH
4660
+ # * project_id = 12345 AND info_type = STREET_ADDRESS
4661
+ #
4662
+ # The length of this field should be no more than 500 characters.
4663
+ #
4664
+ # @yield [response, operation] Access the result along with the RPC operation
4665
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
4666
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4667
+ #
4668
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dlp::V2::ColumnDataProfile>]
4669
+ #
4670
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4671
+ #
4672
+ # @example Basic example
4673
+ # require "google/cloud/dlp/v2"
4674
+ #
4675
+ # # Create a client object. The client can be reused for multiple calls.
4676
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
4677
+ #
4678
+ # # Create a request. To set request fields, pass in keyword arguments.
4679
+ # request = Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest.new
4680
+ #
4681
+ # # Call the list_column_data_profiles method.
4682
+ # result = client.list_column_data_profiles request
4683
+ #
4684
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4685
+ # # over elements, and API calls will be issued to fetch pages as needed.
4686
+ # result.each do |item|
4687
+ # # Each element is of type ::Google::Cloud::Dlp::V2::ColumnDataProfile.
4688
+ # p item
4689
+ # end
4690
+ #
4691
+ def list_column_data_profiles request, options = nil
4692
+ raise ::ArgumentError, "request must be provided" if request.nil?
4693
+
4694
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::ListColumnDataProfilesRequest
4695
+
4696
+ # Converts hash and nil to an options object
4697
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4698
+
4699
+ # Customize the options with defaults
4700
+ metadata = @config.rpcs.list_column_data_profiles.metadata.to_h
4701
+
4702
+ # Set x-goog-api-client and x-goog-user-project headers
4703
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4704
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4705
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
4706
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4707
+
4708
+ header_params = {}
4709
+ if request.parent
4710
+ header_params["parent"] = request.parent
4711
+ end
4712
+
4713
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4714
+ metadata[:"x-goog-request-params"] ||= request_params_header
4715
+
4716
+ options.apply_defaults timeout: @config.rpcs.list_column_data_profiles.timeout,
4717
+ metadata: metadata,
4718
+ retry_policy: @config.rpcs.list_column_data_profiles.retry_policy
4719
+
4720
+ options.apply_defaults timeout: @config.timeout,
4721
+ metadata: @config.metadata,
4722
+ retry_policy: @config.retry_policy
4723
+
4724
+ @dlp_service_stub.call_rpc :list_column_data_profiles, request, options: options do |response, operation|
4725
+ response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, request, response, operation, options
4726
+ yield response, operation if block_given?
4727
+ return response
4728
+ end
4729
+ rescue ::GRPC::BadStatus => e
4730
+ raise ::Google::Cloud::Error.from_error(e)
4731
+ end
4732
+
4733
+ ##
4734
+ # Gets a project data profile.
4735
+ #
4736
+ # @overload get_project_data_profile(request, options = nil)
4737
+ # Pass arguments to `get_project_data_profile` via a request object, either of type
4738
+ # {::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest} or an equivalent Hash.
4739
+ #
4740
+ # @param request [::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest, ::Hash]
4741
+ # A request object representing the call parameters. Required. To specify no
4742
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4743
+ # @param options [::Gapic::CallOptions, ::Hash]
4744
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4745
+ #
4746
+ # @overload get_project_data_profile(name: nil)
4747
+ # Pass arguments to `get_project_data_profile` via keyword arguments. Note that at
4748
+ # least one keyword argument is required. To specify no parameters, or to keep all
4749
+ # the default parameter values, pass an empty Hash as a request object (see above).
4750
+ #
4751
+ # @param name [::String]
4752
+ # Required. Resource name, for example
4753
+ # `organizations/12345/locations/us/projectDataProfiles/53234423`.
4754
+ #
4755
+ # @yield [response, operation] Access the result along with the RPC operation
4756
+ # @yieldparam response [::Google::Cloud::Dlp::V2::ProjectDataProfile]
4757
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4758
+ #
4759
+ # @return [::Google::Cloud::Dlp::V2::ProjectDataProfile]
4760
+ #
4761
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4762
+ #
4763
+ # @example Basic example
4764
+ # require "google/cloud/dlp/v2"
4765
+ #
4766
+ # # Create a client object. The client can be reused for multiple calls.
4767
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
4768
+ #
4769
+ # # Create a request. To set request fields, pass in keyword arguments.
4770
+ # request = Google::Cloud::Dlp::V2::GetProjectDataProfileRequest.new
4771
+ #
4772
+ # # Call the get_project_data_profile method.
4773
+ # result = client.get_project_data_profile request
4774
+ #
4775
+ # # The returned object is of type Google::Cloud::Dlp::V2::ProjectDataProfile.
4776
+ # p result
4777
+ #
4778
+ def get_project_data_profile request, options = nil
4779
+ raise ::ArgumentError, "request must be provided" if request.nil?
4780
+
4781
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetProjectDataProfileRequest
4782
+
4783
+ # Converts hash and nil to an options object
4784
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4785
+
4786
+ # Customize the options with defaults
4787
+ metadata = @config.rpcs.get_project_data_profile.metadata.to_h
4788
+
4789
+ # Set x-goog-api-client and x-goog-user-project headers
4790
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4791
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4792
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
4793
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4794
+
4795
+ header_params = {}
4796
+ if request.name
4797
+ header_params["name"] = request.name
4798
+ end
4799
+
4800
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4801
+ metadata[:"x-goog-request-params"] ||= request_params_header
4802
+
4803
+ options.apply_defaults timeout: @config.rpcs.get_project_data_profile.timeout,
4804
+ metadata: metadata,
4805
+ retry_policy: @config.rpcs.get_project_data_profile.retry_policy
4806
+
4807
+ options.apply_defaults timeout: @config.timeout,
4808
+ metadata: @config.metadata,
4809
+ retry_policy: @config.retry_policy
4810
+
4811
+ @dlp_service_stub.call_rpc :get_project_data_profile, request, options: options do |response, operation|
4812
+ yield response, operation if block_given?
4813
+ return response
4814
+ end
4815
+ rescue ::GRPC::BadStatus => e
4816
+ raise ::Google::Cloud::Error.from_error(e)
4817
+ end
4818
+
4819
+ ##
4820
+ # Gets a table data profile.
4821
+ #
4822
+ # @overload get_table_data_profile(request, options = nil)
4823
+ # Pass arguments to `get_table_data_profile` via a request object, either of type
4824
+ # {::Google::Cloud::Dlp::V2::GetTableDataProfileRequest} or an equivalent Hash.
4825
+ #
4826
+ # @param request [::Google::Cloud::Dlp::V2::GetTableDataProfileRequest, ::Hash]
4827
+ # A request object representing the call parameters. Required. To specify no
4828
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4829
+ # @param options [::Gapic::CallOptions, ::Hash]
4830
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4831
+ #
4832
+ # @overload get_table_data_profile(name: nil)
4833
+ # Pass arguments to `get_table_data_profile` via keyword arguments. Note that at
4834
+ # least one keyword argument is required. To specify no parameters, or to keep all
4835
+ # the default parameter values, pass an empty Hash as a request object (see above).
4836
+ #
4837
+ # @param name [::String]
4838
+ # Required. Resource name, for example
4839
+ # `organizations/12345/locations/us/tableDataProfiles/53234423`.
4840
+ #
4841
+ # @yield [response, operation] Access the result along with the RPC operation
4842
+ # @yieldparam response [::Google::Cloud::Dlp::V2::TableDataProfile]
4843
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4844
+ #
4845
+ # @return [::Google::Cloud::Dlp::V2::TableDataProfile]
4846
+ #
4847
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4848
+ #
4849
+ # @example Basic example
4850
+ # require "google/cloud/dlp/v2"
4851
+ #
4852
+ # # Create a client object. The client can be reused for multiple calls.
4853
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
4854
+ #
4855
+ # # Create a request. To set request fields, pass in keyword arguments.
4856
+ # request = Google::Cloud::Dlp::V2::GetTableDataProfileRequest.new
4857
+ #
4858
+ # # Call the get_table_data_profile method.
4859
+ # result = client.get_table_data_profile request
4860
+ #
4861
+ # # The returned object is of type Google::Cloud::Dlp::V2::TableDataProfile.
4862
+ # p result
4863
+ #
4864
+ def get_table_data_profile request, options = nil
4865
+ raise ::ArgumentError, "request must be provided" if request.nil?
4866
+
4867
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetTableDataProfileRequest
4868
+
4869
+ # Converts hash and nil to an options object
4870
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4871
+
4872
+ # Customize the options with defaults
4873
+ metadata = @config.rpcs.get_table_data_profile.metadata.to_h
4874
+
4875
+ # Set x-goog-api-client and x-goog-user-project headers
4876
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4877
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4878
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
4879
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4880
+
4881
+ header_params = {}
4882
+ if request.name
4883
+ header_params["name"] = request.name
4884
+ end
4885
+
4886
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4887
+ metadata[:"x-goog-request-params"] ||= request_params_header
4888
+
4889
+ options.apply_defaults timeout: @config.rpcs.get_table_data_profile.timeout,
4890
+ metadata: metadata,
4891
+ retry_policy: @config.rpcs.get_table_data_profile.retry_policy
4892
+
4893
+ options.apply_defaults timeout: @config.timeout,
4894
+ metadata: @config.metadata,
4895
+ retry_policy: @config.retry_policy
4896
+
4897
+ @dlp_service_stub.call_rpc :get_table_data_profile, request, options: options do |response, operation|
4898
+ yield response, operation if block_given?
4899
+ return response
4900
+ end
4901
+ rescue ::GRPC::BadStatus => e
4902
+ raise ::Google::Cloud::Error.from_error(e)
4903
+ end
4904
+
4905
+ ##
4906
+ # Gets a column data profile.
4907
+ #
4908
+ # @overload get_column_data_profile(request, options = nil)
4909
+ # Pass arguments to `get_column_data_profile` via a request object, either of type
4910
+ # {::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest} or an equivalent Hash.
4911
+ #
4912
+ # @param request [::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest, ::Hash]
4913
+ # A request object representing the call parameters. Required. To specify no
4914
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4915
+ # @param options [::Gapic::CallOptions, ::Hash]
4916
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4917
+ #
4918
+ # @overload get_column_data_profile(name: nil)
4919
+ # Pass arguments to `get_column_data_profile` via keyword arguments. Note that at
4920
+ # least one keyword argument is required. To specify no parameters, or to keep all
4921
+ # the default parameter values, pass an empty Hash as a request object (see above).
4922
+ #
4923
+ # @param name [::String]
4924
+ # Required. Resource name, for example
4925
+ # `organizations/12345/locations/us/columnDataProfiles/53234423`.
4926
+ #
4927
+ # @yield [response, operation] Access the result along with the RPC operation
4928
+ # @yieldparam response [::Google::Cloud::Dlp::V2::ColumnDataProfile]
4929
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
4930
+ #
4931
+ # @return [::Google::Cloud::Dlp::V2::ColumnDataProfile]
4932
+ #
4933
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
4934
+ #
4935
+ # @example Basic example
4936
+ # require "google/cloud/dlp/v2"
4937
+ #
4938
+ # # Create a client object. The client can be reused for multiple calls.
4939
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
4940
+ #
4941
+ # # Create a request. To set request fields, pass in keyword arguments.
4942
+ # request = Google::Cloud::Dlp::V2::GetColumnDataProfileRequest.new
4943
+ #
4944
+ # # Call the get_column_data_profile method.
4945
+ # result = client.get_column_data_profile request
4946
+ #
4947
+ # # The returned object is of type Google::Cloud::Dlp::V2::ColumnDataProfile.
4948
+ # p result
4949
+ #
4950
+ def get_column_data_profile request, options = nil
4951
+ raise ::ArgumentError, "request must be provided" if request.nil?
4952
+
4953
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::GetColumnDataProfileRequest
4954
+
4955
+ # Converts hash and nil to an options object
4956
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4957
+
4958
+ # Customize the options with defaults
4959
+ metadata = @config.rpcs.get_column_data_profile.metadata.to_h
4960
+
4961
+ # Set x-goog-api-client and x-goog-user-project headers
4962
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4963
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4964
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
4965
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4966
+
4967
+ header_params = {}
4968
+ if request.name
4969
+ header_params["name"] = request.name
4970
+ end
4971
+
4972
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
4973
+ metadata[:"x-goog-request-params"] ||= request_params_header
4974
+
4975
+ options.apply_defaults timeout: @config.rpcs.get_column_data_profile.timeout,
4976
+ metadata: metadata,
4977
+ retry_policy: @config.rpcs.get_column_data_profile.retry_policy
4978
+
4979
+ options.apply_defaults timeout: @config.timeout,
4980
+ metadata: @config.metadata,
4981
+ retry_policy: @config.retry_policy
4982
+
4983
+ @dlp_service_stub.call_rpc :get_column_data_profile, request, options: options do |response, operation|
4984
+ yield response, operation if block_given?
4985
+ return response
4986
+ end
4987
+ rescue ::GRPC::BadStatus => e
4988
+ raise ::Google::Cloud::Error.from_error(e)
4989
+ end
4990
+
4991
+ ##
4992
+ # Inspect hybrid content and store findings to a job.
4993
+ # To review the findings, inspect the job. Inspection will occur
4994
+ # asynchronously.
4995
+ #
4996
+ # @overload hybrid_inspect_dlp_job(request, options = nil)
4997
+ # Pass arguments to `hybrid_inspect_dlp_job` via a request object, either of type
4998
+ # {::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest} or an equivalent Hash.
4999
+ #
5000
+ # @param request [::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, ::Hash]
5001
+ # A request object representing the call parameters. Required. To specify no
5002
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5003
+ # @param options [::Gapic::CallOptions, ::Hash]
5004
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5005
+ #
5006
+ # @overload hybrid_inspect_dlp_job(name: nil, hybrid_item: nil)
5007
+ # Pass arguments to `hybrid_inspect_dlp_job` via keyword arguments. Note that at
5008
+ # least one keyword argument is required. To specify no parameters, or to keep all
5009
+ # the default parameter values, pass an empty Hash as a request object (see above).
5010
+ #
5011
+ # @param name [::String]
5012
+ # Required. Resource name of the job to execute a hybrid inspect on, for
5013
+ # example `projects/dlp-test-project/dlpJob/53234423`.
5014
+ # @param hybrid_item [::Google::Cloud::Dlp::V2::HybridContentItem, ::Hash]
5015
+ # The item to inspect.
5016
+ #
5017
+ # @yield [response, operation] Access the result along with the RPC operation
5018
+ # @yieldparam response [::Google::Cloud::Dlp::V2::HybridInspectResponse]
5019
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5020
+ #
5021
+ # @return [::Google::Cloud::Dlp::V2::HybridInspectResponse]
5022
+ #
5023
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5024
+ #
5025
+ # @example Basic example
5026
+ # require "google/cloud/dlp/v2"
5027
+ #
5028
+ # # Create a client object. The client can be reused for multiple calls.
5029
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
5030
+ #
5031
+ # # Create a request. To set request fields, pass in keyword arguments.
5032
+ # request = Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest.new
5033
+ #
5034
+ # # Call the hybrid_inspect_dlp_job method.
5035
+ # result = client.hybrid_inspect_dlp_job request
5036
+ #
5037
+ # # The returned object is of type Google::Cloud::Dlp::V2::HybridInspectResponse.
5038
+ # p result
5039
+ #
5040
+ def hybrid_inspect_dlp_job request, options = nil
5041
+ raise ::ArgumentError, "request must be provided" if request.nil?
5042
+
5043
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest
5044
+
5045
+ # Converts hash and nil to an options object
5046
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5047
+
5048
+ # Customize the options with defaults
5049
+ metadata = @config.rpcs.hybrid_inspect_dlp_job.metadata.to_h
5050
+
5051
+ # Set x-goog-api-client and x-goog-user-project headers
5052
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5053
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5054
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
5055
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5056
+
5057
+ header_params = {}
5058
+ if request.name
5059
+ header_params["name"] = request.name
5060
+ end
5061
+
5062
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5063
+ metadata[:"x-goog-request-params"] ||= request_params_header
5064
+
5065
+ options.apply_defaults timeout: @config.rpcs.hybrid_inspect_dlp_job.timeout,
5066
+ metadata: metadata,
5067
+ retry_policy: @config.rpcs.hybrid_inspect_dlp_job.retry_policy
5068
+
5069
+ options.apply_defaults timeout: @config.timeout,
5070
+ metadata: @config.metadata,
5071
+ retry_policy: @config.retry_policy
5072
+
5073
+ @dlp_service_stub.call_rpc :hybrid_inspect_dlp_job, request, options: options do |response, operation|
5074
+ yield response, operation if block_given?
5075
+ return response
5076
+ end
5077
+ rescue ::GRPC::BadStatus => e
5078
+ raise ::Google::Cloud::Error.from_error(e)
5079
+ end
5080
+
5081
+ ##
5082
+ # Finish a running hybrid DlpJob. Triggers the finalization steps and running
5083
+ # of any enabled actions that have not yet run.
5084
+ #
5085
+ # @overload finish_dlp_job(request, options = nil)
5086
+ # Pass arguments to `finish_dlp_job` via a request object, either of type
5087
+ # {::Google::Cloud::Dlp::V2::FinishDlpJobRequest} or an equivalent Hash.
5088
+ #
5089
+ # @param request [::Google::Cloud::Dlp::V2::FinishDlpJobRequest, ::Hash]
5090
+ # A request object representing the call parameters. Required. To specify no
5091
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
5092
+ # @param options [::Gapic::CallOptions, ::Hash]
5093
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5094
+ #
5095
+ # @overload finish_dlp_job(name: nil)
5096
+ # Pass arguments to `finish_dlp_job` via keyword arguments. Note that at
5097
+ # least one keyword argument is required. To specify no parameters, or to keep all
5098
+ # the default parameter values, pass an empty Hash as a request object (see above).
5099
+ #
5100
+ # @param name [::String]
5101
+ # Required. The name of the DlpJob resource to be finished.
5102
+ #
5103
+ # @yield [response, operation] Access the result along with the RPC operation
5104
+ # @yieldparam response [::Google::Protobuf::Empty]
5105
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
5106
+ #
5107
+ # @return [::Google::Protobuf::Empty]
5108
+ #
5109
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
5110
+ #
5111
+ # @example Basic example
5112
+ # require "google/cloud/dlp/v2"
5113
+ #
5114
+ # # Create a client object. The client can be reused for multiple calls.
5115
+ # client = Google::Cloud::Dlp::V2::DlpService::Client.new
5116
+ #
5117
+ # # Create a request. To set request fields, pass in keyword arguments.
5118
+ # request = Google::Cloud::Dlp::V2::FinishDlpJobRequest.new
5119
+ #
5120
+ # # Call the finish_dlp_job method.
5121
+ # result = client.finish_dlp_job request
5122
+ #
5123
+ # # The returned object is of type Google::Protobuf::Empty.
5124
+ # p result
5125
+ #
5126
+ def finish_dlp_job request, options = nil
5127
+ raise ::ArgumentError, "request must be provided" if request.nil?
5128
+
5129
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dlp::V2::FinishDlpJobRequest
5130
+
5131
+ # Converts hash and nil to an options object
5132
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
5133
+
5134
+ # Customize the options with defaults
5135
+ metadata = @config.rpcs.finish_dlp_job.metadata.to_h
5136
+
5137
+ # Set x-goog-api-client and x-goog-user-project headers
5138
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
5139
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
5140
+ gapic_version: ::Google::Cloud::Dlp::V2::VERSION
5141
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
5142
+
5143
+ header_params = {}
5144
+ if request.name
5145
+ header_params["name"] = request.name
5146
+ end
5147
+
5148
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
5149
+ metadata[:"x-goog-request-params"] ||= request_params_header
5150
+
5151
+ options.apply_defaults timeout: @config.rpcs.finish_dlp_job.timeout,
5152
+ metadata: metadata,
5153
+ retry_policy: @config.rpcs.finish_dlp_job.retry_policy
5154
+
5155
+ options.apply_defaults timeout: @config.timeout,
5156
+ metadata: @config.metadata,
5157
+ retry_policy: @config.retry_policy
5158
+
5159
+ @dlp_service_stub.call_rpc :finish_dlp_job, request, options: options do |response, operation|
5160
+ yield response, operation if block_given?
5161
+ return response
5162
+ end
5163
+ rescue ::GRPC::BadStatus => e
5164
+ raise ::Google::Cloud::Error.from_error(e)
5165
+ end
5166
+
5167
+ ##
5168
+ # Configuration class for the DlpService API.
5169
+ #
5170
+ # This class represents the configuration for DlpService,
5171
+ # providing control over timeouts, retry behavior, logging, transport
5172
+ # parameters, and other low-level controls. Certain parameters can also be
5173
+ # applied individually to specific RPCs. See
5174
+ # {::Google::Cloud::Dlp::V2::DlpService::Client::Configuration::Rpcs}
5175
+ # for a list of RPCs that can be configured independently.
5176
+ #
5177
+ # Configuration can be applied globally to all clients, or to a single client
5178
+ # on construction.
5179
+ #
5180
+ # @example
5181
+ #
5182
+ # # Modify the global config, setting the timeout for
5183
+ # # inspect_content to 20 seconds,
5184
+ # # and all remaining timeouts to 10 seconds.
5185
+ # ::Google::Cloud::Dlp::V2::DlpService::Client.configure do |config|
5186
+ # config.timeout = 10.0
5187
+ # config.rpcs.inspect_content.timeout = 20.0
5188
+ # end
5189
+ #
5190
+ # # Apply the above configuration only to a new client.
5191
+ # client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
5192
+ # config.timeout = 10.0
5193
+ # config.rpcs.inspect_content.timeout = 20.0
5194
+ # end
5195
+ #
5196
+ # @!attribute [rw] endpoint
5197
+ # A custom service endpoint, as a hostname or hostname:port. The default is
5198
+ # nil, indicating to use the default endpoint in the current universe domain.
5199
+ # @return [::String,nil]
5200
+ # @!attribute [rw] credentials
5201
+ # Credentials to send with calls. You may provide any of the following types:
5202
+ # * (`String`) The path to a service account key file in JSON format
5203
+ # * (`Hash`) A service account key as a Hash
5204
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
5205
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
5206
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
5207
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
5208
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
5209
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
5210
+ # * (`nil`) indicating no credentials
5211
+ # @return [::Object]
5212
+ # @!attribute [rw] scope
5213
+ # The OAuth scopes
5214
+ # @return [::Array<::String>]
5215
+ # @!attribute [rw] lib_name
5216
+ # The library name as recorded in instrumentation and logging
5217
+ # @return [::String]
5218
+ # @!attribute [rw] lib_version
5219
+ # The library version as recorded in instrumentation and logging
5220
+ # @return [::String]
5221
+ # @!attribute [rw] channel_args
5222
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
5223
+ # `GRPC::Core::Channel` object is provided as the credential.
5224
+ # @return [::Hash]
5225
+ # @!attribute [rw] interceptors
5226
+ # An array of interceptors that are run before calls are executed.
4460
5227
  # @return [::Array<::GRPC::ClientInterceptor>]
4461
5228
  # @!attribute [rw] timeout
4462
5229
  # The call timeout in seconds.
@@ -4736,6 +5503,36 @@ module Google
4736
5503
  #
4737
5504
  attr_reader :delete_stored_info_type
4738
5505
  ##
5506
+ # RPC-specific configuration for `list_project_data_profiles`
5507
+ # @return [::Gapic::Config::Method]
5508
+ #
5509
+ attr_reader :list_project_data_profiles
5510
+ ##
5511
+ # RPC-specific configuration for `list_table_data_profiles`
5512
+ # @return [::Gapic::Config::Method]
5513
+ #
5514
+ attr_reader :list_table_data_profiles
5515
+ ##
5516
+ # RPC-specific configuration for `list_column_data_profiles`
5517
+ # @return [::Gapic::Config::Method]
5518
+ #
5519
+ attr_reader :list_column_data_profiles
5520
+ ##
5521
+ # RPC-specific configuration for `get_project_data_profile`
5522
+ # @return [::Gapic::Config::Method]
5523
+ #
5524
+ attr_reader :get_project_data_profile
5525
+ ##
5526
+ # RPC-specific configuration for `get_table_data_profile`
5527
+ # @return [::Gapic::Config::Method]
5528
+ #
5529
+ attr_reader :get_table_data_profile
5530
+ ##
5531
+ # RPC-specific configuration for `get_column_data_profile`
5532
+ # @return [::Gapic::Config::Method]
5533
+ #
5534
+ attr_reader :get_column_data_profile
5535
+ ##
4739
5536
  # RPC-specific configuration for `hybrid_inspect_dlp_job`
4740
5537
  # @return [::Gapic::Config::Method]
4741
5538
  #
@@ -4822,6 +5619,18 @@ module Google
4822
5619
  @list_stored_info_types = ::Gapic::Config::Method.new list_stored_info_types_config
4823
5620
  delete_stored_info_type_config = parent_rpcs.delete_stored_info_type if parent_rpcs.respond_to? :delete_stored_info_type
4824
5621
  @delete_stored_info_type = ::Gapic::Config::Method.new delete_stored_info_type_config
5622
+ list_project_data_profiles_config = parent_rpcs.list_project_data_profiles if parent_rpcs.respond_to? :list_project_data_profiles
5623
+ @list_project_data_profiles = ::Gapic::Config::Method.new list_project_data_profiles_config
5624
+ list_table_data_profiles_config = parent_rpcs.list_table_data_profiles if parent_rpcs.respond_to? :list_table_data_profiles
5625
+ @list_table_data_profiles = ::Gapic::Config::Method.new list_table_data_profiles_config
5626
+ list_column_data_profiles_config = parent_rpcs.list_column_data_profiles if parent_rpcs.respond_to? :list_column_data_profiles
5627
+ @list_column_data_profiles = ::Gapic::Config::Method.new list_column_data_profiles_config
5628
+ get_project_data_profile_config = parent_rpcs.get_project_data_profile if parent_rpcs.respond_to? :get_project_data_profile
5629
+ @get_project_data_profile = ::Gapic::Config::Method.new get_project_data_profile_config
5630
+ get_table_data_profile_config = parent_rpcs.get_table_data_profile if parent_rpcs.respond_to? :get_table_data_profile
5631
+ @get_table_data_profile = ::Gapic::Config::Method.new get_table_data_profile_config
5632
+ get_column_data_profile_config = parent_rpcs.get_column_data_profile if parent_rpcs.respond_to? :get_column_data_profile
5633
+ @get_column_data_profile = ::Gapic::Config::Method.new get_column_data_profile_config
4825
5634
  hybrid_inspect_dlp_job_config = parent_rpcs.hybrid_inspect_dlp_job if parent_rpcs.respond_to? :hybrid_inspect_dlp_job
4826
5635
  @hybrid_inspect_dlp_job = ::Gapic::Config::Method.new hybrid_inspect_dlp_job_config
4827
5636
  finish_dlp_job_config = parent_rpcs.finish_dlp_job if parent_rpcs.respond_to? :finish_dlp_job