google-cloud-dlp-v2 1.5.0 → 1.7.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 +31 -21
- data/lib/google/cloud/dlp/v2/dlp_service/client.rb +51 -56
- data/lib/google/cloud/dlp/v2/dlp_service/rest/client.rb +51 -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
- data/proto_docs/google/privacy/dlp/v2/dlp.rb +278 -0
- data/proto_docs/google/privacy/dlp/v2/storage.rb +32 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 156f5c64115fac0a5436276d2bfca9ad3cfe7aa31359a7b35782aeeebe6b6359
|
4
|
+
data.tar.gz: 5549d08e880d5730235385210f69340581fcbd3dc3eea4a5a53843c8e1fe5b41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 052602ba54bc335eed991f7c50b6d134b1d451eaeb561dd0e2f53219b9f50cfb74aef273f857eb4f79888181f973b1db72c5fdf482557aa1e520f4aecd61a6e2
|
7
|
+
data.tar.gz: e3d2f5518ec787576f3cad9920b99c08ad23e338569acdaa1edb017650bb82322d3d529c744e6fcabd63e3a66dc74ffa0d0d746a7a4e67442f11b4204b4f07f1
|
data/README.md
CHANGED
@@ -43,40 +43,50 @@ 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).
|
76
86
|
|
77
87
|
## Supported Ruby Versions
|
78
88
|
|
79
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
80
90
|
|
81
91
|
Google provides official support for Ruby versions that are actively supported
|
82
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -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)
|
@@ -3313,9 +3311,13 @@ module Google
|
|
3313
3311
|
# parent=projects/example-project/locations/europe-west3
|
3314
3312
|
# @param inspect_job [::Google::Cloud::Dlp::V2::InspectJobConfig, ::Hash]
|
3315
3313
|
# An inspection job scans a storage repository for InfoTypes.
|
3314
|
+
#
|
3315
|
+
# Note: The following fields are mutually exclusive: `inspect_job`, `risk_job`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
3316
3316
|
# @param risk_job [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig, ::Hash]
|
3317
3317
|
# A risk analysis job calculates re-identification risk metrics for a
|
3318
3318
|
# BigQuery table.
|
3319
|
+
#
|
3320
|
+
# Note: The following fields are mutually exclusive: `risk_job`, `inspect_job`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
3319
3321
|
# @param job_id [::String]
|
3320
3322
|
# The job id can contain uppercase and lowercase letters,
|
3321
3323
|
# numbers, and hyphens; that is, it must match the regular
|
@@ -3383,7 +3385,6 @@ module Google
|
|
3383
3385
|
|
3384
3386
|
@dlp_service_stub.call_rpc :create_dlp_job, request, options: options do |response, operation|
|
3385
3387
|
yield response, operation if block_given?
|
3386
|
-
return response
|
3387
3388
|
end
|
3388
3389
|
rescue ::GRPC::BadStatus => e
|
3389
3390
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3545,7 +3546,7 @@ module Google
|
|
3545
3546
|
@dlp_service_stub.call_rpc :list_dlp_jobs, request, options: options do |response, operation|
|
3546
3547
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_dlp_jobs, request, response, operation, options
|
3547
3548
|
yield response, operation if block_given?
|
3548
|
-
|
3549
|
+
throw :response, response
|
3549
3550
|
end
|
3550
3551
|
rescue ::GRPC::BadStatus => e
|
3551
3552
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3636,7 +3637,6 @@ module Google
|
|
3636
3637
|
|
3637
3638
|
@dlp_service_stub.call_rpc :get_dlp_job, request, options: options do |response, operation|
|
3638
3639
|
yield response, operation if block_given?
|
3639
|
-
return response
|
3640
3640
|
end
|
3641
3641
|
rescue ::GRPC::BadStatus => e
|
3642
3642
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3729,7 +3729,6 @@ module Google
|
|
3729
3729
|
|
3730
3730
|
@dlp_service_stub.call_rpc :delete_dlp_job, request, options: options do |response, operation|
|
3731
3731
|
yield response, operation if block_given?
|
3732
|
-
return response
|
3733
3732
|
end
|
3734
3733
|
rescue ::GRPC::BadStatus => e
|
3735
3734
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3822,7 +3821,6 @@ module Google
|
|
3822
3821
|
|
3823
3822
|
@dlp_service_stub.call_rpc :cancel_dlp_job, request, options: options do |response, operation|
|
3824
3823
|
yield response, operation if block_given?
|
3825
|
-
return response
|
3826
3824
|
end
|
3827
3825
|
rescue ::GRPC::BadStatus => e
|
3828
3826
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3939,7 +3937,6 @@ module Google
|
|
3939
3937
|
|
3940
3938
|
@dlp_service_stub.call_rpc :create_stored_info_type, request, options: options do |response, operation|
|
3941
3939
|
yield response, operation if block_given?
|
3942
|
-
return response
|
3943
3940
|
end
|
3944
3941
|
rescue ::GRPC::BadStatus => e
|
3945
3942
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4037,7 +4034,6 @@ module Google
|
|
4037
4034
|
|
4038
4035
|
@dlp_service_stub.call_rpc :update_stored_info_type, request, options: options do |response, operation|
|
4039
4036
|
yield response, operation if block_given?
|
4040
|
-
return response
|
4041
4037
|
end
|
4042
4038
|
rescue ::GRPC::BadStatus => e
|
4043
4039
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4128,7 +4124,6 @@ module Google
|
|
4128
4124
|
|
4129
4125
|
@dlp_service_stub.call_rpc :get_stored_info_type, request, options: options do |response, operation|
|
4130
4126
|
yield response, operation if block_given?
|
4131
|
-
return response
|
4132
4127
|
end
|
4133
4128
|
rescue ::GRPC::BadStatus => e
|
4134
4129
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4260,7 +4255,7 @@ module Google
|
|
4260
4255
|
@dlp_service_stub.call_rpc :list_stored_info_types, request, options: options do |response, operation|
|
4261
4256
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_stored_info_types, request, response, operation, options
|
4262
4257
|
yield response, operation if block_given?
|
4263
|
-
|
4258
|
+
throw :response, response
|
4264
4259
|
end
|
4265
4260
|
rescue ::GRPC::BadStatus => e
|
4266
4261
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4351,7 +4346,6 @@ module Google
|
|
4351
4346
|
|
4352
4347
|
@dlp_service_stub.call_rpc :delete_stored_info_type, request, options: options do |response, operation|
|
4353
4348
|
yield response, operation if block_given?
|
4354
|
-
return response
|
4355
4349
|
end
|
4356
4350
|
rescue ::GRPC::BadStatus => e
|
4357
4351
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4486,7 +4480,7 @@ module Google
|
|
4486
4480
|
@dlp_service_stub.call_rpc :list_project_data_profiles, request, options: options do |response, operation|
|
4487
4481
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_project_data_profiles, request, response, operation, options
|
4488
4482
|
yield response, operation if block_given?
|
4489
|
-
|
4483
|
+
throw :response, response
|
4490
4484
|
end
|
4491
4485
|
rescue ::GRPC::BadStatus => e
|
4492
4486
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4634,7 +4628,7 @@ module Google
|
|
4634
4628
|
@dlp_service_stub.call_rpc :list_table_data_profiles, request, options: options do |response, operation|
|
4635
4629
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_table_data_profiles, request, response, operation, options
|
4636
4630
|
yield response, operation if block_given?
|
4637
|
-
|
4631
|
+
throw :response, response
|
4638
4632
|
end
|
4639
4633
|
rescue ::GRPC::BadStatus => e
|
4640
4634
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4784,7 +4778,7 @@ module Google
|
|
4784
4778
|
@dlp_service_stub.call_rpc :list_column_data_profiles, request, options: options do |response, operation|
|
4785
4779
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_column_data_profiles, request, response, operation, options
|
4786
4780
|
yield response, operation if block_given?
|
4787
|
-
|
4781
|
+
throw :response, response
|
4788
4782
|
end
|
4789
4783
|
rescue ::GRPC::BadStatus => e
|
4790
4784
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4871,7 +4865,6 @@ module Google
|
|
4871
4865
|
|
4872
4866
|
@dlp_service_stub.call_rpc :get_project_data_profile, request, options: options do |response, operation|
|
4873
4867
|
yield response, operation if block_given?
|
4874
|
-
return response
|
4875
4868
|
end
|
4876
4869
|
rescue ::GRPC::BadStatus => e
|
4877
4870
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5024,7 +5017,7 @@ module Google
|
|
5024
5017
|
@dlp_service_stub.call_rpc :list_file_store_data_profiles, request, options: options do |response, operation|
|
5025
5018
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_file_store_data_profiles, request, response, operation, options
|
5026
5019
|
yield response, operation if block_given?
|
5027
|
-
|
5020
|
+
throw :response, response
|
5028
5021
|
end
|
5029
5022
|
rescue ::GRPC::BadStatus => e
|
5030
5023
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5111,7 +5104,6 @@ module Google
|
|
5111
5104
|
|
5112
5105
|
@dlp_service_stub.call_rpc :get_file_store_data_profile, request, options: options do |response, operation|
|
5113
5106
|
yield response, operation if block_given?
|
5114
|
-
return response
|
5115
5107
|
end
|
5116
5108
|
rescue ::GRPC::BadStatus => e
|
5117
5109
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5198,7 +5190,6 @@ module Google
|
|
5198
5190
|
|
5199
5191
|
@dlp_service_stub.call_rpc :delete_file_store_data_profile, request, options: options do |response, operation|
|
5200
5192
|
yield response, operation if block_given?
|
5201
|
-
return response
|
5202
5193
|
end
|
5203
5194
|
rescue ::GRPC::BadStatus => e
|
5204
5195
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5285,7 +5276,6 @@ module Google
|
|
5285
5276
|
|
5286
5277
|
@dlp_service_stub.call_rpc :get_table_data_profile, request, options: options do |response, operation|
|
5287
5278
|
yield response, operation if block_given?
|
5288
|
-
return response
|
5289
5279
|
end
|
5290
5280
|
rescue ::GRPC::BadStatus => e
|
5291
5281
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5372,7 +5362,6 @@ module Google
|
|
5372
5362
|
|
5373
5363
|
@dlp_service_stub.call_rpc :get_column_data_profile, request, options: options do |response, operation|
|
5374
5364
|
yield response, operation if block_given?
|
5375
|
-
return response
|
5376
5365
|
end
|
5377
5366
|
rescue ::GRPC::BadStatus => e
|
5378
5367
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5459,7 +5448,6 @@ module Google
|
|
5459
5448
|
|
5460
5449
|
@dlp_service_stub.call_rpc :delete_table_data_profile, request, options: options do |response, operation|
|
5461
5450
|
yield response, operation if block_given?
|
5462
|
-
return response
|
5463
5451
|
end
|
5464
5452
|
rescue ::GRPC::BadStatus => e
|
5465
5453
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5550,7 +5538,6 @@ module Google
|
|
5550
5538
|
|
5551
5539
|
@dlp_service_stub.call_rpc :hybrid_inspect_dlp_job, request, options: options do |response, operation|
|
5552
5540
|
yield response, operation if block_given?
|
5553
|
-
return response
|
5554
5541
|
end
|
5555
5542
|
rescue ::GRPC::BadStatus => e
|
5556
5543
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5637,7 +5624,6 @@ module Google
|
|
5637
5624
|
|
5638
5625
|
@dlp_service_stub.call_rpc :finish_dlp_job, request, options: options do |response, operation|
|
5639
5626
|
yield response, operation if block_given?
|
5640
|
-
return response
|
5641
5627
|
end
|
5642
5628
|
rescue ::GRPC::BadStatus => e
|
5643
5629
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5733,7 +5719,6 @@ module Google
|
|
5733
5719
|
|
5734
5720
|
@dlp_service_stub.call_rpc :create_connection, request, options: options do |response, operation|
|
5735
5721
|
yield response, operation if block_given?
|
5736
|
-
return response
|
5737
5722
|
end
|
5738
5723
|
rescue ::GRPC::BadStatus => e
|
5739
5724
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5820,7 +5805,6 @@ module Google
|
|
5820
5805
|
|
5821
5806
|
@dlp_service_stub.call_rpc :get_connection, request, options: options do |response, operation|
|
5822
5807
|
yield response, operation if block_given?
|
5823
|
-
return response
|
5824
5808
|
end
|
5825
5809
|
rescue ::GRPC::BadStatus => e
|
5826
5810
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -5921,7 +5905,7 @@ module Google
|
|
5921
5905
|
@dlp_service_stub.call_rpc :list_connections, request, options: options do |response, operation|
|
5922
5906
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :list_connections, request, response, operation, options
|
5923
5907
|
yield response, operation if block_given?
|
5924
|
-
|
5908
|
+
throw :response, response
|
5925
5909
|
end
|
5926
5910
|
rescue ::GRPC::BadStatus => e
|
5927
5911
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6021,7 +6005,7 @@ module Google
|
|
6021
6005
|
@dlp_service_stub.call_rpc :search_connections, request, options: options do |response, operation|
|
6022
6006
|
response = ::Gapic::PagedEnumerable.new @dlp_service_stub, :search_connections, request, response, operation, options
|
6023
6007
|
yield response, operation if block_given?
|
6024
|
-
|
6008
|
+
throw :response, response
|
6025
6009
|
end
|
6026
6010
|
rescue ::GRPC::BadStatus => e
|
6027
6011
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6108,7 +6092,6 @@ module Google
|
|
6108
6092
|
|
6109
6093
|
@dlp_service_stub.call_rpc :delete_connection, request, options: options do |response, operation|
|
6110
6094
|
yield response, operation if block_given?
|
6111
|
-
return response
|
6112
6095
|
end
|
6113
6096
|
rescue ::GRPC::BadStatus => e
|
6114
6097
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6199,7 +6182,6 @@ module Google
|
|
6199
6182
|
|
6200
6183
|
@dlp_service_stub.call_rpc :update_connection, request, options: options do |response, operation|
|
6201
6184
|
yield response, operation if block_given?
|
6202
|
-
return response
|
6203
6185
|
end
|
6204
6186
|
rescue ::GRPC::BadStatus => e
|
6205
6187
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -6249,6 +6231,13 @@ module Google
|
|
6249
6231
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
6250
6232
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
6251
6233
|
# * (`nil`) indicating no credentials
|
6234
|
+
#
|
6235
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
6236
|
+
# external source for authentication to Google Cloud, you must validate it before
|
6237
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
6238
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
6239
|
+
# For more information, refer to [Validate credential configurations from external
|
6240
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
6252
6241
|
# @return [::Object]
|
6253
6242
|
# @!attribute [rw] scope
|
6254
6243
|
# The OAuth scopes
|
@@ -6288,6 +6277,11 @@ module Google
|
|
6288
6277
|
# default endpoint URL. The default value of nil uses the environment
|
6289
6278
|
# universe (usually the default "googleapis.com" universe).
|
6290
6279
|
# @return [::String,nil]
|
6280
|
+
# @!attribute [rw] logger
|
6281
|
+
# A custom logger to use for request/response debug logging, or the value
|
6282
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
6283
|
+
# explicitly disable logging.
|
6284
|
+
# @return [::Logger,:default,nil]
|
6291
6285
|
#
|
6292
6286
|
class Configuration
|
6293
6287
|
extend ::Gapic::Config
|
@@ -6312,6 +6306,7 @@ module Google
|
|
6312
6306
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
6313
6307
|
config_attr :quota_project, nil, ::String, nil
|
6314
6308
|
config_attr :universe_domain, nil, ::String, nil
|
6309
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
6315
6310
|
|
6316
6311
|
# @private
|
6317
6312
|
def initialize parent_config = nil
|