google-cloud-dlp-v2 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +43 -63
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +43 -63
- data/lib/google/cloud/dlp/v2/dlp_service/rest/service_stub.rb +454 -332
- data/lib/google/cloud/dlp/v2/dlp_service/rest.rb +3 -7
- data/lib/google/cloud/dlp/v2/dlp_service.rb +3 -7
- data/lib/google/cloud/dlp/v2/version.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_pb.rb +1 -1
- data/lib/google/privacy/dlp/v2/dlp_services_pb.rb +3 -7
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +15 -11
- 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).
|
@@ -28,13 +28,9 @@ module Google
|
|
28
28
|
##
|
29
29
|
# Client for the DlpService service.
|
30
30
|
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
# blocks or images.
|
35
|
-
# The service also includes methods for sensitive data redaction and
|
36
|
-
# scheduling of data scans on Google Cloud Platform based data sets.
|
37
|
-
#
|
31
|
+
# Sensitive Data Protection provides access to a powerful sensitive data
|
32
|
+
# inspection, classification, and de-identification platform that works
|
33
|
+
# on text, images, and Google Cloud storage repositories.
|
38
34
|
# To learn more about concepts and find how-to guides see
|
39
35
|
# https://cloud.google.com/sensitive-data-protection/docs/.
|
40
36
|
#
|
@@ -358,14 +354,26 @@ module Google
|
|
358
354
|
universe_domain: @config.universe_domain,
|
359
355
|
channel_args: @config.channel_args,
|
360
356
|
interceptors: @config.interceptors,
|
361
|
-
channel_pool_config: @config.channel_pool
|
357
|
+
channel_pool_config: @config.channel_pool,
|
358
|
+
logger: @config.logger
|
362
359
|
)
|
363
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
|
+
|
364
371
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
365
372
|
config.credentials = credentials
|
366
373
|
config.quota_project = @quota_project_id
|
367
374
|
config.endpoint = @dlp_service_stub.endpoint
|
368
375
|
config.universe_domain = @dlp_service_stub.universe_domain
|
376
|
+
config.logger = @dlp_service_stub.logger if config.respond_to? :logger=
|
369
377
|
end
|
370
378
|
end
|
371
379
|
|
@@ -376,6 +384,15 @@ module Google
|
|
376
384
|
#
|
377
385
|
attr_reader :location_client
|
378
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
|
+
|
379
396
|
# Service calls
|
380
397
|
|
381
398
|
##
|
@@ -496,7 +513,6 @@ module Google
|
|
496
513
|
|
497
514
|
@dlp_service_stub.call_rpc :inspect_content, request, options: options do |response, operation|
|
498
515
|
yield response, operation if block_given?
|
499
|
-
return response
|
500
516
|
end
|
501
517
|
rescue ::GRPC::BadStatus => e
|
502
518
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -616,7 +632,6 @@ module Google
|
|
616
632
|
|
617
633
|
@dlp_service_stub.call_rpc :redact_image, request, options: options do |response, operation|
|
618
634
|
yield response, operation if block_given?
|
619
|
-
return response
|
620
635
|
end
|
621
636
|
rescue ::GRPC::BadStatus => e
|
622
637
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -756,7 +771,6 @@ module Google
|
|
756
771
|
|
757
772
|
@dlp_service_stub.call_rpc :deidentify_content, request, options: options do |response, operation|
|
758
773
|
yield response, operation if block_given?
|
759
|
-
return response
|
760
774
|
end
|
761
775
|
rescue ::GRPC::BadStatus => e
|
762
776
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -891,7 +905,6 @@ module Google
|
|
891
905
|
|
892
906
|
@dlp_service_stub.call_rpc :reidentify_content, request, options: options do |response, operation|
|
893
907
|
yield response, operation if block_given?
|
894
|
-
return response
|
895
908
|
end
|
896
909
|
rescue ::GRPC::BadStatus => e
|
897
910
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -985,7 +998,6 @@ module Google
|
|
985
998
|
|
986
999
|
@dlp_service_stub.call_rpc :list_info_types, request, options: options do |response, operation|
|
987
1000
|
yield response, operation if block_given?
|
988
|
-
return response
|
989
1001
|
end
|
990
1002
|
rescue ::GRPC::BadStatus => e
|
991
1003
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1103,7 +1115,6 @@ module Google
|
|
1103
1115
|
|
1104
1116
|
@dlp_service_stub.call_rpc :create_inspect_template, request, options: options do |response, operation|
|
1105
1117
|
yield response, operation if block_given?
|
1106
|
-
return response
|
1107
1118
|
end
|
1108
1119
|
rescue ::GRPC::BadStatus => e
|
1109
1120
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1198,7 +1209,6 @@ module Google
|
|
1198
1209
|
|
1199
1210
|
@dlp_service_stub.call_rpc :update_inspect_template, request, options: options do |response, operation|
|
1200
1211
|
yield response, operation if block_given?
|
1201
|
-
return response
|
1202
1212
|
end
|
1203
1213
|
rescue ::GRPC::BadStatus => e
|
1204
1214
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1289,7 +1299,6 @@ module Google
|
|
1289
1299
|
|
1290
1300
|
@dlp_service_stub.call_rpc :get_inspect_template, request, options: options do |response, operation|
|
1291
1301
|
yield response, operation if block_given?
|
1292
|
-
return response
|
1293
1302
|
end
|
1294
1303
|
rescue ::GRPC::BadStatus => e
|
1295
1304
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1424,7 +1433,7 @@ module Google
|
|
1424
1433
|
@dlp_service_stub.call_rpc :list_inspect_templates, request, options: options do |response, operation|
|
1425
1434
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_inspect_templates, request, response, operation, options
|
1426
1435
|
yield response, operation if block_given?
|
1427
|
-
|
1436
|
+
throw :response, response
|
1428
1437
|
end
|
1429
1438
|
rescue ::GRPC::BadStatus => e
|
1430
1439
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1515,7 +1524,6 @@ module Google
|
|
1515
1524
|
|
1516
1525
|
@dlp_service_stub.call_rpc :delete_inspect_template, request, options: options do |response, operation|
|
1517
1526
|
yield response, operation if block_given?
|
1518
|
-
return response
|
1519
1527
|
end
|
1520
1528
|
rescue ::GRPC::BadStatus => e
|
1521
1529
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1633,7 +1641,6 @@ module Google
|
|
1633
1641
|
|
1634
1642
|
@dlp_service_stub.call_rpc :create_deidentify_template, request, options: options do |response, operation|
|
1635
1643
|
yield response, operation if block_given?
|
1636
|
-
return response
|
1637
1644
|
end
|
1638
1645
|
rescue ::GRPC::BadStatus => e
|
1639
1646
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1729,7 +1736,6 @@ module Google
|
|
1729
1736
|
|
1730
1737
|
@dlp_service_stub.call_rpc :update_deidentify_template, request, options: options do |response, operation|
|
1731
1738
|
yield response, operation if block_given?
|
1732
|
-
return response
|
1733
1739
|
end
|
1734
1740
|
rescue ::GRPC::BadStatus => e
|
1735
1741
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1820,7 +1826,6 @@ module Google
|
|
1820
1826
|
|
1821
1827
|
@dlp_service_stub.call_rpc :get_deidentify_template, request, options: options do |response, operation|
|
1822
1828
|
yield response, operation if block_given?
|
1823
|
-
return response
|
1824
1829
|
end
|
1825
1830
|
rescue ::GRPC::BadStatus => e
|
1826
1831
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1955,7 +1960,7 @@ module Google
|
|
1955
1960
|
@dlp_service_stub.call_rpc :list_deidentify_templates, request, options: options do |response, operation|
|
1956
1961
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_deidentify_templates, request, response, operation, options
|
1957
1962
|
yield response, operation if block_given?
|
1958
|
-
|
1963
|
+
throw :response, response
|
1959
1964
|
end
|
1960
1965
|
rescue ::GRPC::BadStatus => e
|
1961
1966
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2047,7 +2052,6 @@ module Google
|
|
2047
2052
|
|
2048
2053
|
@dlp_service_stub.call_rpc :delete_deidentify_template, request, options: options do |response, operation|
|
2049
2054
|
yield response, operation if block_given?
|
2050
|
-
return response
|
2051
2055
|
end
|
2052
2056
|
rescue ::GRPC::BadStatus => e
|
2053
2057
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2161,7 +2165,6 @@ module Google
|
|
2161
2165
|
|
2162
2166
|
@dlp_service_stub.call_rpc :create_job_trigger, request, options: options do |response, operation|
|
2163
2167
|
yield response, operation if block_given?
|
2164
|
-
return response
|
2165
2168
|
end
|
2166
2169
|
rescue ::GRPC::BadStatus => e
|
2167
2170
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2255,7 +2258,6 @@ module Google
|
|
2255
2258
|
|
2256
2259
|
@dlp_service_stub.call_rpc :update_job_trigger, request, options: options do |response, operation|
|
2257
2260
|
yield response, operation if block_given?
|
2258
|
-
return response
|
2259
2261
|
end
|
2260
2262
|
rescue ::GRPC::BadStatus => e
|
2261
2263
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2346,7 +2348,6 @@ module Google
|
|
2346
2348
|
|
2347
2349
|
@dlp_service_stub.call_rpc :hybrid_inspect_job_trigger, request, options: options do |response, operation|
|
2348
2350
|
yield response, operation if block_given?
|
2349
|
-
return response
|
2350
2351
|
end
|
2351
2352
|
rescue ::GRPC::BadStatus => e
|
2352
2353
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2436,7 +2437,6 @@ module Google
|
|
2436
2437
|
|
2437
2438
|
@dlp_service_stub.call_rpc :get_job_trigger, request, options: options do |response, operation|
|
2438
2439
|
yield response, operation if block_given?
|
2439
|
-
return response
|
2440
2440
|
end
|
2441
2441
|
rescue ::GRPC::BadStatus => e
|
2442
2442
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2596,7 +2596,7 @@ module Google
|
|
2596
2596
|
@dlp_service_stub.call_rpc :list_job_triggers, request, options: options do |response, operation|
|
2597
2597
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_job_triggers, request, response, operation, options
|
2598
2598
|
yield response, operation if block_given?
|
2599
|
-
|
2599
|
+
throw :response, response
|
2600
2600
|
end
|
2601
2601
|
rescue ::GRPC::BadStatus => e
|
2602
2602
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2686,7 +2686,6 @@ module Google
|
|
2686
2686
|
|
2687
2687
|
@dlp_service_stub.call_rpc :delete_job_trigger, request, options: options do |response, operation|
|
2688
2688
|
yield response, operation if block_given?
|
2689
|
-
return response
|
2690
2689
|
end
|
2691
2690
|
rescue ::GRPC::BadStatus => e
|
2692
2691
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2774,7 +2773,6 @@ module Google
|
|
2774
2773
|
|
2775
2774
|
@dlp_service_stub.call_rpc :activate_job_trigger, request, options: options do |response, operation|
|
2776
2775
|
yield response, operation if block_given?
|
2777
|
-
return response
|
2778
2776
|
end
|
2779
2777
|
rescue ::GRPC::BadStatus => e
|
2780
2778
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2881,7 +2879,6 @@ module Google
|
|
2881
2879
|
|
2882
2880
|
@dlp_service_stub.call_rpc :create_discovery_config, request, options: options do |response, operation|
|
2883
2881
|
yield response, operation if block_given?
|
2884
|
-
return response
|
2885
2882
|
end
|
2886
2883
|
rescue ::GRPC::BadStatus => e
|
2887
2884
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2972,7 +2969,6 @@ module Google
|
|
2972
2969
|
|
2973
2970
|
@dlp_service_stub.call_rpc :update_discovery_config, request, options: options do |response, operation|
|
2974
2971
|
yield response, operation if block_given?
|
2975
|
-
return response
|
2976
2972
|
end
|
2977
2973
|
rescue ::GRPC::BadStatus => e
|
2978
2974
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3059,7 +3055,6 @@ module Google
|
|
3059
3055
|
|
3060
3056
|
@dlp_service_stub.call_rpc :get_discovery_config, request, options: options do |response, operation|
|
3061
3057
|
yield response, operation if block_given?
|
3062
|
-
return response
|
3063
3058
|
end
|
3064
3059
|
rescue ::GRPC::BadStatus => e
|
3065
3060
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3178,7 +3173,7 @@ module Google
|
|
3178
3173
|
@dlp_service_stub.call_rpc :list_discovery_configs, request, options: options do |response, operation|
|
3179
3174
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_discovery_configs, request, response, operation, options
|
3180
3175
|
yield response, operation if block_given?
|
3181
|
-
|
3176
|
+
throw :response, response
|
3182
3177
|
end
|
3183
3178
|
rescue ::GRPC::BadStatus => e
|
3184
3179
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3265,7 +3260,6 @@ module Google
|
|
3265
3260
|
|
3266
3261
|
@dlp_service_stub.call_rpc :delete_discovery_config, request, options: options do |response, operation|
|
3267
3262
|
yield response, operation if block_given?
|
3268
|
-
return response
|
3269
3263
|
end
|
3270
3264
|
rescue ::GRPC::BadStatus => e
|
3271
3265
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3387,7 +3381,6 @@ module Google
|
|
3387
3381
|
|
3388
3382
|
@dlp_service_stub.call_rpc :create_dlp_job, request, options: options do |response, operation|
|
3389
3383
|
yield response, operation if block_given?
|
3390
|
-
return response
|
3391
3384
|
end
|
3392
3385
|
rescue ::GRPC::BadStatus => e
|
3393
3386
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3549,7 +3542,7 @@ module Google
|
|
3549
3542
|
@dlp_service_stub.call_rpc :list_dlp_jobs, request, options: options do |response, operation|
|
3550
3543
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_dlp_jobs, request, response, operation, options
|
3551
3544
|
yield response, operation if block_given?
|
3552
|
-
|
3545
|
+
throw :response, response
|
3553
3546
|
end
|
3554
3547
|
rescue ::GRPC::BadStatus => e
|
3555
3548
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3640,7 +3633,6 @@ module Google
|
|
3640
3633
|
|
3641
3634
|
@dlp_service_stub.call_rpc :get_dlp_job, request, options: options do |response, operation|
|
3642
3635
|
yield response, operation if block_given?
|
3643
|
-
return response
|
3644
3636
|
end
|
3645
3637
|
rescue ::GRPC::BadStatus => e
|
3646
3638
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3733,7 +3725,6 @@ module Google
|
|
3733
3725
|
|
3734
3726
|
@dlp_service_stub.call_rpc :delete_dlp_job, request, options: options do |response, operation|
|
3735
3727
|
yield response, operation if block_given?
|
3736
|
-
return response
|
3737
3728
|
end
|
3738
3729
|
rescue ::GRPC::BadStatus => e
|
3739
3730
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3826,7 +3817,6 @@ module Google
|
|
3826
3817
|
|
3827
3818
|
@dlp_service_stub.call_rpc :cancel_dlp_job, request, options: options do |response, operation|
|
3828
3819
|
yield response, operation if block_given?
|
3829
|
-
return response
|
3830
3820
|
end
|
3831
3821
|
rescue ::GRPC::BadStatus => e
|
3832
3822
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3943,7 +3933,6 @@ module Google
|
|
3943
3933
|
|
3944
3934
|
@dlp_service_stub.call_rpc :create_stored_info_type, request, options: options do |response, operation|
|
3945
3935
|
yield response, operation if block_given?
|
3946
|
-
return response
|
3947
3936
|
end
|
3948
3937
|
rescue ::GRPC::BadStatus => e
|
3949
3938
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4041,7 +4030,6 @@ module Google
|
|
4041
4030
|
|
4042
4031
|
@dlp_service_stub.call_rpc :update_stored_info_type, request, options: options do |response, operation|
|
4043
4032
|
yield response, operation if block_given?
|
4044
|
-
return response
|
4045
4033
|
end
|
4046
4034
|
rescue ::GRPC::BadStatus => e
|
4047
4035
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4132,7 +4120,6 @@ module Google
|
|
4132
4120
|
|
4133
4121
|
@dlp_service_stub.call_rpc :get_stored_info_type, request, options: options do |response, operation|
|
4134
4122
|
yield response, operation if block_given?
|
4135
|
-
return response
|
4136
4123
|
end
|
4137
4124
|
rescue ::GRPC::BadStatus => e
|
4138
4125
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4264,7 +4251,7 @@ module Google
|
|
4264
4251
|
@dlp_service_stub.call_rpc :list_stored_info_types, request, options: options do |response, operation|
|
4265
4252
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_stored_info_types, request, response, operation, options
|
4266
4253
|
yield response, operation if block_given?
|
4267
|
-
|
4254
|
+
throw :response, response
|
4268
4255
|
end
|
4269
4256
|
rescue ::GRPC::BadStatus => e
|
4270
4257
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4355,7 +4342,6 @@ module Google
|
|
4355
4342
|
|
4356
4343
|
@dlp_service_stub.call_rpc :delete_stored_info_type, request, options: options do |response, operation|
|
4357
4344
|
yield response, operation if block_given?
|
4358
|
-
return response
|
4359
4345
|
end
|
4360
4346
|
rescue ::GRPC::BadStatus => e
|
4361
4347
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4490,7 +4476,7 @@ module Google
|
|
4490
4476
|
@dlp_service_stub.call_rpc :list_project_data_profiles, request, options: options do |response, operation|
|
4491
4477
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, request, response, operation, options
|
4492
4478
|
yield response, operation if block_given?
|
4493
|
-
|
4479
|
+
throw :response, response
|
4494
4480
|
end
|
4495
4481
|
rescue ::GRPC::BadStatus => e
|
4496
4482
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4638,7 +4624,7 @@ module Google
|
|
4638
4624
|
@dlp_service_stub.call_rpc :list_table_data_profiles, request, options: options do |response, operation|
|
4639
4625
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, request, response, operation, options
|
4640
4626
|
yield response, operation if block_given?
|
4641
|
-
|
4627
|
+
throw :response, response
|
4642
4628
|
end
|
4643
4629
|
rescue ::GRPC::BadStatus => e
|
4644
4630
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4788,7 +4774,7 @@ module Google
|
|
4788
4774
|
@dlp_service_stub.call_rpc :list_column_data_profiles, request, options: options do |response, operation|
|
4789
4775
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, request, response, operation, options
|
4790
4776
|
yield response, operation if block_given?
|
4791
|
-
|
4777
|
+
throw :response, response
|
4792
4778
|
end
|
4793
4779
|
rescue ::GRPC::BadStatus => e
|
4794
4780
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4875,7 +4861,6 @@ module Google
|
|
4875
4861
|
|
4876
4862
|
@dlp_service_stub.call_rpc :get_project_data_profile, request, options: options do |response, operation|
|
4877
4863
|
yield response, operation if block_given?
|
4878
|
-
return response
|
4879
4864
|
end
|
4880
4865
|
rescue ::GRPC::BadStatus => e
|
4881
4866
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5028,7 +5013,7 @@ module Google
|
|
5028
5013
|
@dlp_service_stub.call_rpc :list_file_store_data_profiles, request, options: options do |response, operation|
|
5029
5014
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_file_store_data_profiles, request, response, operation, options
|
5030
5015
|
yield response, operation if block_given?
|
5031
|
-
|
5016
|
+
throw :response, response
|
5032
5017
|
end
|
5033
5018
|
rescue ::GRPC::BadStatus => e
|
5034
5019
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5115,7 +5100,6 @@ module Google
|
|
5115
5100
|
|
5116
5101
|
@dlp_service_stub.call_rpc :get_file_store_data_profile, request, options: options do |response, operation|
|
5117
5102
|
yield response, operation if block_given?
|
5118
|
-
return response
|
5119
5103
|
end
|
5120
5104
|
rescue ::GRPC::BadStatus => e
|
5121
5105
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5202,7 +5186,6 @@ module Google
|
|
5202
5186
|
|
5203
5187
|
@dlp_service_stub.call_rpc :delete_file_store_data_profile, request, options: options do |response, operation|
|
5204
5188
|
yield response, operation if block_given?
|
5205
|
-
return response
|
5206
5189
|
end
|
5207
5190
|
rescue ::GRPC::BadStatus => e
|
5208
5191
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5289,7 +5272,6 @@ module Google
|
|
5289
5272
|
|
5290
5273
|
@dlp_service_stub.call_rpc :get_table_data_profile, request, options: options do |response, operation|
|
5291
5274
|
yield response, operation if block_given?
|
5292
|
-
return response
|
5293
5275
|
end
|
5294
5276
|
rescue ::GRPC::BadStatus => e
|
5295
5277
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5376,7 +5358,6 @@ module Google
|
|
5376
5358
|
|
5377
5359
|
@dlp_service_stub.call_rpc :get_column_data_profile, request, options: options do |response, operation|
|
5378
5360
|
yield response, operation if block_given?
|
5379
|
-
return response
|
5380
5361
|
end
|
5381
5362
|
rescue ::GRPC::BadStatus => e
|
5382
5363
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5463,7 +5444,6 @@ module Google
|
|
5463
5444
|
|
5464
5445
|
@dlp_service_stub.call_rpc :delete_table_data_profile, request, options: options do |response, operation|
|
5465
5446
|
yield response, operation if block_given?
|
5466
|
-
return response
|
5467
5447
|
end
|
5468
5448
|
rescue ::GRPC::BadStatus => e
|
5469
5449
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5554,7 +5534,6 @@ module Google
|
|
5554
5534
|
|
5555
5535
|
@dlp_service_stub.call_rpc :hybrid_inspect_dlp_job, request, options: options do |response, operation|
|
5556
5536
|
yield response, operation if block_given?
|
5557
|
-
return response
|
5558
5537
|
end
|
5559
5538
|
rescue ::GRPC::BadStatus => e
|
5560
5539
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5641,7 +5620,6 @@ module Google
|
|
5641
5620
|
|
5642
5621
|
@dlp_service_stub.call_rpc :finish_dlp_job, request, options: options do |response, operation|
|
5643
5622
|
yield response, operation if block_given?
|
5644
|
-
return response
|
5645
5623
|
end
|
5646
5624
|
rescue ::GRPC::BadStatus => e
|
5647
5625
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5737,7 +5715,6 @@ module Google
|
|
5737
5715
|
|
5738
5716
|
@dlp_service_stub.call_rpc :create_connection, request, options: options do |response, operation|
|
5739
5717
|
yield response, operation if block_given?
|
5740
|
-
return response
|
5741
5718
|
end
|
5742
5719
|
rescue ::GRPC::BadStatus => e
|
5743
5720
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5824,7 +5801,6 @@ module Google
|
|
5824
5801
|
|
5825
5802
|
@dlp_service_stub.call_rpc :get_connection, request, options: options do |response, operation|
|
5826
5803
|
yield response, operation if block_given?
|
5827
|
-
return response
|
5828
5804
|
end
|
5829
5805
|
rescue ::GRPC::BadStatus => e
|
5830
5806
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5925,7 +5901,7 @@ module Google
|
|
5925
5901
|
@dlp_service_stub.call_rpc :list_connections, request, options: options do |response, operation|
|
5926
5902
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_connections, request, response, operation, options
|
5927
5903
|
yield response, operation if block_given?
|
5928
|
-
|
5904
|
+
throw :response, response
|
5929
5905
|
end
|
5930
5906
|
rescue ::GRPC::BadStatus => e
|
5931
5907
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6025,7 +6001,7 @@ module Google
|
|
6025
6001
|
@dlp_service_stub.call_rpc :search_connections, request, options: options do |response, operation|
|
6026
6002
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :search_connections, request, response, operation, options
|
6027
6003
|
yield response, operation if block_given?
|
6028
|
-
|
6004
|
+
throw :response, response
|
6029
6005
|
end
|
6030
6006
|
rescue ::GRPC::BadStatus => e
|
6031
6007
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6112,7 +6088,6 @@ module Google
|
|
6112
6088
|
|
6113
6089
|
@dlp_service_stub.call_rpc :delete_connection, request, options: options do |response, operation|
|
6114
6090
|
yield response, operation if block_given?
|
6115
|
-
return response
|
6116
6091
|
end
|
6117
6092
|
rescue ::GRPC::BadStatus => e
|
6118
6093
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6203,7 +6178,6 @@ module Google
|
|
6203
6178
|
|
6204
6179
|
@dlp_service_stub.call_rpc :update_connection, request, options: options do |response, operation|
|
6205
6180
|
yield response, operation if block_given?
|
6206
|
-
return response
|
6207
6181
|
end
|
6208
6182
|
rescue ::GRPC::BadStatus => e
|
6209
6183
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6292,6 +6266,11 @@ module Google
|
|
6292
6266
|
# default endpoint URL. The default value of nil uses the environment
|
6293
6267
|
# universe (usually the default "googleapis.com" universe).
|
6294
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]
|
6295
6274
|
#
|
6296
6275
|
class Configuration
|
6297
6276
|
extend ::Gapic::Config
|
@@ -6316,6 +6295,7 @@ module Google
|
|
6316
6295
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
6317
6296
|
config_attr :quota_project, nil, ::String, nil
|
6318
6297
|
config_attr :universe_domain, nil, ::String, nil
|
6298
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
6319
6299
|
|
6320
6300
|
# @private
|
6321
6301
|
def initialize parent_config = nil
|