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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4e291a4f779f5fca3d5de5f46e58a80e2470fe4e9f2cdf883ae3f0c736180df
|
4
|
+
data.tar.gz: 9830aa38f818257f9ee87f0de46f075456bddf3cbe739c4ade6a64efd0e59795
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce82f99acceebf86841c2efb3bcb835a7d99f4cc8378a4f0bb65ecf98f4793b68745293d763a14aba05d8f2f6ca81a4d911c2f8ceec73900f4eb08bb79ed1281
|
7
|
+
data.tar.gz: b0b018731a5194d0c9d6a0714d564f0610224bd721668213dc8cd6a27e01be0ac7c9eac5a0a2a92c134f8622a52e1983d9040c8705c0b54c0d73cf1d162f73ab
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/dlp)
|
44
44
|
for general usage information.
|
45
45
|
|
46
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
46
|
+
## Debug Logging
|
47
|
+
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
49
|
+
your application's integration with the API. When logging is activated, key
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
52
|
+
stream.
|
53
|
+
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
60
|
+
permanently in production.
|
61
|
+
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
68
|
+
results in logs appearing alongside your application logs in the
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
70
|
+
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
72
|
+
constructing a client object. For example:
|
55
73
|
|
56
74
|
```ruby
|
75
|
+
require "google/cloud/dlp/v2"
|
57
76
|
require "logger"
|
58
77
|
|
59
|
-
|
60
|
-
|
61
|
-
def logger
|
62
|
-
LOGGER
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
67
|
-
module GRPC
|
68
|
-
extend MyLogger
|
78
|
+
client = ::Google::Cloud::Dlp::V2::DlpService::Client.new do |config|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
69
80
|
end
|
70
81
|
```
|
71
82
|
|
72
|
-
|
73
83
|
## Google Cloud Samples
|
74
84
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
@@ -354,14 +354,26 @@ module Google
|
|
354
354
|
universe_domain: @config.universe_domain,
|
355
355
|
channel_args: @config.channel_args,
|
356
356
|
interceptors: @config.interceptors,
|
357
|
-
channel_pool_config: @config.channel_pool
|
357
|
+
channel_pool_config: @config.channel_pool,
|
358
|
+
logger: @config.logger
|
358
359
|
)
|
359
360
|
|
361
|
+
@dlp_service_stub.stub_logger&.info do |entry|
|
362
|
+
entry.set_system_name
|
363
|
+
entry.set_service
|
364
|
+
entry.message = "Created client for #{entry.service}"
|
365
|
+
entry.set_credentials_fields credentials
|
366
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
367
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
368
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
369
|
+
end
|
370
|
+
|
360
371
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
361
372
|
config.credentials = credentials
|
362
373
|
config.quota_project = @quota_project_id
|
363
374
|
config.endpoint = @dlp_service_stub.endpoint
|
364
375
|
config.universe_domain = @dlp_service_stub.universe_domain
|
376
|
+
config.logger = @dlp_service_stub.logger if config.respond_to? :logger=
|
365
377
|
end
|
366
378
|
end
|
367
379
|
|
@@ -372,6 +384,15 @@ module Google
|
|
372
384
|
#
|
373
385
|
attr_reader :location_client
|
374
386
|
|
387
|
+
##
|
388
|
+
# The logger used for request/response debug logging.
|
389
|
+
#
|
390
|
+
# @return [Logger]
|
391
|
+
#
|
392
|
+
def logger
|
393
|
+
@dlp_service_stub.logger
|
394
|
+
end
|
395
|
+
|
375
396
|
# Service calls
|
376
397
|
|
377
398
|
##
|
@@ -492,7 +513,6 @@ module Google
|
|
492
513
|
|
493
514
|
@dlp_service_stub.call_rpc :inspect_content, request, options: options do |response, operation|
|
494
515
|
yield response, operation if block_given?
|
495
|
-
return response
|
496
516
|
end
|
497
517
|
rescue ::GRPC::BadStatus => e
|
498
518
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -612,7 +632,6 @@ module Google
|
|
612
632
|
|
613
633
|
@dlp_service_stub.call_rpc :redact_image, request, options: options do |response, operation|
|
614
634
|
yield response, operation if block_given?
|
615
|
-
return response
|
616
635
|
end
|
617
636
|
rescue ::GRPC::BadStatus => e
|
618
637
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -752,7 +771,6 @@ module Google
|
|
752
771
|
|
753
772
|
@dlp_service_stub.call_rpc :deidentify_content, request, options: options do |response, operation|
|
754
773
|
yield response, operation if block_given?
|
755
|
-
return response
|
756
774
|
end
|
757
775
|
rescue ::GRPC::BadStatus => e
|
758
776
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -887,7 +905,6 @@ module Google
|
|
887
905
|
|
888
906
|
@dlp_service_stub.call_rpc :reidentify_content, request, options: options do |response, operation|
|
889
907
|
yield response, operation if block_given?
|
890
|
-
return response
|
891
908
|
end
|
892
909
|
rescue ::GRPC::BadStatus => e
|
893
910
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -981,7 +998,6 @@ module Google
|
|
981
998
|
|
982
999
|
@dlp_service_stub.call_rpc :list_info_types, request, options: options do |response, operation|
|
983
1000
|
yield response, operation if block_given?
|
984
|
-
return response
|
985
1001
|
end
|
986
1002
|
rescue ::GRPC::BadStatus => e
|
987
1003
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1099,7 +1115,6 @@ module Google
|
|
1099
1115
|
|
1100
1116
|
@dlp_service_stub.call_rpc :create_inspect_template, request, options: options do |response, operation|
|
1101
1117
|
yield response, operation if block_given?
|
1102
|
-
return response
|
1103
1118
|
end
|
1104
1119
|
rescue ::GRPC::BadStatus => e
|
1105
1120
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1194,7 +1209,6 @@ module Google
|
|
1194
1209
|
|
1195
1210
|
@dlp_service_stub.call_rpc :update_inspect_template, request, options: options do |response, operation|
|
1196
1211
|
yield response, operation if block_given?
|
1197
|
-
return response
|
1198
1212
|
end
|
1199
1213
|
rescue ::GRPC::BadStatus => e
|
1200
1214
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1285,7 +1299,6 @@ module Google
|
|
1285
1299
|
|
1286
1300
|
@dlp_service_stub.call_rpc :get_inspect_template, request, options: options do |response, operation|
|
1287
1301
|
yield response, operation if block_given?
|
1288
|
-
return response
|
1289
1302
|
end
|
1290
1303
|
rescue ::GRPC::BadStatus => e
|
1291
1304
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1420,7 +1433,7 @@ module Google
|
|
1420
1433
|
@dlp_service_stub.call_rpc :list_inspect_templates, request, options: options do |response, operation|
|
1421
1434
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_inspect_templates, request, response, operation, options
|
1422
1435
|
yield response, operation if block_given?
|
1423
|
-
|
1436
|
+
throw :response, response
|
1424
1437
|
end
|
1425
1438
|
rescue ::GRPC::BadStatus => e
|
1426
1439
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1511,7 +1524,6 @@ module Google
|
|
1511
1524
|
|
1512
1525
|
@dlp_service_stub.call_rpc :delete_inspect_template, request, options: options do |response, operation|
|
1513
1526
|
yield response, operation if block_given?
|
1514
|
-
return response
|
1515
1527
|
end
|
1516
1528
|
rescue ::GRPC::BadStatus => e
|
1517
1529
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1629,7 +1641,6 @@ module Google
|
|
1629
1641
|
|
1630
1642
|
@dlp_service_stub.call_rpc :create_deidentify_template, request, options: options do |response, operation|
|
1631
1643
|
yield response, operation if block_given?
|
1632
|
-
return response
|
1633
1644
|
end
|
1634
1645
|
rescue ::GRPC::BadStatus => e
|
1635
1646
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1725,7 +1736,6 @@ module Google
|
|
1725
1736
|
|
1726
1737
|
@dlp_service_stub.call_rpc :update_deidentify_template, request, options: options do |response, operation|
|
1727
1738
|
yield response, operation if block_given?
|
1728
|
-
return response
|
1729
1739
|
end
|
1730
1740
|
rescue ::GRPC::BadStatus => e
|
1731
1741
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1816,7 +1826,6 @@ module Google
|
|
1816
1826
|
|
1817
1827
|
@dlp_service_stub.call_rpc :get_deidentify_template, request, options: options do |response, operation|
|
1818
1828
|
yield response, operation if block_given?
|
1819
|
-
return response
|
1820
1829
|
end
|
1821
1830
|
rescue ::GRPC::BadStatus => e
|
1822
1831
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1951,7 +1960,7 @@ module Google
|
|
1951
1960
|
@dlp_service_stub.call_rpc :list_deidentify_templates, request, options: options do |response, operation|
|
1952
1961
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_deidentify_templates, request, response, operation, options
|
1953
1962
|
yield response, operation if block_given?
|
1954
|
-
|
1963
|
+
throw :response, response
|
1955
1964
|
end
|
1956
1965
|
rescue ::GRPC::BadStatus => e
|
1957
1966
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2043,7 +2052,6 @@ module Google
|
|
2043
2052
|
|
2044
2053
|
@dlp_service_stub.call_rpc :delete_deidentify_template, request, options: options do |response, operation|
|
2045
2054
|
yield response, operation if block_given?
|
2046
|
-
return response
|
2047
2055
|
end
|
2048
2056
|
rescue ::GRPC::BadStatus => e
|
2049
2057
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2157,7 +2165,6 @@ module Google
|
|
2157
2165
|
|
2158
2166
|
@dlp_service_stub.call_rpc :create_job_trigger, request, options: options do |response, operation|
|
2159
2167
|
yield response, operation if block_given?
|
2160
|
-
return response
|
2161
2168
|
end
|
2162
2169
|
rescue ::GRPC::BadStatus => e
|
2163
2170
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2251,7 +2258,6 @@ module Google
|
|
2251
2258
|
|
2252
2259
|
@dlp_service_stub.call_rpc :update_job_trigger, request, options: options do |response, operation|
|
2253
2260
|
yield response, operation if block_given?
|
2254
|
-
return response
|
2255
2261
|
end
|
2256
2262
|
rescue ::GRPC::BadStatus => e
|
2257
2263
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2342,7 +2348,6 @@ module Google
|
|
2342
2348
|
|
2343
2349
|
@dlp_service_stub.call_rpc :hybrid_inspect_job_trigger, request, options: options do |response, operation|
|
2344
2350
|
yield response, operation if block_given?
|
2345
|
-
return response
|
2346
2351
|
end
|
2347
2352
|
rescue ::GRPC::BadStatus => e
|
2348
2353
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2432,7 +2437,6 @@ module Google
|
|
2432
2437
|
|
2433
2438
|
@dlp_service_stub.call_rpc :get_job_trigger, request, options: options do |response, operation|
|
2434
2439
|
yield response, operation if block_given?
|
2435
|
-
return response
|
2436
2440
|
end
|
2437
2441
|
rescue ::GRPC::BadStatus => e
|
2438
2442
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2592,7 +2596,7 @@ module Google
|
|
2592
2596
|
@dlp_service_stub.call_rpc :list_job_triggers, request, options: options do |response, operation|
|
2593
2597
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_job_triggers, request, response, operation, options
|
2594
2598
|
yield response, operation if block_given?
|
2595
|
-
|
2599
|
+
throw :response, response
|
2596
2600
|
end
|
2597
2601
|
rescue ::GRPC::BadStatus => e
|
2598
2602
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2682,7 +2686,6 @@ module Google
|
|
2682
2686
|
|
2683
2687
|
@dlp_service_stub.call_rpc :delete_job_trigger, request, options: options do |response, operation|
|
2684
2688
|
yield response, operation if block_given?
|
2685
|
-
return response
|
2686
2689
|
end
|
2687
2690
|
rescue ::GRPC::BadStatus => e
|
2688
2691
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2770,7 +2773,6 @@ module Google
|
|
2770
2773
|
|
2771
2774
|
@dlp_service_stub.call_rpc :activate_job_trigger, request, options: options do |response, operation|
|
2772
2775
|
yield response, operation if block_given?
|
2773
|
-
return response
|
2774
2776
|
end
|
2775
2777
|
rescue ::GRPC::BadStatus => e
|
2776
2778
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2877,7 +2879,6 @@ module Google
|
|
2877
2879
|
|
2878
2880
|
@dlp_service_stub.call_rpc :create_discovery_config, request, options: options do |response, operation|
|
2879
2881
|
yield response, operation if block_given?
|
2880
|
-
return response
|
2881
2882
|
end
|
2882
2883
|
rescue ::GRPC::BadStatus => e
|
2883
2884
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2968,7 +2969,6 @@ module Google
|
|
2968
2969
|
|
2969
2970
|
@dlp_service_stub.call_rpc :update_discovery_config, request, options: options do |response, operation|
|
2970
2971
|
yield response, operation if block_given?
|
2971
|
-
return response
|
2972
2972
|
end
|
2973
2973
|
rescue ::GRPC::BadStatus => e
|
2974
2974
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3055,7 +3055,6 @@ module Google
|
|
3055
3055
|
|
3056
3056
|
@dlp_service_stub.call_rpc :get_discovery_config, request, options: options do |response, operation|
|
3057
3057
|
yield response, operation if block_given?
|
3058
|
-
return response
|
3059
3058
|
end
|
3060
3059
|
rescue ::GRPC::BadStatus => e
|
3061
3060
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3174,7 +3173,7 @@ module Google
|
|
3174
3173
|
@dlp_service_stub.call_rpc :list_discovery_configs, request, options: options do |response, operation|
|
3175
3174
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_discovery_configs, request, response, operation, options
|
3176
3175
|
yield response, operation if block_given?
|
3177
|
-
|
3176
|
+
throw :response, response
|
3178
3177
|
end
|
3179
3178
|
rescue ::GRPC::BadStatus => e
|
3180
3179
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3261,7 +3260,6 @@ module Google
|
|
3261
3260
|
|
3262
3261
|
@dlp_service_stub.call_rpc :delete_discovery_config, request, options: options do |response, operation|
|
3263
3262
|
yield response, operation if block_given?
|
3264
|
-
return response
|
3265
3263
|
end
|
3266
3264
|
rescue ::GRPC::BadStatus => e
|
3267
3265
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3383,7 +3381,6 @@ module Google
|
|
3383
3381
|
|
3384
3382
|
@dlp_service_stub.call_rpc :create_dlp_job, request, options: options do |response, operation|
|
3385
3383
|
yield response, operation if block_given?
|
3386
|
-
return response
|
3387
3384
|
end
|
3388
3385
|
rescue ::GRPC::BadStatus => e
|
3389
3386
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3545,7 +3542,7 @@ module Google
|
|
3545
3542
|
@dlp_service_stub.call_rpc :list_dlp_jobs, request, options: options do |response, operation|
|
3546
3543
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_dlp_jobs, request, response, operation, options
|
3547
3544
|
yield response, operation if block_given?
|
3548
|
-
|
3545
|
+
throw :response, response
|
3549
3546
|
end
|
3550
3547
|
rescue ::GRPC::BadStatus => e
|
3551
3548
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3636,7 +3633,6 @@ module Google
|
|
3636
3633
|
|
3637
3634
|
@dlp_service_stub.call_rpc :get_dlp_job, request, options: options do |response, operation|
|
3638
3635
|
yield response, operation if block_given?
|
3639
|
-
return response
|
3640
3636
|
end
|
3641
3637
|
rescue ::GRPC::BadStatus => e
|
3642
3638
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3729,7 +3725,6 @@ module Google
|
|
3729
3725
|
|
3730
3726
|
@dlp_service_stub.call_rpc :delete_dlp_job, request, options: options do |response, operation|
|
3731
3727
|
yield response, operation if block_given?
|
3732
|
-
return response
|
3733
3728
|
end
|
3734
3729
|
rescue ::GRPC::BadStatus => e
|
3735
3730
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3822,7 +3817,6 @@ module Google
|
|
3822
3817
|
|
3823
3818
|
@dlp_service_stub.call_rpc :cancel_dlp_job, request, options: options do |response, operation|
|
3824
3819
|
yield response, operation if block_given?
|
3825
|
-
return response
|
3826
3820
|
end
|
3827
3821
|
rescue ::GRPC::BadStatus => e
|
3828
3822
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3939,7 +3933,6 @@ module Google
|
|
3939
3933
|
|
3940
3934
|
@dlp_service_stub.call_rpc :create_stored_info_type, request, options: options do |response, operation|
|
3941
3935
|
yield response, operation if block_given?
|
3942
|
-
return response
|
3943
3936
|
end
|
3944
3937
|
rescue ::GRPC::BadStatus => e
|
3945
3938
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4037,7 +4030,6 @@ module Google
|
|
4037
4030
|
|
4038
4031
|
@dlp_service_stub.call_rpc :update_stored_info_type, request, options: options do |response, operation|
|
4039
4032
|
yield response, operation if block_given?
|
4040
|
-
return response
|
4041
4033
|
end
|
4042
4034
|
rescue ::GRPC::BadStatus => e
|
4043
4035
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4128,7 +4120,6 @@ module Google
|
|
4128
4120
|
|
4129
4121
|
@dlp_service_stub.call_rpc :get_stored_info_type, request, options: options do |response, operation|
|
4130
4122
|
yield response, operation if block_given?
|
4131
|
-
return response
|
4132
4123
|
end
|
4133
4124
|
rescue ::GRPC::BadStatus => e
|
4134
4125
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4260,7 +4251,7 @@ module Google
|
|
4260
4251
|
@dlp_service_stub.call_rpc :list_stored_info_types, request, options: options do |response, operation|
|
4261
4252
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_stored_info_types, request, response, operation, options
|
4262
4253
|
yield response, operation if block_given?
|
4263
|
-
|
4254
|
+
throw :response, response
|
4264
4255
|
end
|
4265
4256
|
rescue ::GRPC::BadStatus => e
|
4266
4257
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4351,7 +4342,6 @@ module Google
|
|
4351
4342
|
|
4352
4343
|
@dlp_service_stub.call_rpc :delete_stored_info_type, request, options: options do |response, operation|
|
4353
4344
|
yield response, operation if block_given?
|
4354
|
-
return response
|
4355
4345
|
end
|
4356
4346
|
rescue ::GRPC::BadStatus => e
|
4357
4347
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4486,7 +4476,7 @@ module Google
|
|
4486
4476
|
@dlp_service_stub.call_rpc :list_project_data_profiles, request, options: options do |response, operation|
|
4487
4477
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, request, response, operation, options
|
4488
4478
|
yield response, operation if block_given?
|
4489
|
-
|
4479
|
+
throw :response, response
|
4490
4480
|
end
|
4491
4481
|
rescue ::GRPC::BadStatus => e
|
4492
4482
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4634,7 +4624,7 @@ module Google
|
|
4634
4624
|
@dlp_service_stub.call_rpc :list_table_data_profiles, request, options: options do |response, operation|
|
4635
4625
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, request, response, operation, options
|
4636
4626
|
yield response, operation if block_given?
|
4637
|
-
|
4627
|
+
throw :response, response
|
4638
4628
|
end
|
4639
4629
|
rescue ::GRPC::BadStatus => e
|
4640
4630
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4784,7 +4774,7 @@ module Google
|
|
4784
4774
|
@dlp_service_stub.call_rpc :list_column_data_profiles, request, options: options do |response, operation|
|
4785
4775
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, request, response, operation, options
|
4786
4776
|
yield response, operation if block_given?
|
4787
|
-
|
4777
|
+
throw :response, response
|
4788
4778
|
end
|
4789
4779
|
rescue ::GRPC::BadStatus => e
|
4790
4780
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4871,7 +4861,6 @@ module Google
|
|
4871
4861
|
|
4872
4862
|
@dlp_service_stub.call_rpc :get_project_data_profile, request, options: options do |response, operation|
|
4873
4863
|
yield response, operation if block_given?
|
4874
|
-
return response
|
4875
4864
|
end
|
4876
4865
|
rescue ::GRPC::BadStatus => e
|
4877
4866
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5024,7 +5013,7 @@ module Google
|
|
5024
5013
|
@dlp_service_stub.call_rpc :list_file_store_data_profiles, request, options: options do |response, operation|
|
5025
5014
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_file_store_data_profiles, request, response, operation, options
|
5026
5015
|
yield response, operation if block_given?
|
5027
|
-
|
5016
|
+
throw :response, response
|
5028
5017
|
end
|
5029
5018
|
rescue ::GRPC::BadStatus => e
|
5030
5019
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5111,7 +5100,6 @@ module Google
|
|
5111
5100
|
|
5112
5101
|
@dlp_service_stub.call_rpc :get_file_store_data_profile, request, options: options do |response, operation|
|
5113
5102
|
yield response, operation if block_given?
|
5114
|
-
return response
|
5115
5103
|
end
|
5116
5104
|
rescue ::GRPC::BadStatus => e
|
5117
5105
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5198,7 +5186,6 @@ module Google
|
|
5198
5186
|
|
5199
5187
|
@dlp_service_stub.call_rpc :delete_file_store_data_profile, request, options: options do |response, operation|
|
5200
5188
|
yield response, operation if block_given?
|
5201
|
-
return response
|
5202
5189
|
end
|
5203
5190
|
rescue ::GRPC::BadStatus => e
|
5204
5191
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5285,7 +5272,6 @@ module Google
|
|
5285
5272
|
|
5286
5273
|
@dlp_service_stub.call_rpc :get_table_data_profile, request, options: options do |response, operation|
|
5287
5274
|
yield response, operation if block_given?
|
5288
|
-
return response
|
5289
5275
|
end
|
5290
5276
|
rescue ::GRPC::BadStatus => e
|
5291
5277
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5372,7 +5358,6 @@ module Google
|
|
5372
5358
|
|
5373
5359
|
@dlp_service_stub.call_rpc :get_column_data_profile, request, options: options do |response, operation|
|
5374
5360
|
yield response, operation if block_given?
|
5375
|
-
return response
|
5376
5361
|
end
|
5377
5362
|
rescue ::GRPC::BadStatus => e
|
5378
5363
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5459,7 +5444,6 @@ module Google
|
|
5459
5444
|
|
5460
5445
|
@dlp_service_stub.call_rpc :delete_table_data_profile, request, options: options do |response, operation|
|
5461
5446
|
yield response, operation if block_given?
|
5462
|
-
return response
|
5463
5447
|
end
|
5464
5448
|
rescue ::GRPC::BadStatus => e
|
5465
5449
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5550,7 +5534,6 @@ module Google
|
|
5550
5534
|
|
5551
5535
|
@dlp_service_stub.call_rpc :hybrid_inspect_dlp_job, request, options: options do |response, operation|
|
5552
5536
|
yield response, operation if block_given?
|
5553
|
-
return response
|
5554
5537
|
end
|
5555
5538
|
rescue ::GRPC::BadStatus => e
|
5556
5539
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5637,7 +5620,6 @@ module Google
|
|
5637
5620
|
|
5638
5621
|
@dlp_service_stub.call_rpc :finish_dlp_job, request, options: options do |response, operation|
|
5639
5622
|
yield response, operation if block_given?
|
5640
|
-
return response
|
5641
5623
|
end
|
5642
5624
|
rescue ::GRPC::BadStatus => e
|
5643
5625
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5733,7 +5715,6 @@ module Google
|
|
5733
5715
|
|
5734
5716
|
@dlp_service_stub.call_rpc :create_connection, request, options: options do |response, operation|
|
5735
5717
|
yield response, operation if block_given?
|
5736
|
-
return response
|
5737
5718
|
end
|
5738
5719
|
rescue ::GRPC::BadStatus => e
|
5739
5720
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5820,7 +5801,6 @@ module Google
|
|
5820
5801
|
|
5821
5802
|
@dlp_service_stub.call_rpc :get_connection, request, options: options do |response, operation|
|
5822
5803
|
yield response, operation if block_given?
|
5823
|
-
return response
|
5824
5804
|
end
|
5825
5805
|
rescue ::GRPC::BadStatus => e
|
5826
5806
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5921,7 +5901,7 @@ module Google
|
|
5921
5901
|
@dlp_service_stub.call_rpc :list_connections, request, options: options do |response, operation|
|
5922
5902
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_connections, request, response, operation, options
|
5923
5903
|
yield response, operation if block_given?
|
5924
|
-
|
5904
|
+
throw :response, response
|
5925
5905
|
end
|
5926
5906
|
rescue ::GRPC::BadStatus => e
|
5927
5907
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6021,7 +6001,7 @@ module Google
|
|
6021
6001
|
@dlp_service_stub.call_rpc :search_connections, request, options: options do |response, operation|
|
6022
6002
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :search_connections, request, response, operation, options
|
6023
6003
|
yield response, operation if block_given?
|
6024
|
-
|
6004
|
+
throw :response, response
|
6025
6005
|
end
|
6026
6006
|
rescue ::GRPC::BadStatus => e
|
6027
6007
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6108,7 +6088,6 @@ module Google
|
|
6108
6088
|
|
6109
6089
|
@dlp_service_stub.call_rpc :delete_connection, request, options: options do |response, operation|
|
6110
6090
|
yield response, operation if block_given?
|
6111
|
-
return response
|
6112
6091
|
end
|
6113
6092
|
rescue ::GRPC::BadStatus => e
|
6114
6093
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6199,7 +6178,6 @@ module Google
|
|
6199
6178
|
|
6200
6179
|
@dlp_service_stub.call_rpc :update_connection, request, options: options do |response, operation|
|
6201
6180
|
yield response, operation if block_given?
|
6202
|
-
return response
|
6203
6181
|
end
|
6204
6182
|
rescue ::GRPC::BadStatus => e
|
6205
6183
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6288,6 +6266,11 @@ module Google
|
|
6288
6266
|
# default endpoint URL. The default value of nil uses the environment
|
6289
6267
|
# universe (usually the default "googleapis.com" universe).
|
6290
6268
|
# @return [::String,nil]
|
6269
|
+
# @!attribute [rw] logger
|
6270
|
+
# A custom logger to use for request/response debug logging, or the value
|
6271
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
6272
|
+
# explicitly disable logging.
|
6273
|
+
# @return [::Logger,:default,nil]
|
6291
6274
|
#
|
6292
6275
|
class Configuration
|
6293
6276
|
extend ::Gapic::Config
|
@@ -6312,6 +6295,7 @@ module Google
|
|
6312
6295
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
6313
6296
|
config_attr :quota_project, nil, ::String, nil
|
6314
6297
|
config_attr :universe_domain, nil, ::String, nil
|
6298
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
6315
6299
|
|
6316
6300
|
# @private
|
6317
6301
|
def initialize parent_config = nil
|