google-cloud-dlp-v2 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +40 -56
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +40 -56
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +454 -332
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +25 -0
- metadata +5 -5
@@ -347,14 +347,26 @@ module Google
|
|
347
347
|
endpoint: @config.endpoint,
|
348
348
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
349
349
|
universe_domain: @config.universe_domain,
|
350
|
-
credentials: credentials
|
350
|
+
credentials: credentials,
|
351
|
+
logger: @config.logger
|
351
352
|
)
|
352
353
|
|
354
|
+
@dlp_service_stub.logger(stub: true)&.info do |entry|
|
355
|
+
entry.set_system_name
|
356
|
+
entry.set_service
|
357
|
+
entry.message = "Created client for #{entry.service}"
|
358
|
+
entry.set_credentials_fields credentials
|
359
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
360
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
361
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
362
|
+
end
|
363
|
+
|
353
364
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
354
365
|
config.credentials = credentials
|
355
366
|
config.quota_project = @quota_project_id
|
356
367
|
config.endpoint = @dlp_service_stub.endpoint
|
357
368
|
config.universe_domain = @dlp_service_stub.universe_domain
|
369
|
+
config.logger = @dlp_service_stub.logger if config.respond_to? :logger=
|
358
370
|
end
|
359
371
|
end
|
360
372
|
|
@@ -365,6 +377,15 @@ module Google
|
|
365
377
|
#
|
366
378
|
attr_reader :location_client
|
367
379
|
|
380
|
+
##
|
381
|
+
# The logger used for request/response debug logging.
|
382
|
+
#
|
383
|
+
# @return [Logger]
|
384
|
+
#
|
385
|
+
def logger
|
386
|
+
@dlp_service_stub.logger
|
387
|
+
end
|
388
|
+
|
368
389
|
# Service calls
|
369
390
|
|
370
391
|
##
|
@@ -478,7 +499,6 @@ module Google
|
|
478
499
|
|
479
500
|
@dlp_service_stub.inspect_content request, options do |result, operation|
|
480
501
|
yield result, operation if block_given?
|
481
|
-
return result
|
482
502
|
end
|
483
503
|
rescue ::Gapic::Rest::Error => e
|
484
504
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -591,7 +611,6 @@ module Google
|
|
591
611
|
|
592
612
|
@dlp_service_stub.redact_image request, options do |result, operation|
|
593
613
|
yield result, operation if block_given?
|
594
|
-
return result
|
595
614
|
end
|
596
615
|
rescue ::Gapic::Rest::Error => e
|
597
616
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -724,7 +743,6 @@ module Google
|
|
724
743
|
|
725
744
|
@dlp_service_stub.deidentify_content request, options do |result, operation|
|
726
745
|
yield result, operation if block_given?
|
727
|
-
return result
|
728
746
|
end
|
729
747
|
rescue ::Gapic::Rest::Error => e
|
730
748
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -852,7 +870,6 @@ module Google
|
|
852
870
|
|
853
871
|
@dlp_service_stub.reidentify_content request, options do |result, operation|
|
854
872
|
yield result, operation if block_given?
|
855
|
-
return result
|
856
873
|
end
|
857
874
|
rescue ::Gapic::Rest::Error => e
|
858
875
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -947,7 +964,6 @@ module Google
|
|
947
964
|
|
948
965
|
@dlp_service_stub.list_info_types request, options do |result, operation|
|
949
966
|
yield result, operation if block_given?
|
950
|
-
return result
|
951
967
|
end
|
952
968
|
rescue ::Gapic::Rest::Error => e
|
953
969
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1058,7 +1074,6 @@ module Google
|
|
1058
1074
|
|
1059
1075
|
@dlp_service_stub.create_inspect_template request, options do |result, operation|
|
1060
1076
|
yield result, operation if block_given?
|
1061
|
-
return result
|
1062
1077
|
end
|
1063
1078
|
rescue ::Gapic::Rest::Error => e
|
1064
1079
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1146,7 +1161,6 @@ module Google
|
|
1146
1161
|
|
1147
1162
|
@dlp_service_stub.update_inspect_template request, options do |result, operation|
|
1148
1163
|
yield result, operation if block_given?
|
1149
|
-
return result
|
1150
1164
|
end
|
1151
1165
|
rescue ::Gapic::Rest::Error => e
|
1152
1166
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1230,7 +1244,6 @@ module Google
|
|
1230
1244
|
|
1231
1245
|
@dlp_service_stub.get_inspect_template request, options do |result, operation|
|
1232
1246
|
yield result, operation if block_given?
|
1233
|
-
return result
|
1234
1247
|
end
|
1235
1248
|
rescue ::Gapic::Rest::Error => e
|
1236
1249
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1358,7 +1371,7 @@ module Google
|
|
1358
1371
|
@dlp_service_stub.list_inspect_templates request, options do |result, operation|
|
1359
1372
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_inspect_templates, "inspect_templates", request, result, options
|
1360
1373
|
yield result, operation if block_given?
|
1361
|
-
|
1374
|
+
throw :response, result
|
1362
1375
|
end
|
1363
1376
|
rescue ::Gapic::Rest::Error => e
|
1364
1377
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1442,7 +1455,6 @@ module Google
|
|
1442
1455
|
|
1443
1456
|
@dlp_service_stub.delete_inspect_template request, options do |result, operation|
|
1444
1457
|
yield result, operation if block_given?
|
1445
|
-
return result
|
1446
1458
|
end
|
1447
1459
|
rescue ::Gapic::Rest::Error => e
|
1448
1460
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1553,7 +1565,6 @@ module Google
|
|
1553
1565
|
|
1554
1566
|
@dlp_service_stub.create_deidentify_template request, options do |result, operation|
|
1555
1567
|
yield result, operation if block_given?
|
1556
|
-
return result
|
1557
1568
|
end
|
1558
1569
|
rescue ::Gapic::Rest::Error => e
|
1559
1570
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1642,7 +1653,6 @@ module Google
|
|
1642
1653
|
|
1643
1654
|
@dlp_service_stub.update_deidentify_template request, options do |result, operation|
|
1644
1655
|
yield result, operation if block_given?
|
1645
|
-
return result
|
1646
1656
|
end
|
1647
1657
|
rescue ::Gapic::Rest::Error => e
|
1648
1658
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1726,7 +1736,6 @@ module Google
|
|
1726
1736
|
|
1727
1737
|
@dlp_service_stub.get_deidentify_template request, options do |result, operation|
|
1728
1738
|
yield result, operation if block_given?
|
1729
|
-
return result
|
1730
1739
|
end
|
1731
1740
|
rescue ::Gapic::Rest::Error => e
|
1732
1741
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1854,7 +1863,7 @@ module Google
|
|
1854
1863
|
@dlp_service_stub.list_deidentify_templates request, options do |result, operation|
|
1855
1864
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_deidentify_templates, "deidentify_templates", request, result, options
|
1856
1865
|
yield result, operation if block_given?
|
1857
|
-
|
1866
|
+
throw :response, result
|
1858
1867
|
end
|
1859
1868
|
rescue ::Gapic::Rest::Error => e
|
1860
1869
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1939,7 +1948,6 @@ module Google
|
|
1939
1948
|
|
1940
1949
|
@dlp_service_stub.delete_deidentify_template request, options do |result, operation|
|
1941
1950
|
yield result, operation if block_given?
|
1942
|
-
return result
|
1943
1951
|
end
|
1944
1952
|
rescue ::Gapic::Rest::Error => e
|
1945
1953
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2046,7 +2054,6 @@ module Google
|
|
2046
2054
|
|
2047
2055
|
@dlp_service_stub.create_job_trigger request, options do |result, operation|
|
2048
2056
|
yield result, operation if block_given?
|
2049
|
-
return result
|
2050
2057
|
end
|
2051
2058
|
rescue ::Gapic::Rest::Error => e
|
2052
2059
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2133,7 +2140,6 @@ module Google
|
|
2133
2140
|
|
2134
2141
|
@dlp_service_stub.update_job_trigger request, options do |result, operation|
|
2135
2142
|
yield result, operation if block_given?
|
2136
|
-
return result
|
2137
2143
|
end
|
2138
2144
|
rescue ::Gapic::Rest::Error => e
|
2139
2145
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2217,7 +2223,6 @@ module Google
|
|
2217
2223
|
|
2218
2224
|
@dlp_service_stub.hybrid_inspect_job_trigger request, options do |result, operation|
|
2219
2225
|
yield result, operation if block_given?
|
2220
|
-
return result
|
2221
2226
|
end
|
2222
2227
|
rescue ::Gapic::Rest::Error => e
|
2223
2228
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2300,7 +2305,6 @@ module Google
|
|
2300
2305
|
|
2301
2306
|
@dlp_service_stub.get_job_trigger request, options do |result, operation|
|
2302
2307
|
yield result, operation if block_given?
|
2303
|
-
return result
|
2304
2308
|
end
|
2305
2309
|
rescue ::Gapic::Rest::Error => e
|
2306
2310
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2453,7 +2457,7 @@ module Google
|
|
2453
2457
|
@dlp_service_stub.list_job_triggers request, options do |result, operation|
|
2454
2458
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_job_triggers, "job_triggers", request, result, options
|
2455
2459
|
yield result, operation if block_given?
|
2456
|
-
|
2460
|
+
throw :response, result
|
2457
2461
|
end
|
2458
2462
|
rescue ::Gapic::Rest::Error => e
|
2459
2463
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2536,7 +2540,6 @@ module Google
|
|
2536
2540
|
|
2537
2541
|
@dlp_service_stub.delete_job_trigger request, options do |result, operation|
|
2538
2542
|
yield result, operation if block_given?
|
2539
|
-
return result
|
2540
2543
|
end
|
2541
2544
|
rescue ::Gapic::Rest::Error => e
|
2542
2545
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2617,7 +2620,6 @@ module Google
|
|
2617
2620
|
|
2618
2621
|
@dlp_service_stub.activate_job_trigger request, options do |result, operation|
|
2619
2622
|
yield result, operation if block_given?
|
2620
|
-
return result
|
2621
2623
|
end
|
2622
2624
|
rescue ::Gapic::Rest::Error => e
|
2623
2625
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2717,7 +2719,6 @@ module Google
|
|
2717
2719
|
|
2718
2720
|
@dlp_service_stub.create_discovery_config request, options do |result, operation|
|
2719
2721
|
yield result, operation if block_given?
|
2720
|
-
return result
|
2721
2722
|
end
|
2722
2723
|
rescue ::Gapic::Rest::Error => e
|
2723
2724
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2801,7 +2802,6 @@ module Google
|
|
2801
2802
|
|
2802
2803
|
@dlp_service_stub.update_discovery_config request, options do |result, operation|
|
2803
2804
|
yield result, operation if block_given?
|
2804
|
-
return result
|
2805
2805
|
end
|
2806
2806
|
rescue ::Gapic::Rest::Error => e
|
2807
2807
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2881,7 +2881,6 @@ module Google
|
|
2881
2881
|
|
2882
2882
|
@dlp_service_stub.get_discovery_config request, options do |result, operation|
|
2883
2883
|
yield result, operation if block_given?
|
2884
|
-
return result
|
2885
2884
|
end
|
2886
2885
|
rescue ::Gapic::Rest::Error => e
|
2887
2886
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2993,7 +2992,7 @@ module Google
|
|
2993
2992
|
@dlp_service_stub.list_discovery_configs request, options do |result, operation|
|
2994
2993
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_discovery_configs, "discovery_configs", request, result, options
|
2995
2994
|
yield result, operation if block_given?
|
2996
|
-
|
2995
|
+
throw :response, result
|
2997
2996
|
end
|
2998
2997
|
rescue ::Gapic::Rest::Error => e
|
2999
2998
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3073,7 +3072,6 @@ module Google
|
|
3073
3072
|
|
3074
3073
|
@dlp_service_stub.delete_discovery_config request, options do |result, operation|
|
3075
3074
|
yield result, operation if block_given?
|
3076
|
-
return result
|
3077
3075
|
end
|
3078
3076
|
rescue ::Gapic::Rest::Error => e
|
3079
3077
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3188,7 +3186,6 @@ module Google
|
|
3188
3186
|
|
3189
3187
|
@dlp_service_stub.create_dlp_job request, options do |result, operation|
|
3190
3188
|
yield result, operation if block_given?
|
3191
|
-
return result
|
3192
3189
|
end
|
3193
3190
|
rescue ::Gapic::Rest::Error => e
|
3194
3191
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3343,7 +3340,7 @@ module Google
|
|
3343
3340
|
@dlp_service_stub.list_dlp_jobs request, options do |result, operation|
|
3344
3341
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_dlp_jobs, "jobs", request, result, options
|
3345
3342
|
yield result, operation if block_given?
|
3346
|
-
|
3343
|
+
throw :response, result
|
3347
3344
|
end
|
3348
3345
|
rescue ::Gapic::Rest::Error => e
|
3349
3346
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3427,7 +3424,6 @@ module Google
|
|
3427
3424
|
|
3428
3425
|
@dlp_service_stub.get_dlp_job request, options do |result, operation|
|
3429
3426
|
yield result, operation if block_given?
|
3430
|
-
return result
|
3431
3427
|
end
|
3432
3428
|
rescue ::Gapic::Rest::Error => e
|
3433
3429
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3513,7 +3509,6 @@ module Google
|
|
3513
3509
|
|
3514
3510
|
@dlp_service_stub.delete_dlp_job request, options do |result, operation|
|
3515
3511
|
yield result, operation if block_given?
|
3516
|
-
return result
|
3517
3512
|
end
|
3518
3513
|
rescue ::Gapic::Rest::Error => e
|
3519
3514
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3599,7 +3594,6 @@ module Google
|
|
3599
3594
|
|
3600
3595
|
@dlp_service_stub.cancel_dlp_job request, options do |result, operation|
|
3601
3596
|
yield result, operation if block_given?
|
3602
|
-
return result
|
3603
3597
|
end
|
3604
3598
|
rescue ::Gapic::Rest::Error => e
|
3605
3599
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3709,7 +3703,6 @@ module Google
|
|
3709
3703
|
|
3710
3704
|
@dlp_service_stub.create_stored_info_type request, options do |result, operation|
|
3711
3705
|
yield result, operation if block_given?
|
3712
|
-
return result
|
3713
3706
|
end
|
3714
3707
|
rescue ::Gapic::Rest::Error => e
|
3715
3708
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3800,7 +3793,6 @@ module Google
|
|
3800
3793
|
|
3801
3794
|
@dlp_service_stub.update_stored_info_type request, options do |result, operation|
|
3802
3795
|
yield result, operation if block_given?
|
3803
|
-
return result
|
3804
3796
|
end
|
3805
3797
|
rescue ::Gapic::Rest::Error => e
|
3806
3798
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3884,7 +3876,6 @@ module Google
|
|
3884
3876
|
|
3885
3877
|
@dlp_service_stub.get_stored_info_type request, options do |result, operation|
|
3886
3878
|
yield result, operation if block_given?
|
3887
|
-
return result
|
3888
3879
|
end
|
3889
3880
|
rescue ::Gapic::Rest::Error => e
|
3890
3881
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4009,7 +4000,7 @@ module Google
|
|
4009
4000
|
@dlp_service_stub.list_stored_info_types request, options do |result, operation|
|
4010
4001
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_stored_info_types, "stored_info_types", request, result, options
|
4011
4002
|
yield result, operation if block_given?
|
4012
|
-
|
4003
|
+
throw :response, result
|
4013
4004
|
end
|
4014
4005
|
rescue ::Gapic::Rest::Error => e
|
4015
4006
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4093,7 +4084,6 @@ module Google
|
|
4093
4084
|
|
4094
4085
|
@dlp_service_stub.delete_stored_info_type request, options do |result, operation|
|
4095
4086
|
yield result, operation if block_given?
|
4096
|
-
return result
|
4097
4087
|
end
|
4098
4088
|
rescue ::Gapic::Rest::Error => e
|
4099
4089
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4221,7 +4211,7 @@ module Google
|
|
4221
4211
|
@dlp_service_stub.list_project_data_profiles request, options do |result, operation|
|
4222
4212
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, "project_data_profiles", request, result, options
|
4223
4213
|
yield result, operation if block_given?
|
4224
|
-
|
4214
|
+
throw :response, result
|
4225
4215
|
end
|
4226
4216
|
rescue ::Gapic::Rest::Error => e
|
4227
4217
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4362,7 +4352,7 @@ module Google
|
|
4362
4352
|
@dlp_service_stub.list_table_data_profiles request, options do |result, operation|
|
4363
4353
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, "table_data_profiles", request, result, options
|
4364
4354
|
yield result, operation if block_given?
|
4365
|
-
|
4355
|
+
throw :response, result
|
4366
4356
|
end
|
4367
4357
|
rescue ::Gapic::Rest::Error => e
|
4368
4358
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4505,7 +4495,7 @@ module Google
|
|
4505
4495
|
@dlp_service_stub.list_column_data_profiles request, options do |result, operation|
|
4506
4496
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, "column_data_profiles", request, result, options
|
4507
4497
|
yield result, operation if block_given?
|
4508
|
-
|
4498
|
+
throw :response, result
|
4509
4499
|
end
|
4510
4500
|
rescue ::Gapic::Rest::Error => e
|
4511
4501
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4585,7 +4575,6 @@ module Google
|
|
4585
4575
|
|
4586
4576
|
@dlp_service_stub.get_project_data_profile request, options do |result, operation|
|
4587
4577
|
yield result, operation if block_given?
|
4588
|
-
return result
|
4589
4578
|
end
|
4590
4579
|
rescue ::Gapic::Rest::Error => e
|
4591
4580
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4731,7 +4720,7 @@ module Google
|
|
4731
4720
|
@dlp_service_stub.list_file_store_data_profiles request, options do |result, operation|
|
4732
4721
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_file_store_data_profiles, "file_store_data_profiles", request, result, options
|
4733
4722
|
yield result, operation if block_given?
|
4734
|
-
|
4723
|
+
throw :response, result
|
4735
4724
|
end
|
4736
4725
|
rescue ::Gapic::Rest::Error => e
|
4737
4726
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4811,7 +4800,6 @@ module Google
|
|
4811
4800
|
|
4812
4801
|
@dlp_service_stub.get_file_store_data_profile request, options do |result, operation|
|
4813
4802
|
yield result, operation if block_given?
|
4814
|
-
return result
|
4815
4803
|
end
|
4816
4804
|
rescue ::Gapic::Rest::Error => e
|
4817
4805
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4891,7 +4879,6 @@ module Google
|
|
4891
4879
|
|
4892
4880
|
@dlp_service_stub.delete_file_store_data_profile request, options do |result, operation|
|
4893
4881
|
yield result, operation if block_given?
|
4894
|
-
return result
|
4895
4882
|
end
|
4896
4883
|
rescue ::Gapic::Rest::Error => e
|
4897
4884
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4971,7 +4958,6 @@ module Google
|
|
4971
4958
|
|
4972
4959
|
@dlp_service_stub.get_table_data_profile request, options do |result, operation|
|
4973
4960
|
yield result, operation if block_given?
|
4974
|
-
return result
|
4975
4961
|
end
|
4976
4962
|
rescue ::Gapic::Rest::Error => e
|
4977
4963
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5051,7 +5037,6 @@ module Google
|
|
5051
5037
|
|
5052
5038
|
@dlp_service_stub.get_column_data_profile request, options do |result, operation|
|
5053
5039
|
yield result, operation if block_given?
|
5054
|
-
return result
|
5055
5040
|
end
|
5056
5041
|
rescue ::Gapic::Rest::Error => e
|
5057
5042
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5131,7 +5116,6 @@ module Google
|
|
5131
5116
|
|
5132
5117
|
@dlp_service_stub.delete_table_data_profile request, options do |result, operation|
|
5133
5118
|
yield result, operation if block_given?
|
5134
|
-
return result
|
5135
5119
|
end
|
5136
5120
|
rescue ::Gapic::Rest::Error => e
|
5137
5121
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5215,7 +5199,6 @@ module Google
|
|
5215
5199
|
|
5216
5200
|
@dlp_service_stub.hybrid_inspect_dlp_job request, options do |result, operation|
|
5217
5201
|
yield result, operation if block_given?
|
5218
|
-
return result
|
5219
5202
|
end
|
5220
5203
|
rescue ::Gapic::Rest::Error => e
|
5221
5204
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5295,7 +5278,6 @@ module Google
|
|
5295
5278
|
|
5296
5279
|
@dlp_service_stub.finish_dlp_job request, options do |result, operation|
|
5297
5280
|
yield result, operation if block_given?
|
5298
|
-
return result
|
5299
5281
|
end
|
5300
5282
|
rescue ::Gapic::Rest::Error => e
|
5301
5283
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5384,7 +5366,6 @@ module Google
|
|
5384
5366
|
|
5385
5367
|
@dlp_service_stub.create_connection request, options do |result, operation|
|
5386
5368
|
yield result, operation if block_given?
|
5387
|
-
return result
|
5388
5369
|
end
|
5389
5370
|
rescue ::Gapic::Rest::Error => e
|
5390
5371
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5464,7 +5445,6 @@ module Google
|
|
5464
5445
|
|
5465
5446
|
@dlp_service_stub.get_connection request, options do |result, operation|
|
5466
5447
|
yield result, operation if block_given?
|
5467
|
-
return result
|
5468
5448
|
end
|
5469
5449
|
rescue ::Gapic::Rest::Error => e
|
5470
5450
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5558,7 +5538,7 @@ module Google
|
|
5558
5538
|
@dlp_service_stub.list_connections request, options do |result, operation|
|
5559
5539
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :list_connections, "connections", request, result, options
|
5560
5540
|
yield result, operation if block_given?
|
5561
|
-
|
5541
|
+
throw :response, result
|
5562
5542
|
end
|
5563
5543
|
rescue ::Gapic::Rest::Error => e
|
5564
5544
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5651,7 +5631,7 @@ module Google
|
|
5651
5631
|
@dlp_service_stub.search_connections request, options do |result, operation|
|
5652
5632
|
result = ::Gapic::Rest::PagedEnumerable.new @dlp_service_stub, :search_connections, "connections", request, result, options
|
5653
5633
|
yield result, operation if block_given?
|
5654
|
-
|
5634
|
+
throw :response, result
|
5655
5635
|
end
|
5656
5636
|
rescue ::Gapic::Rest::Error => e
|
5657
5637
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5731,7 +5711,6 @@ module Google
|
|
5731
5711
|
|
5732
5712
|
@dlp_service_stub.delete_connection request, options do |result, operation|
|
5733
5713
|
yield result, operation if block_given?
|
5734
|
-
return result
|
5735
5714
|
end
|
5736
5715
|
rescue ::Gapic::Rest::Error => e
|
5737
5716
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5815,7 +5794,6 @@ module Google
|
|
5815
5794
|
|
5816
5795
|
@dlp_service_stub.update_connection request, options do |result, operation|
|
5817
5796
|
yield result, operation if block_given?
|
5818
|
-
return result
|
5819
5797
|
end
|
5820
5798
|
rescue ::Gapic::Rest::Error => e
|
5821
5799
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5895,6 +5873,11 @@ module Google
|
|
5895
5873
|
# default endpoint URL. The default value of nil uses the environment
|
5896
5874
|
# universe (usually the default "googleapis.com" universe).
|
5897
5875
|
# @return [::String,nil]
|
5876
|
+
# @!attribute [rw] logger
|
5877
|
+
# A custom logger to use for request/response debug logging, or the value
|
5878
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
5879
|
+
# explicitly disable logging.
|
5880
|
+
# @return [::Logger,:default,nil]
|
5898
5881
|
#
|
5899
5882
|
class Configuration
|
5900
5883
|
extend ::Gapic::Config
|
@@ -5916,6 +5899,7 @@ module Google
|
|
5916
5899
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
5917
5900
|
config_attr :quota_project, nil, ::String, nil
|
5918
5901
|
config_attr :universe_domain, nil, ::String, nil
|
5902
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
5919
5903
|
|
5920
5904
|
# @private
|
5921
5905
|
def initialize parent_config = nil
|